/* TimeCap design system tokens (source: TimeCap design canvas, tc.css). Light by default;
   dark is opt-in with <html data-theme="dark">. Spacing runs on a 4px grid. Radius: 8 small,
   10 controls, 14 cards, 999 for status pills and toggles only. */
:root{color-scheme:light;
  --bg:#f9fafb;--surface:#ffffff;--surface-2:#f3f4f6;--surface-3:#e5e7eb;
  --border:#e5e7eb;--border-2:#d1d5db;
  --text:#111827;--text-2:#4b5563;--text-3:#6b7280;
  --accent:#2a6bc2;--accent-hover:#1a5aad;--accent-fg:#ffffff;
  --accent-grad:linear-gradient(180deg,#3479d0 0%,#2a6bc2 100%);
  --sel-bg:#e8f4fd;--sel-text:#1d5fb8;--sel-border:#2a6bc2;--ring:rgba(42,107,194,.2);--track:#eef0f3;
  --ok:#12b76a;--ok-bg:#ecfdf3;--ok-text:#027a48;--ok-border:#a6e4c4;--ok-ring:rgba(18,183,106,.16);
  --warn:#f79009;--warn-bg:#fffaeb;--warn-text:#b54708;--warn-border:#fedf89;--warn-ring:rgba(247,144,9,.16);
  --danger:#d92d20;--danger-bg:#fef3f2;--danger-border:#fecdca;--danger-ring:rgba(217,45,32,.14);
  --info-bg:#f3f4f6;--info-text:#4b5563;--muted-ring:rgba(107,114,128,.14);
  --shadow-xs:0 1px 2px rgba(0,0,0,.05);--shadow:0 1px 2px rgba(0,0,0,.04),0 1px 3px rgba(0,0,0,.04);
  --shadow-btn:0 1px 2px rgba(0,0,0,.08);--shadow-raised:0 1px 2px rgba(0,0,0,.06),0 8px 24px -12px rgba(0,0,0,.12);
  --shadow-modal:0 1px 2px rgba(0,0,0,.1),0 24px 64px -28px rgba(0,0,0,.5);
  --scrim:rgba(17,24,39,.48);--ease:cubic-bezier(.23,1,.32,1);
  --r-sm:8px;--r-control:10px;--r-card:14px;--r-pill:999px;
  --font:Poppins,system-ui,-apple-system,"Segoe UI",sans-serif;--mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  /* Legacy aliases kept so older rules follow the tokens. */
  --ink:var(--text);--muted:var(--text-3);--line:var(--border);--wash:var(--bg)}
:root[data-theme=dark]{color-scheme:dark;
  --bg:#0f1218;--surface:#161a22;--surface-2:#1c212b;--surface-3:#252b37;
  --border:#262c38;--border-2:#333a48;
  --text:#e8ebf0;--text-2:#aab1bd;--text-3:#7f8796;
  --accent:#3374cc;--accent-hover:#4a8ae0;--accent-grad:linear-gradient(180deg,#3f80d6 0%,#3374cc 100%);
  --sel-bg:rgba(51,116,204,.18);--sel-text:#9cc2f5;--sel-border:#4a8ae0;--ring:rgba(74,138,224,.35);--track:#1c212b;
  --ok:#32d583;--ok-bg:rgba(18,183,106,.14);--ok-text:#6ee7a0;--ok-border:rgba(110,231,160,.35);
  --warn:#fbbf24;--warn-bg:rgba(245,158,11,.13);--warn-text:#fbbf24;--warn-border:rgba(251,191,36,.35);
  --danger:#f87171;--danger-bg:rgba(248,113,113,.12);--danger-border:rgba(248,113,113,.35);
  --info-bg:#1c212b;--info-text:#aab1bd;
  --shadow-xs:0 1px 2px rgba(0,0,0,.35);--shadow:0 1px 2px rgba(0,0,0,.3);--shadow-btn:0 1px 2px rgba(0,0,0,.45);
  --shadow-raised:0 1px 2px rgba(0,0,0,.45),0 8px 24px -12px rgba(0,0,0,.65);--shadow-modal:0 1px 2px rgba(0,0,0,.5),0 24px 64px -28px rgba(0,0,0,.85);
  --scrim:rgba(0,0,0,.6)}
*{box-sizing:border-box}body{margin:0;font:14px/1.6 var(--font);-webkit-font-smoothing:antialiased;color:var(--ink);background:var(--wash)}aside{position:fixed;inset:0 auto 0 0;width:240px;padding:32px 20px;display:flex;flex-direction:column;gap:30px}a{color:inherit;text-decoration:none}.brand{display:flex;align-items:center;gap:12px;font-size:23px;font-weight:650}.brand small{display:block;font-size:12px;color:var(--muted);font-weight:400}.mark{display:grid;place-items:center;background:#253d62;color:#ffdb83;border-radius:16px;width:42px;height:42px;font-size:24px;font-weight:600}.large{width:66px;height:66px;margin:auto;font-size:34px;border-radius:24px}
/* Match the approved login/landing lockup, including Poppins and the sky AI accent. */
@font-face{font-family:Poppins;src:url('/fonts/poppins-500.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:Poppins;src:url('/fonts/poppins-600.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap}
.console-brand{display:flex;align-items:center;gap:9px;color:#373334;font:500 25px/1.1 Poppins,ui-sans-serif,sans-serif;letter-spacing:-.04em;white-space:nowrap}.console-brand img{width:38px;height:38px;object-fit:contain;flex:none}.console-brand strong{color:#1684a8;font-weight:600}@media(min-width:651px) and (max-width:1050px){.console-brand{font-size:21px;gap:7px}.console-brand img{width:32px;height:32px}}
/* THE RAIL LOCKUP: the landing page's, at rail size. Sky is selection and navy is action,
   so nothing in this rail is painted navy; see the nav rules below. */
.rail-lockup{display:flex;align-items:center;gap:8px;min-width:0}.rail-lockup img{display:block;width:28px;height:28px;flex:none;object-fit:contain}.rail-wordmark{display:block;width:107px;height:auto;flex:none;color:#373334;overflow:visible}.empty-mark{display:block;width:56px;height:56px;margin:0 auto;object-fit:contain}.login-lockup img{width:34px;height:34px}.login-lockup .rail-wordmark{width:133px}.badge{display:inline-block;align-self:flex-start;font-size:11px;letter-spacing:.02em;padding:5px 10px;border:1px solid var(--line);border-radius:30px;background:var(--surface);color:var(--muted);white-space:nowrap}nav{display:grid;gap:4px}aside nav a{display:flex;align-items:center;gap:10px;min-height:36px;padding:8px 12px;border-radius:8px;font-size:13px;font-weight:500;color:var(--text-2)}aside nav a .nav-icon{width:17px;height:17px;flex:none}aside nav a:hover{background:rgb(231 237 244 / .6)}aside nav a[aria-current=page]{background:var(--sel-bg);color:var(--sel-text);font-weight:600}.rail-foot{margin-top:auto;display:grid;gap:12px}.rail-account{display:grid;gap:8px;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}.account-head{display:flex;align-items:center;gap:9px;min-width:0}.account-avatar{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:var(--sel-bg);color:var(--sel-text);font-size:11px;font-weight:600;text-transform:uppercase}.account-identity{display:grid;min-width:0;flex:1}.account-name{font-size:12px;font-weight:600;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-role{font-size:11px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-action{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;padding:8px;border:0;border-top:1px solid var(--line);border-radius:0 0 4px 4px;background:transparent;color:var(--muted);font-size:12px;font-weight:600;cursor:pointer}.account-action svg{width:14px;height:14px}.account-action:hover{background:var(--danger-bg);color:var(--danger);filter:none}a.account-action:hover{background:var(--sel-bg);color:var(--sel-text)}.rail-note{margin:0;font-size:11px;line-height:1.55;color:var(--muted)}main{margin-left:240px;background:var(--surface);min-height:100vh;border-radius:28px 0 0 0;padding:38px 40px;max-width:1900px}header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:28px}h1{font-size:30px;letter-spacing:-1px;line-height:1.2;margin:8px 0 10px}h2{font-size:17px;line-height:1.4;margin:0 0 8px}h3{font-size:14px;margin:12px 0}p{margin:0 0 15px;color:var(--muted)}.eyebrow{letter-spacing:.15em;font-size:10px;font-weight:700;color:var(--accent);margin:0}.card{border:1px solid var(--line);border-radius:18px;padding:24px;background:var(--surface);min-width:0}.card-heading{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:16px}.card-heading p{margin:0}.conversation-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px}.two-col{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:24px}.stack{display:grid;gap:22px;align-content:start}.chat-card{display:flex;flex-direction:column;min-height:620px}#messages{height:365px;overflow-y:auto;padding:12px 0;display:flex;flex-direction:column;gap:15px}.empty{text-align:center;margin:auto;max-width:330px}.empty h2{margin-top:18px}.bubble{max-width:85%;padding:12px 16px;background:var(--wash);border-radius:16px;white-space:pre-wrap;overflow-wrap:anywhere}.bubble.user{align-self:flex-end;background:var(--accent);color:#fff}.bubble small{display:block;font-size:10px;opacity:.7;margin-bottom:4px}.suggestions{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}.suggestions button{background:var(--surface);color:var(--muted);border:1px solid var(--line);font-size:11px;padding:7px 10px}.fine{font-size:11px;margin:12px 0 0}button{font:inherit;background:var(--accent);color:#fff;border:1px solid transparent;border-radius:10px;padding:10px 15px;cursor:pointer}button:hover{filter:brightness(.95)}button:disabled{opacity:.5;cursor:not-allowed}.secondary{background:var(--surface);border-color:var(--line);color:var(--ink);font-size:12px;padding:8px 12px}input,textarea,select{display:block;width:100%;padding:11px 12px;border:1px solid var(--border-2);border-radius:10px;font:inherit;background:var(--surface);color:var(--ink)}textarea{resize:vertical}label{display:block;font-size:12px;font-weight:600;margin:17px 0 6px}form button,#compile,#export-chat{margin-top:16px}#chat-form{display:flex;gap:10px;align-items:flex-end}#chat-form button{margin:0;white-space:nowrap}#chat-form textarea{min-height:70px}.divider{height:1px;background:var(--line);margin:20px 0}.text-link{color:var(--accent);font-weight:600;font-size:12px}pre{font:11px/1.7 ui-monospace,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:300px;overflow:auto;background:var(--wash);border-radius:10px;padding:15px;margin:10px 0 0}.code-input{font:11px/1.6 ui-monospace,monospace;tab-size:2}.status-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-bottom:24px}.status-grid .card p{margin:0}#notice:not(:empty){background:var(--warn-bg);border-radius:10px;padding:12px 16px;margin-bottom:20px}#stage{aspect-ratio:16/9;background:#243953;color:#fff;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:20px;overflow:hidden}#stage h2{font-size:27px}#stage p{color:#c9d5e6}#stage .caption{background:#101c2e;padding:5px 12px;font-size:13px;margin-top:18px}.playback{display:flex;gap:12px;align-items:center;margin-top:15px}.playback input{padding:0}.playback output{white-space:nowrap;font-size:12px}#timeline{display:grid;gap:6px;margin-top:16px}.timeline-row{padding:8px 12px;background:var(--wash);border-radius:8px;font-size:11px}.timeline-row.active{background:var(--sel-bg);color:var(--accent)}:focus-visible{outline:3px solid var(--sel-border);outline-offset:3px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}[hidden]{display:none!important}@media(min-width:1500px){main{padding:44px 64px}.conversation-grid{grid-template-columns:minmax(0,1fr) 350px}}@media(max-width:1050px){aside{width:200px;padding:24px 15px}.rail-lockup{gap:6px}.rail-lockup img{width:26px;height:26px}.rail-wordmark{width:94px}aside nav a{font-size:12px;padding:8px 10px}main{margin-left:200px;padding:28px 24px}.conversation-grid,.two-col{grid-template-columns:1fr}.status-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chat-card{min-height:580px}}@media(max-width:650px){aside{position:static;width:auto;padding:16px;gap:14px}.brand{font-size:19px}.rail-note{display:none}.rail-foot{margin-top:0}.rail-lockup img{width:30px;height:30px}.rail-wordmark{width:112px}.rail-account{padding:7px 9px}nav{display:flex;overflow-x:auto;gap:5px}aside nav a{font-size:12px;white-space:nowrap;padding:8px 10px}main{margin:0;padding:24px 16px;border-radius:20px 20px 0 0}header{display:block}header>.badge{margin-top:8px}h1{font-size:27px}.card{padding:18px}.card-heading{align-items:flex-start}.status-grid{grid-template-columns:1fr}#messages{height:330px}.chat-card{min-height:570px}.bubble{max-width:95%}.suggestions{gap:5px}}
.check-label{display:flex;align-items:flex-start;gap:10px;font-weight:400}.check-label input{display:inline-block;width:auto;margin-top:5px;flex:none}
.gateway-layout{max-width:760px}.behavior-panel .card{padding:20px}.behavior-panel label:first-child{margin-top:8px}@media(min-width:1051px){.page .conversation-grid{grid-template-columns:minmax(0,1fr) 380px;align-items:start}.chat-card{position:sticky;top:24px}}@media(min-width:1500px){.page .conversation-grid{grid-template-columns:minmax(0,1fr) 420px}}
#conversation .conversation-grid{grid-template-columns:minmax(0,1fr) minmax(340px,1fr);gap:24px}#conversation .chat-card{min-height:500px;position:sticky;top:24px}#conversation #messages{height:280px}#conversation .behavior-panel .card{padding:22px}@media(max-width:850px){#conversation .conversation-grid{grid-template-columns:1fr}#conversation .chat-card{position:static}}
body select{appearance:none;-webkit-appearance:none;min-width:0;max-width:100%;padding-right:40px;text-overflow:ellipsis;background-color:var(--surface);background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;background-size:16px 16px;cursor:pointer}body select:disabled{cursor:not-allowed;opacity:.6}
.media-workbench{margin-bottom:28px}.media-drop-zone{padding:28px 16px;border:1px dashed var(--text-3);border-radius:12px;text-align:center;background:var(--wash);cursor:pointer}.media-drop-zone input{margin-top:12px;font-size:12px}.media-row{display:flex;gap:8px;margin-top:10px}.media-row button:first-child{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.source-preview{min-height:220px;background:var(--wash);border-radius:12px;display:flex;align-items:center;justify-content:center;padding:12px}.source-preview video,.source-preview img{display:block;max-width:100%;max-height:320px}.source-preview audio{max-width:100%}.lab-subheading{margin-top:22px}.advanced-lab{border-top:1px solid var(--line);padding-top:20px}.advanced-lab summary{cursor:pointer;color:var(--muted);margin-bottom:20px}
.edit-steps{display:flex;gap:8px;list-style:none;padding:0;margin:12px 0 16px;flex-wrap:wrap}.edit-steps li{padding:7px 12px;border-radius:999px;background:var(--wash);color:var(--muted);font-size:12px}.edit-steps li[data-state=active]{background:var(--sel-bg);color:var(--sel-text);font-weight:600}.edit-steps li[data-state=complete]{background:var(--ok-bg);color:var(--ok-text)}.edit-feedback{padding:16px;border:1px solid var(--line);border-radius:12px;margin-bottom:16px;overflow-wrap:anywhere}.edit-feedback p{margin:8px 0 0}.edit-feedback[data-state=failed]{border-color:var(--danger-border);background:var(--danger-bg);color:var(--danger)}.edit-feedback[data-state=ready]{border-color:var(--ok-border);background:var(--ok-bg);color:var(--ok-text)}.edit-feedback button{margin-top:12px}.edit-feedback[data-state=uploading] strong:before,.edit-feedback[data-state=analyzing] strong:before,.edit-feedback[data-state=rendering] strong:before{content:'';display:inline-block;width:12px;height:12px;border:2px solid var(--border-2);border-top-color:var(--accent);border-radius:50%;margin-right:9px;animation:edit-spin 1s linear infinite}.edit-toast{position:fixed;bottom:24px;right:24px;z-index:1000;max-width:420px;width:calc(100% - 48px);padding:18px;border-radius:14px;background:var(--ok-bg);color:var(--ok-text);border:1px solid var(--ok-border);box-shadow:0 10px 36px #172b4d26;overflow-wrap:anywhere}.edit-toast[hidden]{display:none}.edit-toast[data-state=failed]{background:var(--danger-bg);color:var(--danger);border-color:var(--danger-border)}.edit-toast p{margin:8px 0 12px}.edit-toast button{font-size:12px}@keyframes edit-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.edit-feedback strong:before{animation:none!important}}
.request-log { margin-top: 24px; }
.request-log summary { cursor: pointer; font-weight: 600; }
.request-log pre { max-height: 360px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; background: #111827; color: var(--border); border-radius: 12px; padding: 16px; font-size: 12px; }
.media-row{align-items:center}.media-row>input{width:auto;flex:none}.media-row button{padding-inline:10px}.media-row button:nth-of-type(1){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.media-thumb{width:48px;height:34px;flex:none;border-radius:7px;object-fit:cover;background:var(--border)}.media-row:has(>input:not(:checked)){opacity:.55}

/* Console navigation, account menu, and focused configuration surfaces. */
.rail-foot{position:relative;display:block}.rail-account{position:relative;display:block;padding:0;border:0;background:transparent}.account-trigger{display:flex;align-items:center;justify-content:space-between;gap:9px;width:100%;padding:10px;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);text-align:left}.account-trigger:hover{background:var(--bg);filter:none}.account-chevron{width:14px;height:14px;flex:none;color:var(--muted);transition:transform .16s ease}.account-trigger[aria-expanded=true] .account-chevron{transform:rotate(-90deg)}.account-menu{position:absolute;left:0;right:0;bottom:calc(100% + 8px);z-index:20;padding:6px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 10px 30px #172b4d1f}.account-action{padding:9px;border:0;border-radius:8px}.rail-note{display:none}
.composer-shell{display:grid!important;gap:8px!important;padding:10px;border:1px solid var(--border-2);border-radius:16px;background:var(--surface);box-shadow:0 7px 24px #172b4d0d;transition:border-color .15s,box-shadow .15s}.composer-shell:focus-within{border-color:var(--accent);box-shadow:0 0 0 3px var(--ring)}.composer-shell textarea{min-height:44px!important;max-height:150px;padding:8px 9px;border:0;outline:0;box-shadow:none;resize:none}.composer-shell textarea:focus-visible{outline:0}.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-left:9px}.composer-footer>span{font-size:10px;color:var(--muted)}.composer-footer button{display:grid;place-items:center;width:34px;height:34px;margin:0;padding:0;border-radius:10px}.composer-footer button svg{width:17px;height:17px}
.gateway-layout{max-width:920px}.gateway-status{display:flex;align-items:center;gap:9px;min-height:38px;margin-bottom:14px;padding:9px 12px;border:1px solid var(--line);border-radius:12px;background:var(--bg)}.gateway-status p{margin:0;font-size:12px}.gateway-status #gateway-attempts{margin-left:auto;color:var(--muted)}.status-dot{width:8px;height:8px;flex:none;border-radius:50%;background:var(--ok);box-shadow:0 0 0 3px var(--ok-ring)}.gateway-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.gateway-section{padding:20px}.gateway-section:first-child{grid-column:1/-1}.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:14px}.section-heading h2{margin:1px 0 0}.section-kicker{display:block;color:var(--muted);font-size:9px;font-weight:700;letter-spacing:.12em;text-transform:uppercase}.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.field{min-width:0}.field-wide{grid-column:1/-1}.field label{margin:0 0 5px}.field-status{margin:6px 0 0;color:var(--muted);font-size:10px;line-height:1.4}.gateway-advanced{grid-column:1/-1}.gateway-advanced summary{display:flex;align-items:center;justify-content:space-between;gap:16px;cursor:pointer;list-style:none}.gateway-advanced summary::-webkit-details-marker{display:none}.summary-hint{font-size:11px;color:var(--muted)}.compact-fields{grid-template-columns:repeat(3,minmax(0,1fr));margin-top:16px}.gateway-consent{grid-column:1/-1;margin:0;padding:2px 4px;font-size:11px;color:var(--muted)}.gateway-actions{grid-column:1/-1;display:flex;gap:10px;align-items:center}.gateway-actions button{margin:0}.danger-action{color:var(--danger)}
@media(max-width:850px){.gateway-form{grid-template-columns:1fr}.gateway-section,.gateway-section:first-child,.gateway-advanced,.gateway-consent,.gateway-actions{grid-column:1}.gateway-status{align-items:flex-start;flex-wrap:wrap}.gateway-status #gateway-attempts{width:100%;margin-left:17px}.compact-fields{grid-template-columns:1fr}.composer-footer>span{display:none}}
.gateway-status .status-dot[data-state=unknown]{background:var(--text-3);box-shadow:0 0 0 3px var(--muted-ring)}
.account-first-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:600;color:var(--text)}.account-menu-profile{display:grid;gap:1px;padding:8px 9px 10px;border-bottom:1px solid var(--line);margin-bottom:4px}.account-menu-profile .account-name{font-size:12px}.account-email{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted);font-size:10px}.account-menu-profile .account-role{font-size:10px}
.gateway-form{grid-template-columns:1fr;gap:12px}.gateway-section,.gateway-section:first-child,.gateway-advanced,.gateway-consent,.gateway-actions{grid-column:1}.gateway-section{padding:17px 18px}.gateway-status{margin-bottom:12px}.section-heading{align-items:center;margin-bottom:11px}.text-button{margin:0!important;padding:0;border:0;border-radius:0;background:transparent;color:var(--accent);font-size:12px;font-weight:600}.text-button:hover{text-decoration:underline;filter:none}.primary-fields{grid-template-columns:minmax(140px,.55fr) minmax(220px,1fr) minmax(250px,1.2fr);align-items:start}.primary-fields .field-wide{grid-column:auto}.media-fields{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}.field .check-label{margin-top:7px}.gateway-actions{justify-content:flex-start}.gateway-actions button{min-width:92px;padding-inline:16px}.danger-action{min-width:92px!important}.compact-fields{margin-top:13px}
.rail-nav-group{margin:14px 8px 4px;padding:13px 5px 0;border-top:1px solid var(--line);color:var(--text-3);font-size:10px;font-weight:700;letter-spacing:.11em;text-transform:uppercase}
/* One page header for every section: title, the section's tabs beside it, and its actions at the right. */
.page-header{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px 24px;margin-bottom:24px}.page-header h1{margin:0}
.page-tabs{display:flex;gap:2px;width:max-content;max-width:100%;padding:3px;border:1px solid var(--line);border-radius:10px;background:var(--track);overflow-x:auto}
.page-tabs button{margin:0;padding:4px 12px;background:transparent;border:0;border-radius:7px;color:var(--muted);font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap}
.page-tabs button[aria-selected=true]{background:var(--surface);color:var(--sel-text);box-shadow:0 1px 4px #172b4d15}
/* Slim variant for in-card tabs: text and an underline on the selected tab. */
.page-tabs--underline{gap:18px;padding:0;border:0;border-radius:0;background:none;overflow:visible}.page-tabs--underline button{padding:2px 0 6px;border-radius:0;border-bottom:2px solid transparent}.page-tabs--underline button:hover{color:var(--ink);filter:none}.page-tabs--underline button[aria-selected=true]{background:none;box-shadow:none;color:var(--sel-text);border-bottom-color:var(--sel-text)}
/* The one refresh control: outlined pill with a refresh icon. */
.refresh-button{display:inline-flex;align-items:center;gap:6px;height:30px;margin:0!important;padding:0 12px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);font-size:12px;font-weight:600;line-height:1;white-space:nowrap}.refresh-button:hover{border-color:var(--text-3);background:var(--bg);filter:none}.refresh-button::before{content:'';width:14px;height:14px;flex:none;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-15.5 6.2L3 16M3 12a9 9 0 0 1 15.5-6.2L21 8M21 3v5h-5M3 21v-5h5'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-15.5 6.2L3 16M3 12a9 9 0 0 1 15.5-6.2L21 8M21 3v5h-5M3 21v-5h5'/%3E%3C/svg%3E") center/contain no-repeat}.refresh-button:disabled::before{animation:edit-spin 1s linear infinite}
.page-actions .refresh-button{height:32px}
.page-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.page-actions button{display:inline-flex;align-items:center;justify-content:center;height:32px;margin:0;padding-block:0;line-height:1}
.form-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:18px}.form-actions button{display:inline-flex;align-items:center;justify-content:center;height:36px;margin:0;padding-block:0;line-height:1}
.danger-button{background:var(--danger)}
.console-dialog{max-height:90dvh;overflow:auto;border:1px solid var(--line);border-radius:20px;padding:28px;color:var(--ink);background:var(--surface);box-shadow:0 24px 80px #202c3e30}.console-dialog::backdrop{background:#17212c99}
.confirm-dialog{width:min(440px,92vw);padding:24px}.confirm-dialog h2{margin:0 0 8px}.confirm-dialog p{margin:0}.confirm-dialog .form-actions{justify-content:flex-end;margin-top:22px}
.dashboard-stats,.dashboard-panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-bottom:18px}.dashboard-page>.fine{margin:-6px 0 18px}.dashboard-platform-head{display:flex;gap:12px;align-items:flex-start}.dashboard-platform-head .status-dot{margin-top:8px}.dashboard-platform-head h2{margin:0 0 4px}.dashboard-platform-head p{margin:0}.dashboard-platform>.fine{margin:18px 0 0}
.connection-list{display:grid}.connection-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)}.connection-row:last-child{border-bottom:0}.connection-row>div{display:grid;gap:1px}.connection-row strong{font-size:12px;color:var(--ink)}.connection-row small{font-size:11px;color:var(--muted)}.status-dot[data-state=paused]{background:var(--warn);box-shadow:0 0 0 3px var(--warn-ring)}.status-dot[data-state=unknown]{background:var(--text-3);box-shadow:0 0 0 3px var(--muted-ring)}
@media(max-width:650px){.rail-nav-group{margin:0 5px;padding:0 7px;border:0;border-left:1px solid var(--line);white-space:nowrap;align-self:center}.dashboard-stats,.dashboard-panels{grid-template-columns:1fr}.page-actions{margin-left:0;width:100%}.page-actions button{flex:1}.page-tabs{width:100%}.page-tabs button{flex:1;padding-inline:8px}}
.connection-control{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px;padding:16px 20px}.connection-control-copy{min-width:0}.connection-control-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 10px;margin-bottom:2px}.connection-control-title h2{margin:0}.connection-control-copy p{margin:0;font-size:12px}.connection-control-copy .fine{margin-top:2px;font-size:11px}.connection-toggle{display:flex;align-items:center;gap:10px;margin:0;white-space:nowrap}.connection-toggle input{width:42px;height:24px;margin:0;accent-color:var(--accent);cursor:pointer}.connection-toggle input:disabled{cursor:not-allowed}@media(max-width:650px){.connection-control{align-items:flex-start;flex-direction:column}.connection-toggle{width:100%;justify-content:space-between}}
@media(max-width:850px){.primary-fields,.media-fields{grid-template-columns:1fr}.primary-fields .field-wide{grid-column:1}.gateway-section{padding:16px}.gateway-actions button{flex:1}}
.gateway-layout{width:100%;max-width:none}

/* Daily behavior settings stay prominent; optional test chat lives in the lab. */
#conversation .conversation-grid{display:block}
#conversation .behavior-panel{max-width:none}
.lab-conversation-test{margin:0 0 22px}
.lab-conversation-test>summary{cursor:pointer;font-weight:600;list-style:none}
.lab-conversation-test>summary::-webkit-details-marker{display:none}
.lab-conversation-test>summary::before{content:'+';display:inline-grid;place-items:center;width:22px;height:22px;margin-right:9px;border-radius:50%;background:var(--wash);color:var(--accent)}
.lab-conversation-test[open]>summary::before{content:'−'}
.lab-conversation-test>summary span{display:block;margin:4px 0 0 31px;color:var(--muted);font-size:12px;font-weight:400}
#lab-chat-mount{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,300px);gap:18px;align-items:start;margin-top:20px}
#lab-chat-mount .chat-card{min-height:500px}
#lab-chat-mount #messages{height:280px}
#lab-chat-mount #panel-notes{padding:20px}
@media(max-width:850px){#lab-chat-mount{grid-template-columns:1fr}}

/* Rail: slightly larger targets, icons aligned with the logo mark's left edge. */
aside{padding:28px 20px}
aside nav{margin-inline:-10px}aside nav a{gap:12px;min-height:40px;padding:9px 10px;font-size:14px}aside nav a .nav-icon{width:20px;height:20px}
.rail-nav-group{margin:14px 10px 4px;padding:13px 0 0}
@media(min-width:651px) and (max-width:1050px){aside nav a{font-size:13px}}
@media(max-width:650px){aside nav{margin-inline:0}}
/* Shared empty state and stat placeholders. */
.empty-state{display:grid;gap:2px;justify-items:center;padding:28px 16px;text-align:center}.empty-state strong{font-size:13px;font-weight:600;color:var(--ink)}.empty-state span{font-size:12px;color:var(--muted)}
.is-empty{color:var(--text-3)!important;font-weight:500!important;font-size:16px!important;letter-spacing:0!important}
.card-actions{display:flex;align-items:center;gap:8px}
.status-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:11px;font-weight:600;background:var(--warn-bg);color:var(--warn-text)}.status-chip::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.status-chip[data-state=good]{background:var(--ok-bg);color:var(--ok-text)}.status-chip[data-state=neutral]{background:var(--surface-2);color:var(--muted)}

/* Shared mask icons: <span class="icon" data-icon="name">, painted in currentColor. */
.icon{display:inline-block;width:16px;height:16px;flex:none;background:currentColor;-webkit-mask:center/contain no-repeat;mask:center/contain no-repeat}
.icon[data-icon=spend]{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9.5c-.5-1-1.6-1.5-3-1.5-1.7 0-3 .9-3 2s1.3 1.7 3 2 3 .9 3 2-1.3 2-3 2c-1.4 0-2.5-.5-3-1.5M12 6v2m0 8v2'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15 9.5c-.5-1-1.6-1.5-3-1.5-1.7 0-3 .9-3 2s1.3 1.7 3 2 3 .9 3 2-1.3 2-3 2c-1.4 0-2.5-.5-3-1.5M12 6v2m0 8v2'/%3E%3C/svg%3E")}
.icon[data-icon=film]{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 4v16M17 4v16M3 9h4M3 15h4M17 9h4M17 15h4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 4v16M17 4v16M3 9h4M3 15h4M17 9h4M17 15h4'/%3E%3C/svg%3E")}
.icon[data-icon=average]{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18M6 16v-4M11 16V8M16 16v-6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18M6 16v-4M11 16V8M16 16v-6'/%3E%3C/svg%3E")}
.icon[data-icon=members]{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14a6 6 0 0 1 3.5 6'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='8' r='3.5'/%3E%3Cpath d='M2.5 20a6.5 6.5 0 0 1 13 0M16 4.5a3.5 3.5 0 0 1 0 7M18 14a6 6 0 0 1 3.5 6'/%3E%3C/svg%3E")}
.icon[data-icon=calendar]{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E")}
.icon[data-icon=operations]{-webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 8l9 5 9-5-9-5ZM3 13l9 5 9-5'/%3E%3C/svg%3E");mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 3 8l9 5 9-5-9-5ZM3 13l9 5 9-5'/%3E%3C/svg%3E")}
/* Stat card: icon and label, a headline value, and a short note. */
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.stat{display:grid;gap:6px;align-content:start;padding:16px 18px;min-width:0}.stat-head{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:600;color:var(--muted)}.stat-head .icon-badge{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--sel-bg);color:var(--sel-text)}.stat strong{font-size:24px;line-height:1.25;letter-spacing:-.025em;color:var(--text);font-variant-numeric:tabular-nums}.stat small{font-size:11px;color:var(--muted)}
.dashboard-stats .stat{min-height:112px}
/* Neutral metadata chip, the quiet sibling of .status-chip. */
.meta-chip{display:inline-flex;align-items:center;gap:6px;height:26px;padding:0 10px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--ink);font-size:12px;font-weight:500;white-space:nowrap;font-variant-numeric:tabular-nums}.meta-chip .icon{width:14px;height:14px;color:var(--muted)}.meta-chip small{color:var(--muted);font-size:10px;font-weight:600;letter-spacing:.04em}
.status-chip{height:26px}
@media(max-width:1050px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Brand and content frame. */
aside .console-brand{font-size:18px;gap:7px}aside .console-brand img{width:24px;height:24px}
@media(min-width:651px) and (max-width:1050px){aside .console-brand{font-size:16px}aside .console-brand img{width:22px;height:22px}}
main{margin-top:12px;min-height:calc(100vh - 12px);border-radius:24px 0 0 0;padding:24px 40px 38px}
@media(min-width:1500px){main{padding:26px 64px 44px}}
@media(max-width:1050px){main{padding:20px 24px 28px}}
@media(max-width:650px){main{margin-top:0;min-height:100vh;padding:20px 16px 24px}}
/* AI Tuning, Tools & Skills */
.tuning-browser{display:grid;grid-template-columns:minmax(220px,32%) minmax(0,1fr);gap:20px;margin-top:18px}.tuning-list{display:grid;align-content:start;gap:5px;max-height:620px;overflow:auto}.tuning-list-item{display:grid;gap:3px;width:100%;padding:12px 14px;border:1px solid transparent;border-radius:11px;background:transparent;color:var(--ink);text-align:left;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer}.tuning-list-item:hover,.tuning-list-item[aria-current=true]{background:var(--sel-bg);border-color:var(--sel-bg)}.tuning-list-item small{font-size:11px;font-weight:400;color:var(--muted);line-height:1.45}.tuning-detail{min-height:240px;padding:22px 26px;border:1px solid var(--line);border-radius:14px;background:var(--surface)}.tuning-detail h3{margin:0 0 12px;font-size:20px}.tuning-detail h4{margin:22px 0 8px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}.tuning-detail p{margin:0;white-space:pre-wrap}.tuning-detail ol{margin:0;padding-left:20px}.tuning-detail li{margin:5px 0}.format-settings{display:grid;grid-template-columns:minmax(110px,1fr) 2fr;gap:8px 20px;margin:0}.format-settings dt{color:var(--muted)}.format-settings dd{margin:0;text-transform:capitalize}#conversation-prompt{font:13px/1.65 ui-monospace,monospace;resize:vertical;background:var(--bg)}#knowledge-search{margin-top:5px}@media(max-width:760px){.tuning-browser{grid-template-columns:1fr}.tuning-list{max-height:260px}.tuning-detail{padding:18px}}

.mobile-rail-head{display:contents}.mobile-nav-toggle{display:none}
@media(max-width:650px){
  #console-rail{display:flex;flex-direction:column;gap:8px;padding:calc(10px + env(safe-area-inset-top,0px)) 16px 10px}
  .mobile-rail-head{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}
  .mobile-rail-head .console-brand{min-width:0;overflow:hidden;text-overflow:ellipsis;font-size:17px}
  .mobile-nav-toggle{display:flex;flex:0 1 120px;align-items:center;justify-content:center;gap:7px;min-width:44px;max-width:120px;min-height:44px;padding:8px 10px;background:var(--surface);color:var(--ink);border:1px solid var(--line);font-size:12px;font-weight:600}
  .mobile-nav-toggle span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mobile-nav-icon{font-size:16px;line-height:1}
  #console-rail nav{display:none;order:2;overflow:visible;flex-direction:column;gap:2px;margin:0;padding:8px 0;border-top:1px solid var(--line)}
  #console-rail nav[data-open=true]{display:flex}
  #console-rail nav a{min-height:44px;padding:10px 12px;white-space:normal;font-size:14px}
  #console-rail .rail-nav-group{margin:8px 8px 4px;padding:11px 0 0;border:0;border-top:1px solid var(--line);align-self:stretch}
  #console-rail .rail-foot{order:1;width:100%;max-width:320px}
  #console-rail .account-trigger{min-height:44px}
  #console-rail .account-menu{top:calc(100% + 8px);bottom:auto}
  main{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:480px){
  .stat-grid{grid-template-columns:1fr}
  .page-header{display:grid;gap:12px}
  .page-actions{display:flex;flex-wrap:wrap;min-width:0}
  .page-actions button{min-height:44px;height:auto;flex:1 1 42%}
  .page-tabs{flex-wrap:wrap;overflow:visible;width:100%}
  .page-tabs button{min-height:44px;white-space:normal;flex:1 1 44%}
  .console-dialog,.step-up-dialog{width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px}
}
.skills-panel{display:grid;gap:22px}.skills-intro h2{margin:0 0 6px}.skills-intro p{margin:0;max-width:720px}.skills-intro code{font:12px ui-monospace,monospace;background:var(--wash);padding:1px 5px;border-radius:5px}.skills-errors{margin:0;padding:10px 14px;border-radius:10px;background:var(--warn-bg);color:var(--warn-text);font-size:12px}#skills-groups{display:grid;gap:30px}.skills-group{display:grid;gap:12px}.skills-group-head{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap}.skills-group-head h3{margin:0;font-size:13px}.skills-group-head .fine{margin:0}.skills-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px}.skill-card{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:168px;padding:18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--ink);text-align:left;font-size:13px;cursor:pointer;transition:border-color .15s,box-shadow .15s}.skill-card:hover{filter:none;border-color:var(--text-3);box-shadow:0 6px 20px #202c3e14}.skill-card strong{font-size:15px;line-height:1.35}.skill-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}.skill-kind{display:inline-block;padding:3px 9px;border-radius:999px;font-size:10px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;background:var(--wash);color:var(--accent)}.skill-card[data-kind=skill] .skill-kind,#skill-dialog-kind[data-kind=skill]{background:var(--sel-bg);color:var(--sel-text)}.skill-category{font-size:11px;color:var(--muted)}.skill-summary{color:var(--muted);line-height:1.5;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.skill-open{margin-top:auto;font-size:12px;font-weight:600;color:var(--accent)}
.skill-dialog{width:min(760px,92vw)}.skill-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.skill-dialog-head h2{margin:10px 0 4px;font-size:22px}.skill-dialog-head p{margin:0}.skill-dialog-head form button{margin:0}.skill-meta{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;margin:18px 0;padding:12px 14px;border-radius:12px;background:var(--wash);font-size:12px}.skill-meta dt{font-weight:600}.skill-meta dd{margin:0;color:var(--muted);overflow-wrap:anywhere}.skill-body{font-size:13px;line-height:1.65}.skill-body h3{font-size:18px;margin:4px 0 10px}.skill-body h4{font-size:14px;margin:20px 0 8px}.skill-body h5,.skill-body h6{font-size:13px;margin:16px 0 6px}.skill-body p{color:var(--ink)}.skill-body ul,.skill-body ol{padding-left:20px;margin:0 0 14px}.skill-body li{margin:3px 0}.skill-body code{font:12px ui-monospace,monospace;background:var(--wash);padding:1px 5px;border-radius:5px}.skill-body table{border-collapse:collapse;margin:8px 0 16px;font-size:12px}.skill-body th,.skill-body td{border:1px solid var(--line);padding:6px 10px;text-align:left}.skill-body th{background:var(--wash)}
/* Operator control and reporting refinements. */
.status-dot[data-state=paused],.status-dot[data-state=unavailable]{background:var(--danger);box-shadow:0 0 0 3px var(--danger-ring)}
.status-dot[data-state=degraded]{background:var(--danger);box-shadow:0 0 0 3px var(--danger-ring)}
.status-dot[data-state=needs-verification],.status-dot[data-state=warning]{background:var(--warn);box-shadow:0 0 0 3px var(--warn-ring)}
.status-dot[data-state=error]{background:var(--danger);box-shadow:0 0 0 3px var(--danger-ring)}
.status-dot[data-state=verified]{background:var(--ok);box-shadow:0 0 0 3px var(--ok-ring)}
.readiness-breakdown{display:flex;gap:8px 24px;flex-wrap:wrap;margin-top:7px}.readiness-breakdown p{display:flex;align-items:center;gap:7px;min-width:0;margin:0;color:var(--muted);font-size:11px;line-height:1.45}.readiness-breakdown strong{color:var(--ink);font-weight:650}.readiness-breakdown span:last-child{overflow-wrap:anywhere}.gateway-operations{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.gateway-operations .gateway-status{flex:1;min-width:0;margin:0;align-items:flex-start}.gateway-operations .gateway-status>div{min-width:0}.gateway-operations .gateway-status h2{margin:0;font-size:15px;line-height:1.35}.gateway-operations .connection-toggle{flex:none}
@media(max-width:650px){.gateway-operations{flex-wrap:wrap}.gateway-operations .gateway-status{flex-basis:100%}.readiness-breakdown{display:grid;gap:5px}.readiness-breakdown p{align-items:flex-start}.readiness-breakdown p .status-dot{margin-top:4px}.dashboard-page>.dashboard-platform{padding:13px 16px}}
.connection-row--nested{margin-left:27px;padding:9px 0;border-bottom:1px solid var(--line)}
.connection-row--nested strong{font-weight:500}
.gateway-operations{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:16px}
.gateway-operations .gateway-status{display:flex;align-items:center;gap:12px;margin:0}
.gateway-operations h2{margin:0;font-size:16px}
.gateway-provider-state{margin:10px 0 0;font-size:12px}
.model-list{display:grid;margin-bottom:20px}
.model-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid var(--line)}
.model-row-copy{display:grid;gap:3px;min-width:0;flex:1;overflow-wrap:anywhere}
.model-row-copy strong{font-size:13px}.model-row-copy small{color:var(--muted);font-size:11px}
.model-row-actions{display:flex;gap:6px;flex-wrap:wrap}.model-row-actions button{margin:0;font-size:11px}
.dashboard-page>.dashboard-platform{margin-bottom:16px;padding:13px 18px}.dashboard-page>.dashboard-platform .dashboard-platform-head{align-items:center}.dashboard-page>.dashboard-platform .status-dot{margin:0}.dashboard-page>.dashboard-platform h2{font-size:15px;line-height:1.3}.dashboard-panels{grid-template-columns:minmax(0,1fr)}.dashboard-panels>.card{width:100%}
.gateway-list-actions,.dialog-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.gateway-list-actions button{margin:0}.model-dialog{width:min(620px,92vw)}.model-dialog .dialog-heading{margin-bottom:18px}.model-dialog .dialog-heading h2{margin:0}.model-dialog form>button[type=submit]{margin-top:18px}.model-dialog .field-grid{margin-bottom:12px}
.skills-group-head h3{font-size:21px;letter-spacing:-.025em}.skills-grid{grid-template-columns:minmax(0,1fr);gap:8px}.skill-card{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;min-height:0;gap:3px 14px;padding:13px 17px;border-radius:12px}.skill-card-top{grid-column:1/-1;justify-content:flex-start}.skill-card strong{grid-column:1}.skill-card .skill-summary{grid-column:1;-webkit-line-clamp:1}.skill-card .skill-open{grid-column:2;grid-row:2/4;margin:0;align-self:center}.skills-panel{gap:10px}
.skeleton{position:relative;overflow:hidden;background:var(--surface-3)!important;color:transparent!important;border-radius:7px}.skeleton::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,#ffffffa8,transparent);animation:timecap-shimmer 1.35s infinite}@keyframes timecap-shimmer{100%{transform:translateX(100%)}}@media(prefers-reduced-motion:reduce){.skeleton::after{animation:none}}
.connection-list.skeleton{min-height:225px}.stat strong.skeleton{min-height:30px;max-width:170px}.stat-grid.skeleton{min-height:110px}
.model-list.skeleton{min-height:180px}
.workflow-model-row{display:grid;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}
.workflow-model-row:last-child{border-bottom:0}
.workflow-model-heading h3{margin:0;font-size:15px;line-height:1.35}
.workflow-model-heading p{margin:2px 0 0;font-size:12px;line-height:1.5}
.workflow-model-current{display:flex;align-items:flex-start;gap:12px;min-width:0}
.workflow-model-current .status-dot{flex:none;margin-top:7px}
.workflow-model-name{display:grid;gap:2px;min-width:0;flex:1;overflow-wrap:anywhere}
.workflow-model-name strong{font-size:13px}
.workflow-model-badge{justify-self:start;padding:1px 7px;border-radius:999px;background:var(--sel-bg);color:var(--sel-text);font-size:10px;font-weight:700}
.workflow-model-badge[data-state=challenger]{background:var(--surface-2);color:var(--accent)}
.workflow-model-badge[data-state=disabled]{background:var(--surface-2);color:var(--muted)}
.workflow-model-name small,.workflow-model-status{font-size:11px;color:var(--muted)}
.workflow-model-status{font-weight:600}
.workflow-model-current .model-info-button{display:grid;place-items:center;flex:none;width:40px;height:40px;padding:0;margin:0;font-size:17px;line-height:1}
.workflow-model-controls{display:flex;align-items:end;gap:8px;flex-wrap:wrap;padding-left:24px}
.workflow-model-controls label{flex:1 1 230px;max-width:390px;margin:0;font-size:11px;color:var(--muted)}
.workflow-model-controls select{margin-top:4px;min-height:38px;padding:7px 9px;font-size:12px;color:var(--ink)}
.workflow-model-controls button{min-height:40px;margin:0;white-space:nowrap;font-size:11px}
.workflow-model-challengers{margin-left:24px;font-size:11px;color:var(--muted)}
.workflow-model-challengers summary{width:max-content;max-width:100%;cursor:pointer;font-weight:600}
.workflow-model-challenger{display:flex;align-items:center;gap:7px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid var(--line)}
.workflow-model-challenger>span:first-child{min-width:180px;flex:1;overflow-wrap:anywhere}
.workflow-model-challenger .workflow-model-badge{flex:none;min-width:0}
.workflow-model-challenger button{margin:0;padding:6px 9px;font-size:11px}
.workflow-model-error{margin:0;padding:10px 12px;border-radius:9px;background:var(--warn-bg);color:var(--warn-text);font-size:12px}
.model-info-content{display:grid;gap:12px;font-size:12px;line-height:1.5}
.model-info-line{display:grid;grid-template-columns:minmax(105px,30%) minmax(0,1fr);gap:12px;padding-bottom:10px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.model-info-line strong{font-weight:650}.model-info-line span{color:var(--muted)}
.model-info-content>a{color:var(--accent);font-weight:600;text-decoration:underline;overflow-wrap:anywhere}
.workflow-model-row .status-dot[data-state=warning]{background:var(--warn);box-shadow:0 0 0 3px var(--warn-ring)}
.workflow-model-row .status-dot[data-state=error]{background:var(--danger);box-shadow:0 0 0 3px var(--danger-ring)}
#cost-chart.skeleton{min-height:190px}#cost-breakdown.skeleton,#cost-workloads.skeleton{min-height:96px}
.connection-control.is-loading .connection-control-title,.connection-control.is-loading .connection-toggle{opacity:.45}.connection-control.is-loading{background:linear-gradient(90deg,var(--surface-2),#fff,var(--surface-2));background-size:200% 100%;animation:timecap-shimmer 1.35s infinite}
.external-link-icon{width:13px;height:13px;vertical-align:-2px;margin-right:5px;color:var(--text-3)}
.step-up-dialog{width:min(440px,92vw);border:1px solid var(--line);border-radius:18px;padding:24px;background:var(--surface);color:var(--ink);box-shadow:0 24px 80px #202c3e30}
.step-up-dialog::backdrop{background:#17212c99}.step-up-dialog h2{margin:0 0 8px}.step-up-dialog p{font-size:12px}
.step-up-dialog .dialog-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
.cost-header-actions svg{flex:none}.cost-header-actions #export-costs{gap:7px}.cost-range-pill{height:32px}
.cost-summary-bar{padding-bottom:14px;border-bottom:1px solid var(--line);margin-bottom:16px}
.cost-filters{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.cost-filter-right{margin-left:auto}
#costs .stat{min-height:116px;align-content:space-between}
#costs .stat strong{justify-self:end;align-self:end;font-family:inherit;font-size:29px;font-weight:600;line-height:1.1;letter-spacing:-.04em}
#costs .stat strong.is-empty{font-size:16px!important}
.cost-records .card-heading{align-items:center;gap:16px}
.cost-search-wrap{position:relative;display:block;width:min(240px,100%);margin-left:auto}
.cost-search-wrap input{height:34px;padding:7px 34px 7px 11px;font-size:12px}
.cost-search-wrap svg{position:absolute;right:10px;top:9px;width:16px;height:16px;color:var(--text-3);pointer-events:none}
.cost-view-all{display:inline-block;margin-top:14px}
.cost-records-header{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:16px}
.cost-pagination{display:flex;align-items:center;justify-content:flex-end;gap:12px;margin-top:18px;font-size:12px}
@media(max-width:850px){.model-row{align-items:flex-start;flex-wrap:wrap}.model-row-actions{width:100%;padding-left:24px}.cost-filter-right{margin-left:0}.cost-records .card-heading{align-items:stretch;flex-direction:column}.cost-search-wrap{width:100%}}
@media(max-width:650px){.workflow-model-controls{padding-left:0}.workflow-model-controls label{flex-basis:100%;max-width:none}.workflow-model-controls button{flex:1 1 auto}.workflow-model-challengers{margin-left:0}.model-info-line{grid-template-columns:1fr;gap:2px}}
@media(max-width:650px){.gateway-operations{align-items:flex-start;flex-direction:column}.cost-header-actions{flex-wrap:wrap}.cost-header-actions .cost-range-pill{width:100%;justify-content:center}.cost-records-header{align-items:stretch;flex-direction:column}}
.dashboard-page>.dashboard-platform>h2,.gateway-operations-head h2{margin:0;font-size:15px;line-height:1.35}
.readiness-breakdown{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 14px;margin-top:14px}
.readiness-breakdown p{display:flex;align-items:center;gap:9px;min-width:0;margin:0;line-height:1.35}
.readiness-breakdown p .status-dot{align-self:center;margin:0}
.readiness-copy{display:grid;gap:2px;min-width:0}
.readiness-copy strong{font-size:10px;line-height:1.25}
.readiness-copy>span{font-size:11px;color:var(--ink);overflow-wrap:anywhere}
.readiness-note{margin:11px 0 0;color:var(--muted);font-size:11px;line-height:1.4}
.gateway-operations{display:block}
.gateway-operations-head{display:flex;align-items:center;justify-content:space-between;gap:16px}
.gateway-operations-head .connection-toggle{flex:none;margin:0}
@media(max-width:430px){.readiness-breakdown{grid-template-columns:repeat(2,minmax(0,1fr))}.gateway-operations-head{align-items:flex-start}}
@font-face{font-family:Poppins;src:url('/fonts/poppins-400.woff2') format('woff2');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Poppins;src:url('/fonts/poppins-500.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
@font-face{font-family:Poppins;src:url('/fonts/poppins-600.woff2') format('woff2');font-style:normal;font-weight:600;font-display:swap}
.public-shell{--tc-blue-100:#b6c7dc;--tc-blue-700:#0d3466;--tc-blue-900:#081f3c;--tc-sky-300:#7fd9f6;--tc-sky-500:#1fbaed;--tc-grey-400:#666667;--hero-ink-shadow:0 1px 2px rgb(6 24 48 / .5),0 10px 34px rgb(6 24 48 / .38);min-height:100vh;background:#fff;color:#232324;font-family:Poppins,ui-sans-serif,system-ui,sans-serif}
.public-page{width:min(1180px,calc(100% - 48px));margin:0 auto;padding:28px 0 38px}
.public-nav{display:flex;align-items:center;justify-content:space-between;gap:24px}
.timecap-lockup{display:inline-flex;align-items:center;gap:10px;min-width:0}
.timecap-lockup img{display:block;width:38px;height:38px;object-fit:contain}
.timecap-wordmark{display:block;width:150px;height:auto;color:#373334;overflow:visible}
.public-hero{position:relative;isolation:isolate;overflow:hidden;display:flex;align-items:center;min-height:590px;margin-top:24px;padding:clamp(54px,8vw,96px);border-radius:32px;background:radial-gradient(130% 130% at 50% 35%,var(--tc-blue-700) 0%,var(--tc-blue-900) 100%);box-shadow:0 2px 6px rgb(19 73 143 / .07),0 20px 44px -22px rgb(19 73 143 / .38)}
/* The shader canvas, and over it the 135deg brand gradient at the same 20% the app holds it at. */
.hero-field{position:absolute;inset:0;z-index:-2;display:block;width:100%;height:100%;pointer-events:none}
.hero-field[data-idle]{display:none}
.hero-veil{position:absolute;inset:0;z-index:-1;background:linear-gradient(135deg,#1fbaed,#13498f);opacity:.2;pointer-events:none}

.hero-copy{position:relative;max-width:940px}
.public-hero .eyebrow{margin:0;color:var(--tc-sky-300);font-size:14px;font-weight:700;letter-spacing:.18em;text-shadow:var(--hero-ink-shadow)}
.public-hero h1{max-width:900px;margin:20px 0 26px;color:#fff;font-size:clamp(17px,4.7vw,58px);font-weight:500;line-height:1.08;letter-spacing:-.04em;text-shadow:var(--hero-ink-shadow)}
.public-hero h1 span{display:block;white-space:nowrap}
.hero-lede{max-width:900px;margin:0;color:#e4eff9;font-size:clamp(16px,1.7vw,19px);line-height:1.7;text-shadow:0 1px 2px rgb(6 24 48 / .45),0 8px 26px rgb(6 24 48 / .3)}
.hero-cta{display:inline-flex;align-items:center;gap:10px;margin-top:38px;padding:15px 26px;border-radius:999px;background:#fff;color:var(--tc-blue-700);font-size:16px;font-weight:600;box-shadow:0 10px 30px -12px rgb(4 20 40 / .75);transition:transform .18s ease,box-shadow .18s ease}
.hero-cta:hover{transform:translateY(-1px);box-shadow:0 16px 38px -14px rgb(4 20 40 / .8)}
.hero-cta svg{width:18px;height:18px;transition:transform .18s ease}
.hero-cta:hover svg{transform:translateX(3px)}
.system-status{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin:18px 0 0;padding-right:clamp(20px,2.4vw,32px);color:#15803d;font-size:13px;font-weight:500;letter-spacing:.01em}
.status-dot{width:9px;height:9px;flex:none;border-radius:50%;background:#16a34a}
.login-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr);align-content:center;gap:26px;width:min(560px,calc(100% - 32px));margin:auto;padding:40px 0}.login-page>.brand,.login-page>.rail-lockup{justify-self:center}.login-card{padding:36px 40px 28px}.login-card h1{font-size:38px}.login-card button{width:100%;margin-top:22px}.login-card .fine{font-size:11px;margin-top:18px}#login-status{margin:12px 0 0;font-size:13px}#login-status:empty{display:none}
.login-brand{justify-self:center;display:flex;align-items:center;gap:9px;color:#373334;font:500 25px/1.1 Poppins,ui-sans-serif,sans-serif;letter-spacing:-.04em}.login-brand img{width:38px;height:38px;object-fit:contain}.login-brand strong{color:#1684a8;font-weight:600}.security-card{width:100%;overflow:hidden}.security-card>div{animation:security-enter .2s ease-out}.security-card h1{font-size:32px;margin-top:7px}.security-icon{display:grid;place-items:center;width:42px;height:42px;margin-bottom:18px;border-radius:13px;background:#e9f8fd;color:#1684a8;font-size:20px;font-weight:700}.otp-group{display:flex;gap:9px;margin:22px 0 6px}.otp-cell{width:calc((100% - 45px)/6);min-width:0;height:56px;padding:0;border:2px solid #e0e6ed;border-radius:12px;background:#f8fafc;text-align:center;font:600 21px/1 ui-monospace,SFMono-Regular,Consolas,monospace;caret-color:var(--accent);transition:border-color .15s,box-shadow .15s,background .15s}.otp-cell:nth-child(4){margin-left:8px}.otp-cell:focus{border-color:#1684a8;background:#fff;box-shadow:0 0 0 3px #1fbaed24;outline:0}.login-back{width:auto!important;display:block;margin:16px auto 0!important}.enrollment-grid{display:grid;grid-template-columns:200px minmax(0,1fr);gap:22px;align-items:center;margin:24px 0}.qr-frame{width:200px;height:200px;padding:8px;border:1px solid var(--line);border-radius:18px;background:#fff;box-shadow:0 8px 26px #172b4d12}.qr-frame canvas{display:block;width:184px;height:184px}.setup-label{margin:0 0 4px;color:var(--ink);font-weight:600}.setup-copy{font-size:12px}.secret-row{display:flex;align-items:center;gap:8px}.secret-row code{min-width:0;overflow-wrap:anywhere;padding:10px;border:1px solid var(--line);border-radius:9px;background:#f8fafc;color:var(--ink);font-size:11px;line-height:1.4}.secret-row button{width:auto;margin:0;padding:9px 11px}.security-note{margin:20px 0 0;padding-top:16px;border-top:1px solid var(--line);font-size:11px}.security-card #login-status[data-state=error]{color:#a43838}.security-card #login-status[data-state=info]{color:#256343}@keyframes security-enter{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.security-card>div{animation:none}}@media(max-width:600px){.security-card h1{font-size:28px}.enrollment-grid{grid-template-columns:1fr}.qr-frame{margin:auto}.otp-group{gap:6px}.otp-cell{height:50px;border-radius:10px}.otp-cell:nth-child(4){margin-left:4px}}
@media(max-width:860px){.public-hero{min-height:520px}}
@media(max-width:600px){.public-page{width:min(100% - 28px,1180px);padding-top:18px}.timecap-lockup{gap:7px}.timecap-lockup img{width:34px;height:34px}.timecap-wordmark{width:125px}.public-hero{min-height:480px;margin-top:18px;padding:52px 24px;border-radius:22px}.public-hero .eyebrow{font-size:12px;letter-spacing:.16em}.hero-cta{margin-top:30px;padding:14px 22px;font-size:15px}.system-status{padding-right:16px}.login-card{padding:24px 22px 20px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.hero-cta,.hero-cta svg{transition:none}.hero-cta:hover,.hero-cta:hover svg{transform:none}}
