/* Neutral surfaces keep the theme colors; accents and selections follow the personal palette. */
/* Browser UI: stable sidebar, scoped workspace theme and vector branding. */
:root{--ui-bg:#d6d9e1;--ui-panel:#e0e3ea;--ui-soft:#d9dde6;--ui-text:#2c2933;--ui-muted:#5e566b;--ui-border:#c0c6d2;--ui-accent:var(--tandem-tone-8060c5,#8060c5);--ui-selected:color-mix(in srgb,var(--palette-primary,#8060c5) 20%,var(--ui-color-surface));--ui-input:#e7eaf0;--message-author-tint:25%;--ui-color-surface:#fff}
html[data-theme=dark]{--ui-bg:#17181e;--ui-panel:#22232b;--ui-soft:#292a34;--ui-text:#dcd9e4;--ui-muted:#aaa3bc;--ui-border:#3b3949;--ui-accent:var(--tandem-tone-b69ae9,#b69ae9);--ui-selected:var(--tandem-tone-373044,#373044);--ui-input:#1c1d24;--message-author-tint:26%;--ui-color-surface:var(--ui-panel);color-scheme:dark}
html[data-theme=light] .main-wrap :is(.panel-head,.composer){background:var(--ui-panel)}
.profile-photo{position:relative;display:grid;place-items:center;width:100%;height:100%;border-radius:inherit;overflow:hidden}
.profile-photo-fallback{display:grid;place-items:center;width:100%;height:100%}
.profile-photo>img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .14s ease}
.profile-photo[data-avatar-state=ready]>img{opacity:1}
.profile-photo[data-avatar-state=ready]>.profile-photo-fallback{visibility:hidden}
@media(prefers-reduced-motion:reduce){.profile-photo>img{transition:none}}
body:has(.app-shell){height:100dvh;overflow:hidden;background:var(--ui-bg)}
.app-shell{height:100dvh;min-height:0;overflow:hidden;grid-template-columns:238px minmax(0,1fr)}
.sidebar{position:relative;top:auto;height:100%;min-height:0;overflow:visible;padding:22px 16px 0;background:#1e1f25;color:#c6c3d1;color-scheme:dark;display:flex;flex-direction:column}
.brand{flex:none;margin:0 12px;gap:12px;white-space:nowrap;font-size:30px;line-height:36px}
.brand-mark{display:inline-block;position:relative;width:40px;height:28px;flex:none;opacity:0;transition:opacity .28s ease;transform:none;overflow:visible}
.brand-mark[data-brand-ready=true]{opacity:1}
.tandem-vector{display:block!important;width:100%!important;height:100%!important;max-width:none;overflow:visible;pointer-events:none}
.vector-halo{opacity:var(--ring-glow,1)}.vector-highlight{opacity:calc(var(--ring-light,1)*var(--ring-proximity,1))}
.tandem-metal{position:relative;display:block;width:100%;height:100%;pointer-events:none}.tandem-metal>canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.tandem-metal[data-metal-ready=true][data-reflective-kind=metal] .vector-material-face{visibility:hidden}
.vector-emission{animation:tandem-neon-pulse 3.2s ease-in-out infinite;animation-play-state:var(--ring-pulse-play,running)}
.appearance-material-swatch .vector-emission{animation:none}
@keyframes tandem-neon-pulse{0%,100%{opacity:1}50%{opacity:var(--ring-pulse-low,.9)}}
@media(prefers-reduced-motion:reduce){.vector-emission{animation:none}}
.workspace-select-wrap{flex:none;padding:18px 0 17px;position:relative;min-width:0}
.workspace-picker{width:100%;margin:0;padding:13px 11px;gap:10px;min-height:66px;text-align:left;color:#e8e5f0;background:#25262e;border:1px solid #383943;border-radius:11px;display:flex;align-items:center}
.workspace-picker-copy{flex:1;min-width:0}.workspace-picker-copy strong{font-size:13px;line-height:1.4;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.workspace-picker-copy>span{font-size:10px;line-height:1.4;display:block;margin-top:4px;color:var(--tandem-tone-aaa4bb,#aaa4bb)}
.workspace-symbol{width:31px;height:31px;min-width:31px;border-radius:8px;background:var(--tandem-tone-34313f,#34313f);color:var(--tandem-tone-d4c4ed,#d4c4ed);display:grid;place-items:center}.workspace-symbol svg{width:19px;height:19px}.picker-arrow{margin-left:auto;display:flex;color:var(--tandem-tone-a49aad,#a49aad)}.picker-arrow svg{width:15px;height:15px}
.sidebar .nav-caption{margin:0 13px 8px;font-size:9px;letter-spacing:1.5px}.sidebar .second-caption{margin-top:20px}
.sidebar nav{flex:none}.sidebar nav button{width:100%;min-height:38px;height:38px;padding:0 12px;margin:0 0 3px;display:flex;align-items:center;gap:12px;font-size:12px;white-space:nowrap;border-radius:8px}
.sidebar nav button>span:first-child{display:flex;flex:none}.sidebar nav button svg{width:18px;height:18px}.sidebar nav button .tiny-dot{margin-left:auto}.sidebar nav button .nav-count{margin-left:auto}
.sidebar-bottom{margin-top:auto;padding-top:16px;flex:none}.local-note{padding:11px 12px;margin:0 0 12px}.local-note p{font-size:11px;line-height:1.7;margin:8px 0}.local-note strong,.local-note a{font-size:10px}.local-note-heading{gap:6px}
.relay-status{font-size:9px;gap:7px;white-space:nowrap;margin:0 7px 12px}.relay-status .mono{font-size:8px;margin-left:auto}
.sidebar-status{margin:0 7px 12px}.sidebar-status .relay-status{padding:0;margin:0 0 5px}.sidebar-version{display:flex;align-items:baseline;gap:6px;font-size:9px;line-height:1.5;color:var(--tandem-tone-aaa4bb,#aaa4bb)}
@media(min-width:761px) and (max-height:720px){.sidebar-status{margin-bottom:8px}}
@media(max-width:760px){.sidebar-status{display:none}}
.profile{padding:13px 5px 15px;gap:10px;min-height:67px}.profile>div{flex:1;min-width:0}.profile strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.profile>div>span{font-size:10px;line-height:1.5}.profile-signout{flex:none;width:29px;height:29px;color:var(--tandem-tone-aaa4bb,#aaa4bb);display:grid;place-items:center}.profile-signout:hover{color:#fff;background:#37333f;border-radius:7px}.profile-signout svg{width:17px;height:17px}
.profile-avatar,.user-avatar{display:inline-grid;place-items:center;flex:none;background:var(--tandem-tone-dce6bf,#dce6bf);color:var(--tandem-tone-4e5c3b,#4e5c3b)}.profile-avatar{width:45px;height:45px}.profile-avatar .chatgpt-icon{width:28px;height:28px;stroke:none}.user-avatar .chatgpt-icon{width:19px;height:19px;stroke:none}.chatgpt-icon{fill:currentColor;stroke:none!important}
.main-wrap{display:flex;flex-direction:column;min-width:0;min-height:0;height:100%;overflow:hidden;color:var(--ui-text);background:var(--ui-bg)}
.topbar{height:66px;min-height:66px;flex:none;padding:0 32px;background:var(--ui-soft);border-color:var(--ui-border);color:var(--ui-muted)}
#main{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:28px 32px 22px;scrollbar-width:thin;scrollbar-color:var(--ui-border) transparent;outline:none}
.footer{flex:none;padding:13px 32px 16px;min-height:0;margin:0;font-size:10px;color:var(--ui-muted)}
.page-heading{margin-bottom:24px;gap:16px}.page-heading h1{margin:9px 0 10px;font-size:28px;color:var(--ui-text)}.page-heading p{color:var(--ui-muted);line-height:1.6}.heading-actions{flex-wrap:wrap}.heading-actions .btn{white-space:nowrap}
.main-wrap .panel,dialog{background:var(--ui-panel);border-color:var(--ui-border);color:var(--ui-text)}
.main-wrap h2,.main-wrap h3{color:var(--ui-text)}.main-wrap .btn,dialog .btn{background:var(--ui-panel);color:var(--ui-muted);border-color:var(--ui-border)}.main-wrap .btn:hover,dialog .btn:hover{background:var(--ui-selected)}.main-wrap .btn-primary,dialog .btn-primary{background:var(--tandem-tone-8060c5,#8060c5);color:#fff;border-color:var(--tandem-tone-8060c5,#8060c5)}.main-wrap .btn-primary:hover,dialog .btn-primary:hover{background:var(--tandem-tone-7152b6,#7152b6)}
.main-wrap input:not([type=range]):not([type=checkbox]):not([type=radio]),.main-wrap textarea,dialog input:not([type=checkbox]):not([type=radio]),dialog textarea{background:var(--ui-input);color:var(--ui-text);border-color:var(--ui-border)}
.main-wrap .search-box,.main-wrap kbd{background:transparent;color:var(--ui-muted);border-color:var(--ui-border)}.main-wrap .breadcrumb strong{color:var(--ui-muted)}.main-wrap .icon-button{color:var(--ui-muted)}
button:focus:not(:focus-visible),a:focus:not(:focus-visible),input:focus:not(:focus-visible),textarea:focus:not(:focus-visible){outline:none!important;box-shadow:none!important}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--ui-accent);outline-offset:2px}
.web-project-menu{position:absolute;inset:auto 0 auto 0;top:calc(100% - 12px);width:100%;max-height:min(440px,65vh);overflow:auto;background:#2a2732;border:1px solid #494252;padding:6px;border-radius:11px;z-index:40;box-shadow:0 10px 30px #0004}
.web-project-menu button{width:100%;min-height:40px;gap:10px;padding:8px 10px;font-size:12px;border-radius:6px;color:var(--tandem-tone-e1dbea,#e1dbea)}.web-project-menu button:hover,.web-project-menu button:focus-visible{background:#3b3448}.web-project-menu .project-menu-avatar{display:grid;place-items:center;width:25px;height:25px;flex:none;background:transparent;color:var(--tandem-tone-c4afd9,#c4afd9)}.web-project-menu .project-menu-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}.web-project-menu button>svg{flex:none;width:15px;height:15px}.project-menu-caption{margin:7px 10px 3px;font-size:9px;color:var(--tandem-tone-aaa0b9,#aaa0b9);letter-spacing:.5px}.web-project-menu .project-menu-new{border-top:1px solid #494252;margin-top:5px;min-height:34px;padding:8px 10px;white-space:nowrap}.project-menu-new span{white-space:nowrap}
.project-icon-field{border:0;padding:0;margin:20px 0 0}.project-icon-field legend{font-size:12px;color:var(--ui-muted);margin-bottom:12px}.project-icon-picker{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px}.project-icon-picker label{position:relative;cursor:pointer}.project-icon-picker input{position:absolute;opacity:0;width:1px;height:1px}.project-icon-picker label>span{display:grid;place-items:center;height:40px;border:1px solid var(--ui-border);border-radius:8px;color:var(--ui-muted);background:var(--ui-panel)}.project-icon-picker svg{width:21px;height:21px}.project-icon-picker input:checked+span{background:var(--ui-selected);border-color:var(--ui-accent);color:var(--ui-accent)}.project-icon-picker input:focus-visible+span{outline:2px solid var(--ui-accent);outline-offset:2px}.project-section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.project-section-heading h2{display:flex;align-items:center;gap:10px;margin:0}.project-section-heading svg{width:22px;height:22px}
.tandem-select{display:inline-block;vertical-align:middle;max-width:100%;min-width:130px}.tandem-select select[hidden]{display:none!important}.select-trigger{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;min-height:38px;padding:8px 12px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-input);color:var(--ui-muted);font:inherit;font-size:12px;cursor:pointer;box-shadow:none}.select-trigger>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select-trigger svg{width:14px;height:14px;flex:none}.select-trigger[aria-expanded=true]{background:var(--ui-selected)}.select-trigger:disabled{opacity:.5;cursor:default}
.select-options{position:fixed;z-index:1000;padding:5px;overflow:auto;background:var(--ui-panel);border:1px solid var(--ui-border);border-radius:9px;box-shadow:0 10px 30px var(--tandem-tone-17102324,#17102324);color:var(--ui-text);scrollbar-width:thin}.select-option{width:100%;display:flex;justify-content:space-between;gap:12px;padding:10px 9px;min-height:35px;background:transparent;border:0;border-radius:5px;color:var(--ui-text);text-align:left;font-size:12px;cursor:pointer}.select-option[aria-selected=true]{color:var(--ui-accent);background:var(--ui-selected)}.select-option:hover,.select-option:focus{background:var(--ui-selected);outline:none!important}.select-option svg{width:14px;height:14px;flex:none}.discussion-panel .panel-head>.tandem-select{width:min(55%,420px)}.web-recipient-row .tandem-select,.web-source .tandem-select{margin-left:6px}
.appearance-grid{grid-template-columns:minmax(0,1fr) minmax(340px,1fr);gap:20px}.appearance-preview-column{min-width:0;display:grid;gap:16px}.appearance-preview{min-height:0;background:#1e1f25!important;color:#f2f0f7!important;padding:21px 24px 18px;overflow:visible}.appearance-logo-stage{width:min(100%,420px);aspect-ratio:600/320;margin:0 auto}.appearance-logo-stage>[data-brand-logo]{width:100%;height:100%}.appearance-wordmark{font-size:34px;margin-top:-6px}.appearance-preview-bottom{margin-top:21px;padding-top:13px;font-size:10px}.appearance-material-swatch{padding:2px;width:44px;height:35px;overflow:visible}.appearance-material-swatch .tandem-vector{width:100%;height:100%}
.appearance-settings{padding:20px}.appearance-settings>h2{font-size:14px;color:var(--ui-text);margin:0 0 13px}.appearance-materials{gap:7px;margin-bottom:19px}.appearance-material{padding:9px 11px;background:var(--ui-panel);color:var(--ui-text);border-color:var(--ui-border);min-height:57px}.appearance-material:hover{background:var(--ui-soft);border-color:var(--ui-accent)}.appearance-material.selected{background:var(--ui-selected);border-color:var(--ui-accent)}.appearance-material strong{font-size:12px;margin-bottom:3px}.appearance-material small{font-size:10px;line-height:1.5;color:var(--ui-muted)}.appearance-material>svg{color:var(--ui-accent)}.appearance-slider{margin-bottom:17px}.appearance-slider label{font-size:11px;margin-bottom:8px;color:var(--ui-muted)}.appearance-follow{font-size:11px;color:var(--ui-muted)}
.appearance-slider input[type=range]{appearance:none;display:block;height:6px;border-radius:6px;background:var(--ui-border);accent-color:var(--ui-accent);width:100%;cursor:pointer;touch-action:pan-y;margin:10px 0 0}.appearance-slider input::-webkit-slider-thumb{appearance:none;width:17px;height:17px;border:3px solid var(--ui-panel);border-radius:50%;background:var(--ui-accent);box-shadow:0 1px 5px #0003}.appearance-slider input::-moz-range-thumb{width:12px;height:12px;border:3px solid var(--ui-panel);border-radius:50%;background:var(--ui-accent)}
.appearance-theme{padding:17px 20px;display:flex;align-items:center;justify-content:space-between;gap:12px}.appearance-theme h2{font-size:13px;margin:0 0 6px}.appearance-theme p{font-size:10px;color:var(--ui-muted);margin:0}.theme-options{display:flex;gap:6px;flex:none}.theme-options .btn{padding:8px 10px;font-size:11px;min-height:34px}.theme-options svg{width:15px;height:15px}.theme-options .selected{background:var(--ui-selected);border-color:var(--ui-accent);color:var(--ui-accent)}
.appearance-message-colors>p{font-size:12px;line-height:1.6;color:var(--ui-muted);margin:0 0 14px}
.message-color-options{display:grid;gap:7px}
.message-color-choice{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding:11px 13px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-input);color:var(--ui-text);text-align:left;cursor:pointer}
.message-color-choice.selected{background:var(--ui-selected);border-color:var(--ui-accent)}
.message-color-choice:hover{border-color:var(--ui-accent)}
.message-color-choice strong{display:block;font-size:12px;font-weight:500}
.message-color-choice small{display:block;margin-top:4px;font-size:10px;color:var(--ui-muted);line-height:1.5}
.message-color-choice svg{width:16px;height:16px;flex:none;color:var(--ui-accent)}
.overview-machines{margin-top:22px}.web-machine{padding:22px}.web-info p,.web-device-limit,.web-facts dd,.web-machine-head p{color:var(--ui-muted)}.web-device-limit{font-size:12px;line-height:1.8;margin:0 0 20px}.web-facts dt,.web-privacy{color:var(--ui-muted)}.web-machine-actions{margin-top:18px}.connection-options{display:grid;gap:9px;margin:18px 0}.connection-options>label{display:flex;gap:12px;align-items:center;padding:14px;border:1px solid var(--ui-border);border-radius:9px;cursor:pointer}.connection-options>label:has(:checked){border-color:var(--ui-accent);background:var(--ui-selected)}.connection-options strong{display:block;font-size:13px}.connection-options small{display:block;margin-top:5px;font-size:11px;color:var(--ui-muted)}.web-setup-option{color:var(--ui-muted)}.web-setup-note{color:var(--ui-muted);background:var(--ui-soft);border-color:var(--ui-border)}.join-code{font:600 18px monospace;letter-spacing:1px}
.machine-usage{border-top:1px solid var(--ui-border);padding-top:16px;font-size:11px;color:var(--ui-muted);line-height:1.6}.machine-usage>strong{display:block;color:var(--ui-text);font-size:12px;margin-bottom:9px}.machine-usage>small{display:block;margin-top:9px;font-size:10px}.quota-bucket>span{font-size:10px}.quota-window{display:grid;grid-template-columns:1fr auto;gap:5px 12px;margin:7px 0 11px}.quota-window progress{grid-column:1/-1;height:5px;background:var(--ui-bg);box-shadow:inset 0 0 0 1px var(--ui-border)}.quota-window progress::-webkit-progress-bar{background:var(--ui-bg);box-shadow:inset 0 0 0 1px var(--ui-border)}.quota-window small{grid-column:1/-1;font-size:10px}.usage-exhausted>strong{color:#d17070}.usage-exhausted progress::-webkit-progress-value{background:#d17070}
html[data-theme=dark] .main-wrap .notice-bar,html[data-theme=dark] .main-wrap .composer,html[data-theme=dark] .main-wrap .plan-card-body,html[data-theme=dark] .main-wrap .codex-toolbar,html[data-theme=dark] .main-wrap .codex-action,html[data-theme=dark] .main-wrap .codex-work,html[data-theme=dark] .main-wrap .codex-source-project{background:var(--ui-soft);color:var(--ui-muted);border-color:var(--ui-border)}
html[data-theme=dark] .main-wrap .discussion-message.owner,html[data-theme=dark] .main-wrap .codex-history-message.user .codex-history-bubble{background:var(--tandem-tone-393149,#393149);color:var(--tandem-tone-e8dcf7,#e8dcf7);border-color:var(--tandem-tone-514061,#514061)}html[data-theme=dark] .main-wrap .discussion-message.agent,html[data-theme=dark] .main-wrap .codex-history-bubble{background:#2c3328;color:var(--tandem-tone-dde8d2,#dde8d2);border-color:var(--tandem-tone-424d38,#424d38)}html[data-theme=dark] .main-wrap .plan-open,html[data-theme=dark] .main-wrap .plan-description,html[data-theme=dark] .main-wrap .plan-stage-title,html[data-theme=dark] .main-wrap .plan-step-title,html[data-theme=dark] .main-wrap .plan-estimate,html[data-theme=dark] .main-wrap .codex-markdown,html[data-theme=dark] .main-wrap .empty-state p,html[data-theme=dark] .main-wrap .discussion-message{color:var(--ui-text)}
html[data-theme=dark] .main-wrap [class*=codex-] pre,html[data-theme=dark] .main-wrap [class*=codex-] code{background:#18191f;color:var(--tandem-tone-ddd6ea,#ddd6ea);border-color:var(--ui-border)}html[data-theme=dark] .modal-head,html[data-theme=dark] .modal-footer{background:var(--ui-panel);border-color:var(--ui-border)}html[data-theme=dark] dialog p,html[data-theme=dark] dialog label{color:var(--ui-muted)}html[data-theme=dark] .form-error{color:#ed9292}
@media(min-width:1100px) and (max-height:800px){#main{padding-top:22px}.page-heading{margin-bottom:20px}.page-heading h1{font-size:26px}.appearance-logo-stage{width:min(100%,360px)}.appearance-preview{padding:19px 22px 16px}.appearance-settings{padding:18px}.appearance-material{min-height:51px;padding:7px 10px}.appearance-materials{gap:6px;margin-bottom:16px}.appearance-slider{margin-bottom:15px}.appearance-preview-bottom{margin-top:18px}.appearance-theme{padding:15px 17px}}
@media(min-width:761px) and (max-height:850px){.sidebar{padding-top:17px}.workspace-select-wrap{padding:14px 0}.sidebar .second-caption{margin-top:14px}.sidebar nav button{height:36px;min-height:36px;margin-bottom:2px}.sidebar-bottom{padding-top:12px}.local-note{padding:9px 11px;margin-bottom:10px}.local-note p{margin:6px 0}.profile{padding-top:10px;padding-bottom:12px;min-height:60px}}
@media(min-width:761px) and (max-height:720px){.sidebar{padding-top:13px}.brand{font-size:27px;line-height:30px}.workspace-select-wrap{padding:12px 0}.workspace-picker{padding:10px;min-height:58px}.sidebar nav button{height:32px;min-height:32px;font-size:11px}.sidebar .nav-caption{margin-bottom:5px}.sidebar .second-caption{margin-top:11px}.local-note{padding:9px 10px}.local-note p{display:none}.local-note a{display:block;margin-top:8px}.relay-status{margin-bottom:8px}.profile{min-height:55px;padding:9px 5px}.sidebar-bottom{padding-top:10px}.topbar{height:58px;min-height:58px}.footer{padding-top:10px;padding-bottom:12px}}
@media(max-width:1100px){.appearance-grid{grid-template-columns:1fr}.appearance-preview-column{grid-template-columns:1fr}.appearance-logo-stage{width:min(100%,360px)}.appearance-theme{flex-wrap:wrap}}
@media(max-width:760px){.app-shell{grid-template-columns:66px minmax(0,1fr)}.sidebar{padding:17px 7px 0;overflow:visible}.brand{margin:0 auto;font-size:0;gap:0;width:35px;height:30px}.brand>span:last-child{display:none}.brand-mark{width:35px;height:25px}.workspace-select-wrap{padding:17px 0}.workspace-picker{padding:7px;min-height:42px;justify-content:center}.workspace-symbol{width:28px;height:28px;min-width:28px}.workspace-picker-copy,.picker-arrow,.sidebar .nav-caption,.sidebar .local-note,.sidebar .relay-status,.profile>div{display:none}.sidebar nav button{height:40px;min-height:40px;padding:0;justify-content:center;font-size:0;gap:0;margin:0 0 4px}.sidebar nav button svg{width:20px;height:20px}.sidebar nav button .tiny-dot,.sidebar nav button .nav-count{display:none}.sidebar nav+nav{margin-top:16px}.sidebar-bottom{padding-top:10px}.profile{display:flex;flex-direction:column;gap:10px;padding:12px 0}.web-project-menu{position:absolute;inset:auto auto auto 0;top:calc(100% - 9px);width:220px;max-height:60vh}.main-wrap .topbar{padding:0 17px;height:57px;min-height:57px}.breadcrumb>span:nth-child(2),.breadcrumb>b{display:none}.topbar-actions{gap:12px}.search-box{display:none}.topbar-divider{display:none}#main{padding:23px 18px}.footer{padding:12px 18px;font-size:9px}.footer>span:last-child{display:none}.page-heading{align-items:flex-start}.page-heading h1{font-size:25px}.appearance-grid{grid-template-columns:1fr}.appearance-theme{display:block}.theme-options{margin-top:15px}.appearance-preview{padding:18px}.appearance-wordmark{font-size:30px}.appearance-preview-bottom{flex-direction:row;font-size:9px}.appearance-settings{padding:16px}.appearance-material small{font-size:10px}.appearance-material{gap:10px}.project-icon-picker{grid-template-columns:repeat(6,minmax(0,1fr))}.web-members>div{flex-wrap:wrap;gap:9px}.web-members strong{font-size:12px}.project-section-heading{align-items:flex-start;flex-direction:column}.discussion-panel .panel-head>.tandem-select{width:100%}.web-recipient-row .tandem-select,.web-source .tandem-select{margin-left:0}.web-machine-grid{grid-template-columns:1fr}.web-machine{padding:18px}.web-machine-actions .btn{font-size:11px}.join-code{font-size:14px}.web-overview-stats{grid-template-columns:1fr}.web-machine-head{gap:10px}.web-machine-head h2{font-size:15px}.heading-actions{gap:7px}.heading-actions .btn{font-size:11px;padding:9px 10px}}
@media(max-height:600px){.sidebar .local-note{display:none}.sidebar nav button{height:29px;min-height:29px}.sidebar .second-caption{margin-top:8px}.sidebar-bottom{padding-top:5px}.workspace-select-wrap{padding:9px 0}.profile{padding:7px 4px;min-height:48px}.relay-status{margin-bottom:5px}}
@media(prefers-reduced-motion:reduce){.brand-mark{transition:none}}
#main{width:100%;max-width:none;margin:0}
@media(min-width:1100px) and (max-height:800px){.appearance-material{min-height:48px;padding:6px 10px}.appearance-materials{margin-bottom:14px}.appearance-settings>h2{margin-bottom:11px}.appearance-slider{margin-bottom:13px}.page-heading .eyebrow{margin-top:0}.page-heading{margin-bottom:18px}}
#main:has(>.discussion-panel){display:flex;flex-direction:column}.discussion-panel{min-height:0}#main>.discussion-panel{flex:1;display:flex;flex-direction:column}#main>.discussion-panel>.panel-head,#main>.discussion-panel>.composer{flex:none}#main>.discussion-panel>#web-messages{flex:1;height:auto;min-height:100px;max-height:none;overflow:auto}.web-recipient-row .tandem-select{width:225px}.select-options{max-width:calc(100vw - 16px)}
@media(max-width:760px){#main:has(>.discussion-panel){display:block}#main>.discussion-panel>#web-messages{height:280px;min-height:180px}.web-recipient-row .tandem-select{width:100%}}
/* Legacy text rules used !important; keep them scoped to the workspace palette. */
.main-wrap :is(.composer-top,.composer-bottom,.notice-bar,.empty-state p,.codex-read-notice,.codex-connection-copy p,.codex-list-time,.codex-thread-time,.codex-thread-copy>span,.codex-folder-path,.codex-turn-head,.codex-history-footnote,.codex-check p,.local-codex-callout p,.codex-action>summary,.codex-action-group>summary){color:var(--ui-muted)!important}
dialog :is(.modal-head p,.modal-body p,.modal-body ul){color:var(--ui-muted)!important}
html[data-theme=dark] .main-wrap :is(.codex-history-text,.codex-thread-name,.codex-check strong,.plan-open strong,.plan-stage-title,.plan-step-title,.plan-total-progress strong,.plan-stage-progress strong,.plan-step-progress strong){color:var(--ui-text)!important}
html[data-theme=dark] .main-wrap :is(.plan-step,.plan-stage,.codex-thread,.codex-tabs,.codex-toolbar,.plan-card-body,.composer,.panel-head){border-color:var(--ui-border)}
html[data-theme=dark] .main-wrap :is(.codex-tabs button,.planning-tabs button,.plan-open small,.plan-description,.plan-estimate){color:var(--ui-muted)}
html[data-theme=dark] .main-wrap .plan-open>.plan-open-icon{background:var(--ui-selected);color:var(--ui-accent)}
.sidebar .profile .profile-signout{display:grid}
@media(max-width:760px){.sidebar .profile{height:auto;min-height:0;padding:12px 0;gap:10px}.sidebar .sidebar-bottom{min-height:105px}}
/* 0.8.1: readable navigation and one palette for every layer, including portals. */
[hidden]{display:none!important}
.web-loading{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:32px;text-align:center;background:radial-gradient(ellipse at 50% 42%,var(--tandem-tone-e6ddf7,#e6ddf7),transparent 55%),var(--ui-bg);color:var(--ui-text);font-family:inherit}
.web-loading h1{font-size:24px;letter-spacing:-.5px;margin:28px 0 8px}.web-loading p{font-size:15px;line-height:1.7;color:var(--ui-muted);margin:0}.loading-brand{display:flex;align-items:center;gap:16px}.loading-brand strong{font-size:44px;letter-spacing:-2px}.loading-brand strong>span{color:var(--tandem-tone-8a68cc,#8a68cc)}.loading-rings{display:block;width:65px;height:42px;position:relative}.loading-rings i{position:absolute;width:38px;height:38px;border:7px solid var(--palette-primary,#8060c5);border-radius:50%;left:1px;top:2px;box-shadow:0 0 14px color-mix(in srgb,var(--palette-primary,#8060c5) 20%,transparent)}.loading-rings i+i{left:25px;border-color:var(--palette-secondary,#9cba70);box-shadow:0 0 14px color-mix(in srgb,var(--palette-secondary,#9cba70) 20%,transparent)}.loading-track{width:160px;height:3px;background:var(--tandem-tone-9a87b52b,#9a87b52b);overflow:hidden;border-radius:4px;margin-top:30px}.loading-track span{display:block;height:100%;width:45%;border-radius:4px;background:var(--palette-primary,#8060c5);animation:loading-travel 1.35s ease-in-out infinite alternate}@keyframes loading-travel{from{transform:translateX(-20%)}to{transform:translateX(150%)}}
.sidebar{padding-top:24px}.sidebar .brand{margin:0;width:100%;justify-content:center;gap:11px;font-size:34px;line-height:44px;letter-spacing:-1.3px}.sidebar .brand-mark{width:47px;height:34px}.workspace-picker-copy strong{font-size:14px}.workspace-picker-copy>span{font-size:11px}.sidebar nav button{height:42px;min-height:42px;font-size:14px;gap:12px;margin-bottom:3px}.sidebar nav button svg{width:20px;height:20px}.sidebar .nav-caption{font-size:10px;margin-bottom:10px}.sidebar .second-caption{margin-top:22px}.sidebar-bottom{margin-top:clamp(24px,7vh,70px);padding-top:0}.sidebar .profile{padding-top:15px}.sidebar .profile strong{font-size:14px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.sidebar .relay-status{font-size:10px}.sidebar .relay-status .mono{font-size:9px}.sidebar .tiny-dot{width:5px;height:5px;flex:none;background:var(--tandem-tone-baa2e9,#baa2e9)}
.connection-features{font-size:13px;line-height:1.7;padding:16px 18px;margin:18px 0 10px;background:var(--ui-soft);border:1px solid var(--ui-border);border-radius:9px}.connection-features h3{font-size:14px;margin:0 0 11px;color:var(--ui-text)}.connection-features ul{padding:0;list-style:none;display:grid;gap:7px;margin:0}.connection-features ul+ul{margin-top:14px;padding-top:12px;border-top:1px solid var(--ui-border)}.connection-features li{position:relative;padding-left:23px;color:var(--ui-muted)}.connection-features li:before{position:absolute;left:0;content:'✓';color:var(--tandem-tone-6c9b70,#6c9b70);font-weight:700}.connection-features .unavailable-features li:before{content:'−';color:var(--ui-muted)}.connection-options strong{font-size:14px}.connection-options small{font-size:12px}.web-pair-status{font-size:13px;line-height:1.7}
.discussion-panel .composer{padding:20px 22px}.web-recipient-row{display:flex;align-items:center;gap:16px;min-height:44px;margin-bottom:16px}.web-recipient-row>label{display:flex;align-items:center;gap:8px;flex:none;font-size:12px}.web-recipient-row .tandem-select{margin:0;width:224px}.web-recipient-row #recipient-list{display:flex;align-items:center;gap:8px;overflow-x:auto;min-width:0;flex:1;max-height:44px;padding:2px}.web-recipient-row #recipient-list label{display:flex;align-items:center;gap:7px;white-space:nowrap;margin:0;padding:9px 11px;border:1px solid var(--ui-border);border-radius:6px;background:var(--ui-input);font-size:12px}.web-recipient-row #recipient-list label:has(:checked){background:var(--ui-selected);border-color:var(--ui-accent)}.discussion-panel .composer textarea{padding:14px 16px;min-height:100px;border:1px solid var(--ui-border);border-radius:3px;background:var(--ui-input);font:inherit;font-size:14px;line-height:1.6;resize:vertical}.discussion-panel .discussion-messages{padding:24px}.discussion-message>div:not(.discussion-label){padding:6px 0;line-height:1.75}.discussion-message{padding:16px 20px}.discussion-panel .composer-bottom{padding-top:13px}.discussion-panel .composer-bottom>span{font-size:11px}
.main-wrap .codex-toolbar{padding:12px 22px;gap:18px;align-items:center;flex-wrap:wrap;background:var(--ui-soft);border-color:var(--ui-border)}.codex-tabs{flex:1;min-width:0;overflow:auto}.main-wrap .codex-tabs button{padding:10px 0 12px;font-size:12px;white-space:nowrap;color:var(--ui-muted)}.main-wrap .codex-tabs button.active{color:var(--ui-text);border-color:var(--ui-accent)}.main-wrap .codex-search{width:270px;max-width:100%;min-height:40px;flex:none;padding:0 12px;display:flex;align-items:center;gap:9px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-input);color:var(--ui-muted)}.main-wrap .codex-search input{padding:10px 0;width:100%;min-width:0;border:0!important;background:transparent!important;color:var(--ui-text);font-size:13px;line-height:20px;box-shadow:none!important;outline:none!important}.codex-search:focus-within{border-color:var(--ui-accent);box-shadow:0 0 0 2px color-mix(in srgb,var(--ui-accent) 15%,transparent)}.codex-search svg{width:16px;height:16px;flex:none}.main-wrap .codex-search input::placeholder{color:var(--ui-muted);opacity:.8}
.main-wrap .codex-thread{background:var(--ui-panel);border-color:var(--ui-border)}.main-wrap .codex-thread:hover,.main-wrap .codex-thread:focus-within{background:var(--ui-soft);box-shadow:inset 3px 0 var(--ui-border)}.main-wrap .codex-thread.is-selected,.main-wrap .codex-thread.is-selected:hover{background:var(--ui-selected);box-shadow:inset 3px 0 var(--ui-accent)}.main-wrap .codex-thread-copy strong{color:var(--ui-text)!important;font-size:14px;font-weight:550}.main-wrap .codex-thread-copy>span,.main-wrap .codex-thread-time{color:var(--ui-muted)!important;font-size:11px}.main-wrap .codex-thread-icon,.main-wrap .codex-thread:hover .codex-thread-icon,.main-wrap .codex-thread.is-selected .codex-thread-icon,.main-wrap .codex-project-symbol,.main-wrap .local-codex-symbol{background:var(--ui-selected);border:1px solid var(--ui-border);color:var(--ui-accent)}.main-wrap .codex-project-toggle{background:var(--ui-soft);color:var(--ui-text)}.main-wrap .codex-project-toggle:hover{background:var(--ui-selected)}.main-wrap .codex-project-toggle small,.main-wrap .codex-project-empty{color:var(--ui-muted)}.main-wrap .codex-project-threads{border-color:var(--ui-border)}.main-wrap .codex-subheading{background:var(--ui-soft);border-color:var(--ui-border);color:var(--ui-muted);font-size:11px;padding:14px 23px}.main-wrap .badge.gray,.codex-drawer .badge.gray{background:var(--ui-soft);color:var(--ui-muted);border:1px solid var(--ui-border)}.main-wrap .badge.purple,.codex-drawer .badge.purple{background:var(--ui-selected);color:var(--ui-accent)}.main-wrap .bottom-note{background:var(--ui-soft);color:var(--ui-muted);border-color:var(--ui-border)}
.codex-drawer{background:var(--ui-panel);color:var(--ui-text);box-shadow:-12px 0 70px #0003}.codex-drawer .drawer-header,.codex-drawer .drawer-footer{background:var(--ui-panel);border-color:var(--ui-border);color:var(--ui-muted)}.codex-drawer .drawer-body{background:var(--ui-panel);scrollbar-width:thin;scrollbar-color:var(--ui-border) transparent;padding:30px 30px}.codex-drawer h2,.codex-drawer h3,.codex-drawer strong{color:var(--ui-text)}.codex-drawer p,.codex-drawer li,.codex-drawer .detail-line,.codex-drawer .detail-line strong,.codex-drawer .codex-history-footnote,.codex-drawer .skeleton{color:var(--ui-muted)!important}.codex-drawer .btn{background:var(--ui-panel);border-color:var(--ui-border);color:var(--ui-muted)}.codex-drawer .btn-primary{background:var(--tandem-tone-8060c5,#8060c5);color:#fff;border-color:var(--tandem-tone-8060c5,#8060c5)}.codex-drawer .icon-button{color:var(--ui-muted)}.codex-drawer .policy-note,.codex-drawer .codex-folder-path{background:var(--ui-soft);color:var(--ui-muted);border-color:var(--ui-border)}.codex-drawer .codex-turn{border-color:var(--ui-border)}.codex-drawer .codex-turn-head,.codex-drawer .codex-work-label{color:var(--ui-muted)}.codex-drawer .codex-history-message{color:var(--ui-text)}.codex-drawer .codex-history-message .codex-history-text{font-size:14px}.codex-drawer .codex-history-bubble{background:#eef4e9;border-color:var(--tandem-tone-dae6d2,#dae6d2);color:var(--tandem-tone-30472c,#30472c)}.codex-drawer .codex-history-message.user .codex-history-bubble{background:var(--tandem-tone-eee7f8,#eee7f8);color:var(--tandem-tone-49365d,#49365d);border-color:var(--tandem-tone-ded2ed,#ded2ed)}.codex-drawer .codex-history-text p,.codex-drawer .codex-history-text li{color:inherit!important}.codex-drawer .codex-history-text strong{color:inherit}.codex-drawer .codex-work{background:transparent;border-color:var(--ui-border)}.codex-drawer .codex-work summary,.codex-drawer .codex-action summary,.codex-drawer .codex-action-group summary{color:var(--ui-muted)}.codex-drawer .codex-action,.codex-drawer .codex-action-group{background:var(--ui-soft);border-color:var(--ui-border);color:var(--ui-text)}.codex-drawer .codex-action-body,.codex-drawer .codex-action-group-body{border-color:var(--ui-border)}.codex-drawer .codex-code-block{background:var(--ui-input);border-color:var(--ui-border)}.codex-drawer .codex-code-header{background:var(--ui-soft);border-color:var(--ui-border);color:var(--ui-muted)}.codex-drawer pre,.codex-drawer code,.codex-drawer .codex-code-header button{color:var(--ui-text)}.codex-drawer .codex-action-chevron{transform:rotate(0deg)!important;transition:transform .22s ease!important}.codex-drawer details[open]>summary .codex-action-chevron{transform:rotate(90deg)!important}.codex-drawer details>summary{list-style:none}.codex-drawer details>summary::-webkit-details-marker{display:none}.codex-drawer .codex-work>summary{gap:8px}.codex-drawer .codex-work>summary .codex-action-chevron{order:-1;margin:0 2px 0 0}.codex-action-plugin{display:inline-flex;align-items:center;gap:6px}.codex-action-plugin .icon{color:var(--tandem-tone-58b8f4,#58b8f4)}.codex-action-command{font-size:12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:75%}.codex-action .codex-action-body{padding:12px}.codex-action .codex-code-block{margin:0 0 10px}
html[data-theme=dark] .codex-drawer .codex-history-bubble{background:var(--tandem-tone-25332d,#25332d);border-color:var(--tandem-tone-3b4b41,#3b4b41);color:#e0ebdf}html[data-theme=dark] .codex-drawer .codex-history-message.user .codex-history-bubble{background:var(--tandem-tone-353044,#353044);border-color:var(--tandem-tone-4a415d,#4a415d);color:var(--tandem-tone-ece6f7,#ece6f7)}html[data-theme=dark] .codex-drawer .codex-history-message.is-commentary .codex-history-bubble{background:transparent;border-color:transparent;color:var(--ui-text)}html[data-theme=dark] .codex-drawer .codex-history-expand{color:var(--tandem-tone-b9d1b3,#b9d1b3)}html[data-theme=dark] .codex-drawer .codex-history-message.user .codex-history-expand{color:var(--tandem-tone-cbb7ed,#cbb7ed)}html[data-theme=dark] .codex-drawer .codex-markdown a{color:var(--tandem-tone-cbb7ed,#cbb7ed)}html[data-theme=dark] .codex-drawer .codex-markdown :not(pre)>code{background:#ffffff12;color:var(--tandem-tone-dce8c4,#dce8c4)}html[data-theme=dark] .codex-drawer .codex-image-thumb{background:var(--ui-soft);border-color:var(--ui-border)}html[data-theme=dark] .main-wrap .badge.green{background:var(--tandem-tone-253e34,#253e34);color:var(--tandem-tone-b8dfcc,#b8dfcc)}html[data-theme=dark] .main-wrap .notice-bar,html[data-theme=dark] .main-wrap .bottom-note{background:var(--ui-soft);color:var(--ui-muted)!important;border-color:var(--ui-border)}html[data-theme=dark] .main-wrap .composer-bottom,html[data-theme=dark] .main-wrap .discussion-label,html[data-theme=dark] .main-wrap .web-recipients,html[data-theme=dark] .main-wrap .web-facts,html[data-theme=dark] .main-wrap .codex-list-time,html[data-theme=dark] .main-wrap .table-bottom{color:var(--ui-muted)!important}html[data-theme=dark] .main-wrap .discussion-message{background:var(--ui-soft);color:var(--ui-text);border-color:var(--ui-border)}html[data-theme=dark] .main-wrap .discussion-message.owner{background:var(--tandem-tone-302b3b,#302b3b)}html[data-theme=dark] .main-wrap .discussion-message strong{color:var(--ui-text)}html[data-theme=dark] .main-wrap .web-overview-stats strong{color:var(--ui-text)}html[data-theme=dark] dialog .field,html[data-theme=dark] dialog p,html[data-theme=dark] dialog label{color:var(--ui-muted)}html[data-theme=dark] .main-wrap .eyebrow,html[data-theme=dark] .main-wrap .page-heading p{color:var(--ui-muted)}html[data-theme=dark] .web-loading{background:radial-gradient(ellipse at 50% 42%,var(--tandem-tone-332b49,#332b49),transparent 55%),var(--ui-bg)}
@media(min-height:850px){.sidebar nav button{height:44px;min-height:44px}.sidebar-bottom{margin-top:clamp(30px,8vh,90px)}}
@media(max-height:740px){.sidebar{padding-top:17px}.sidebar .brand{font-size:32px;line-height:40px}.workspace-select-wrap{padding:14px 0}.sidebar nav button{height:38px;min-height:38px;margin-bottom:2px;font-size:14px}.sidebar .second-caption{margin-top:14px}.sidebar-bottom{margin-top:24px}.relay-status{margin-bottom:8px}.profile{min-height:60px;padding-bottom:11px}}
@media(max-height:640px){.sidebar{overflow-y:auto;scrollbar-width:thin}.sidebar-bottom{margin-top:16px}.sidebar nav button{min-height:36px;height:36px}.workspace-picker{min-height:56px}.sidebar .brand{line-height:34px}.workspace-select-wrap{padding:10px 0}.sidebar .second-caption{margin-top:10px}}
@media(max-width:1000px){.main-wrap .codex-search{width:100%}.web-recipient-row{gap:10px}.web-recipient-row>label{flex-direction:column;align-items:flex-start}.web-recipient-row #recipient-list{align-self:flex-end;margin-bottom:2px}.discussion-panel .composer{padding:16px}.discussion-panel .discussion-messages{padding:18px}}
@media(prefers-reduced-motion:reduce){.loading-track span{animation:none}.codex-drawer *{scroll-behavior:auto!important;transition:none!important}}
html.theme-changing :is(body,.main-wrap,.topbar,#main,.footer,.panel,.composer,.discussion-message,.drawer,.drawer-header,.drawer-body,.drawer-footer,.codex-history-bubble,.codex-code-block,.codex-code-header,.select-options,.select-option,.select-trigger,.codex-toolbar,.codex-project-toggle,.codex-thread,.codex-thread-icon,.badge,.btn,input,textarea,dialog,.bottom-note,.notice-bar){transition:background-color .18s ease,color .18s ease,border-color .18s ease!important}
.codex-image-viewer .codex-gallery-prev,.codex-image-viewer .codex-gallery-next{position:fixed;top:50%;display:grid;place-items:center;width:44px;height:44px;border:1px solid #ffffff30;background:#20202acc;color:#fff;border-radius:50%;z-index:2;transform:translateY(-50%);cursor:pointer}.codex-image-viewer .codex-gallery-prev{left:22px}.codex-image-viewer .codex-gallery-next{right:22px}.codex-image-viewer .codex-gallery-prev svg{transform:rotate(180deg)}.codex-image-viewer .codex-gallery-prev svg,.codex-image-viewer .codex-gallery-next svg{width:20px;height:20px}.codex-image-viewer .codex-gallery-prev:disabled,.codex-image-viewer .codex-gallery-next:disabled{opacity:.25;cursor:default}.codex-image-viewer>img{max-width:calc(100vw - 140px);will-change:transform;transform-origin:center}.codex-image-viewer .codex-gallery-caption{color:#eeeaf3;font-size:12px;text-align:center}.codex-image-viewer .codex-gallery-count{font-variant-numeric:tabular-nums;color:var(--tandem-tone-bdb5cd,#bdb5cd);font-size:11px;margin-right:8px}@media(max-width:600px){.codex-image-viewer .codex-gallery-prev{left:8px}.codex-image-viewer .codex-gallery-next{right:8px}.codex-image-viewer>img{max-width:calc(100vw - 80px)}.codex-image-viewer .codex-gallery-prev,.codex-image-viewer .codex-gallery-next{width:32px;height:40px}}
.sidebar nav{display:flex;flex-direction:column;gap:0}.sidebar-bottom{margin-top:auto;padding-top:24px}.main-wrap .search-box{display:flex;align-items:center;gap:10px;width:240px;max-width:30vw;min-height:38px;padding:0 10px;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-input)}.main-wrap .search-box input{padding:8px 0;min-width:0;flex:1;width:100%;background:transparent!important;border:0!important;font-size:12px;outline:none!important;box-shadow:none!important}.main-wrap .search-box:focus-within{border-color:var(--ui-accent)}.codex-action>summary>span:nth-child(2){overflow:hidden;white-space:nowrap;text-overflow:ellipsis;min-width:0}
#web-pair-form>.modal-body{max-height:calc(88dvh - 150px);overflow:auto;scrollbar-width:thin;scrollbar-color:var(--ui-border) transparent}dialog:has(#web-pair-form){max-height:90dvh;overflow:hidden}.codex-drawer .codex-code-block pre{max-height:340px;overflow:auto;white-space:pre-wrap}.codex-drawer .codex-action>summary>span:nth-child(2){line-height:1.6}
/* Personal palette controls share the profile's appearance preferences. */
.appearance-colors{padding:20px}.appearance-colors h2{font-size:14px;margin:0 0 8px}.appearance-colors>p{font-size:11px;line-height:1.6;color:var(--ui-muted);margin:0 0 18px}.appearance-color-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.appearance-color-field{min-width:0}.appearance-color-field>strong{display:block;font-size:12px;margin-bottom:6px}.appearance-color-field>small{display:block;color:var(--ui-muted);font-size:10px;line-height:1.5;min-height:30px}.appearance-color-inputs{display:flex;align-items:center;gap:9px;margin:10px 0}.appearance-color-inputs input[type=color]{width:44px;height:36px;padding:3px;flex:none;cursor:pointer;border-radius:7px;border:1px solid var(--ui-border);background:var(--ui-input)}.appearance-color-inputs input[type=text]{min-width:0;width:100%;height:36px;padding:6px 9px!important;font-size:12px;font-family:Consolas,monospace;border-radius:7px}.appearance-color-swatches{display:flex;gap:7px;flex-wrap:wrap}.appearance-color-swatches button{width:23px;height:23px;padding:0;border-radius:50%;background:var(--swatch);border:3px solid var(--ui-panel);box-shadow:0 0 0 1px var(--ui-border);cursor:pointer}.appearance-color-swatches button.selected{box-shadow:0 0 0 2px var(--ui-text)}.appearance-color-swatches button:focus-visible{outline:2px solid var(--ui-text);outline-offset:3px}
html[data-custom-primary] .btn-primary{background:var(--palette-primary)!important;border-color:var(--palette-primary)!important;color:var(--palette-primary-ink)!important}html[data-custom-primary] .btn-primary:hover{filter:brightness(.94)}html[data-custom-primary] :is(input[type=checkbox],input[type=radio],input[type=range]){accent-color:var(--palette-primary)}
.main-wrap .codex-connection-copy strong{color:var(--ui-text)!important}
@media(max-width:480px){.appearance-color-grid{grid-template-columns:1fr}.appearance-color-field>small{min-height:0}.appearance-colors{padding:16px}}
.sidebar .profile-open{display:flex;align-items:center;gap:10px;min-width:0;flex:1;padding:5px 3px;border-radius:8px;background:transparent;color:inherit;text-align:left;cursor:pointer}.sidebar .profile-open:hover{background:#37333f}.profile-copy{display:flex;flex-direction:column;min-width:0;gap:3px}.profile-copy>span{font-size:10px;color:var(--tandem-tone-aaa4bb,#aaa4bb)}.profile-avatar{overflow:hidden;border-radius:50%}.profile-avatar img{display:block;object-fit:cover;width:100%;height:100%}.profile-settings{display:flex;flex-direction:column;align-items:center;text-align:center;gap:16px}.profile-settings h3,.profile-settings p{margin:0}.profile-settings .profile-avatar-large{width:112px;height:112px}.profile-avatar-large .chatgpt-icon{width:68px;height:68px}.profile-settings small{font-size:11px;color:var(--ui-muted)}.profile-upload{position:relative;cursor:pointer;overflow:hidden}.profile-upload input{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}.profile-upload:focus-within{outline:2px solid var(--ui-accent);outline-offset:3px}.profile-settings .form-error{min-height:0}.profile-settings .form-error:empty{display:none}
@media(max-width:760px){.sidebar .profile-open{justify-content:center;flex:none;padding:3px}.sidebar .profile-copy{display:none}}
:is(summary,.select-trigger,.select-option,.workspace-picker,.web-project-menu button,.codex-project-toggle,.codex-tabs button,.profile-open){-webkit-user-select:none;user-select:none}
.codex-drawer details[data-disclosure-open="false"]>summary .codex-action-chevron{transform:rotate(0deg)!important}
/* Shared branding and stable controls. */
.brand-dot,.appearance-wordmark span,.loading-brand strong>span,.landing-brand .brand-dot{color:var(--palette-secondary,#9cba70)!important}
.loading-rings{width:58px;height:42px}.loading-rings i+i{left:18.4px}
@property --loader-hole{syntax:"<length>";inherits:false;initial-value:0px}
.loading-theme-backdrop{position:absolute;inset:0;pointer-events:none}
.web-loading .loading-brand strong>span{transition:color .65s ease-in-out}
@media(prefers-reduced-motion:reduce){.web-loading .loading-brand strong>span{transition:none}}
html .web-loading.web-loading-overlay{position:fixed;inset:0;z-index:1000;isolation:isolate;min-height:0;max-width:none;width:100%;height:100dvh;margin:0;overflow:hidden;background:transparent;pointer-events:none}
.loading-veil{position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 42%,var(--tandem-tone-e6ddf7,#e6ddf7),transparent 55%),var(--ui-bg);mask-image:radial-gradient(circle at 50% 50%,transparent var(--loader-hole),#000 calc(var(--loader-hole) + 1px))}
html[data-theme=dark] .web-loading .loading-veil{background:radial-gradient(ellipse at 50% 42%,var(--tandem-tone-332b49,#332b49),transparent 55%),var(--ui-bg)}
.web-loading-overlay .loading-brand{position:relative;flex:none}.web-loading-overlay .loading-rings{flex:none;z-index:1;transform-origin:20px 21px}.web-loading-overlay .loading-rings i{transform-origin:center}
.web-loading-overlay.is-opening .loading-rings{will-change:transform}.web-loading-overlay.is-opening .loading-track span{animation-play-state:paused}
.loading-portal{position:absolute;inset:0;z-index:2;width:100%;height:100%;overflow:hidden;visibility:hidden;pointer-events:none}.loading-portal circle:first-child{stroke:var(--palette-primary,#8060c5)}.loading-portal circle+circle{stroke:var(--palette-secondary,#9cba70)}
.appearance-slider output{display:inline-block;flex:none;width:7ch;text-align:right;font-variant-numeric:tabular-nums;line-height:1.4;contain:layout paint;transition:none!important;animation:none!important;opacity:1!important}
.select-option{align-items:center;min-height:32px;padding:7px 9px;line-height:1.4;gap:12px}.select-option>span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:0}.select-option>svg{width:13px;height:13px}
.web-source .tandem-select{width:245px;max-width:min(245px,55vw)}.select-options{padding:4px;box-shadow:0 8px 24px #00000018}
.web-recipient-row[hidden]{display:none!important}
.plan-stage-fields{padding:0;margin:20px 0;border:0;min-width:0}.plan-stage-fields legend{font-size:12px;font-weight:600;color:var(--ui-text);margin-bottom:10px}.plan-stage-field{display:flex;gap:8px;align-items:flex-end;margin-bottom:10px}.plan-stage-field label{flex:1;min-width:0;display:flex;flex-direction:column;gap:6px;font-size:11px}.plan-stage-field input{width:100%}.plan-stage-field>.icon-button{margin-bottom:3px;flex:none}.plan-stage-fields>.btn{margin-top:3px}
.codex-tools-body{padding-top:0}.tools-project{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--ui-border);background:var(--ui-soft);border-radius:10px}.tools-project>span{display:grid;place-items:center;width:42px;height:42px;flex:none;border-radius:10px;background:var(--ui-panel);color:var(--ui-accent)}.tools-project svg{width:27px;height:27px}.tools-project strong,.tools-project small{display:block}.tools-project strong{font-size:14px;color:var(--ui-text)}.tools-project small{font-size:11px;color:var(--ui-muted);margin-top:4px}.tools-capabilities{display:grid;gap:16px;padding:23px 3px}.tools-capabilities>div{display:flex;gap:12px;align-items:center}.tools-capabilities svg{width:19px;height:19px;flex:none;color:var(--ui-accent)}.tools-capabilities strong,.tools-capabilities small{display:block}.tools-capabilities strong{font-size:12px;color:var(--ui-text)}.tools-capabilities small{font-size:11px;line-height:1.5;margin-top:3px;color:var(--ui-muted)}.tools-steps{margin:0;padding:16px 16px 16px 34px;border-top:1px solid var(--ui-border);font-size:11px;line-height:1.8;color:var(--ui-muted)}
/* The animated scene lives behind a single frosted sheet; content stays sharp. */
.tandem-welcome{position:relative;isolation:isolate;width:max-content;max-width:100%;margin:0 auto;padding:9vh 42px;min-height:100dvh}.landing-scene{position:fixed;inset:0;z-index:-1;pointer-events:none;overflow:hidden;background:#eae9ef}.landing-floaters{position:absolute;inset:-8%;filter:blur(3px);opacity:.7}.landing-floater{position:absolute;left:var(--x);top:var(--y);width:var(--size);height:var(--size);display:grid;place-items:center;animation:landing-drift var(--duration) ease-in-out var(--delay) infinite alternate;will-change:transform;color:#9e84cd}.landing-floater:nth-child(even){color:#a6bd7e}.landing-floater>span,.landing-floater svg{display:block;width:100%;height:100%}.landing-floater.orb{border-radius:50%;background:radial-gradient(circle at 30% 25%,#d2c3ec,#8f76b650);box-shadow:inset -15px -20px 35px #715a9b25}.landing-floater.square{border:18px solid currentColor;border-radius:25%;opacity:.65}.landing-floater.ring{border:16px solid currentColor;border-radius:50%;opacity:.65}.landing-frost{position:absolute;inset:0;background:linear-gradient(120deg,#eeedf375,#eeedf38c 45%,#eeedf36b);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}.landing-frost:after{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 36% 46%,#eeedf380,transparent 66%)}
.tandem-welcome .landing-brand{position:relative;margin-bottom:12vh}.landing-hero{--landing-title-size:clamp(35px,4.7vw,65px);--landing-icon-size:200px;display:grid;grid-template-columns:max-content var(--landing-icon-size);align-items:start;column-gap:36px}.tandem-welcome h1{font-size:var(--landing-title-size);line-height:1.12;letter-spacing:-2px;margin:0 0 28px;white-space:nowrap;font-weight:500}.landing-copy>p{font-size:17px;line-height:1.8;color:#756b80;max-width:620px;margin:0 0 26px}.landing-copy>.btn{font-size:14px;min-height:40px}.landing-codex{width:var(--landing-icon-size);height:var(--landing-icon-size);display:grid;place-items:center;align-self:start;margin-top:calc(var(--landing-title-size)*1.68 - var(--landing-icon-size)/2);filter:drop-shadow(0 12px 24px #56496912)}.landing-codex img{display:block;width:100%;height:100%;opacity:.88}
@keyframes landing-drift{0%{transform:translate3d(0,0,0) rotate(-12deg)}45%{transform:translate3d(calc(var(--dx)*.45),var(--dy),0) rotate(14deg)}100%{transform:translate3d(var(--dx),calc(var(--dy)*-.3),0) rotate(var(--turn))}}
@media(max-width:900px){.landing-hero{--landing-title-size:clamp(32px,4.8vw,52px);--landing-icon-size:155px;column-gap:24px}.landing-copy{max-width:calc(100vw - 263px)}.tandem-welcome h1{letter-spacing:-1.5px}.landing-copy>p{font-size:15px;max-width:490px}}
@media(max-width:600px){.tandem-welcome{padding:7vh 24px}.tandem-welcome .landing-brand{margin-bottom:10vh}.landing-hero{grid-template-columns:1fr;gap:32px}.landing-copy{max-width:none}.tandem-welcome h1{font-size:clamp(29px,7vw,41px);letter-spacing:-1px;white-space:normal}.landing-codex{width:100px;height:100px;justify-self:end;margin-top:0}.landing-floater:nth-child(n+13){display:none}}
@media(prefers-reduced-motion:reduce){.landing-floater{animation:none;will-change:auto}}
.landing-actions{display:flex;align-items:center;gap:22px}.landing-actions>.btn{font-size:14px;min-height:42px;padding:0 22px}.landing-register{color:#66567e;font-size:14px;text-decoration:none}.landing-register:hover{text-decoration:underline}
.account-page{position:relative;isolation:isolate;min-height:100dvh;padding:44px 24px 60px;display:flex;align-items:center;flex-direction:column;color:#2b2733}.account-page>.landing-brand{margin:0 0 30px;font-size:26px}.account-page>.landing-brand .brand-mark{width:52px;height:36px}.account-back{position:absolute;left:40px;top:42px;font-size:14px;color:#6b6178;text-decoration:none}.account-back:hover{color:#44344f}.account-card{width:100%;max-width:430px;padding:30px;background:#fffffff0;border:1px solid #ffffff;border-radius:24px;box-shadow:0 18px 60px #39304412;backdrop-filter:blur(18px)}.account-heading{margin-bottom:24px}.account-eyebrow{font-size:9px;font-weight:700;letter-spacing:1.5px;color:#8b7a9c}.account-heading h1{font-size:29px;line-height:1.2;letter-spacing:-.8px;margin:12px 0 10px;font-weight:600}.account-heading p{font-size:13px;line-height:1.6;margin:0;color:#82748e}.account-providers{display:grid;gap:10px}.account-providers>button,.account-providers>a{position:relative;display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:47px;padding:10px 14px;border:1px solid #dfd9e6;border-radius:12px;background:#fff;color:#3b3444;font-family:inherit;font-size:13px;font-weight:500;text-decoration:none;cursor:pointer;transition:background 140ms,border-color 140ms}.account-providers>button:not(:disabled):hover,.account-providers>a:hover{background:#f6f2fa;border-color:#b9a6cf}.account-providers svg,.account-providers img{flex:none;width:19px;height:19px}.account-providers small{position:absolute;right:12px;font-size:9px;color:#9b8ca6}.account-providers>button:disabled{cursor:default;color:#8b8296;background:#faf9fc}.account-providers>button:disabled svg{opacity:.6}.account-divider{display:flex;align-items:center;gap:14px;margin:24px 0;font-size:11px;color:#a297ac}.account-divider:before,.account-divider:after{content:'';flex:1;height:1px;background:#eae5ee}.account-card fieldset{border:0;padding:0;margin:0;min-width:0;display:flex;flex-direction:column;gap:16px}.account-card label{display:block;font-size:12px;font-weight:500;color:#62556f}.account-card input{width:100%;height:46px;border:1px solid #ddd5e6;border-radius:11px;background:#fcfbfd;color:#34283f;padding:11px 13px;margin-top:7px;font-size:14px;outline:none;transition:border-color 140ms,box-shadow 140ms}.account-card input:focus{border-color:#987acd;box-shadow:0 0 0 3px #9273c91c}.account-card input:disabled{background:#f5f3f7;color:#a298ab}.account-card input::placeholder{color:#a49aac}.account-password{position:relative}.account-password input{padding-right:80px}.account-show{position:absolute;right:10px;top:21px;border:0;background:none;color:#877397;font-size:10px;cursor:pointer}.account-submit{min-height:46px;border:0;border-radius:11px;background:#7f60c6;color:#fff;font-size:14px;font-weight:600;cursor:pointer;transition:background 140ms}.account-submit:hover{background:#6e4eb5}.account-submit:disabled{background:#c5b8dc;cursor:default}.account-text-button{border:0;background:transparent;padding:0;color:#8059ba;font:inherit;cursor:pointer}.account-text-button:hover{text-decoration:underline}.account-forgot{align-self:flex-end;font-size:11px;margin-top:-5px}.account-switch{padding-top:24px;margin-top:24px;border-top:1px solid #ebe5f1;font-size:12px;text-align:center;color:#81718f;line-height:1.8}.account-switch>button{display:inline-block;margin-left:4px}.account-error,.account-success,.account-setup{font-size:12px;line-height:1.7;padding:11px 13px;border-radius:10px;margin:18px 0 0}.account-error{color:#a43a58;background:#fff1f3}.account-success{color:#51662d;background:#f0f5e8}.account-setup{color:#806d95;background:#f5f1fa;margin:0 0 18px}.profile-signout-form{display:contents}.account-card :focus-visible{outline:2px solid #9a7fc8;outline-offset:3px}
@media(max-width:600px){.landing-hero{--landing-title-size:clamp(29px,7vw,41px)}.landing-actions{gap:18px}.account-page{padding:74px 18px 30px}.account-back{left:24px;top:26px}.account-card{padding:26px 22px;border-radius:21px}.account-heading h1{font-size:27px}}

.account-card .account-otp{font-size:24px;letter-spacing:8px;text-align:center;font-variant-numeric:tabular-nums;height:56px}.account-resend{display:block;margin:18px auto 0;font-size:12px}

/* Shared controls and the resumed UI corrections. */
.appearance-controls-column{min-width:0;display:flex;flex-direction:column;gap:16px}.appearance-controls-column .appearance-theme{flex:none}.appearance-grid{align-items:start}.appearance-preview-column{align-content:start}
.project-heading-icon{display:grid;place-items:center;flex:none;width:40px;height:40px;border:1px solid var(--ui-border);border-radius:11px;background:var(--ui-selected);color:var(--ui-accent)}.project-heading-icon svg{width:24px;height:24px}.project-icon-picker .project-glyph-game{width:27px;height:27px}
.main-wrap input[type=checkbox],dialog input[type=checkbox]{appearance:none;-webkit-appearance:none;display:inline-grid;place-content:center;vertical-align:middle;flex:none;width:17px;height:17px;min-width:17px;padding:0;margin:0;border:1px solid var(--ui-border);border-radius:5px;background:var(--ui-input);color:var(--palette-primary-ink,#fff);cursor:pointer;transition:background 120ms,border-color 120ms}.main-wrap input[type=checkbox]::after,dialog input[type=checkbox]::after{content:'';width:8px;height:5px;border:2px solid currentColor;border-top:0;border-right:0;transform:translateY(-1px) rotate(-45deg);opacity:0}.main-wrap input[type=checkbox]:checked,dialog input[type=checkbox]:checked{background:var(--palette-primary,#8060c5);border-color:var(--palette-primary,#8060c5)}.main-wrap input[type=checkbox]:checked::after,dialog input[type=checkbox]:checked::after{opacity:1}.main-wrap input[type=checkbox]:focus-visible,dialog input[type=checkbox]:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}.main-wrap input[type=checkbox]:disabled,dialog input[type=checkbox]:disabled{opacity:.5;cursor:default}.web-privacy,.web-setup-option,.appearance-follow{gap:9px}
.channel-tabs{display:flex;gap:5px;overflow-x:auto;overscroll-behavior-x:contain;padding:8px 16px 0;background:var(--ui-soft);border-bottom:1px solid var(--ui-border);scrollbar-width:thin}.channel-tabs [role=tab]{position:relative;flex:0 0 auto;max-width:250px;padding:11px 17px;margin-bottom:-1px;border:1px solid transparent;border-bottom-color:var(--ui-border);border-radius:12px 12px 0 0;background:transparent;color:var(--ui-muted);font:inherit;font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;cursor:pointer;user-select:none}.channel-tabs [role=tab]:hover{background:var(--ui-selected);color:var(--ui-text)}.channel-tabs [aria-selected=true]{background:var(--ui-panel);border-color:var(--ui-border);border-bottom-color:var(--ui-panel);color:var(--ui-accent);font-weight:600}.channel-tabs [aria-selected=true]::before{content:'';position:absolute;left:15px;right:15px;top:0;height:2px;background:var(--ui-accent);border-radius:2px}.channel-tabs [role=tab]:focus-visible{outline:2px solid var(--ui-accent);outline-offset:-4px}#web-channel-panel{min-width:0}
.codex-history-text{overflow:hidden}.codex-list-pagination{justify-content:center}
.account-otp::placeholder{font-size:14px;letter-spacing:normal}
@media(max-width:760px){.channel-tabs{padding-left:10px;padding-right:10px}.channel-tabs [role=tab]{padding:10px 13px;max-width:210px}.appearance-controls-column{gap:16px}}
@media(max-width:600px){.landing-hero{min-width:0;width:100%;grid-template-columns:minmax(0,1fr)}}
.channel-tabs{flex-shrink:0;min-height:46px}#web-channel-panel{display:flex;flex-direction:column;flex:1;min-height:0}#web-channel-panel>.discussion-messages{flex:1;min-height:0}#web-channel-panel>.composer{flex:none}
@media(max-width:760px){#web-channel-panel>.discussion-messages{flex:none;height:280px;min-height:180px;max-height:none}}

.discussion-panel .composer{padding:14px 20px}.discussion-panel .composer textarea{height:72px;min-height:72px;max-height:180px}.discussion-panel .web-recipient-row{margin-bottom:10px;min-height:38px}.discussion-panel .discussion-messages>.empty-state{padding:20px 16px}
.connection-options input[type=radio]{appearance:none;-webkit-appearance:none;width:16px;height:16px;flex:none;margin:0;border:1px solid var(--ui-border);border-radius:50%;background:var(--ui-panel);cursor:pointer}.connection-options input[type=radio]:checked{border-color:var(--ui-accent);background:var(--ui-accent);box-shadow:inset 0 0 0 3px var(--ui-panel)}.connection-options input[type=radio]:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}
@media(max-width:760px){.sidebar nav button{font-size:0;gap:0;padding-left:0;padding-right:0}}
/* Profile actions stay beside the sidebar identity; only photo cropping opens a dialog. */
.profile-menu{position:fixed;z-index:90;box-sizing:border-box;padding:9px;border:1px solid #494351;border-radius:14px;background:#25242d;color:#f1edf7;box-shadow:0 14px 40px #0005;font-size:12px;line-height:1.5;overflow:auto}.profile-menu[hidden]{display:none!important}.profile-menu-heading{display:flex;align-items:center;gap:10px;padding:9px 8px 13px;margin-bottom:5px;border-bottom:1px solid #46414e}.profile-menu-heading strong{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:14px}.profile-menu-heading .profile-avatar{width:45px;height:45px}.profile-menu>[role=menuitem]{display:flex;align-items:center;gap:10px;width:100%;min-height:41px;padding:10px;border:0;border-radius:8px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}.profile-menu>[role=menuitem]:hover,.profile-menu>[role=menuitem]:focus-visible{background:#38333f}.profile-menu svg{width:17px;height:17px;flex:none}.profile-menu .profile-avatar svg{width:28px;height:28px}.profile-menu-title{display:flex;align-items:center;gap:9px;margin:0 0 13px}.profile-menu-title button{width:28px;height:28px;color:inherit}.profile-menu .field{display:block;font-size:11px;color:#c7bed4}.profile-menu input{display:block;width:100%;box-sizing:border-box;border:1px solid #595062;border-radius:8px;padding:10px;margin-top:6px;background:#1e1d25;color:#f5effc;font:inherit;font-size:14px;outline:none}.profile-menu input:focus{border-color:var(--palette-primary,#9d7bd9);box-shadow:0 0 0 2px #b99ade33}.profile-menu-hint{color:#b1a7bf;font-size:10px;margin:9px 0 14px}.profile-menu-actions{display:flex;justify-content:flex-end;gap:7px}.profile-menu .btn{font-size:11px;border-color:#4e465b;background:#302b39;color:#ede7f6}.profile-menu .btn-primary{background:var(--palette-primary,#8060c5);border-color:transparent;color:var(--palette-primary-ink,#fff)}.profile-name-reset{display:block;border:0;padding:10px 2px 2px;background:none;color:#c2aedc;font:inherit;font-size:10px;cursor:pointer}.profile-menu-error{font-size:11px;color:#ffafb9;margin:8px}.profile-menu-error:empty{display:none}.profile-menu button:disabled,.profile-menu input:disabled{opacity:.5;cursor:wait}
#modal.profile-crop-dialog{width:min(440px,calc(100vw - 28px));max-height:calc(100dvh - 24px)}.avatar-crop-editor{display:flex;flex-direction:column;align-items:center;gap:13px}.avatar-crop-editor>p{margin:0;color:var(--ui-muted);font-size:12px;text-align:center}.avatar-crop-stage{position:relative;width:min(280px,100%);aspect-ratio:1;flex:none;overflow:hidden;background:#15141a;border-radius:12px;touch-action:none;cursor:grab;user-select:none}.avatar-crop-stage.dragging{cursor:grabbing}.avatar-crop-stage:focus-visible{outline:2px solid var(--ui-accent);outline-offset:4px}.avatar-crop-stage canvas{display:block;width:100%;height:100%}.avatar-crop-circle{position:absolute;inset:0;box-sizing:border-box;border:2px solid #fff;border-radius:50%;box-shadow:0 0 0 100px #0009;pointer-events:none}.avatar-crop-label{display:flex;justify-content:space-between;width:100%;font-size:12px;color:var(--ui-muted)}.avatar-crop-label output{color:var(--ui-text);font-variant-numeric:tabular-nums}.avatar-crop-tools{display:flex;gap:12px;align-items:center;width:100%}.avatar-crop-tools input{min-width:0;flex:1;accent-color:var(--ui-accent)}.avatar-crop-tools .btn{width:34px;height:34px;padding:0;justify-content:center;font-size:20px}.avatar-crop-editor .form-error:empty{display:none}.profile-crop-dialog .modal-footer{gap:9px}.profile-crop-dialog .modal-footer .btn{white-space:normal}
@media(max-height:650px),(max-width:360px){.avatar-crop-stage{width:min(220px,100%)}.avatar-crop-editor{gap:10px}}
.profile-menu-title .icon-button svg{transform:rotate(90deg)}

/* Keep identities readable beside the larger profile photos at every width. */
.web-members strong{font-size:16px;line-height:1.4;min-width:0;overflow-wrap:anywhere}
.codex-file-attachment{display:flex;align-items:center;gap:10px;max-width:min(360px,100%);padding:10px 13px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-input);color:var(--ui-text);font-size:12px}.codex-file-attachment>svg{width:20px;height:20px}.codex-file-attachment>span{min-width:0}.codex-file-attachment strong{display:block;overflow-wrap:anywhere}.codex-file-attachment small{display:block;margin-top:4px;color:var(--ui-muted);font-size:10px}

.web-recipient-row{align-items:center;min-height:40px}.web-recipient-row>label{margin:0;align-items:center}.web-recipient-row #recipient-list:not([hidden]){align-self:center;align-items:center;max-height:none;overflow-y:hidden;margin:0;padding:0;flex-wrap:nowrap}.web-recipient-row #recipient-list label{margin:0;line-height:18px;padding:8px 10px}.web-recipient-row #recipient-list input{margin:0;flex:none}.machine-link-hint{font-size:11px;line-height:1.6;color:var(--ui-muted);margin:12px 0 0}

/* A rounded message bubble meets the avatar with a curved tail. */
.discussion-panel .discussion-messages{gap:20px}
.discussion-panel .discussion-message{display:flex;align-items:flex-end;gap:10px;padding:0;max-width:min(88%,920px);min-width:0;align-self:flex-start;background:transparent!important;border:0!important}
.discussion-panel .discussion-message.owner{align-self:flex-end;flex-direction:row-reverse}
.discussion-panel .discussion-avatar{margin-bottom:1px;flex:none}
.discussion-panel .discussion-avatar>svg{width:28px;height:28px}
.discussion-panel .discussion-message>.discussion-bubble{--channel-bubble:var(--ui-soft);position:relative;min-width:0;padding:14px 18px;background:var(--channel-bubble)!important;border:0!important;border-radius:16px 16px 16px 4px;color:var(--ui-text)!important;font-size:14px;line-height:1.65;white-space:normal;overflow-wrap:anywhere}
.discussion-panel .owner>.discussion-bubble{--channel-bubble:var(--ui-selected);border-radius:16px 16px 4px 16px}
.discussion-panel .discussion-bubble::before{content:'';position:absolute;left:-10px;bottom:0;width:12px;height:18px;background:radial-gradient(circle at -2px 0,transparent 14px,var(--channel-bubble) 14.5px)}
.discussion-panel .owner>.discussion-bubble::before{left:auto;right:-10px;transform:scaleX(-1)}
.discussion-panel .discussion-label{display:flex;align-items:baseline;gap:18px;margin-bottom:7px;font-size:13px;color:var(--ui-text)}
.discussion-panel .discussion-label strong{font-size:13px;line-height:1.4;min-width:0}
.discussion-panel .discussion-label time{font-size:10px;color:var(--ui-muted);margin-left:auto;white-space:nowrap}
.discussion-text{white-space:pre-wrap;overflow-wrap:anywhere}
.discussion-panel .web-recipients{display:block;font-size:10px;color:var(--ui-muted);margin-top:10px}
.channel-files{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px;min-width:0}
.channel-file{min-width:0;max-width:360px;flex:0 1 auto}.channel-file img,.channel-file video{display:block;max-width:min(100%,360px);max-height:300px;border-radius:10px;object-fit:contain;background:var(--ui-input)}.channel-file audio{max-width:100%}
.channel-file-link{display:flex;align-items:center;gap:9px;padding:9px 11px;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:8px;font-size:12px;color:var(--ui-text);max-width:360px}.channel-file-link svg{width:17px;height:17px}.channel-file-link span{min-width:0;overflow-wrap:anywhere}
.channel-pending-files{display:flex;flex-wrap:wrap;gap:8px;margin:0}.channel-pending-files:not(:empty){margin:0 0 12px}
.channel-pending-file{display:flex;align-items:center;gap:9px;max-width:280px;padding:7px 9px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-input);color:var(--ui-text);font-size:11px}.channel-pending-file>img{width:42px;height:42px;object-fit:cover;border-radius:6px}.channel-pending-file>span{min-width:0}.channel-pending-file strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.channel-pending-file small{display:block;margin-top:3px;color:var(--ui-muted)}.channel-pending-file .icon-button{width:26px;height:26px;flex:none}
.discussion-panel .composer-bottom{gap:12px;flex-wrap:wrap}.channel-compose-help{display:flex;align-items:center;gap:12px;flex:1;min-width:190px}.channel-compose-help>span{font-size:10px;line-height:1.6;color:var(--ui-muted)}.discussion-panel .composer-bottom>span{font-size:10px;color:var(--ui-muted)}
@media(max-width:760px){.discussion-panel .discussion-message{max-width:100%;gap:9px}.discussion-panel .discussion-message>.discussion-bubble{padding:12px 13px}.discussion-panel .discussion-label{flex-wrap:wrap;gap:3px 12px}.discussion-panel .discussion-label time{white-space:normal}.channel-compose-help{flex-basis:100%}.channel-pending-file{max-width:100%}}

@media(max-width:760px){.web-recipient-row{flex-wrap:wrap}.web-recipient-row>label{width:100%}.web-recipient-row #recipient-list:not([hidden]){flex-basis:100%;width:100%}}

/* Consistent vector strokes at the actual display size, including small actions. */
svg.ui-icon,svg.project-glyph{stroke-width:2;shape-rendering:geometricPrecision}
.sidebar nav button svg.ui-icon,.sidebar nav button svg.codex-app-icon{width:22px;height:22px}
.profile-menu svg.ui-icon{width:20px;height:20px}
.btn svg.ui-icon{width:18px;height:18px}

/* Keep the disclosure arrow on the group heading, without repeating it inside. */
.codex-action-group-body .codex-action-chevron{display:none}
.codex-action-group-body summary{list-style:none}
.codex-action-group-body summary::-webkit-details-marker{display:none}

.channel-image-thumb{display:block;max-width:100%;padding:0;border:0;border-radius:10px;background:none;cursor:zoom-in}
.channel-image-thumb:focus-visible{outline:2px solid var(--ui-accent);outline-offset:3px}

/* Outrank the base light .field styles in both task creation and step notes. */
.main-wrap .field textarea,dialog .field textarea{background:var(--ui-input);color:var(--ui-text);border-color:var(--ui-border)}
.plan-stage-field input{padding:10px 12px;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-input);color:var(--ui-text);font-size:13px;line-height:1.5}

/* Visibility is a personal preference; letters stay opaque and adapt to the surface. */
:root{--ui-selection-bg:var(--palette-selection-light,#634a99);--ui-selection-ink:var(--palette-selection-light-ink,#ffffff)}
html[data-theme=dark]{--ui-selection-bg:var(--palette-selection-dark,#cbbfe7);--ui-selection-ink:var(--palette-selection-dark-ink,#000000)}
::selection{background:color-mix(in srgb,var(--ui-selection-bg) var(--ui-selection-opacity,100%),transparent);color:var(--selection-local-ink,var(--ui-selection-ink));text-shadow:none}
@media(forced-colors:active){::selection{background:Highlight;color:HighlightText}}
.appearance-selection>p{font-size:12px;line-height:1.6;color:var(--ui-muted);margin:0 0 16px}.appearance-selection .appearance-slider{margin-bottom:10px}.appearance-selection-caption{font-size:11px!important;margin-bottom:14px!important}.appearance-selection-preview{border:1px solid var(--ui-border);border-radius:8px;padding:14px;background:var(--ui-input);font-size:13px;line-height:1.9}.appearance-selection-sample{background:color-mix(in srgb,var(--ui-selection-bg) var(--ui-selection-opacity,100%),transparent);color:var(--selection-local-ink,var(--ui-selection-ink));padding:2px 0}
.quick-chat-launcher{position:fixed;right:calc(350px + 2vw);top:11px;bottom:auto;z-index:32;display:flex;align-items:center;border:1px solid var(--ui-border);border-radius:22px;background:var(--ui-panel);color:var(--ui-text);box-shadow:0 4px 20px #0002;overflow:hidden}
.quick-chat-launcher>button{display:flex;align-items:center;justify-content:center;gap:8px;height:42px;padding:0 15px;border:0;background:transparent;color:inherit;font:inherit;font-size:12px;cursor:pointer}
.quick-chat-launcher>button:hover,.quick-chat-launcher>button[aria-expanded=true]{background:var(--ui-soft)}
.quick-chat-launcher>.quick-chat-open{cursor:grab;touch-action:none;user-select:none}.quick-chat-launcher.is-dragging>.quick-chat-open{cursor:grabbing}
.quick-chat-launcher>.quick-chat-settings{width:39px;padding:0 10px;border-left:1px solid var(--ui-border);color:var(--ui-muted)}
.quick-chat-launcher svg{width:18px;height:18px;flex:none}
.quick-chat-launcher button:focus-visible,.codex-quick-pin:focus-visible{outline:2px solid var(--ui-accent);outline-offset:-4px}
.codex-quick-pin{flex:none;color:var(--ui-muted);border-radius:6px}
.codex-quick-pin[aria-pressed=true]{color:var(--ui-accent);background:var(--ui-selected)}
.codex-quick-pin[aria-pressed=true] svg{fill:currentColor}
.codex-drawer.codex-quick-panel{top:84px;bottom:auto;right:24px;width:min(480px,calc(100vw - 32px));height:min(580px,calc(100dvh - 100px));border:1px solid var(--ui-border);border-radius:20px;box-shadow:0 16px 64px #0005;animation:quick-chat-in .18s cubic-bezier(.16,1,.3,1);transform-origin:top right}
.codex-quick-panel .drawer-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 17px;border-bottom:1px solid var(--ui-border);flex:none}
.codex-quick-panel .drawer-header[data-quick-chat-drag]{cursor:grab;touch-action:none;user-select:none}
.codex-quick-panel.is-dragging{animation:none!important}
.codex-quick-panel.is-dragging .drawer-header{cursor:grabbing}
.codex-quick-panel .drawer-header:focus-visible{outline:2px solid var(--ui-accent);outline-offset:-4px}
.codex-drawer.codex-quick-panel{z-index:33}
.quick-chat-heading{display:flex;align-items:center;gap:11px;min-width:0}
.quick-chat-heading>svg{width:28px;height:28px;flex:none;color:var(--ui-accent)}
.quick-chat-heading>span{min-width:0}
.quick-chat-heading strong{display:block;max-width:360px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:13px;line-height:1.5;letter-spacing:0}
.quick-chat-heading small{display:block;font-size:10px;color:var(--ui-muted);line-height:1.6}
.codex-quick-panel .drawer-header>.icon-button{width:30px;height:30px;flex:none}
.codex-quick-panel .drawer-body{flex:1;min-height:0;padding:12px 17px 16px;overscroll-behavior:contain}
.codex-quick-panel .drawer-body>h3{margin:16px 0 10px;font-size:12px}
.codex-quick-panel .policy-note{padding:10px;font-size:10px;line-height:1.6;margin:0 0 12px}
.codex-quick-panel .policy-note>svg{width:15px;height:15px;flex:none}
.codex-quick-panel .drawer-footer{padding:12px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex:none}
.codex-quick-panel .drawer-footer>.btn{padding:8px 10px;font-size:11px;min-height:34px}
.codex-quick-panel .codex-history-footnote{font-size:10px;line-height:1.6}
.codex-quick-panel .codex-history-message .codex-history-text{font-size:13px}
@keyframes quick-chat-in{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}
@media(max-width:760px){.quick-chat-launcher{right:65px;top:9px;bottom:auto}.quick-chat-launcher>button{height:38px;padding:0 12px;font-size:11px}.codex-drawer.codex-quick-panel{right:12px;top:70px;bottom:auto;width:calc(100vw - 24px);height:min(580px,calc(100dvh - 82px))}.codex-quick-panel .drawer-body{padding:12px}.quick-chat-heading strong{max-width:calc(100vw - 140px)}.main-wrap .codex-thread-main{min-width:0;flex:1 1 65%}}
@media(prefers-reduced-motion:reduce){.codex-drawer.codex-quick-panel{animation:none}}

/* Plans use the same palette and neutral progress track as the workspace. */
.main-wrap .plan-list :is(.plan-stage,.plan-step){background:var(--ui-input);border-color:var(--ui-border);color:var(--ui-text)}
.main-wrap .plan-stage-body{background:var(--ui-panel);border-color:var(--ui-border)}
.main-wrap .plan-stage-body>.plan-step{background:transparent}
.main-wrap .plan-stage :is(strong,p),.main-wrap .plan-excerpt-text{color:var(--ui-text)}
.main-wrap .plan-stage :is(small,.plan-no-note),.main-wrap .plan-open small{color:var(--ui-muted)}
.main-wrap .plan-stage-number{background:var(--ui-selected);color:var(--ui-accent)}
.main-wrap .plan-chevron{color:var(--ui-muted)}
.main-wrap .plan-stage[data-disclosure-open=false] .plan-chevron{transform:none}
.main-wrap .plan-stage[data-disclosure-open=true] .plan-chevron{transform:rotate(180deg)}
.main-wrap .plan-list progress{background:var(--ui-bg);box-shadow:inset 0 0 0 1px var(--ui-border)}
.main-wrap .plan-list progress::-webkit-progress-bar{background:var(--ui-bg);box-shadow:inset 0 0 0 1px var(--ui-border);border-radius:8px}
.main-wrap .plan-list progress::-webkit-progress-value{background:var(--palette-secondary);border-radius:8px}
.main-wrap .plan-list progress::-moz-progress-bar{background:var(--palette-secondary);border-radius:8px}
.main-wrap .plan-list :is(.plan-total-progress,.plan-stage-progress,.plan-step-progress)>strong{color:var(--ui-text)}
.main-wrap .plan-list .btn.btn-small{padding:8px 12px;min-height:34px;line-height:1.4;font-size:11px;white-space:normal;flex-shrink:0}
.main-wrap .plan-list .plan-delete{display:grid;place-items:center;padding:8px;width:34px}
.plan-delete svg{width:16px;height:16px}
.plan-stage-actions{align-items:center;gap:9px}
.plan-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:20px}
.plan-toolbar .plan-status-tabs{margin:0}
.main-wrap .plan-list :is(.plan-total-progress,.plan-stage-progress){display:grid;grid-template-columns:76px 150px 58px;gap:12px;width:308px;min-width:308px;align-items:center;flex:none}
.main-wrap .plan-list .plan-step-progress{display:grid;grid-template-columns:76px 150px 58px;gap:12px;width:308px;min-width:308px;margin-right:28px;align-items:center;flex:none}
.main-wrap .plan-list .plan-step-progress button{grid-column:1/-1;justify-self:end;margin:0}
.main-wrap .plan-list :is(.plan-total-progress,.plan-stage-progress,.plan-step-progress)>progress{width:150px;margin:0}
.main-wrap .plan-list :is(.plan-total-progress,.plan-stage-progress,.plan-step-progress)>strong{text-align:right;min-width:58px;font-variant-numeric:tabular-nums}
.plan-day-delta{display:flex;flex-direction:column;align-items:flex-end;gap:3px;white-space:nowrap;color:var(--ui-accent);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}.plan-day-delta small{color:var(--ui-muted);font-size:10px;font-weight:400;margin:0}.plan-day-delta.is-negative{color:var(--ui-text)}
.analytics-dialog{width:min(1120px,calc(100vw - 32px));max-width:1120px}.analytics-panel{padding:24px;min-width:0}.analytics-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:28px}.analytics-controls label{display:flex;flex-direction:column;gap:7px;font-size:11px;color:var(--ui-muted);min-width:110px;max-width:320px;flex:1}.analytics-controls :is(select,input){width:100%;min-width:0;border:1px solid var(--ui-border);border-radius:7px;background:var(--ui-input);color:var(--ui-text);padding:10px 12px;font:inherit;font-size:12px;min-height:38px;color-scheme:inherit}.analytics-kpis{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-bottom:28px}.analytics-kpis>div{padding:20px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-input);display:flex;flex-direction:column;gap:10px;min-width:0}.analytics-kpis strong{font-size:28px;font-variant-numeric:tabular-nums}.analytics-kpis :is(small,span){font-size:12px;color:var(--ui-muted);overflow-wrap:anywhere}.analytics-chart{margin:10px 0 18px;min-width:0}.analytics-chart-unit{font-size:11px;color:var(--ui-muted);margin-bottom:8px}.analytics-chart svg{width:100%;height:auto;min-height:160px;overflow:visible}.analytics-grid line{stroke:var(--ui-border);stroke-width:1}.analytics-grid text{fill:var(--ui-muted);font-size:10px}.analytics-line{fill:none;stroke:var(--palette-secondary);stroke-width:3;stroke-linejoin:round}.analytics-chart circle{fill:var(--palette-secondary);stroke:var(--ui-panel);stroke-width:2}.analytics-chart circle:focus{outline:none;stroke:var(--ui-accent);stroke-width:5}.analytics-note{color:var(--ui-muted);font-size:12px;line-height:1.7;margin:16px 0 0}.analytics-empty{padding:54px 20px;text-align:center;color:var(--ui-muted);border:1px dashed var(--ui-border);border-radius:10px;font-size:13px;line-height:1.7}.analytics-breakdown{margin:28px 0}.analytics-breakdown h2{font-size:16px;margin-bottom:0}.analytics-share{display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:8px 18px;padding:16px 0;border-bottom:1px solid var(--ui-border);font-size:13px}.analytics-share>span{overflow-wrap:anywhere}.analytics-share>strong{text-align:right;font-variant-numeric:tabular-nums}.analytics-share progress{grid-column:1/-1;background:var(--ui-bg);box-shadow:inset 0 0 0 1px var(--ui-border)}.analytics-share progress::-webkit-progress-bar{background:var(--ui-bg)}.analytics-share progress::-webkit-progress-value{background:var(--palette-secondary)}.analytics-share progress::-moz-progress-bar{background:var(--palette-secondary)}.analytics-share>small{color:var(--ui-muted);font-size:11px;grid-column:1/-1;text-align:right}
.task-channel-alert{display:inline-block;flex:none;width:5px;height:5px;border:0;border-radius:50%;background:color-mix(in srgb,var(--ui-muted) 72%,transparent);box-shadow:0 0 5px color-mix(in srgb,var(--ui-muted) 24%,transparent)}.task-channel-alert[hidden],.channel-unread-dot[hidden]{display:none!important}.sidebar nav .task-channel-alert{margin-left:4px}.channel-unread-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--ui-accent);flex:none;margin-left:6px}.channel-task-group summary .task-channel-alert{margin-left:0;margin-top:6px;flex:0 0 5px}.channel-stage-row [data-channel-tab]{position:relative}.channel-stage-row [data-channel-tab]>.channel-unread-dot{margin-left:auto;width:5px;height:5px;background:color-mix(in srgb,var(--ui-muted) 72%,transparent);box-shadow:0 0 5px color-mix(in srgb,var(--ui-muted) 24%,transparent)}.channel-tabs button{display:flex;align-items:center;gap:4px}
@media(max-width:800px){.main-wrap .plan-list :is(.plan-stage-progress,.plan-total-progress,.plan-step-progress){width:308px;min-width:0;max-width:100%;margin-right:0}.main-wrap .plan-list .plan-step-progress{margin-left:auto;margin-top:16px}.main-wrap .plan-list .plan-stage-progress{margin-left:auto}.analytics-panel{padding:16px}.analytics-controls label{max-width:100%;flex-basis:calc(50% - 12px)}.analytics-kpis{gap:12px}.analytics-kpis>div{padding:14px}.analytics-kpis strong{font-size:23px}.analytics-chart svg{min-height:120px}.analytics-dialog{width:calc(100vw - 16px)}}
@media(max-width:400px){.main-wrap .plan-list :is(.plan-stage-progress,.plan-total-progress,.plan-step-progress){grid-template-columns:60px minmax(72px,1fr) 46px;gap:8px}.main-wrap .plan-list :is(.plan-stage-progress,.plan-total-progress,.plan-step-progress)>progress{width:100%}.main-wrap .plan-list :is(.plan-stage-progress,.plan-total-progress,.plan-step-progress)>strong{min-width:0}.analytics-kpis{grid-template-columns:1fr}}
.main-wrap .plan-excerpt{margin:16px 0;color:var(--ui-text)}
.plan-excerpt-text{font-size:14px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}
.plan-step .plan-excerpt-text{font-size:13px}
.plan-excerpt.is-collapsed .plan-excerpt-text{max-height:var(--excerpt-height,147px);overflow:hidden}
.plan-excerpt.is-collapsed:has(>.plan-excerpt-toggle:not([hidden])) .plan-excerpt-text{mask-image:linear-gradient(#000 65%,transparent);-webkit-mask-image:linear-gradient(#000 65%,transparent)}
.plan-excerpt-toggle{display:block;margin:8px 0 0;padding:7px 0;border:0;background:transparent;color:var(--ui-accent);font:inherit;font-size:12px;cursor:pointer}
.plan-excerpt-toggle:hover{text-decoration:underline}
.plan-change-dot{display:inline-block;vertical-align:middle;width:8px;height:8px;margin-left:9px;border-radius:50%;background:var(--palette-secondary);box-shadow:0 0 0 3px color-mix(in srgb,var(--palette-secondary) 16%,transparent);opacity:0;transition:opacity var(--notification-fade,240ms ease);flex:none}
.plan-change-dot.has-change{opacity:1}
.plan-trash-list>div{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 0;border-bottom:1px solid var(--ui-border)}
.plan-trash-list strong{overflow-wrap:anywhere;min-width:0;font-size:13px}
.plan-trash-list button{flex:none}
.main-wrap .btn-danger,dialog .btn-danger{color:var(--ui-text);background:var(--ui-input);border-color:var(--ui-border)}
.main-wrap .btn-danger:hover,dialog .btn-danger:hover{background:color-mix(in srgb,#d34646 18%,var(--ui-input));border-color:#d34646}
.channel-stage-row{display:flex;align-items:center;border-radius:7px}
.channel-stage-row>button[data-channel-tab]{display:flex;align-items:flex-start;gap:8px;flex:1;min-width:0;padding:10px 9px;border:0;border-radius:7px;background:transparent;color:var(--ui-muted);font:inherit;font-size:12px;line-height:1.5;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.channel-stage-row>button[data-channel-tab]>svg{flex:none;width:14px;height:14px;margin-top:2px}
.channel-stage-row:hover,.channel-stage-row:focus-within{background:var(--ui-soft)}
.channel-stage-row:has([aria-current=page]){background:var(--ui-selected)}
.channel-stage-row>button[aria-current=page]{color:var(--ui-accent)}
.channel-stage-delete{display:grid;place-items:center;flex:none;width:30px;height:32px;margin-right:3px;padding:6px;border:0;border-radius:5px;color:var(--ui-muted);background:transparent;cursor:pointer;opacity:.55}
.channel-stage-delete:hover,.channel-stage-delete:focus-visible{opacity:1;color:var(--ui-text);background:var(--ui-input)}
.channel-stage-delete>svg{width:15px;height:15px}
@media(max-width:800px){.plan-card-heading{gap:12px}.plan-step-progress{gap:10px}.plan-stage summary{gap:8px}.plan-excerpt-text{font-size:13px}}
@media(prefers-reduced-motion:reduce){.plan-change-dot{transition:none}}

/* A full-height channel with a separate, collapsible task navigator. */
#main.is-channel-page{display:flex;flex-direction:column;overflow:hidden;padding-top:20px;padding-bottom:12px}
#main>.channel-workspace{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}
.channel-workspace>.panel-head{flex:none;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:16px 20px;gap:16px}
.channel-workspace h1{display:flex;align-items:center;gap:10px;margin:0;font-size:18px;line-height:1.4;color:var(--ui-text)}
.channel-workspace h1 svg{width:20px;height:20px}
.channel-workspace .channel-sidebar-toggle{min-height:32px;padding:5px 9px;font-size:11px;gap:7px}
.channel-sidebar-toggle[aria-expanded=true]>svg:last-child{transform:rotate(180deg)}
.channel-workspace>.channel-tabs{flex:none;overflow:visible;padding:0 16px;background:var(--ui-soft)}
.channel-workspace .channel-tabs button{min-height:44px;max-width:none}
.channel-layout{display:flex;flex:1;min-height:0;min-width:0}
.channel-task-sidebar{width:248px;flex:none;min-height:0;overflow:auto;overscroll-behavior:contain;border-right:1px solid var(--ui-border);background:var(--ui-panel);scrollbar-width:thin;scrollbar-color:var(--ui-border) transparent;padding:16px 10px}
.channel-sidebar-caption{display:flex;align-items:center;justify-content:space-between;padding:0 10px 12px;font-size:11px;font-weight:600;color:var(--ui-muted)}
.channel-sidebar-caption>span{font-size:10px;font-weight:400}
.channel-task-group{margin-bottom:6px}
.channel-task-group>summary{display:flex;align-items:flex-start;gap:8px;padding:10px 8px;list-style:none;border-radius:7px;cursor:pointer;color:var(--ui-text);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.channel-task-group>summary::-webkit-details-marker{display:none}
.channel-task-group>summary>svg{flex:none;width:14px;height:14px;margin-top:2px;transform:rotate(-90deg)}
.channel-task-group[open]>summary>svg{transform:none}
.channel-task-group>summary>span{min-width:0;flex:1}
.channel-task-group>summary>small{flex:none;color:var(--ui-muted);font-size:10px;margin-top:1px}
.channel-task-group>summary:hover,.channel-task-group>summary:focus-visible{background:var(--ui-soft)}
.channel-stage-list{margin:0 0 10px 14px;padding-left:8px;border-left:1px solid var(--ui-border)}
.channel-stage-list>button{display:flex;align-items:flex-start;gap:8px;width:100%;padding:10px 9px;border:0;border-radius:7px;background:transparent;color:var(--ui-muted);font:inherit;font-size:12px;line-height:1.5;text-align:left;cursor:pointer;overflow-wrap:anywhere}
.channel-stage-list>button>svg{flex:none;width:14px;height:14px;margin-top:2px}
.channel-stage-list>button:hover{background:var(--ui-soft);color:var(--ui-text)}
.channel-stage-list>button[aria-current=page]{background:var(--ui-selected);color:var(--ui-accent)}
.channel-stage-list>button:focus-visible,.channel-task-group>summary:focus-visible{outline:2px solid var(--ui-accent);outline-offset:1px}
.channel-sidebar-empty{font-size:12px;line-height:1.7;color:var(--ui-muted);padding:0 10px}
.channel-workspace #web-channel-panel{flex:1;min-width:0;min-height:0;overflow:hidden}
.channel-active-task{display:flex;align-items:center;gap:10px;flex:none;padding:10px 20px;border-bottom:1px solid var(--ui-border);color:var(--ui-muted);font-size:11px;line-height:1.5}
.channel-active-task>span{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;max-width:45%}
.channel-active-task>strong{min-width:0;font-weight:500;color:var(--ui-text);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.channel-active-task>svg{width:12px;height:12px;flex:none;transform:rotate(-90deg)}
.channel-workspace #web-channel-panel>.discussion-messages{display:block;flex:1;height:auto;min-height:80px;max-height:none;overflow:auto;overflow-anchor:none;padding:22px}
.channel-history{display:flex;flex-direction:column;gap:20px;min-height:100%}
.channel-history>.discussion-message{flex:none}
.channel-history>.empty-state{margin:auto;padding:20px 16px}
.channel-workspace .composer{padding:12px 18px;min-width:0}
.channel-workspace .composer textarea{display:block}
.channel-workspace .composer-bottom{justify-content:flex-start;align-items:center;margin-top:12px;padding:0;gap:10px 16px}
.channel-workspace .channel-compose-help{flex:1 1 210px;min-width:210px;max-width:none;gap:10px}
.channel-workspace .channel-compose-help>span{flex:1;font-size:10px;line-height:1.6}
.channel-workspace .web-recipient-row{display:flex;flex:0 1 auto;flex-wrap:wrap;gap:10px;margin:0;padding:0;min-height:38px;min-width:0;max-width:48%}
.channel-workspace .web-recipient-row>label{flex-direction:row;align-items:center;width:auto;font-size:11px;gap:8px}
.channel-workspace .web-recipient-row .tandem-select{width:200px;margin:0}
.channel-workspace .web-recipient-row #recipient-list:not([hidden]){flex:1 1 180px;flex-wrap:wrap;max-height:84px;overflow:auto;gap:6px}
.channel-workspace .web-recipient-row #recipient-list label{white-space:normal;overflow-wrap:anywhere;min-width:0;font-size:11px;padding:7px 9px}
.channel-workspace .composer-bottom>button[type=submit]{margin-left:auto;flex:none}
.channel-delivery-hint{margin:7px 0 0;text-align:right;font-size:10px;line-height:1.4;color:var(--ui-muted)}
@media(max-width:1100px){.channel-layout{position:relative}.channel-task-sidebar{position:absolute;inset:0 auto 0 0;z-index:4;width:min(270px,85%);box-shadow:10px 0 22px #0002}.channel-workspace .channel-compose-help{flex-basis:210px}.channel-workspace .web-recipient-row{max-width:none}.channel-workspace .web-recipient-row .tandem-select{width:182px}}
@media(max-width:760px){
 #main.is-channel-page{padding:12px 10px 8px}
 .channel-workspace>.panel-head{padding:12px;gap:8px}
 .channel-workspace h1{font-size:16px}
 .channel-workspace .channel-sidebar-toggle{padding:5px;font-size:10px;gap:5px}
 .channel-workspace>.channel-tabs{padding:0 8px}
 .channel-workspace .channel-tabs button{padding:10px;font-size:11px}
 .channel-layout{position:relative}
 .channel-task-sidebar{position:absolute;inset:0 auto 0 0;z-index:4;width:min(270px,85%);box-shadow:10px 0 22px #0002}
 .channel-workspace #web-channel-panel>.discussion-messages{padding:16px 12px}
 .channel-workspace .composer{padding:10px}
 .channel-workspace .channel-compose-help{flex-basis:100%;max-width:none}
 .channel-workspace .channel-compose-help>span{max-width:none}
 .channel-workspace .web-recipient-row{flex-basis:180px;max-width:none}
 .channel-workspace .web-recipient-row>label{flex-direction:column;align-items:flex-start;gap:3px}
 .channel-workspace .web-recipient-row .tandem-select{width:180px}
 .channel-workspace .channel-delivery-hint{font-size:9px}
}
.channel-send{display:flex;flex:none;margin-left:auto}
.channel-send .channel-send-main,.voice-send-button{display:inline-flex;align-items:center;justify-content:center;gap:0;flex:none;min-height:38px;min-width:38px;margin:0;padding:9px 10px;border-radius:7px}
.main-wrap .voice-send-button{background:var(--palette-primary,var(--tandem-tone-8060c5,#8060c5))!important;border-color:var(--palette-primary,var(--tandem-tone-8060c5,#8060c5))!important;color:var(--palette-primary-ink,#fff)!important;opacity:1;filter:none!important}.voice-send-button[aria-busy=true]{cursor:wait}
.voice-send-button{transition:background-color .18s ease,border-color .18s ease}
.main-wrap .voice-send-button[aria-busy=true]{background:color-mix(in srgb,var(--palette-primary,var(--tandem-tone-8060c5,#8060c5)) 65%,#777782)!important;border-color:color-mix(in srgb,var(--palette-primary,var(--tandem-tone-8060c5,#8060c5)) 65%,#777782)!important}
.voice-send-label{display:block;overflow:hidden;max-width:7em;margin-right:8px;white-space:nowrap;opacity:1;transition:max-width .26s cubic-bezier(.2,.7,.2,1),margin-right .26s cubic-bezier(.2,.7,.2,1),opacity .2s ease}
.voice-send-icon{display:grid;place-items:center;flex:none;width:18px;height:18px}.voice-send-icon>svg{display:block;grid-area:1/1;width:18px;height:18px;transition:opacity .16s ease,transform .18s ease}
form[data-voice-active]:not([data-voice-active=error]) .voice-send-label{max-width:0;margin-right:0;opacity:0}
.voice-send-icon>.voice-send-loading{opacity:0;visibility:hidden;transform-origin:center;animation-play-state:paused;transition:opacity .16s ease,visibility 0s linear .16s}.voice-send-icon>.voice-send-loading circle{animation-play-state:paused}
.voice-send-button[aria-busy=true] .voice-send-icon>svg:not(.voice-send-loading){opacity:0;transform:scale(.75)}
.voice-send-button[aria-busy=true] .voice-send-icon>.voice-send-loading{opacity:1;visibility:visible;animation-play-state:running;transition:opacity .16s ease}.voice-send-button[aria-busy=true] .voice-send-icon>.voice-send-loading circle{animation-play-state:running}
@media(prefers-reduced-motion:reduce){.voice-send-label,.voice-send-button,.voice-send-icon>svg{transition:none}}
.channel-delivery-hint{font-size:10px;line-height:1.5;margin:8px 0 0;color:var(--ui-muted);text-align:right}
.channel-reply-preview{display:flex;align-items:center;justify-content:space-between;padding:5px 10px;margin-bottom:8px;background:color-mix(in srgb,var(--ui-accent) 8%,var(--ui-panel));border-left:2px solid var(--ui-accent);border-radius:5px;font-size:12px}
.discussion-footer{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap;margin-top:10px}
.discussion-footer .discussion-reply{padding:4px 8px;min-height:26px;font-size:11px}
.discussion-delivery{display:block;color:var(--ui-muted);font-size:10px;margin-top:4px}
.project-work-chats{margin:20px 0;padding:22px 24px}
.project-work-chats>.panel-head{padding:0;border:0}
.project-work-chats p{font-size:12px;color:var(--ui-muted);line-height:1.7;margin:12px 0}
.project-work-chat{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--ui-border);flex-wrap:wrap}
.project-work-chat>div{flex:1 1 250px;min-width:0}
.project-work-chat strong,.project-work-chat span,.project-work-chat small{display:block;overflow-wrap:anywhere}
.project-work-chat span{margin:7px 0;font-size:14px}
.project-work-chat small{color:var(--ui-muted);font-size:11px}
.project-work-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}
.codex-work-pick{white-space:nowrap;flex:none}
@media(max-width:760px){.channel-send{margin-left:auto}.channel-delivery-hint{text-align:left}.project-work-chats{padding:18px}.codex-thread{flex-wrap:wrap}.codex-work-pick{margin-left:52px}}

/* Recipient choices stay in a compact flyout instead of stretching the composer. */
.recipient-picker{display:inline-flex;width:200px;max-width:100%;min-width:0}.recipient-picker>.select-trigger{width:100%;min-height:38px}.recipient-caption{font-size:11px;color:var(--ui-muted)}
.recipient-popover{position:fixed;z-index:1100;display:flex;align-items:flex-end;gap:6px;max-width:calc(100vw - 16px);color:var(--ui-text)}
.recipient-popover[hidden],.recipient-people[hidden]{display:none!important}
.recipient-modes,.recipient-people{box-sizing:border-box;background:var(--ui-panel);border:1px solid var(--ui-border);border-radius:9px;box-shadow:0 8px 24px #0003;padding:5px}
.recipient-modes{width:232px;flex:none;display:grid;gap:2px}.recipient-modes>button{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 10px;border:0;border-radius:5px;background:transparent;color:var(--ui-text);font:inherit;font-size:12px;text-align:left;cursor:pointer}.recipient-modes>button[aria-checked=true],.recipient-modes>button:hover,.recipient-modes>button:focus-visible{background:var(--ui-selected)}.recipient-modes svg{width:14px;height:14px;flex:none}.recipient-modes [data-recipient-mode=selected] svg{transform:rotate(-90deg)}.recipient-modes [aria-checked=false]:not([data-recipient-mode=selected]) svg{visibility:hidden}
.recipient-people{width:280px;max-height:min(360px,calc(100dvh - 32px));overflow:auto;flex:none}.recipient-people>p{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:var(--ui-muted);margin:10px 9px 5px}.recipient-people>label{display:flex;align-items:center;gap:10px;margin:0;padding:10px 9px;border-radius:5px;font-size:12px;line-height:1.4;cursor:pointer;overflow-wrap:anywhere}.recipient-people>label:hover,.recipient-people>label:has(:checked){background:var(--ui-selected)}.recipient-people input{flex:none;margin:0}.recipient-people small{display:block;color:var(--ui-muted);font-size:10px}.recipient-people>small{padding:10px}
.recipient-popover::before{content:'';position:absolute;left:232px;width:6px;top:0;bottom:0}
@media(max-width:600px){.recipient-popover{flex-direction:column-reverse;align-items:stretch;gap:5px}.recipient-modes,.recipient-people{width:min(300px,calc(100vw - 16px))}.recipient-people{max-height:min(240px,42dvh)}.recipient-popover::before{display:none}.recipient-picker{width:190px}}
.discussion-panel .discussion-message.agent>.discussion-bubble{--channel-bubble:color-mix(in srgb,var(--ui-soft) 62%,var(--ui-panel))}
.discussion-panel .discussion-message.owner.agent>.discussion-bubble{--channel-bubble:color-mix(in srgb,var(--ui-selected) 62%,var(--ui-panel))}
.discussion-panel .discussion-avatar.agent-profile-avatar{position:relative;overflow:visible;background:transparent;border:0}
.agent-owner-photo{display:flex;align-items:center;justify-content:center;width:100%;height:100%;overflow:hidden;border-radius:50%;background:var(--ui-soft);filter:saturate(.3);opacity:.56}.agent-owner-photo img{width:100%;height:100%;object-fit:cover}.agent-owner-photo>svg{width:28px;height:28px}
.agent-avatar-badge{position:absolute;right:-4px;bottom:-3px;width:21px;height:21px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;border-radius:50%;border:2px solid var(--ui-panel);background:hsl(var(--agent-hue) 58% 70%);color:#26303b}.agent-avatar-badge svg{width:13px;height:13px}
#toolkit-download-status{font-size:14px;line-height:1.6;color:var(--ui-text)}#toolkit-download-status[aria-busy=true]{color:var(--ui-accent)}
.plan-status-tabs{display:flex;gap:6px;padding:5px;width:max-content;max-width:100%;margin:18px 0 22px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-panel)}.plan-status-tabs>button{display:flex;align-items:center;gap:10px;padding:10px 14px;border:0;border-radius:6px;background:transparent;color:var(--ui-muted);font:inherit;font-size:12px;cursor:pointer}.plan-status-tabs>button[aria-selected=true]{background:var(--ui-selected);color:var(--ui-text)}.plan-status-tabs span{font-size:10px;color:var(--ui-muted)}.plan-card-heading{flex-wrap:wrap}

.analytics-chart{position:relative}.analytics-tooltip{position:absolute;z-index:30;transform:translate(-50%,-100%);display:flex;flex-direction:column;gap:7px;min-width:150px;max-width:260px;padding:12px 15px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-input);box-shadow:0 8px 28px #0005;color:var(--ui-text);font-size:12px;line-height:1.4;pointer-events:none}.analytics-tooltip[hidden]{display:none}.analytics-tooltip strong{font-size:11px;color:var(--ui-muted)}.analytics-tooltip small{font-size:11px;color:var(--ui-accent)}.analytics-chart [data-analytics-point]{cursor:default;stroke-width:2;transition:r .12s}.analytics-chart [data-analytics-point].is-hover{r:7;stroke:var(--ui-accent);stroke-width:3}
@media(max-width:800px){.analytics-controls label:has([data-analytics-filter=period]){order:0}.analytics-controls label:has([data-analytics-filter=plan]){order:1}.analytics-controls label:has([data-analytics-filter=to]){order:2}.analytics-controls label:has([data-analytics-filter=from]){order:3}.analytics-controls label:has([data-analytics-filter=stage]){order:4}.analytics-controls label:has([data-analytics-filter=step]){order:5}.analytics-controls label:has([data-analytics-filter=metric]){order:6}.analytics-controls label:has([data-analytics-filter=level]){order:7}}

@media(min-width:801px){.main-wrap .plan-card-heading{display:grid;grid-template-columns:minmax(0,1fr) 308px 34px;gap:16px 20px}.main-wrap .plan-card-heading>.plan-open{grid-column:1;grid-row:1}.main-wrap .plan-card-heading>.plan-total-progress{grid-column:2;grid-row:1}.main-wrap .plan-card-heading>.plan-delete{grid-column:3;grid-row:1}.main-wrap .plan-card-heading>.btn:not(.plan-delete){grid-column:2/4;justify-self:end}}
@media(min-width:801px){.main-wrap .plan-list .plan-stage-progress{margin-right:11px}.main-wrap .plan-list .plan-step-progress{margin-right:37px}}

/* Work scope: consistent labels, full-width controls, compact dependent fields. */
.usage-scope-body{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 16px}.usage-scope-field{display:flex;flex-direction:column;gap:9px;min-width:0;font-size:12px;color:var(--ui-muted)}.usage-scope-wide,.usage-scope-hint,.usage-scope-body>.form-error{grid-column:1/-1}.usage-scope-field .tandem-select{display:block;width:100%;min-width:0}.usage-scope-field .select-trigger{width:100%;min-height:44px;text-align:left;font-size:13px;padding:12px 14px}.usage-scope-field .select-trigger:disabled{opacity:.45;cursor:default}.usage-scope-body .usage-scope-hint{margin:2px 0 0;padding:14px 16px;border-radius:9px;background:var(--ui-input);font-size:12px;line-height:1.7}.usage-scope-body>.form-error{margin:0}.usage-scope-body>.form-error:empty{display:none}.analytics-loading{display:flex;align-items:center;justify-content:center;min-height:260px;color:var(--ui-muted);font-size:13px}.analytics-loading:before{content:"";width:7px;height:7px;margin-right:10px;border-radius:50%;background:var(--ui-muted);opacity:.5}@media(max-width:540px){.usage-scope-body{grid-template-columns:1fr;gap:18px}.usage-scope-body>*{grid-column:1}.usage-scope-field .select-trigger{min-height:42px}}

.quota-collection{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:24px}.quota-device{display:flex;flex-direction:column;gap:6px;min-width:220px;flex:1;padding:14px 16px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-input);font-size:12px}.quota-device>span,.quota-device>small{color:var(--ui-muted);font-size:11px}.analytics-quota-window{padding-top:4px;margin-top:24px}.analytics-quota-window+.analytics-quota-window{border-top:1px solid var(--ui-border);padding-top:28px}.analytics-quota-window>h2{font-size:17px;margin:0 0 18px}.analytics-quota-window .analytics-kpis>div>div{display:flex;flex-direction:column;gap:7px}.analytics-quota-window .analytics-kpis small{line-height:1.6}.analytics-quota-window .analytics-empty>span{display:block;margin-top:10px}.analytics-breakdown>h3{font-size:15px;margin-bottom:0}

.message-meta{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0;flex-wrap:wrap}.message-status{--status-color:#8d929e;position:static;font-size:10px;line-height:1.5;color:var(--ui-muted);font-weight:400}.message-status-trigger{display:flex;align-items:center;gap:6px;cursor:pointer;border:0;background:none;color:inherit;font:inherit;white-space:nowrap;padding:3px 0}.message-status-dot{display:inline-block;flex:0 0 5px;width:5px;height:5px;border-radius:50%;background:var(--status-color);box-shadow:0 0 5px color-mix(in srgb,var(--status-color) 35%,transparent)}.status-answered,.status-done{--status-color:#65c597}.status-working{--status-color:#b49ce2}.status-read{--status-color:#80b6e5}.status-accepted{--status-color:#64b7b2}.status-queued,.status-deferred,.status-paused{--status-color:#c3b17f}.status-failed,.status-uncertain,.status-cancelled{--status-color:#d58f8f}.message-status-popover{display:none;position:absolute;right:0;top:100%;z-index:40;width:300px;max-width:100%;box-sizing:border-box;padding:15px;border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-input);box-shadow:0 10px 35px #0005;color:var(--ui-text);white-space:normal}.message-status:hover .message-status-popover,.message-status:focus-within .message-status-popover,.message-status.is-open .message-status-popover{display:block}.message-status-popover>strong{display:block;font-size:11px!important;margin-bottom:7px}.message-status-row{display:flex;gap:9px;align-items:center;padding:8px 0}.message-status-row>span:last-child{display:flex;flex-direction:column;gap:3px}.message-status-row b{font-size:11px;font-weight:500}.message-status-row small,.message-status-popover p{font-size:10px;color:var(--ui-muted);margin:0}.discussion-label{position:relative;gap:10px}.discussion-label>strong{min-width:0}.message-meta time{white-space:nowrap}@media(max-width:650px){.discussion-label{flex-wrap:wrap}.message-meta{flex-basis:100%;justify-content:flex-end}.message-status-popover{width:260px}}

.message-status-popover,.message-status.opens-above .message-status-popover{position:fixed;right:auto;bottom:auto;z-index:120;max-width:calc(100vw - 16px)}
.message-status-popover:before{content:"";position:absolute;left:var(--status-anchor,12px);top:-4px;width:7px;height:7px;background:var(--ui-input);border-top:1px solid var(--ui-border);border-left:1px solid var(--ui-border);transform:translateX(-50%) rotate(45deg)}
.message-status.opens-above .message-status-popover:before{top:auto;bottom:-4px;transform:translateX(-50%) rotate(225deg)}
.message-status-popover:after{content:"";position:absolute;left:0;right:0;top:-7px;height:8px}.message-status.opens-above .message-status-popover:after{top:auto;bottom:-7px}
.link-access{display:grid;gap:22px}.link-access-intro{display:flex;align-items:center;gap:18px}.link-access-intro h3{font-size:20px;margin:0 0 5px}.link-access-intro p{margin:0;color:var(--ui-muted);font-size:12px}.link-access-logo{width:84px;flex:none}.link-access-logo svg{display:block;width:100%;height:auto}.link-access .field{display:flex;flex-direction:column;gap:9px;font-size:12px;color:var(--ui-muted)}.link-access .field .tandem-select,.link-access .field .select-trigger{width:100%}.link-access-checks{display:grid;grid-template-columns:1fr 1fr;gap:12px}.link-access-row{display:flex;gap:10px;border:1px solid var(--ui-border);border-radius:10px;padding:16px;background:var(--ui-input);min-width:0}.link-access-row>div{display:flex;flex-direction:column;gap:7px}.link-access-row strong{font-size:12px}.link-access-row small{font-size:11px;color:var(--ui-muted);line-height:1.6}.link-check-light{width:6px;height:6px;border-radius:50%;background:#9da1ad;margin-top:5px;flex:none}.link-check-light.ready{background:#58b98d;box-shadow:0 0 7px #58b98d40}.link-access-note{font-size:12px;color:var(--ui-muted);line-height:1.7;margin:0}.link-access-actions{display:flex;flex-wrap:wrap;gap:10px}#link-check-result:not(:empty){padding:14px;border:1px solid var(--ui-border);border-radius:9px;font-size:12px;line-height:1.7}@media(max-width:560px){.link-access-checks{grid-template-columns:1fr}.link-access-actions .btn{flex:1}.link-access{gap:18px}}
#modal:has(.link-access){overflow:hidden}#modal:has(.link-access) #modal-content{display:flex;flex-direction:column;max-height:calc(90vh - 2px)}#modal:has(.link-access) .modal-head,.link-access-actions{flex-shrink:0}.link-access{overflow-y:auto;min-height:0}
/* Connection diagnostics are modal content, outside the workspace wrapper. */
#modal .codex-checks{display:grid;gap:12px;margin-bottom:18px}
#modal .codex-check{padding:16px;gap:14px;background:var(--ui-input);border:1px solid var(--ui-border);border-radius:10px}
#modal .codex-check>span{width:28px;height:28px;background:var(--ui-selected);color:var(--ui-accent);border:1px solid color-mix(in srgb,var(--ui-accent) 25%,var(--ui-border));border-radius:8px}
#modal .codex-check strong{color:var(--ui-text)!important}
#modal .codex-check p{color:var(--ui-muted)!important}
#modal .codex-check.is-failed>span{color:#ef8290;background:color-mix(in srgb,#ef8290 12%,var(--ui-input));border-color:color-mix(in srgb,#ef8290 35%,var(--ui-border))}
#modal .policy-note{background:var(--ui-soft);border-color:var(--ui-border);color:var(--ui-muted)}
#modal .policy-note>svg{color:var(--ui-accent)}
.message-status-dot{width:7px;height:7px;flex-basis:7px;background:color-mix(in srgb,var(--status-color) 84%,white);box-shadow:0 0 0 1px color-mix(in srgb,var(--status-color) 20%,transparent),0 0 8px color-mix(in srgb,var(--status-color) 65%,transparent)}
.status-dot,.badge .status-dot,.network-bottom .status-dot{width:7px;height:7px;background:color-mix(in srgb,var(--tandem-tone-76b79c,#76b79c) 80%,white);box-shadow:0 0 7px color-mix(in srgb,var(--tandem-tone-76b79c,#76b79c) 65%,transparent)}
.status-dot.offline{background:#c3cbd8;box-shadow:0 0 6px #c3cbd850}
.link-check-light{width:8px;height:8px;background:#c3cbd8;box-shadow:0 0 7px #c3cbd850}
.link-check-light.ready{background:#50e99f;box-shadow:0 0 9px #50e99f90}
.channel-unread-dot{width:7px;height:7px;background:color-mix(in srgb,var(--ui-accent) 82%,white);box-shadow:0 0 8px color-mix(in srgb,var(--ui-accent) 55%,transparent)}
.task-channel-alert,.channel-stage-row [data-channel-tab]>.channel-unread-dot{width:6px;height:6px;background:color-mix(in srgb,var(--ui-muted) 88%,white);box-shadow:0 0 6px color-mix(in srgb,var(--ui-muted) 45%,transparent)}
.channel-task-group summary .task-channel-alert{flex-basis:6px}
.project-unread-dot{display:inline-block;flex:none;width:6px;height:6px;border-radius:50%;background:var(--ui-accent)}.project-unread-dot[hidden]{display:none!important}
.project-trash-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;border-bottom:1px solid var(--line)}.project-trash-row strong{overflow-wrap:anywhere}
.plan-open-content{min-width:0;flex:1}.plan-title-row{display:flex;align-items:center;gap:0;min-width:0}.plan-title-toggle{min-width:0;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.plan-open>.plan-open-icon{display:grid;place-items:center;padding:10px;border:0;border-radius:10px;background:var(--ui-selected);color:var(--ui-accent);cursor:pointer;flex:none}.plan-change-controls{display:inline-flex;align-items:center;gap:8px;flex:none}.plan-change-controls .plan-change-dot{margin-left:9px}.plan-open-content small{display:block}.plan-title-toggle:focus-visible,.plan-open-icon:focus-visible{outline:2px solid var(--ui-accent);outline-offset:4px}

.analytics-chart [data-analytics-point].is-selected{stroke:var(--ui-accent);stroke-width:4}.analytics-point-detail:has(.analytics-point-heading){margin:18px 0;padding:18px;border:1px solid var(--ui-border);border-radius:12px;background:var(--ui-soft)}.analytics-point-heading{display:flex;align-items:center;gap:16px}.analytics-point-heading>div{flex:1}.analytics-point-heading h3{margin:5px 0}.analytics-point-heading small{color:var(--ui-muted);font-size:11px}.analytics-point-detail h4{font-size:13px;margin:20px 0 8px}.analytics-point-heading>strong{font-size:20px}
.analytics-progress-hint{margin:0 0 14px}.analytics-progress-stage{border:1px solid var(--ui-border);border-radius:10px;background:var(--ui-panel);margin-top:10px}.analytics-progress-stage>summary{display:flex;align-items:center;gap:12px;padding:16px;cursor:pointer;list-style:none;border-radius:10px}.analytics-progress-stage>summary::-webkit-details-marker{display:none}.analytics-progress-stage>summary:hover{background:var(--ui-soft)}.analytics-progress-stage>summary:focus-visible{outline:2px solid var(--ui-accent);outline-offset:-2px}.analytics-progress-chevron{font-size:25px;line-height:1;transition:transform .18s ease;color:var(--ui-muted);flex:none}.analytics-progress-stage[open]>summary>.analytics-progress-chevron{transform:rotate(90deg)}.analytics-progress-stage[data-disclosure-open=false]>summary>.analytics-progress-chevron{transform:none}.analytics-progress-title{min-width:0;flex:1}.analytics-progress-title strong{font-size:13px;overflow-wrap:anywhere}.analytics-progress-title small{display:block;margin-top:6px;color:var(--ui-muted);font-size:11px;overflow-wrap:anywhere}.analytics-progress-numbers{display:flex;flex-direction:column;align-items:flex-end;gap:6px;flex:none;font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}.analytics-progress-delta{font-size:11px;color:var(--ui-muted)}.analytics-progress-delta.is-positive{color:#168867}.analytics-progress-delta.is-negative{color:#bb3546}html[data-theme=dark] .analytics-progress-delta.is-positive{color:#6bd9b4}html[data-theme=dark] .analytics-progress-delta.is-negative{color:#ff91a0}.analytics-progress-requirements{padding:0 16px 6px 41px}.analytics-progress-requirements h5{font-size:11px;font-weight:500;color:var(--ui-muted);margin:0 0 4px}.analytics-progress-requirement{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:13px 0;border-top:1px solid var(--ui-border);font-size:12px}.analytics-progress-requirement>span:first-child{min-width:0;overflow-wrap:anywhere}.analytics-progress-requirement:not(.is-changed)>span:first-child{color:var(--ui-muted)}.plan-card-heading[data-plan-card-toggle]{cursor:pointer}
@media(max-width:600px){.analytics-point-heading{flex-wrap:wrap;gap:10px}.analytics-point-heading>div{min-width:100px}.analytics-progress-stage>summary{padding:13px;gap:8px}.analytics-progress-requirements{padding-left:13px;padding-right:13px}.analytics-progress-requirement{gap:10px}.analytics-progress-numbers{font-size:12px}}
@media(prefers-reduced-motion:reduce){.analytics-progress-chevron{transition:none}}

#web-messages,#dm-messages{overflow-anchor:none}

html body .web-loading{box-sizing:border-box;width:100%;max-width:none;margin:0}
