/* WCAG AA (Nov 1; signed-out pages don't load camos-theme.css, same two lines): kit tertiary text, placeholders included, is 3.2:1 on white. */
@layer theme,camos;
@layer camos{
:root:not([data-theme="dark"]),[data-theme="light"]{--color-text-tertiary:var(--color-text-secondary)}
[data-theme="dark"]{--color-text-danger:var(--color-text-danger-soft);--color-text-danger-outline:var(--color-text-danger-soft);--color-text-danger-ghost:var(--color-text-danger-soft)}
/* Sign-in pages (lib/team-accounts.mjs authPage): ChatGPT-like, standalone, light and dark. No decorative outlines. */
:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark}
/* One page color with the signed-in app (DESIGN.md: page light --color-surface, dark --color-surface-tertiary like
   the signed-in chat area; --color-surface-elevated only for menus, popovers, dialogs and sheets). Set here, first,
   so the page never repaints. */
:root{color-scheme:light dark;}

*{box-sizing:border-box}
html,body{margin:0;min-height:100%;background:var(--color-surface);color:var(--color-text);font:var(--font-text-md-size)/var(--font-text-md-line-height) var(--font-sans);-webkit-font-smoothing:antialiased}
:root[data-theme=dark],:root[data-theme=dark] body{background:var(--color-surface-tertiary)}
.ta{min-height:100vh;min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px 16px}
.ta-card{width:100%;max-width:380px;display:flex;flex-direction:column;align-items:center;gap:6px}
.ta-logo{width:56px;height:56px;margin-bottom:18px;color:var(--color-text)}
h1{margin:0 0 4px;font-size:var(--font-heading-lg-size);line-height:var(--font-heading-lg-line-height);font-weight:var(--font-weight-semibold);text-align:center}
.ta-sub{margin:0 0 8px;color:var(--color-text-secondary);font-size:var(--font-text-md-size);line-height:var(--font-text-md-line-height);text-align:center}
.ta-sub[hidden],.ta-step[hidden],.ta-form[hidden],[hidden]{display:none!important}
.ta-step{width:100%;display:flex;flex-direction:column;align-items:center;gap:6px}
.ta-stack{width:100%;display:flex;flex-direction:column;gap:12px;margin-top:14px}
.ta-pill{width:100%}
html .ta-submit{margin-top:6px}
/* Links on the sign-in pages are the kit's TextLink (cui-text-link); only their place and size are set here. */
.ta-link{margin-top:14px;font-size:var(--font-text-sm-size);line-height:var(--font-text-sm-line-height)}
.ta-link,.ta-forgot,.ta-edit{text-decoration:none}
.ta-form{width:100%;display:flex;flex-direction:column;gap:12px;margin-top:14px}
/* The sign-up form's hidden field for bots (lib/team-accounts.mjs startSignup website): off screen, never focused. */
.ta-hp{position:absolute;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}
/* The app hand-off's You're signed in (authPage 'done'): left-aligned, big bold title, one gray line, Open CamOS. */
.ta-done .ta-card{max-width:440px;align-items:stretch;gap:0}
.ta-done h1{margin:0 0 10px;font-size:var(--font-heading-xl-size);line-height:var(--font-heading-xl-line-height);font-weight:var(--font-weight-bold);text-align:left}
.ta-done .ta-sub{margin:0 0 28px;text-align:left}
/* The code steps: the shared code box (team-auth.js mountOtp) centred, Resend (the kit's ghost Button) under Continue. */
.ta-otp{width:100%;display:flex;justify-content:center;min-height:56px}
.ta-otp > .cui-input{width:100%}
html .ta-form .ta-resend{align-self:center;font-variant-numeric:tabular-nums}
[data-ta-error]{margin:4px 0 0;text-align:center}
.ta-or{display:flex;align-items:center;gap:12px;width:100%;margin:12px 0 0;color:var(--color-text-secondary);font-size:var(--font-text-xs-size);line-height:var(--font-text-xs-line-height);text-transform:uppercase}
.ta-or::before,.ta-or::after{content:"";flex:1;height:var(--shadow-hairline-width);background:var(--shadow-hairline-color)}
.ta-row-buttons{display:flex;gap:12px;width:100%;margin-top:18px}
.ta-row-buttons .ta-pill{flex:1}
/* Forgot password? under the password field, lined up with the field's text. The kit's TextLink. */
.ta-forgot{align-self:flex-start;margin-left:18px;font-size:var(--font-text-sm-size);line-height:var(--font-text-sm-line-height)}
.ta-forgot[aria-busy=true]{pointer-events:none;color:var(--color-text-disabled)}
/* ---- Signed-out landing (authPage mode 'landing'): the app's shell, Log in or sign up modal, guest chat ---- */
.tl-body{overflow:hidden}
.tl{display:flex;height:100vh;height:100dvh}
.tl-rail-fill{flex:1}
.tl-main{flex:1;min-width:0;display:flex;flex-direction:column}
.tl-top{display:flex;align-items:center;justify-content:space-between;gap:12px;height:56px;padding:0 12px 0 16px;flex:none}
.tl-top-actions{display:flex;gap:10px}
.tl-center{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:0 16px 12vh}
.tl-hero{margin:0 0 28px;font-size:var(--font-heading-lg-size);line-height:var(--font-heading-lg-line-height);font-weight:var(--font-weight-medium);text-align:center}
.tl-dock{width:100%;max-width:760px;display:flex;flex-direction:column;align-items:stretch}
/* Chatting: the thread scrolls, the composer docks at the bottom. */
.tl-thread{width:100%;max-width:760px;flex:1;min-height:0;overflow-y:auto;padding:12px 4px 24px;display:flex;flex-direction:column;gap:22px}
.tl-chatting .tl-center{justify-content:flex-end;padding-bottom:8px}
.tl-chatting .tl-hero{display:none}
.tl-msg{display:flex;flex-direction:column}
.tl-user{align-items:flex-end}
.tl-md{line-height:1.6;overflow-wrap:anywhere}
.tl-md>:first-child{margin-top:0}.tl-md>:last-child{margin-bottom:0}
.tl-md p,.tl-md ul,.tl-md ol,.tl-md pre{margin:0 0 12px}
.tl-md ul,.tl-md ol{padding-left:22px}
.tl-md h3,.tl-md h4,.tl-md h5,.tl-md h6{margin:16px 0 8px;font-size:var(--font-text-md-size);line-height:var(--font-text-md-line-height);font-weight:var(--font-weight-semibold)}
.tl-md code{padding:1px 5px;border-radius:var(--radius-sm);background:var(--color-surface-secondary);font:var(--font-text-sm-size)/var(--font-text-sm-line-height) var(--font-mono)}
.tl-md pre{padding:12px 14px;border-radius:var(--radius-xl);background:var(--color-surface-secondary);overflow-x:auto}
.tl-md pre code{padding:0;background:none}
.tl-md a{color:inherit;text-decoration:underline;text-underline-offset:3px}
.tl-msg-actions{display:flex;gap:2px;margin:6px 0 0 -8px}
.tl-card-in{display:flex;flex-direction:column;align-items:flex-start;gap:12px;padding:16px 18px;border-radius:var(--radius-2xl);background:var(--color-surface-secondary)}
.tl-card-in p{margin:0;font-weight:var(--font-weight-medium)}
.tl-card-actions,.tl-bar-actions{display:flex;gap:8px;flex-wrap:wrap}

/* The guest bar over the message box ("Get smarter replies and save chats"): a card on the page, hairline only. Its one home. */
.tl-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:8px;padding:8px 8px 8px 16px;border-radius:var(--radius-2xl);background:var(--color-surface);box-shadow:var(--shadow-hairline);font-size:var(--font-text-sm-size);line-height:var(--font-text-sm-line-height);font-weight:var(--font-weight-medium);color:var(--color-text)}
:root[data-tl-phone] .tl-bar{flex-wrap:wrap;gap:8px;padding:10px 10px 10px 14px}
.tl-foot{margin:8px 0 0;text-align:center;color:var(--color-text-secondary);font-size:var(--font-text-xs-size);line-height:var(--font-text-xs-line-height)}
/* The + menu (guests: everything needs an account). */
/* The Log in or sign up modal. */
.tl-locked{overflow:hidden}
.tl-overlay{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:16px;background:var(--dialog-backdrop-dim-background)}
.tl-modal{position:relative;width:100%;max-width:400px;max-height:calc(100dvh - 32px);overflow-y:auto;padding:40px 28px 28px;border-radius:var(--radius-4xl);background:var(--color-surface-elevated);box-shadow:var(--shadow),var(--shadow-hairline)}
/* Log in or sign up on a computer: the shared Dialog's motion (cui-dialog.css). The dim fades in with the card, which grows
   from .96; closing plays it back (team-auth.js sets data-starting-style / data-ending-style). Phones use the drawer below. */
:root:not([data-tl-phone]) .tl-overlay[data-tl-modal]{transition:opacity .2s var(--cubic-enter)}
:root:not([data-tl-phone]) .tl-overlay[data-tl-modal] .tl-modal{transition:scale .2s var(--cubic-enter)}
:root:not([data-tl-phone]) .tl-overlay[data-tl-modal]:is([data-starting-style],[data-ending-style]){opacity:0}
:root:not([data-tl-phone]) .tl-overlay[data-tl-modal] .tl-modal:is([data-starting-style],[data-ending-style]){scale:.96}
@media (prefers-reduced-motion:reduce){
  :root:not([data-tl-phone]) .tl-overlay[data-tl-modal]{transition:opacity .15s var(--transition-ease-basic)}
  :root:not([data-tl-phone]) .tl-overlay[data-tl-modal] .tl-modal:is(*,[data-starting-style],[data-ending-style]){transition:none;scale:1}}
/* Close is the kit's ghost Button (lib/team-accounts.mjs iconButton); only their place is set here. */
html .tl-close{position:absolute;top:12px;right:12px}
.tl-card{max-width:none}
.tl-title{margin:0 0 4px;font-size:var(--font-heading-lg-size);line-height:var(--font-heading-lg-line-height);font-weight:var(--font-weight-semibold);text-align:center}
.tl-line{margin:0 0 4px;color:var(--color-text-secondary);font-size:var(--font-text-md-size);line-height:var(--font-text-md-line-height);text-align:center}
/* Email address, code, name: a light-gray filled pill, no ring (ChatGPT's Log in or sign up, Oct 24) */
/* Continue with phone: country code and number in one filled pill */
.tl-phone .camos-select-host{flex:none}
.tl-cc{flex:none;height:100%;padding:0 4px 0 0;field-sizing:content;border:0;background:transparent;color:inherit;font:inherit;font-size:var(--font-text-md-size);line-height:var(--font-text-md-line-height);outline:none;cursor:pointer}
[data-ta-provider-error]{margin:10px 0 0}
.tl-side-logo:focus-visible{outline:2px solid var(--color-ring);outline-offset:2px}
@media (max-width: 575px){
  .tl-top{padding:0 12px}
  .tl-hero{font-size:var(--font-heading-lg-size);line-height:var(--font-heading-lg-line-height)}
  .tl-modal{padding:40px 20px 22px}
}
@media (prefers-reduced-motion:reduce){.tl-anim .tl-side{transition:none}}
/* ---- Signed-out home, Oct 24 (ChatGPT's logged-out page): sidebar (collapsed = the rail), feature card, Settings,
   the C mark over the hero, What can you do?, the legal line; and /login as a full page. ---- */
/* Collapsed, the sidebar is the signed-in app's rail: light --color-surface-tertiary, dark --color-surface; the kit
   hairline between it and the page. */
.tl-side{display:flex;flex:none;flex-direction:column;width:52px;padding:8px;background:var(--color-surface-tertiary);box-shadow:inset calc(-1 * var(--shadow-hairline-width)) 0 0 0 var(--shadow-hairline-color);overflow:hidden}
:root[data-theme=dark] .tl-side{background:var(--color-surface)}
/* Open, it is the chats column: --color-surface-secondary in both themes, like the signed-in column. */
:root[data-theme] .tl-open .tl-side{background:var(--color-surface-secondary)}
.tl-open .tl-side{width:260px}
/* One sidebar for both states: the icons never move; labels, CamOS ⌄, collapse and the card fade in as it widens. */
.tl-anim .tl-side{transition:width .2s var(--transition-ease-basic)}
.tl-side-head{position:relative;flex:none;height:44px;margin-bottom:8px}
.tl-side-head>button{position:absolute;top:4px}
.tl-side-logo{left:0;display:grid;place-items:center;width:36px;height:36px;border:0;border-radius:var(--radius-lg);background:none;color:var(--color-text);cursor:pointer;padding:0}
.tl-side-logo .ta-logo{display:block;width:28px;height:28px;margin:0;color:inherit}
.tl-logo-mark,.tl-logo-panel{display:grid;place-items:center}
.tl-logo-panel{display:none;color:var(--color-text)}
.tl-side-logo:hover{background:var(--color-background-primary-ghost-hover)}
.tl-side-logo:hover .tl-logo-mark{display:none}
.tl-side-logo:hover .tl-logo-panel{display:grid}
.tl-collapse{right:0}
.tl-brand-btn,.tl-collapse,.tl-row-label,.tl-side-card{opacity:0;visibility:hidden;transition:opacity var(--transition-duration-basic) var(--transition-ease-basic),visibility 0s .1s}
.tl-open .tl-brand-btn,.tl-open .tl-collapse,.tl-open .tl-row-label,.tl-open .tl-side-card{opacity:1;visibility:visible;transition:opacity var(--transition-duration-basic) var(--transition-ease-basic) .06s,visibility 0s}
.tl-open .tl-side-logo{visibility:hidden}
.tl-side-head>.tl-brand-btn{left:0;display:inline-flex;align-items:center;gap:4px;height:36px;padding:0 10px;border:0;border-radius:var(--radius-lg);background:none;color:var(--color-text);font:inherit;font-size:var(--font-text-md-size);line-height:var(--font-text-md-line-height);font-weight:var(--font-weight-medium);cursor:pointer;white-space:nowrap}
.tl-brand-btn svg{color:var(--color-text-secondary)}
.tl-brand-btn:hover,.tl-brand-btn[aria-expanded=true]{background:var(--color-background-primary-ghost-hover)}
.tl-side-nav{display:flex;flex-direction:column;gap:1px}
.tl-row{position:relative;display:flex;align-items:center;gap:10px;width:100%;height:36px;padding:0 8px;border:0;border-radius:var(--radius-lg);background:none;color:var(--color-text);font:inherit;font-size:var(--font-text-sm-size);line-height:var(--font-text-sm-line-height);text-align:left;text-decoration:none;white-space:nowrap;overflow:hidden;cursor:pointer}
/* The app rail's icons (shell-rail.tsx railBtn + RailIcon): size-5 in a 36px tile, tertiary until hovered. */
.tl-row svg{flex:none;width:20px;height:20px;color:var(--color-text-tertiary);transition:color var(--transition-duration-basic) var(--transition-ease-basic)}
.tl-row:is(:hover,:focus-visible,[aria-expanded=true]) svg{color:var(--color-text)}
.tl-row:hover{background:var(--color-background-primary-ghost-hover)}
.tl-row:active,.tl-row[aria-expanded=true]{background:var(--color-background-primary-ghost-active)}
.tl-row[aria-expanded=true]::after{content:"";flex:none;margin-left:auto;width:6px;height:6px;border-radius:var(--radius-full);background:var(--color-background-info-solid)}
.tl:not(.tl-open) .tl-row[aria-expanded=true]::after{position:absolute;right:3px;top:3px}
.tl-side-card{flex:none;min-width:260px;display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:8px -8px -8px;padding:20px;border-top:var(--shadow-hairline-width) solid var(--shadow-hairline-color)}
.tl-side-card-title{margin:0;font-size:var(--font-text-md-size);font-weight:var(--font-weight-semibold);line-height:var(--font-text-md-line-height)}
.tl-side-card-line{margin:0 0 12px;color:var(--color-text-secondary);font-size:var(--font-text-sm-size);line-height:var(--font-text-sm-line-height)}
.tl-side-card .tl-pill{width:100%}
.tl-top-left{display:flex;align-items:center;gap:2px;min-width:0}
html .tl-menu-btn{display:none}
.tl-wordmark::after,.tl-brand-btn>span::after{content:"";display:inline-block;width:6px;height:6px;margin-left:2px;border-radius:var(--radius-full);background:var(--color-background-info-solid)}
.tl-wordmark{padding-left:4px;color:var(--color-text);font-size:var(--font-heading-md-size);line-height:var(--font-heading-md-line-height);font-weight:var(--font-weight-semibold);text-decoration:none;white-space:nowrap}
.tl-hero-mark{display:flex;align-items:center;justify-content:center;width:112px;height:72px;margin:0 auto 4px}
.tl-hero-logo{overflow:visible}
.tl-hero-logo{width:56px;height:56px;color:var(--color-text)}
.tl-chips{display:flex;justify-content:center;flex-wrap:wrap;gap:8px;margin-top:14px}
/* The chip is the kit's outline Button; only its blue dot is added here. */
.tl-chip .cui-button-inner::before{content:"";width:6px;height:6px;border-radius:var(--radius-full);background:var(--color-background-info-solid)}
.tl-legal{flex:none;margin:0;padding:8px 16px 12px;color:var(--color-text-secondary);font-size:var(--font-text-xs-size);line-height:var(--font-text-xs-line-height);text-align:center}
.tl-legal a{color:var(--color-text-secondary);text-decoration:underline;text-underline-offset:2px}
.tl-chatting .tl-hero-mark,.tl-chatting .tl-chips,.tl-chatting .tl-legal{display:none}
.tl-pop{position:fixed;top:56px;left:8px;z-index:15;width:320px;max-width:calc(100vw - 16px);overflow:hidden;border-radius:var(--popover-radius);background:var(--color-surface-elevated);box-shadow:var(--shadow),var(--shadow-hairline)}
.tl-pop-banner{display:grid;place-items:center;height:120px;background:var(--color-surface-elevated-secondary)}
.tl-pop-body{padding:16px 18px 18px}
.tl-pop-title{margin:0;font-size:var(--font-text-md-size);line-height:var(--font-text-md-line-height);font-weight:var(--font-weight-semibold)}
.tl-pop-line{margin:6px 0 16px;color:var(--color-text-secondary);font-size:var(--font-text-sm-size);line-height:var(--font-text-sm-line-height)}
.tl-pop-actions{display:flex;flex-wrap:wrap;gap:8px}
.tl-settings{max-width:440px;padding:24px}
.tl-settings .tl-close{top:16px;right:16px}
.tl-settings-title{margin:0 0 12px;font-size:var(--font-heading-md-size);line-height:var(--font-heading-md-line-height);font-weight:var(--font-weight-semibold)}
.tl-set-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;font-size:var(--font-text-md-size);line-height:var(--font-text-md-line-height)}
.tl-row:focus-visible,.tl-brand-btn:focus-visible,.tl-legal a:focus-visible,.tl-wordmark:focus-visible{outline:2px solid var(--color-ring);outline-offset:2px}
/* /login: the full page. */
.tl-body.tl-login-page{display:flex;flex-direction:column;min-height:100vh;min-height:100dvh;overflow:auto}
.tl-login-head{flex:none;display:flex;align-items:center;height:56px;padding:0 20px}
.tl-wordmark-sm{padding:0;font-size:var(--font-heading-md-size);line-height:var(--font-heading-md-line-height)}
.tl-login-main{flex:1;display:flex;align-items:center;justify-content:center;padding:16px}
.tl-login-main .tl-modal{max-width:380px}
.tl-login-main .tl-modal:not(.cui-drawer){max-height:none;overflow:visible;padding:20px 0;background:none;box-shadow:none}
:where(.tl-login-main .tl-modal).cui-drawer{padding:20px 0}
html .tl-login-main .tl-close{display:none}
.tl-login-main .tl-title{font-size:var(--font-heading-lg-size);line-height:var(--font-heading-lg-line-height)}
.tl-login-foot{flex:none;display:flex;flex-direction:column;align-items:center;gap:12px;padding:16px 16px 28px;color:var(--color-text-secondary);font-size:var(--font-text-sm-size);line-height:var(--font-text-sm-line-height)}
.tl-login-foot a{color:inherit;text-decoration:none}
.tl-login-foot a:hover{color:var(--color-text);text-decoration:underline;text-underline-offset:3px}
.tl-login-foot span span{margin:0 10px;color:var(--color-text-secondary)}
@media (max-width: 575px){
  .tl-side{display:none;position:fixed;top:0;bottom:0;left:0;z-index:12;box-shadow:var(--shadow-400);overflow-y:auto}
  .tl-open .tl-side{display:flex;width:min(300px,85vw)}
  .tl-anim .tl-side{transition:none}
  .tl-side-card{min-width:0}
  .tl-menu-btn:where(.cui-button){display:inline-block}
  .tl-legal{font-size:var(--font-text-xs-size);line-height:var(--font-text-xs-line-height)}
  .tl-pop{width:calc(100vw - 32px)}
}
/* CamOS taste on the Log in or sign up modal (Cam, Oct 24): the CamOS mark, app radii (12px controls, 16px surface),
   the kit info blue focus ring and accent. */
.tl-card .tl-card-logo{display:block;width:56px;height:56px;margin:0 auto 18px}
/* The Edit link at the end of the read-only email / phone field keeps its width. */
.ta-edit{flex:none}

/* Guest composer: the cycling placeholder (public/landing-chrome.js): lines rise from below and leave upward. */

/* Agents in the sidebar (Grok's): a gray label, then Create an agent. Collapsed, the label keeps its height (hidden) so
   the picture never moves. Create an agent opens Meet CamOS agents, the app's own dialog (agents-intro.tsx). */


.tl-row[data-tl-agents]:focus-visible{outline:2px solid var(--color-ring);outline-offset:2px}


/* Password fields: the show/hide eye inside the field on the right (lib/team-accounts.mjs withEye; public/team-auth.js). */

/* Welcome (ChatGPT's app start screen; lib/team-accounts.mjs landingBody, public/landing-welcome.js): only on phones and in
   the installed app, until Skip; never in the iPhone app, which draws its own. While it shows, the home under it is hidden. */
.tl-welcome{display:none}
@media (max-width: 575px),(display-mode:standalone){
  :root:not([data-welcome-skipped]):not([data-native-chrome="true"]) .tl-welcome{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;
    padding:env(safe-area-inset-top) 16px calc(16px + env(safe-area-inset-bottom));background:var(--color-surface);color:var(--color-text)}
  :root[data-theme=dark]:not([data-welcome-skipped]):not([data-native-chrome="true"]) .tl-welcome{background:var(--color-surface-tertiary)}
  :root:not([data-welcome-skipped]):not([data-native-chrome="true"]) [data-tl-shell]{visibility:hidden}
}
.tl-welcome-mid{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px}
.tl-welcome-logo{color:var(--color-text)}
.tl-welcome-name{margin:0;font-size:var(--font-heading-2xl-size);line-height:var(--font-heading-2xl-line-height);font-weight:var(--font-weight-semibold)}
.tl-welcome-actions{display:flex;flex-direction:column;gap:12px;width:100%;max-width:440px;margin:0 auto}
.tl-welcome-legal{margin:0;padding:0 8px;color:var(--color-text-secondary);font-size:var(--font-text-xs-size);line-height:var(--font-text-xs-line-height);text-align:center}
.tl-welcome-legal a{color:var(--color-text-secondary);font-weight:var(--font-weight-semibold);text-decoration:underline;text-underline-offset:2px}
.tl-welcome-legal a:focus-visible{outline:2px solid var(--color-ring);outline-offset:2px}
/* On phones and in the iPhone app the welcome screen carries the terms line, so the home's footer line steps aside. */
@media (max-width: 575px){.tl-legal{display:none}}
:root[data-native-chrome="true"] .tl-legal{display:none}
/* Phones and the iPhone app (html[data-tl-phone], public/landing-welcome.js): ChatGPT's signed-out app. No sidebar or
   drawer; Log in at the left; one capsule (New chat, ···) at the right; no Sign up for free; just a new chat with
   iMessage-style bubbles (as in the signed-in agent chat) over a floating message pill. Desktop keeps its own layout. */
html .tl-m-login,html .tl-m-more{display:none}
:root[data-tl-phone] .tl-side,:root[data-tl-phone] .tl-menu-btn,:root[data-tl-phone] .tl-top-actions{display:none}
:root[data-tl-phone] .tl-top{height:auto;padding:calc(10px + env(safe-area-inset-top)) 16px 10px}
html:root[data-tl-phone] .tl-m-login,html:root[data-tl-phone] .tl-m-more{display:inline-block}
.tl-m-row:focus-visible{outline:2px solid var(--color-ring);outline-offset:2px}
/* Phones use the signed-in app's tokens (DESIGN.md, ui/camos-ui/dashboard/src/index.css; measured on the agent chat):
   page = --color-surface, menus and sheets = --color-surface-elevated, text --color-text, secondary = ink 65%, hairlines
   and shadows as on its composer and header buttons. theme-boot.js always sets data-theme, so no media query. */
:root[data-tl-phone] .tl-dock{padding-bottom:env(safe-area-inset-bottom)}
/* The thread runs 12px into the page gutter and pads it back, so its scrollbar sits clear of the replies. */
:root[data-tl-phone] .tl-thread{gap:12px;padding:12px 12px 16px;margin-inline:-12px;width:calc(100% + 24px);max-width:none}
:root[data-tl-phone] .tl-assistant .tl-md{font-size:var(--font-text-md-size);line-height:var(--font-text-md-line-height)}
:root[data-tl-phone] .tl-assistant .tl-md>:first-child{margin-top:0}
:root[data-tl-phone] .tl-assistant .tl-md>:last-child{margin-bottom:0}
:root[data-tl-phone] .tl-msg-actions{margin:4px 0 0 4px}
/* The ··· sheet: a bottom sheet with an ×, Settings-style grouped rows. */
.tl-m-sheet-wrap{position:fixed;inset:0;z-index:70;display:flex;align-items:flex-end;background:var(--dialog-backdrop-dim-background)}
.tl-m-sheet-wrap[hidden]{display:none}
.tl-m-sheet{position:relative;width:100%;max-height:85vh;overflow-y:auto;padding:28px 16px calc(24px + env(safe-area-inset-bottom));border-radius:var(--radius-4xl) var(--radius-4xl) 0 0;background:var(--color-surface-elevated);color:var(--color-text);
  box-shadow:var(--shadow),var(--shadow-hairline)}
.tl-m-group{display:flex;flex-direction:column;margin-bottom:20px;border-radius:var(--radius-xl);background:var(--color-background-primary-surface);overflow:hidden}
.tl-m-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:0 16px;color:var(--color-text);font-size:var(--font-text-md-size);line-height:var(--font-text-md-line-height);text-decoration:none}
.tl-m-row+.tl-m-row{box-shadow:inset 0 var(--shadow-hairline-width) 0 0 var(--shadow-hairline-color)}
.tl-m-row svg{color:var(--color-text-secondary)}
.tl-m-row-value{color:var(--color-text-secondary)}
/* The Log in sheet (phones): the shared drawer (landing-welcome.js adds .cui-drawer: grabber, drag to close), a short
   centred title, a line for + items, the Log in buttons. */
.tl-m-auth{position:relative;width:100%;padding:28px 20px calc(20px + env(safe-area-inset-bottom));border-radius:var(--radius-4xl) var(--radius-4xl) 0 0;background:var(--color-surface-elevated);color:var(--color-text);box-shadow:var(--shadow),var(--shadow-hairline)}
.tl-m-auth,.tl-m-sheet{outline:none}
.tl-m-auth-title{margin:0 0 6px;text-align:center;font-size:var(--font-heading-md-size);line-height:var(--font-heading-md-line-height);font-weight:var(--font-weight-semibold)}
.tl-m-auth-line{margin:0 12px;text-align:center;color:var(--color-text-secondary);font-size:var(--font-text-md-size);line-height:var(--font-text-md-line-height)}
.tl-m-auth-actions{display:flex;flex-direction:column;gap:12px;margin-top:22px}
.tl-m-sheet-title{margin:0 0 16px;text-align:center;font-size:var(--font-text-md-size);line-height:var(--font-text-md-line-height);font-weight:var(--font-weight-semibold)}
/* Inside the iPhone app the top bar (Log in, ···) and its menu are native (SwiftUI), so the page's own step aside. */
:root[data-native-chrome="true"] .tl-top,:root[data-native-chrome="true"] [data-tl-m-sheet]{display:none!important}
.tl-m-group-label{margin:0 0 6px 16px;color:var(--color-text-secondary);font-size:var(--font-text-sm-size);line-height:var(--font-text-sm-line-height);font-weight:var(--font-weight-medium)}
/* /login on narrow screens: no wordmark at the top. */
@media (max-width: 575px){.tl-login-head{display:none}}
/* Phones (ChatGPT's app; Cam, Oct 24): Log in or sign up is a bottom sheet over the welcome screen. On / it is the modal
   (opened from the welcome, the Log in buttons or the composer); on /login (html[data-tl-login-sheet], landing-welcome.js;
   never the iPhone app or its browser hand-off) the welcome is drawn under the page's own card. Rounded 30px top, the
   page dimmed behind, the shared drawer's grabber, no × and no back arrow (Edit goes back to the email); the dimmed area
   or a drag down closes it (team-auth.js). Google and Apple first, then OR and email. */
.tl-login-page .tl-welcome{display:none!important}
:root[data-tl-login-sheet] .tl-login-page .tl-welcome{display:flex!important;position:fixed;inset:0;z-index:60;flex-direction:column;
  padding:env(safe-area-inset-top) 16px calc(16px + env(safe-area-inset-bottom));background:var(--color-surface);color:var(--color-text)}
:root[data-theme=dark][data-tl-login-sheet] .tl-login-page .tl-welcome{background:var(--color-surface-tertiary)}
:root[data-tl-login-sheet] .tl-login-foot{display:none}
:root[data-tl-phone] .tl-overlay[data-tl-modal],:root[data-tl-login-sheet] .tl-login-main{position:fixed;inset:0;z-index:75;display:flex;align-items:flex-end;justify-content:center;
  padding:calc(env(safe-area-inset-top) + 12px) 0 0;background:color-mix(in srgb,var(--dialog-backdrop-dim-background) calc(100% * (1 - var(--drawer-swipe-progress,0))),transparent);transition:background-color .45s var(--cubic-enter)}
:is(:root[data-tl-phone] .tl-overlay[data-tl-modal],:root[data-tl-login-sheet] .tl-login-main){top:var(--tl-sheet-top,0px);bottom:auto;height:var(--tl-sheet-height,100%)}
:is(:root[data-tl-phone] .tl-overlay[data-tl-modal],:root[data-tl-login-sheet] .tl-login-main):is([data-starting-style],[data-ending-style]){background-color:transparent}
:is(:root[data-tl-phone] .tl-overlay[data-tl-modal],:root[data-tl-login-sheet] .tl-login-main)[data-swiping]{transition:none}
:root[data-tl-login-sheet] .tl-login-main[hidden],:root[data-tl-phone] .tl-overlay[data-tl-modal][hidden]{display:none}
:is(:root[data-tl-phone] .tl-overlay[data-tl-modal],:root[data-tl-login-sheet] .tl-login-main) .tl-modal{width:100%;max-width:none;max-height:100%;overflow-y:auto;overscroll-behavior:contain;
  padding:32px 20px calc(24px + env(safe-area-inset-bottom))}
/* The sheet's surface, corners, grabber, slide and drag: the shared drawer (cui-drawer.css; team-auth.js adds .cui-drawer). */
html :is(:root[data-tl-phone] .tl-overlay[data-tl-modal],:root[data-tl-login-sheet] .tl-login-main) .tl-close{display:none}
:is(:root[data-tl-phone] .tl-overlay[data-tl-modal],:root[data-tl-login-sheet] .tl-login-main) .tl-card-logo{width:44px;height:44px;margin-bottom:14px}
/* Every width: Google and Apple first (the main way in), then OR and email, with even space around OR. */
[data-ta-step="start"]:not([hidden]){display:flex;flex-direction:column}
[data-ta-step="start"] .ta-form{order:4;margin-top:12px}
[data-ta-step="start"] .ta-or{order:3}
[data-ta-step="start"] [data-ta-providers]{order:1}
[data-ta-step="start"] [data-ta-provider-error]{order:2}
[data-ta-step="start"] [data-ta-local]{order:5}
@media (prefers-reduced-motion:reduce){:root [data-tl-modal] .tl-modal,:root [data-tl-modal]{animation:none!important}}
/* The app's Select a workspace (lib/team-accounts.mjs authPage consent; Codex's desktop sign-in): email chip, a bold
   label, one bordered list box (coloured circle icons, a check and a light grey fill on the chosen row), Cancel ·
   Continue side by side, the fine print. */
.ta-consent-card{max-width:480px;align-items:stretch;gap:0}
.ta-email-chip{align-self:center;display:inline-flex;align-items:center;gap:8px;margin:0 0 28px;padding:6px 14px;border-radius:var(--radius-full);box-shadow:inset var(--shadow-hairline);color:var(--color-text);font-size:var(--font-text-sm-size);line-height:var(--font-text-sm-line-height)}
.ta-consent-form{display:flex;flex-direction:column}
.ta-consent-title{margin:0 0 12px;font-size:var(--font-text-md-size);line-height:var(--font-text-md-line-height);font-weight:var(--font-weight-semibold);text-align:center;letter-spacing:0}
.ta-ws-box{display:flex;flex-direction:column;gap:2px;padding:4px;border-radius:var(--radius-xl);box-shadow:inset var(--shadow-hairline)}
.ta-ws-row{position:relative;display:flex;align-items:center;gap:10px;min-height:48px;padding:6px 10px 6px 6px;border-radius:var(--radius-lg);cursor:pointer;font-size:var(--font-text-md-size);line-height:var(--font-text-md-line-height)}
.ta-ws-row input{position:absolute;opacity:0;pointer-events:none}
.ta-ws-row:hover{background:var(--color-surface-secondary)}
.ta-ws-row:has(input:checked){background:var(--color-surface-secondary);box-shadow:inset 0 0 0 1px var(--color-border-strong)}
/* Keyboard focus shows as the row fill, not a blue ring (Cam, Oct 25). */
.ta-ws-row:has(input:focus-visible){background:var(--color-surface-secondary)}
.ta-ws-icon{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:var(--radius-full);color:var(--white);font-size:var(--font-text-md-size);line-height:var(--font-text-md-line-height);font-weight:var(--font-weight-medium)}
/* Content colours: the kit palette (DESIGN.md), same in light and dark. */
.ta-ws-icon[data-tone="sky"]{background:var(--blue-400)}.ta-ws-icon[data-tone="coral"]{background:var(--red-400)}.ta-ws-icon[data-tone="violet"]{background:var(--purple-400)}
.ta-ws-icon[data-tone="green"]{background:var(--green-400)}.ta-ws-icon[data-tone="orange"]{background:var(--orange-400)}.ta-ws-icon[data-tone="slate"]{background:var(--gray-500)}
.ta-ws-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--color-text)}
.ta-ws-check{flex:none;opacity:0;color:var(--color-text)}
.ta-ws-row:has(input:checked) .ta-ws-check{opacity:1}
.ta-consent .ta-row-buttons{margin-top:28px}
/* The website's sign-in sheet shows the same Select a workspace as the app sign-in page: the chip and label replace the
   logo and big title, the list and the fully round Cancel · Continue pills match (ta-workspace-list.js). */
[data-ta-at="workspace"] :is(.ta-logo,[data-ta-title],[data-ta-line]){display:none!important}
[data-ta-step="workspace"]:not([hidden]){display:flex;flex-direction:column;align-items:stretch;width:100%;text-align:left}
[data-ta-step="workspace"] .ta-email-chip{margin-bottom:24px}
/* Picking a workspace comes after sign-in: no Terms · Privacy · Cookies there (Cam, Oct 25); sign-up keeps them. */
.tl-login-page:has([data-ta-at="workspace"]) .tl-login-foot{display:none}
[data-ta-step="workspace"] .ta-row-buttons{margin-top:24px}
.ta-ws-box{background:var(--color-surface)}
/* Cam, Oct 24 (next to Codex): a bigger CamOS title in the open sidebar. */
.tl-side-head>.tl-brand-btn{font-size:var(--font-heading-md-size);line-height:var(--font-heading-md-line-height);font-weight:var(--font-weight-semibold)}
/* Skip to content (the dashboard's components/ui/skip-nav.tsx look): first Tab stop, hidden until keyboard focus, start edge. */
.skip-link{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.skip-link:focus{position:fixed;inset-inline-start:16px;top:16px;z-index:9999;width:auto;height:auto;margin:0;overflow:visible;clip-path:none;padding:8px 16px;border-radius:var(--radius-full);font-size:var(--font-text-sm-size);line-height:var(--font-text-sm-line-height);font-weight:var(--font-weight-medium);color:inherit;text-decoration:none;background:var(--color-surface-elevated);box-shadow:var(--shadow-hairline),var(--shadow-300);outline:2px solid var(--color-ring);outline-offset:2px}
.tl-center:focus{outline:none}

/* The feature card's moving pictures (lib/team-accounts.mjs POP_ART): one scene per row, chosen by .tl-pop[data-art].
   Each piece's place in its row comes from data-i (the page's CSP blocks inline styles). */
.tl-art [data-i="0"]{--i:0}.tl-art [data-i="1"]{--i:1}.tl-art [data-i="2"]{--i:2}.tl-art [data-i="3"]{--i:3}.tl-art [data-i="4"]{--i:4}.tl-art [data-i="5"]{--i:5}
.tl-pop-banner{position:relative;overflow:hidden;height:136px}
.tl-art{position:absolute;inset:0}
.tl-scene{position:absolute;inset:0;display:none}
.tl-pop[data-art=research] .tl-scene[data-art=research],.tl-pop[data-art=images] .tl-scene[data-art=images],.tl-pop[data-art=apps] .tl-scene[data-art=apps],.tl-pop:not([data-art]) .tl-scene[data-art=agents],.tl-pop[data-art=agents] .tl-scene[data-art=agents]{display:block}
.tl-art :where(.tl-src,.tl-report,.tl-canvas,.tl-hub){background:var(--color-surface-elevated);box-shadow:var(--shadow-300)}
/* Deep research: three sources fan in on the left, a lens scans them, the report on the right fills and gets its citations. */
.tl-src{position:absolute;left:calc(22px + var(--i)*16px);top:calc(24px + var(--i)*5px);width:62px;height:76px;border-radius:var(--radius-md);padding:10px 8px;display:grid;align-content:start;gap:6px;transform-origin:50% 120%;animation:tl-fan 6s ease-in-out infinite;animation-delay:calc(var(--i)*.12s);rotate:calc((var(--i) - 1)*11deg)}
.tl-src i,.tl-report i{display:block;height:5px;border-radius:var(--radius-2xs);background:var(--color-background-primary-soft)}
.tl-src i:nth-child(2){width:80%}.tl-src i:nth-child(3){width:60%}
.tl-src i::after{content:"";display:block;height:100%;width:0;border-radius:inherit;background:var(--color-background-caution-solid);animation:tl-mark 6s ease-in-out infinite;animation-delay:calc(var(--i)*.5s + .8s)}
.tl-lens{position:absolute;left:36px;top:40px;width:26px;height:26px;border-radius:var(--radius-full);box-shadow:0 0 0 1px var(--color-border-info-surface);animation:tl-scan 6s ease-in-out infinite}
.tl-lens::after{content:"";position:absolute;width:12px;height:4px;border-radius:var(--radius-2xs);background:var(--color-border-info-surface);right:-9px;bottom:-3px;rotate:45deg}
.tl-report{position:absolute;right:34px;top:24px;width:118px;height:88px;border-radius:var(--radius-xl);padding:12px;display:grid;align-content:start;gap:7px}
.tl-report b{display:block;height:7px;width:62%;border-radius:var(--radius-xs);background:var(--color-background-primary-soft-active)}
.tl-report i{transform-origin:left;scale:0 1;animation:tl-write 6s ease-in-out infinite}
.tl-report i:nth-of-type(2){animation-delay:.25s;width:86%}.tl-report i:nth-of-type(3){animation-delay:.5s;width:70%}
.tl-cite{position:absolute;bottom:10px;left:calc(12px + var(--i)*22px);width:18px;height:18px;border-radius:var(--radius-full);display:grid;place-items:center;font:var(--font-weight-bold) var(--font-text-2xs-size)/1 var(--font-sans);color:var(--color-text-info);background:var(--color-background-info-soft);scale:0;animation:tl-pop 6s var(--cubic-enter) infinite;animation-delay:calc(var(--i)*.18s)}
@keyframes tl-fan{0%,6%{translate:-30px 0;opacity:0}16%,84%{translate:0 0;opacity:1}100%{opacity:0}}
@keyframes tl-mark{0%,20%{width:0}34%,90%{width:100%}100%{width:0}}
@keyframes tl-scan{0%,14%{translate:0 0;opacity:0}20%{opacity:1}36%{translate:18px 14px}52%{translate:2px 30px}68%,86%{translate:20px 4px;opacity:1}96%,100%{opacity:0}}
@keyframes tl-write{0%,40%{scale:0 1}58%,90%{scale:1 1}100%{scale:0 1}}
@keyframes tl-pop{0%,62%{scale:0}70%,90%{scale:1}100%{scale:0}}
/* Imagine: a little sunset fades in, then sparkles. Flat colours, no blur. */
.tl-canvas{position:absolute;left:50%;top:50%;width:150px;height:96px;margin:-48px 0 0 -75px;border-radius:var(--radius-xl);overflow:hidden;background:var(--color-background-warning-solid)}
.tl-canvas>*{position:absolute;animation:tl-focus 5s ease-in-out infinite}
.tl-sun{width:34px;height:34px;border-radius:var(--radius-full);left:58px;top:24px;background:var(--color-background-caution-soft-alpha);box-shadow:var(--shadow-300)}
.tl-hill{width:130px;height:70px;border-radius:var(--radius-full);bottom:-38px;left:calc(var(--i)*58px - 40px);background:color-mix(in srgb,var(--color-background-info-solid) calc(60% + var(--i)*25%),var(--color-background-discovery-solid))}
.tl-spark{position:absolute;width:10px;height:10px;left:calc(50% + 62px - var(--i)*58px);top:calc(24px + var(--i)*30px);background:var(--white);clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%);scale:0;animation:tl-twinkle 5s ease-in-out infinite;animation-delay:calc(2.4s + var(--i)*.3s)}
@keyframes tl-focus{0%,12%{opacity:0;scale:1.1}48%,88%{opacity:1;scale:1}100%{opacity:0;scale:1.1}}
@keyframes tl-twinkle{0%,100%{scale:0;rotate:0deg}12%{scale:1.2;rotate:90deg}26%{scale:0;rotate:180deg}}
/* Apps: CamOS in the middle, real logos around it, a pulse running from CamOS out to each one in turn. */
.tl-hub{position:absolute;left:50%;top:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:var(--radius-xl);display:grid;place-items:center;z-index:2;animation:tl-beat 3s ease-in-out infinite}
.tl-hub img{width:34px;height:34px;border-radius:var(--radius-md)}
.tl-orbit{position:absolute;left:50%;top:50%;width:0;height:0;rotate:calc(var(--i)*72deg - 90deg);animation:tl-turn 24s linear infinite}
.tl-orbit img{position:absolute;left:46px;top:-13px;width:26px;height:26px;padding:5px;border-radius:var(--radius-full);background:var(--color-surface-elevated);box-shadow:var(--shadow-300);rotate:calc(90deg - var(--i)*72deg);animation:tl-unturn 24s linear infinite}
.tl-link{position:absolute;left:24px;top:-1px;width:22px;height:2px;border-radius:var(--radius-2xs);background:var(--color-background-primary-surface);overflow:hidden}
.tl-link::after{content:"";position:absolute;inset:0;width:12px;border-radius:var(--radius-2xs);background:var(--color-background-info-solid);translate:-12px 0;animation:tl-ping 3s ease-in infinite;animation-delay:calc(var(--i)*.5s)}
@keyframes tl-turn{to{transform:rotate(360deg)}}
@keyframes tl-unturn{to{transform:rotate(-360deg)}}
@keyframes tl-ping{0%{translate:-12px 0}30%,100%{translate:24px 0}}
@keyframes tl-beat{0%,100%{scale:1}50%{scale:1.06}}
/* CamOS: three plush agents, bobbing out of step. */
.tl-scene[data-art=agents]{align-items:center;justify-content:center;gap:4px}
.tl-pop:not([data-art]) .tl-scene[data-art=agents],.tl-pop[data-art=agents] .tl-scene[data-art=agents]{display:flex}
.tl-art-agent{width:64px;height:64px;object-fit:contain;filter:drop-shadow(0 8px 12px var(--dialog-backdrop-dim-background));animation:tl-bob 3.2s ease-in-out infinite;animation-delay:calc(var(--i)*-.9s)}
.tl-art-agent:nth-child(2){width:78px;height:78px}
@keyframes tl-bob{0%,100%{translate:0 3px}50%{translate:0 -5px}}
@media (prefers-reduced-motion:reduce){.tl-art *,.tl-art *::after{animation:none!important}.tl-report i{scale:1 1}.tl-cite{scale:1}.tl-src i::after{width:100%}}

/* Rail tooltips (public/landing-chrome.js): the kit's compact Tooltip (Tooltip.module.css data-compact), drawn without
   the app's bundle. */
.tl-tip{position:fixed;left:0;top:0;z-index:30;max-width:300px;padding:2px 8px;border-radius:var(--radius-md);background:var(--gray-700);color:var(--gray-0);box-shadow:var(--shadow),var(--shadow-hairline);font-size:var(--font-text-sm-size);line-height:var(--font-text-sm-line-height);white-space:nowrap;pointer-events:none}
.tl-tip[hidden]{display:none}
/* The CamOS mark's live dot (lib/team-accounts.mjs LOGO). */
.ta-logo-dot{fill:var(--color-background-info-solid)}
}
