/* Standalone Ted: blue on black (owner palette, Nov 21 2026: background #080D16, panels #122136, accent #49BFFF, white/blue-grey text). Ted is the owner's private application, not a Southern
   Ductless customer-facing surface; the CRM keeps the Southern Ductless brand. */
:root { --t-bg: #080D16; --t-panel: #122136; --t-field: #0b1524; --t-line: #24405f; --t-text: #ffffff; --t-muted: #9fb3c8; --t-accent: #49BFFF; --t-accent-ink: #04121f; --t-error: #ff8fa3; }
html, body { margin: 0; background: var(--t-bg); color: var(--t-text); }
body.ted-shell { font: 16px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; min-height: 100vh; color-scheme: dark; }
.ted-top { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem 1rem; background: var(--t-bg); border-bottom: 1px solid var(--t-line); }
.ted-top strong { color: var(--t-accent); font-size: 1.15rem; letter-spacing: .02em; }
.ted-top button, .ted-login button, .ted-login input { font: inherit; }
.ted-top button { min-height: 44px; border: 1px solid var(--t-line); border-radius: .45rem; background: var(--t-panel); color: var(--t-text); padding: .4rem .8rem; }
main.ted-standalone { padding: .75rem 1rem 2rem; max-width: 72rem; margin: 0 auto; }

/* sign-in */
.ted-login { max-width: 26rem; margin: 12vh auto 2rem; padding: 1.5rem; border: 1px solid var(--t-line); border-radius: .8rem; background: var(--t-panel); }
.ted-login h1 { margin: 0 0 .25rem; color: var(--t-accent); }
.ted-login__lead { margin: 0 0 1.25rem; color: var(--t-muted); }
.ted-login button { width: 100%; min-height: 48px; border-radius: .5rem; border: 1px solid var(--t-line); background: var(--t-panel); color: var(--t-text); font-weight: 650; cursor: pointer; }
.ted-login .ted-login__primary { background: var(--t-accent); border-color: var(--t-accent); color: var(--t-accent-ink); }
.ted-login details { margin-top: 1.25rem; } .ted-login summary { cursor: pointer; color: var(--t-muted); min-height: 44px; display: flex; align-items: center; }
.ted-login form { display: grid; gap: .5rem; margin-top: .5rem; }
.ted-login input { min-height: 44px; padding: .5rem .6rem; border-radius: .45rem; border: 1px solid var(--t-line); background: var(--t-field); color: var(--t-text); }
#ted-login-status { min-height: 1.5rem; margin: .75rem 0 0; color: var(--t-muted); } #ted-login-status.bad { color: var(--t-error); }
:focus-visible { outline: 2px solid var(--t-accent); outline-offset: 2px; }

/* the Ted panel in the standalone theme */
.ted-standalone .ted-v5-mobile { --ted-maroon: var(--t-accent); --ted-blue: var(--t-accent); --ted-border: var(--t-line); --ted-surface: var(--t-panel);
  --ted-text: var(--t-text); --ted-muted: var(--t-muted); color-scheme: dark; background: var(--t-bg); border-color: var(--t-line); }
.ted-standalone .ted-v5-mobile button, .ted-standalone .ted-v5-mobile__form select, .ted-standalone .ted-v5-mobile__form textarea,
.ted-standalone .ted-v5-mobile__form input, .ted-standalone .ted-v5-mobile__connection--disconnected, .ted-standalone .ted-v5-mobile__messages li[data-role="owner"],
.ted-standalone .ted-v5-mobile__tabs button span { background: var(--t-field); color: var(--t-text); }
.ted-standalone .ted-v5-mobile__cards article, .ted-standalone .ted-v5-mobile__conversation, .ted-standalone .ted-v5-mobile__section, .ted-standalone .ted-v5-mobile__status { background: var(--t-panel); }
.ted-standalone .ted-v5-mobile__tabs button[aria-pressed="true"], .ted-standalone .ted-v5-mobile .ted-v5-mobile__primary { background: var(--t-accent); border-color: var(--t-accent); color: var(--t-accent-ink); }
.ted-standalone .ted-v5-mobile__error { color: var(--t-error); }
.ted-standalone .ted-v5-mobile pre, .ted-standalone .ted-v5-mobile code { background: var(--t-field); color: var(--t-text); }
.ted-standalone .ted-v5-mobile h3 { color: var(--t-accent); }
/* one compact, horizontally scrolling row of section tabs, so Talk to Ted sits at the top of Home */
.ted-standalone .ted-v5-mobile__tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: .4rem; scrollbar-width: thin; }
.ted-standalone .ted-v5-mobile__tabs button { flex: 0 0 auto; white-space: nowrap; min-height: 44px; }
.ted-standalone .ted-v5-mobile__talk-top { border: 1px solid var(--t-accent); border-radius: .6rem; padding: .75rem; }
.ted-standalone .ted-v5-mobile__talk-top label { font-size: 1.1rem; font-weight: 700; color: var(--t-accent); }

/* ---- v10.3: the approved iPhone design (owner, Nov 21 2026) in Ted's blue-on-black — Ted's character and greeting, what needs you,
   quick actions and to-dos on Home; chat bubbles with avatars and timestamps; the message box pinned above five clear tabs and on the
   keyboard. Sizes follow iOS: 44 pt controls, 16–17 pt reading text, 27 pt tab icons. ---- */
:root { --bar-h: 60px; --tabs-h: 56px; --kb: 0px; --compose-h: 64px; --t-panel2: #0E1B2D; --t-soft: rgba(73, 191, 255, .14); }
html, body.ted-app { overflow-x: clip; }   /* clip, not hidden: hidden would make body a scroll container */
body.ted-app { font-size: 16px; line-height: 1.35; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; -webkit-font-smoothing: antialiased; }
body.ted-app main.ted-standalone { padding: 0; max-width: none; }
.ted-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* header: Ted's face, name and status */
.ted-bar { position: sticky; top: 0; z-index: 4; display: flex; align-items: center; gap: 10px; min-height: var(--bar-h);
  padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
  background: rgba(8, 13, 22, .985); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--t-line); }
.ted-bar__avatar { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: #0E1B33; border: 2px solid var(--t-accent); }
.ted-bar__t { flex: 1; min-width: 0; display: grid; }
.ted-bar strong { color: var(--t-text); font-size: 20px; font-weight: 700; letter-spacing: -.3px; line-height: 1.15; }
.ted-bar small { display: flex; align-items: center; gap: 5px; color: var(--t-muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ted-bar small i { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; background: var(--t-accent); box-shadow: 0 0 6px var(--t-accent); }
.ted-pill { border: 1px solid var(--t-accent); color: var(--t-accent); border-radius: 99rem; padding: 0 .5rem; font-size: 12px; font-weight: 650; line-height: 1.6; }

/* page */
.ted-standalone .ted-page.ted-v5-mobile { border: 0; border-radius: 0; background: var(--t-bg); max-width: 40rem; margin: 0 auto; font-size: 16px;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(var(--tabs-h) + env(safe-area-inset-bottom) + 16px) max(16px, env(safe-area-inset-left)); }
.ted-standalone .ted-page[data-tab="home"] { display: flex; flex-direction: column; min-height: calc(100dvh - var(--bar-h) - env(safe-area-inset-top));
  box-sizing: border-box; padding-bottom: calc(var(--tabs-h) + var(--compose-h) + env(safe-area-inset-bottom) + 8px); }
.ted-page h2 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--t-muted); }
.ted-standalone .ted-page h3 { margin: 12px 0 6px; font-size: 13px; font-weight: 650; color: var(--t-muted); }
.ted-page details > summary h2 { display: inline; }
.ted-standalone .ted-page p, .ted-standalone .ted-page li, .ted-standalone .ted-page dd, .ted-standalone .ted-page label, .ted-standalone .ted-page summary { color: var(--t-text); }
.ted-standalone .ted-page p { margin: 0 0 .4rem; }
.ted-page pre { white-space: pre-wrap !important; overflow-wrap: anywhere; font-size: 12px; }
.ted-page code { overflow-wrap: anywhere; word-break: break-word; font-size: 12px; }
.ted-standalone .ted-page button { min-height: 44px; padding: 6px 16px; font-size: 16px; font-weight: 600; border-radius: 12px; }
.ted-standalone .ted-page .ted-primary { background: var(--t-accent); border-color: var(--t-accent); color: var(--t-accent-ink); }
.ted-standalone .ted-page textarea, .ted-standalone .ted-page input { font: inherit; font-size: 16px; width: 100%; border: 1px solid var(--t-line); border-radius: 12px;
  padding: 10px 12px; background: var(--t-field); color: var(--t-text); }
.ted-section { margin: 0 0 12px; padding: 14px; border: 1px solid var(--t-line); border-radius: 18px; background: var(--t-panel); }
.ted-section--embed > .ted-v5-mobile__section { padding: 0; background: transparent; }
.ted-standalone .ted-page .ted-v5-mobile__empty { padding: 10px; font-size: 15px; }
.ted-standalone .ted-page .ted-hint { margin: 6px 0 0; color: var(--t-muted); font-size: 14px; }
.ted-standalone .ted-page .ted-empty { margin: 4px 0; color: var(--t-muted); font-size: 15px; }
.ted-standalone .ted-page .ted-error { color: var(--t-error); font-weight: 650; margin: 6px 0; font-size: 15px; }
.ted-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ted-advanced > summary { min-height: 44px; display: flex; align-items: center; font-weight: 650; color: var(--t-muted); }

/* Home with no conversation: Ted and his greeting, what needs you, quick actions, to-dos */
.ted-start { display: grid; gap: 12px; }
.ted-hero { display: flex; align-items: flex-end; gap: 6px; }
.ted-hero img { flex: 0 0 auto; width: 112px; height: 140px; object-fit: contain; object-position: 50% 100%; margin-bottom: -4px; }
.ted-hero__say { position: relative; flex: 1; min-width: 0; margin-bottom: 18px; padding: 10px 13px; border-radius: 20px 20px 20px 6px; background: var(--t-panel); border: 1px solid var(--t-line); }
.ted-hero__say::before { content: ""; position: absolute; left: -9px; bottom: 10px; border: 8px solid transparent; border-right-color: var(--t-line); }
.ted-standalone .ted-page .ted-hero__say h1 { margin: 0; font-size: 20px; line-height: 1.2; letter-spacing: -.3px; color: var(--t-text); }
.ted-standalone .ted-page .ted-hero__say p { margin: 4px 0 0; color: var(--t-muted); font-size: 15px; line-height: 1.3; }
.ted-card2 { padding: 12px 14px; border: 1px solid var(--t-line); border-radius: 18px; background: var(--t-panel); }
.ted-card2 h2 { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ted-card2 h2 b { margin-right: auto; background: var(--t-accent); color: var(--t-accent-ink); border-radius: 99px; padding: 1px 8px; font-size: 12px; letter-spacing: 0; }
.ted-need { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--t-line); }
.ted-card2 h2 + .ted-need { border-top: 0; padding-top: 2px; }
.ted-need__ic { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--t-soft); color: var(--t-accent); }
.ted-need__tx { flex: 1; min-width: 0; display: grid; }
.ted-need__tx strong { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ted-need__tx span { font-size: 13px; color: var(--t-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ted-standalone .ted-page .ted-pillbtn { flex: 0 0 auto; min-height: 36px; padding: 0 14px; border-radius: 99px; border: 1.5px solid var(--t-accent); background: var(--t-accent); color: var(--t-accent-ink); font-size: 14px; font-weight: 700; }
.ted-standalone .ted-page .ted-pillbtn--ghost { background: transparent; color: var(--t-accent); }
.ted-standalone .ted-page .ted-linkbtn { min-height: 32px; padding: 0 2px; border: 0; background: none; color: var(--t-accent); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; }
.ted-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ted-standalone .ted-page .ted-quick button { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 12px; border-radius: 16px; text-align: start;
  background: var(--t-panel); border: 1px solid var(--t-line); color: var(--t-text); font-size: 15px; font-weight: 600; line-height: 1.2; }
.ted-quick button svg { flex: 0 0 auto; color: var(--t-accent); }
.ted-todo { display: flex; align-items: center; gap: 12px; min-height: 40px; font-size: 15px; }
.ted-todo span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the conversation: bottom-anchored like Messages */
.ted-page[data-tab="home"] .ted-chat { flex: 1; display: flex; flex-direction: column; }
.ted-page[data-tab="home"] .ted-chat__log { margin-top: auto; }
.ted-page[data-tab="home"] .ted-chat[data-start] .ted-chat__log { margin-top: 0; }
.ted-standalone .ted-page .ted-banner { position: sticky; top: calc(var(--bar-h) + env(safe-area-inset-top) + 6px); z-index: 2; display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: start; margin: 0 0 10px; padding: 9px 12px; border: 1px solid var(--t-accent); border-radius: 14px; background: #0F2F4A; color: var(--t-text); min-height: 48px;
  box-shadow: 0 -7px 0 var(--t-bg), 0 6px 10px -4px var(--t-bg); }   /* covers the gap under the header while messages scroll */
.ted-banner__dot { flex: 0 0 auto; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--t-accent); color: var(--t-accent-ink); font-weight: 800; font-size: 14px; }
.ted-banner__tx { min-width: 0; display: grid; font-size: 14px; }
.ted-banner__tx strong { color: var(--t-accent); } .ted-banner__tx span { color: var(--t-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ted-standalone .ted-page .ted-chat__top { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin: 0 0 4px; color: var(--t-muted); font-size: 13px; }
.ted-standalone .ted-page .ted-chat__top h2:not(.ted-visually-hidden) { margin-right: auto; }
.ted-standalone .ted-page .ted-chat__top button { min-height: 32px; padding: 2px 12px; font-size: 14px; border-radius: 99rem; background: var(--t-panel); color: var(--t-accent); }
.ted-chat__log { display: flex; flex-direction: column; }
.ted-standalone .ted-page .ted-day { text-align: center; color: var(--t-muted); font-size: 12px; font-weight: 600; margin: 4px 0 10px; }
.ted-row2 { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 2px; }
.ted-row2--you { justify-content: flex-end; }
.ted-row2__av { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; background: #0E1B33; border: 1.5px solid var(--t-line); }
.ted-msg { max-width: 78%; padding: 9px 13px; border-radius: 20px; overflow-wrap: anywhere; white-space: pre-wrap; font-size: 16px; line-height: 1.32; }
.ted-standalone .ted-page .ted-msg p { margin: 0; font-size: 16px; }
.ted-msg--you { background: var(--t-accent); border-bottom-right-radius: 6px; }
.ted-standalone .ted-page .ted-msg--you p { color: var(--t-accent-ink); }
.ted-msg--ted { background: var(--t-panel); border: 1px solid var(--t-line); border-bottom-left-radius: 6px; }
.ted-msg--unsent { opacity: .85; border: 1px dashed var(--t-text); }
.ted-standalone .ted-page .ted-msg span { display: block; margin-top: 2px; font-size: 12px; color: #0c3553; }
.ted-standalone .ted-page .ted-msg span button { min-height: 28px; padding: 0 4px; border: 0; background: none; color: #04121f; text-decoration: underline; font-size: 13px; }
.ted-standalone .ted-page .ted-time { margin: 2px 0 10px; font-size: 11px; color: var(--t-muted); }
.ted-standalone .ted-page .ted-time--you { text-align: right; } .ted-standalone .ted-page .ted-time--ted { margin-left: 40px; }
.ted-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 10px 40px; }
.ted-standalone .ted-page .ted-acts button { min-height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--t-line); background: var(--t-panel); color: var(--t-accent); font-size: 13px; font-weight: 600; }
.ted-typing { display: inline-flex; gap: 4px; padding: 13px 14px; border-radius: 20px; border-bottom-left-radius: 6px; background: var(--t-panel); border: 1px solid var(--t-line); }
.ted-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--t-muted); animation: ted-dot 1.2s infinite ease-in-out; }
.ted-typing i:nth-child(2) { animation-delay: .15s; } .ted-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes ted-dot { 0%, 80%, 100% { opacity: .35; } 40% { opacity: 1; } }
.ted-standalone .ted-page .ted-chat__empty { color: var(--t-muted); margin: 24px 8px; text-align: center; font-size: 15px; }
.ted-standalone .ted-page .ted-chat__note { color: var(--t-muted); margin: 6px 0 4px 40px; font-size: 13px; }

/* message box, pinned above the tabs */
.ted-chat__compose { position: fixed; z-index: 3; left: 0; right: 0; bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: flex-end;
  padding: 10px max(12px, env(safe-area-inset-right)) 10px max(12px, env(safe-area-inset-left)); background: rgba(8, 13, 22, .97); border-top: 1px solid var(--t-line); }
.ted-standalone .ted-page .ted-chat__compose textarea { flex: 1; resize: none; min-height: 44px; max-height: 132px; line-height: 1.35; border-radius: 22px; padding: 11px 16px; font-size: 17px; background: var(--t-panel2); }
.ted-standalone .ted-page .ted-plus { flex: 0 0 auto; width: 44px; min-height: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 50%; background: var(--t-panel); border: 1px solid var(--t-line); color: var(--t-accent); }
.ted-standalone .ted-page .ted-send { flex: 0 0 auto; width: 44px; min-height: 44px; height: 44px; padding: 0; display: grid; place-items: center; border-radius: 50%; border: 0; background: var(--t-accent); color: var(--t-accent-ink); }
.ted-standalone .ted-page .ted-send:disabled { opacity: .45; }
.ted-menu { position: absolute; left: max(12px, env(safe-area-inset-left)); bottom: calc(100% + 6px); display: grid; gap: 2px; min-width: 220px; padding: 6px; border-radius: 16px; background: var(--t-panel); border: 1px solid var(--t-line); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
.ted-standalone .ted-page .ted-menu button { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: none; color: var(--t-text); text-align: start; }
.ted-menu button svg { color: var(--t-accent); }
@media (min-width: 42rem) { .ted-chat__compose { left: 50%; right: auto; width: 40rem; transform: translateX(-50%); } }
/* while the on-screen keyboard is open: the tabs step aside and the message box sits right on the keyboard */
body.ted-app[data-keyboard] .ted-tabs { display: none; }
body.ted-app[data-keyboard] .ted-chat__compose { bottom: var(--kb); }
body.ted-app[data-keyboard] .ted-page[data-tab="home"] { padding-bottom: calc(var(--compose-h) + var(--kb) + 8px); min-height: 0; }

/* lists, cards, tasks, settings */
.ted-standalone .ted-page .ted-list-item { display: grid; gap: 1px; width: 100%; text-align: start; margin: 6px 0 0; padding: 10px 12px; background: var(--t-field); min-height: 52px; }
.ted-list-item span { color: var(--t-muted); font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ted-list-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.ted-card { margin: 8px 0 0; padding: 12px; border: 1px solid var(--t-line); border-radius: 14px; background: var(--t-field); }
.ted-card[data-open] { border-color: var(--t-accent); }
.ted-card__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: 13px; }
.ted-card__meta strong { color: var(--t-accent); } .ted-card__meta span { color: var(--t-muted); }
.ted-standalone .ted-page .ted-card__text { margin: 4px 0; font-size: 16px; }
.ted-standalone .ted-page .ted-card__when { margin: 0 0 6px; font-size: 12px; color: var(--t-muted); }
.ted-answer { display: grid; gap: 6px; }
.ted-channel { margin: 6px 0 0; border-top: 1px solid var(--t-line); }
.ted-channel > summary { display: flex; justify-content: space-between; gap: 8px; min-height: 44px; align-items: center; }
.ted-channel > summary span { color: var(--t-muted); font-weight: 500; font-size: 13px; }
.ted-tasks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.ted-task { display: flex; gap: 12px; align-items: center; min-height: 48px; border-bottom: 1px solid var(--t-line); padding: 4px 0; }
.ted-task strong { font-weight: 500; }
.ted-standalone .ted-page .ted-task p { margin: 0; color: var(--t-muted); font-size: 13px; white-space: pre-wrap; }
.ted-task[data-done] strong { text-decoration: line-through; color: var(--t-muted); }
.ted-standalone .ted-page .ted-check { flex: 0 0 auto; width: 26px; min-height: 26px; height: 26px; padding: 0; border-radius: 50%; border: 2px solid var(--t-accent); background: transparent; color: var(--t-accent); font-size: 14px; }
.ted-add { flex-wrap: nowrap; } .ted-add input { flex: 1; }
.ted-standalone .ted-page .ted-add button { flex: 0 0 auto; }
.ted-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--t-field); border: 1px solid var(--t-line); }
.ted-standalone .ted-page .ted-seg button { min-height: 40px; padding: 0 6px; border: 0; border-radius: 10px; background: none; color: var(--t-muted); font-size: 15px; }
.ted-standalone .ted-page .ted-seg button[aria-checked="true"] { background: var(--t-accent); color: var(--t-accent-ink); }

/* bottom tab bar: 27 pt icons, readable labels */
.ted-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 4; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2px;
  padding: 2px max(4px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(4px, env(safe-area-inset-left)); background: rgba(6, 10, 18, .97);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top: 1px solid var(--t-line); }
.ted-tabs button { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: calc(var(--tabs-h) - 3px);   /* + 2px padding + 1px border = --tabs-h */
  padding: 3px 0 2px; margin: 0; border: 0; border-radius: 10px; background: none; color: #8DA2B8; font: 600 11.5px/1.1 system-ui, -apple-system, sans-serif; }
.ted-tabs button svg { flex: 0 0 auto; }
.ted-tabs button[aria-current="page"] { color: var(--t-accent); }
.ted-tabs b { position: absolute; top: 1px; left: calc(50% + 4px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99rem; background: var(--t-accent);
  color: var(--t-accent-ink); font-size: 11px; line-height: 15px; text-align: center; border: 2px solid #060A12; box-sizing: border-box; }
@media (min-width: 42rem) { .ted-tabs { left: 50%; right: auto; width: 40rem; transform: translateX(-50%); border: 1px solid var(--t-line); border-bottom: 0; border-radius: 14px 14px 0 0; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } .ted-typing i { animation: none; } }

/* v11 Agents (Codex and Claude through the workstation's Bridge): existing Ted tokens only */
.ted-agents__head { display: grid; gap: 10px; }
.ted-agents__host { display: flex; align-items: center; gap: 8px; color: var(--t-muted); }
.ted-agents__host strong { color: var(--t-text); }
.ted-agents__dot { display: inline-block; flex: 0 0 auto; width: 9px; height: 9px; margin-inline-end: 7px; border-radius: 50%; background: var(--t-muted); vertical-align: middle; }
.ted-agents__dot[data-tone="live"] { background: var(--t-accent); }
.ted-agents__dot[data-tone="need"] { background: var(--t-text); box-shadow: 0 0 0 3px var(--t-accent); }
.ted-agents__dot[data-tone="bad"] { background: var(--t-error); }
.ted-agents__row em { color: var(--t-muted); font-size: 13px; font-style: normal; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ted-agents__notify { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--t-muted); font-size: 14px; }
.ted-agents__form { display: grid; gap: 8px; }
.ted-agents__form select, .ted-agents__form textarea, .ted-agents__session textarea { width: 100%; box-sizing: border-box; font: inherit; color: var(--t-text);
  background: var(--t-field); border: 1px solid var(--t-line); border-radius: 10px; padding: 10px 12px; }
.ted-agents__check { display: flex; gap: 10px; align-items: flex-start; color: var(--t-muted); font-size: 14px; }
.ted-agents__check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--t-accent); }
.ted-agents__sub { display: flex; align-items: center; margin: 2px 0 4px; color: var(--t-text); font-weight: 600; }
.ted-agents__detail { margin: 4px 0 8px; color: var(--t-muted); }
.ted-agents__session h3 { margin: 16px 0 6px; font-size: 15px; color: var(--t-muted); text-transform: none; }
.ted-agents__msgs .ted-msg span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--t-muted); }
.ted-agents__pre { max-height: 60vh; overflow: auto; white-space: pre-wrap; word-break: break-word; margin: 6px 0; padding: 10px 12px; font: 13px/1.45 ui-monospace, Menlo, monospace;
  background: var(--t-field); border: 1px solid var(--t-line); border-radius: 10px; color: var(--t-text); }
.ted-agents__events ol { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.ted-agents__events li { font-size: 13.5px; color: var(--t-muted); overflow-wrap: anywhere; }
.ted-agents__events li[data-kind="message"] { color: var(--t-text); }
.ted-agents__events time { color: var(--t-muted); font-variant-numeric: tabular-nums; margin-inline-end: 6px; }
