/* Team Studio — flat, Instagram-like look; staff list on the left, selected person's work on the right. */
html:root{--bg:#0c1014;--surface:#161b21;--lift:#1f262d;--line:#262d34;--text:#fff;--muted:#a8b0b6;--accent:#0095f6;--action:#0095f6;--good:#58c322;--warn:#f5a524;--bad:#ff3040;color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
html:root[data-theme=light]{--bg:#fff;--surface:#fff;--lift:#f2f2f2;--line:#dbdbdb;--text:#000;--muted:#737373;--accent:#0095f6;--action:#0095f6;color-scheme:light}
html:root body{background:var(--bg)!important;color:var(--text)}
html:root h1{font-size:clamp(1.5rem,3.4vw,2rem);letter-spacing:-.02em}
html:root .eyebrow{display:none}
/* top bar */
html:root .topbar{background:var(--bg)!important;backdrop-filter:none;border-bottom:1px solid var(--line)!important}
html:root .brand-mark{background:none!important;box-shadow:none!important;color:var(--text);width:30px;height:30px;border-radius:0}
html:root .brand-mark svg{width:28px;height:28px}
html:root .brand small{color:var(--muted)}
html:root .team-nav{background:transparent!important;border:0!important;padding:0}
html:root .team-nav a,html:root .team-nav span{border-radius:10px;color:var(--text)}
html:root .team-nav [aria-current=page]{background:var(--lift)!important;color:var(--text)!important;font-weight:700}
html:root .account a,html:root .account button{border:1px solid var(--line)!important;background:transparent!important;color:var(--text)!important;border-radius:10px;box-shadow:none!important}
html:root .account a:last-child{color:var(--accent)!important}
/* buttons */
html:root button.primary,html:root .primary{background:var(--accent)!important;color:#fff!important;border:0!important;border-radius:10px!important;box-shadow:none!important;font-weight:700}
html:root button.secondary,html:root .secondary{background:var(--lift)!important;color:var(--text)!important;border:0!important;border-radius:10px!important;box-shadow:none!important;font-weight:600}
html:root input,html:root textarea,html:root select{background:var(--lift)!important;color:var(--text)!important;border:1px solid var(--line)!important;border-radius:10px!important}
html:root .notice{background:var(--lift)!important;border:0!important;color:var(--muted);border-radius:12px;padding:10px 14px}
html:root .notice.error{color:var(--bad)}
/* section tabs */
html:root .studio-tabs{background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;padding:0!important;margin:0 0 4px;display:flex;gap:0;overflow-x:auto;scrollbar-width:none}
html:root .studio-tabs button{background:transparent!important;color:var(--muted)!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;padding:12px 18px;font-weight:600;flex:0 0 auto;box-shadow:none!important;min-height:44px}
html:root .studio-tabs button[aria-selected=true]{color:var(--text)!important;border-bottom-color:var(--text)!important;font-weight:700}
/* summary tiles + cards */
html:root .workflow-summary{gap:8px;margin:0 0 18px}
html:root .summary-tile,html:root .summary-tile.submitted,html:root .summary-tile.approved,html:root .summary-tile.needs_changes,html:root .summary-tile.cancelled{background:var(--lift)!important;border:0!important;border-radius:12px;padding:12px 14px}
html:root .summary-tile strong{font-size:1.5rem}
html:root .summary-tile.submitted strong{color:var(--accent)}
html:root .summary-tile.approved strong{color:var(--good)}
html:root .summary-tile.needs_changes strong{color:var(--warn)}
html:root .card{background:var(--surface)!important;border:1px solid var(--line)!important;border-radius:14px!important;box-shadow:none!important}
html:root .card-summary:hover{background:var(--lift)!important}
html:root .section-heading h2{font-size:1.1rem}
html:root .list-controls select{min-height:36px;border-color:var(--line)}

/* ===== master / detail (owner) ===== */
html:root .layout{max-width:none!important;width:100%;padding-left:0;padding-right:0}
html:root body.is-owner .intro>h1,html:root body.is-owner .intro>p:not(.account-message):not(.notice){display:none}
html:root body.is-owner .intro{padding:0 16px;margin:0}
html:root body.is-owner #notice{margin:8px 0}
html:root body.is-owner .studio-tabs{padding:0 12px!important}
html:root .dm{display:grid;grid-template-columns:minmax(300px,360px) minmax(0,1fr);align-items:start;min-height:calc(100dvh - 120px)}
html:root .dm[hidden]{display:none}
html:root .dm-list{position:sticky;top:0;height:calc(100dvh - 112px);overflow:auto;border-right:1px solid var(--line);padding:6px 0}
html:root .dm-list-head{display:flex;align-items:center;justify-content:space-between;padding:12px 20px 8px}
html:root .dm-list-head h2{margin:0;font-size:1.25rem;font-weight:700}
html:root .dm-count{font-size:.85rem;color:var(--muted)}
html:root .person-tabs{display:flex!important;flex-direction:column;gap:0;overflow:visible;padding:0;background:none;border:0}
html:root .dm-row{display:flex;align-items:center;gap:12px;width:100%;padding:10px 20px;border:0!important;border-radius:0!important;background:transparent!important;color:var(--text)!important;text-align:left;cursor:pointer;min-height:72px;box-shadow:none!important}
html:root .dm-row:hover{background:var(--lift)!important}
html:root .dm-row[aria-selected=true]{background:var(--lift)!important}
html:root .dm-avatar{flex:none;width:52px;height:52px;border-radius:50%;background:var(--line);color:var(--text);display:grid;place-items:center;font-weight:700;font-size:1.15rem}
html:root .dm-row[aria-selected=true] .dm-avatar{box-shadow:0 0 0 2px var(--bg),0 0 0 4px var(--text)}
html:root .dm-meta{flex:1;min-width:0;display:grid;gap:2px}
html:root .dm-name{font-size:.95rem;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root .dm-row small{font-size:.82rem;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root .dm-row.unread .dm-name{font-weight:700}
html:root .dm-row.unread small{color:var(--text);font-weight:600}
html:root .dm-badge{flex:none;min-width:20px;height:20px;padding:0 6px;border-radius:10px;background:var(--accent);color:#fff;font-size:.75rem;font-weight:700;display:grid;place-items:center}
html:root .dm-detail{min-width:0;padding:0 24px 40px}
html:root .dm-head{position:sticky;top:0;z-index:5;display:flex;align-items:center;gap:12px;padding:14px 0;margin:0 0 16px;background:var(--bg);border-bottom:1px solid var(--line)}
html:root .dm-head .dm-avatar{width:44px;height:44px;font-size:1rem}
html:root .dm-who{flex:1;min-width:0}
html:root .dm-who h2{margin:0;font-size:1.05rem;font-weight:700}
html:root .dm-who p{margin:0;font-size:.85rem;color:var(--muted)}
html:root .dm-back{display:none;width:40px;height:40px;border:0;background:transparent;color:var(--text);border-radius:50%;place-items:center;padding:0}
html:root .dm-back svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
html:root .person-arrows{display:none}
@media(min-width:861px){html:root .dm .section-heading .eyebrow{display:none}}
/* phone: list screen, then a full-screen detail screen with a back arrow */
@media(max-width:860px){
 html:root .dm{display:block;min-height:0}
 html:root .dm[data-dm=list] .dm-detail,html:root .dm[data-dm=detail] .dm-list{display:none}
 html:root .dm-list{position:static;height:auto;border-right:0}
 html:root .dm-detail{padding:0 14px 32px}
 html:root .dm-back{display:grid}
 html:root .dm-head{margin:0 -14px 14px;padding:10px 14px}
 html:root .workflow-summary{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* ===== staff view ===== */
html:root body.is-staff .layout{max-width:760px!important;margin:0 auto;padding:0 14px 40px}
html:root body.is-staff .intro{padding:18px 0 4px}
html:root body.is-staff .intro>p:not(.account-message):not(.notice){color:var(--muted);font-size:.95rem}
html:root .staff-create{background:var(--lift)!important;border:0!important;border-radius:14px}
html:root body .layout{padding-top:0!important}
html:root body.is-owner .layout{padding-bottom:0!important}
html:root .person-tabs button.dm-row{display:flex!important;flex:none;width:100%;min-width:0;max-width:none;min-height:72px;padding:10px 20px;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;gap:12px}
html:root .person-tabs button.dm-row[aria-selected=true]{background:var(--lift)!important}
html:root .person-tabs button.dm-row:hover{background:var(--lift)!important}
html:root .person-tabs button.dm-row .dm-name{font-weight:500}
html:root .person-tabs button.dm-row.unread .dm-name{font-weight:700}
html:root .person-tabs button.dm-row small{font-size:.82rem;white-space:nowrap}
html:root .person-tabs button.dm-row .dm-avatar{font-weight:700;overflow:visible}
html:root .person-tabs button.dm-row .dm-badge{font-weight:700;overflow:visible}
html:root body.is-owner #notice{margin:10px 16px}
@media(max-width:860px){html:root .person-tabs button.dm-row[aria-selected=true]{background:transparent!important}html:root .dm-row[aria-selected=true] .dm-avatar{box-shadow:none}}
/* sign-in screen */
html:root .login-art{background:none!important;box-shadow:none!important;width:64px;height:64px;border-radius:0!important;color:var(--text);display:block;margin:0 0 8px}
html:root .login-art svg{width:64px;height:64px}
html:root .login{max-width:420px;margin:0 auto;padding:48px 16px}
html:root .login h1{font-size:1.6rem}
html:root .login-form input[type=text],html:root .login-form input[type=password],html:root .login-form input:not([type=checkbox]){min-height:46px;padding:0 14px}
html:root .login-form button.primary{min-height:46px}
html:root .login-error{background:var(--lift)!important;color:var(--bad)!important;border:0!important;border-radius:10px}
html:root body .login a{color:var(--accent)}

/* ===== Send an idea / Reports / Team setup: same flat page style ===== */
html:root .studio-panel:not(.dm){max-width:880px;margin:0 auto;padding:22px 16px 48px}
html:root .send-panel,html:root .report,html:root .setup{background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;margin:0!important}
html:root .send-panel h2,html:root .report h2,html:root .setup h2{font-size:1.3rem;font-weight:700;margin:0 0 6px}
html:root .send-panel p,html:root .report p,html:root .setup p{color:var(--muted);font-size:.92rem;max-width:62ch}
html:root .send-form,html:root .invite-form{display:grid;gap:14px;margin-top:18px;grid-template-columns:repeat(2,minmax(0,1fr));align-items:end}
html:root .send-form label,html:root .invite-form label,html:root .report-head label{display:grid;gap:6px;font-size:.82rem;font-weight:600;color:var(--muted)}
html:root .send-form label:nth-last-child(-n+2),html:root .send-form>button{grid-column:1/-1}
html:root .send-form label span,html:root .send-form label small{font-weight:400}
html:root .send-form button,html:root .invite-form button{justify-self:start;min-height:44px;padding:0 20px;border:0!important;border-radius:10px!important;background:var(--accent)!important;color:#fff!important;font-weight:700;box-shadow:none!important}
html:root .invite-form{grid-template-columns:1fr 1fr auto}
html:root .report-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;flex-wrap:wrap;margin-bottom:18px}
html:root .summary-tile{box-shadow:none}
html:root .report .workflow-summary,html:root .report [class*=report-tiles],html:root .report [class*=report-summary]{margin-bottom:18px}
html:root .report table{border-collapse:collapse;width:100%;background:transparent}
html:root .report th{background:var(--lift)!important;color:var(--muted);font-weight:600;font-size:.8rem;text-align:left}
html:root .report td,html:root .report th{border:0!important;border-bottom:1px solid var(--line)!important;padding:12px 14px}
html:root .report [class*=table],html:root .report [class*=scroll]{background:transparent!important;border:1px solid var(--line)!important;border-radius:12px!important;overflow-x:auto}
html:root .staff-links{display:grid;gap:0;margin-top:18px;border-top:1px solid var(--line)}
html:root .link-row{background:transparent!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;padding:12px 0!important;box-shadow:none!important}
html:root .link-row button{min-height:40px;border:0!important;border-radius:10px!important;background:var(--lift)!important;color:var(--text)!important;font-weight:600}
html:root .drive-status{color:var(--muted);margin-top:16px}
@media(max-width:700px){html:root .send-form,html:root .invite-form{grid-template-columns:1fr}html:root .invite-form button{justify-self:stretch}}
html:root select:not([multiple]):not([size]){-webkit-appearance:none;appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a8b0b6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 14px center!important;background-size:16px!important;padding-right:40px!important}
html:root[data-theme=light] select:not([multiple]):not([size]){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23737373' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important}

/* ===== v21 dashboard: title, tabs, flat work list, summary side panel ===== */
html:root .intro{padding:0!important;margin:0!important}
html:root .intro:empty{display:none}
html:root .notice[hidden]{display:none}
html:root .dash-title{font-size:clamp(1.4rem,3vw,1.9rem);font-weight:700;letter-spacing:-.02em;margin:22px 0 14px}
html:root .dash-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:0 40px;align-items:start}
html:root .dash-main{min-width:0}
html:root body.is-staff .layout{max-width:1120px!important;padding:0 20px 48px}
html:root .dash-side{position:sticky;top:16px;border-left:1px solid var(--line);padding:4px 0 24px 28px;min-width:0}
html:root .dash-side h3{margin:20px 0 10px;font-size:.95rem;font-weight:700;display:flex;justify-content:space-between;align-items:baseline;gap:8px}
html:root .dash-side h3:first-child{margin-top:4px}
html:root .dash-side h3 small{font-size:.78rem;font-weight:400;color:var(--muted)}
html:root .sum-donut{display:grid;grid-template-columns:120px minmax(0,1fr);gap:14px;align-items:center}
html:root .donut{width:120px;height:120px}
html:root .donut .donut-n{font-size:30px;font-weight:700;fill:var(--text)}
html:root .donut .donut-l{font-size:11px;fill:var(--muted)}
html:root .c-empty{stroke:var(--line)}
html:root .c-done{--c:#0095f6}html:root .c-review{--c:#7cc9fb}html:root .c-progress{--c:#8e8e8e}html:root .c-changes{--c:#ed4956}html:root .c-owner{--c:#5d6b76}html:root .c-cancel{--c:#3a444d}
html:root circle[class^=c-]:not(.c-empty){stroke:var(--c)}
html:root .legend{display:grid;gap:0}
html:root .leg-row{display:grid;grid-template-columns:10px minmax(0,1fr) auto;gap:8px;align-items:center;width:100%;padding:5px 0;border:0!important;background:none!important;color:var(--text)!important;font:inherit;font-size:.85rem;text-align:left;cursor:pointer;box-shadow:none!important;min-height:0}
html:root .leg-row:disabled{opacity:.4;cursor:default}
html:root .leg-row:not(:disabled):hover span{text-decoration:underline}
html:root .leg-row i{width:10px;height:10px;border-radius:50%;background:var(--c)}
html:root .leg-row b{font-weight:600}
html:root .sum-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:18px 0 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
html:root .sum-stats div{padding:12px 0;display:grid;gap:2px}
html:root .sum-stats div+div{border-left:1px solid var(--line);padding-left:12px}
html:root .sum-stats strong{font-size:1.25rem;font-weight:700}
html:root .sum-stats span{font-size:.75rem;color:var(--muted)}
html:root .bars{width:100%;height:auto;display:block}
html:root .bar-rec{fill:#8e8e8e;opacity:.55}html:root .bar-fin{fill:#0095f6}
html:root .bar-l{font-size:10px;fill:var(--muted)}
html:root .bar-key{display:flex;gap:16px;font-size:.78rem;color:var(--muted);margin-top:4px}
html:root .bar-key span{display:flex;align-items:center;gap:6px}
html:root .bar-key i{width:10px;height:10px;border-radius:3px;display:inline-block}
html:root i.bar-rec{background:#8e8e8e;opacity:.55}html:root i.bar-fin{background:#0095f6}
/* tabs instead of the dropdown */
html:root .dash-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line);margin:0 0 0}
html:root .status-tabs{display:flex;gap:0;overflow-x:auto;scrollbar-width:none;min-width:0}
html:root .status-tabs button{flex:none;display:flex;align-items:center;gap:6px;padding:12px 16px;min-height:44px;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:none!important;color:var(--muted)!important;font:inherit;font-weight:600;cursor:pointer;box-shadow:none!important}
html:root .status-tabs button small{font-size:.78rem;font-weight:400}
html:root .status-tabs button[aria-pressed=true]{color:var(--text)!important;border-bottom-color:var(--text)!important}
html:root .dash-bar .count{font-size:.8rem;color:var(--muted);white-space:nowrap}
/* work list: plain rows separated by lines */
html:root .cards{display:block}
html:root .card{background:none!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;margin:0!important}
html:root .card-summary{display:flex;align-items:center;gap:14px;padding:16px 0;list-style:none;cursor:pointer;background:none!important}
html:root .card-summary::-webkit-details-marker{display:none}
html:root .card-summary:hover{background:none!important}
html:root .card-summary:hover .card-summary-title{text-decoration:underline}
html:root .card-dot{flex:none;width:10px;height:10px;border-radius:50%;background:#8e8e8e}
html:root .card-dot.s-approved,html:root .card-dot.s-archived{background:#0095f6}
html:root .card-dot.s-submitted{background:#7cc9fb}
html:root .card-dot.s-needs_changes{background:#ed4956}
html:root .card-dot.s-owner_done{background:#5d6b76}
html:root .card-dot.s-cancelled{background:#3a444d}
html:root .card-summary-text{flex:1;min-width:0;display:grid;gap:2px}
html:root .card-summary-title{font-weight:600;font-size:.98rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root .card-summary-text small{font-size:.8rem;color:var(--muted)}
html:root .card-chevron{flex:none;width:20px;height:20px;fill:none;stroke:var(--muted);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
html:root .card[open] .card-chevron{transform:rotate(180deg)}
html:root .card-body{padding:0 0 22px 24px;display:grid;gap:14px;background:none!important;border:0!important}
html:root .card-body :is(.timeline,.response-read,.submission,.review-actions,.staff-finish,.response-steps,.task-steps,.owner-history,.owner-action-note,.review-feedback,.assignment-note,.file-pick,.video-form,.response){background:none!important;box-shadow:none!important}
html:root .card-body :is(.timeline,.submission,.review-actions,.staff-finish,.response-read){border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;padding:14px 0 0!important}
html:root .card-top .idea-id{display:none}
html:root .status-pill{display:none}
html:root .empty-state{text-align:center;padding:48px 16px;color:var(--muted);background:none!important;border:0!important}
html:root .empty-state>div{display:none}
html:root .empty-state h3{font-size:1rem;color:var(--text);margin:0 0 4px}
/* staff: add your own work = one plain row */
html:root .staff-create{background:none!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;margin:0!important}
html:root .staff-create>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;cursor:pointer;list-style:none}
html:root .staff-create>summary::-webkit-details-marker{display:none}
html:root .staff-create>summary strong{font-weight:700}
html:root .staff-create>summary small{display:none}
html:root .staff-create>summary>span:last-child{width:32px;height:32px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;font-size:20px;line-height:1}
html:root .staff-create-form{padding:0 0 18px}
/* owner detail: header is just the person's dashboard title */
html:root .dm-who h2{font-size:1.25rem;letter-spacing:-.01em}
html:root .dm-detail .dash-grid{margin-top:4px}
@media(max-width:1000px){
 html:root .dash-grid{grid-template-columns:1fr}
 html:root .dash-side{order:-1;position:static;border-left:0;border-bottom:1px solid var(--line);padding:0 0 18px;margin-bottom:6px}
 html:root .dash-side h3:nth-of-type(2),html:root .dash-side .bars,html:root .dash-side .bar-key{display:none}
 html:root body.is-staff .layout{padding:0 14px 40px}
}
/* inside an open work item: no tiles, no tinted buttons */
html:root .card-body .timeline{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px 20px}
html:root .card-body .timeline>div{background:none!important;border:0!important;border-radius:0!important;padding:0!important;display:grid;gap:2px}
html:root .card-body .timeline small{color:var(--muted);font-size:.78rem}
html:root .card-body .timeline strong{font-size:.9rem;font-weight:600}
html:root .task-steps{display:flex;flex-wrap:wrap;gap:6px 18px;list-style:none;padding:0;margin:0}
html:root .task-steps li{background:none!important;border:0!important;border-radius:0!important;padding:0!important;display:flex;align-items:center;gap:6px;color:var(--muted);font-size:.85rem}
html:root .task-steps li.complete{color:var(--text)}
html:root .task-steps li span{width:18px;height:18px;border-radius:50%;background:var(--line)!important;color:var(--text)!important;display:grid;place-items:center;font-size:.7rem}
html:root .task-steps li.complete span{background:var(--accent)!important;color:#fff!important}
html:root .submission .empty,html:root .submission li{background:none!important;border:0!important;border-radius:0!important;padding:6px 0!important;color:var(--muted)}
html:root .submission ul{list-style:none;padding:0;margin:6px 0 0}
html:root .card-body .response-field-head button,html:root .card-body .review-actions button,html:root .card-body .staff-finish button,html:root .card-body .video-form button,html:root .card-body .file-pick,html:root .card-body .mark-done,html:root .card-body .finish-all,html:root .card-body .cancel-task,html:root .card-body .owner-status-buttons button{background:var(--lift)!important;color:var(--text)!important;border:0!important;border-radius:10px!important;box-shadow:none!important;font-weight:600;min-height:40px;padding:0 16px}
html:root .card-body .approve,html:root .card-body .mark-done:not(:disabled){background:var(--accent)!important;color:#fff!important;border:0!important;border-radius:10px!important;font-weight:700;box-shadow:none!important;min-height:40px;padding:0 18px}
html:root .card-body .cancel-task,html:root .card-body .finish-all{color:var(--bad)!important}
html:root .card-body button:disabled{opacity:.45}
html:root .owner-controls-head{display:flex;justify-content:space-between;align-items:baseline}
html:root .owner-status-buttons{display:flex;flex-wrap:wrap;gap:8px}
html:root .owner-action-note,html:root .review-feedback{border-left:2px solid var(--line)!important;padding:0 0 0 12px!important;border-radius:0!important;color:var(--text)}
html:root .card-body progress{accent-color:var(--accent)}
html:root .card-body .card-top{display:none}
html:root .card-body .review-actions .approve,html:root .card-body .staff-finish .mark-done:not(:disabled){background:var(--accent)!important;color:#fff!important}
html:root .card-body .review-actions .cancel-task,html:root .card-body .review-actions .finish-all{color:var(--bad)!important}

/* v24 interactive charts */
html:root .sum-stats button{all:unset;box-sizing:border-box;padding:12px 0;display:grid;gap:2px;cursor:pointer;text-align:left}
html:root .sum-stats button+button{border-left:1px solid var(--line);padding-left:12px}
html:root .sum-stats button strong{font-size:1.25rem;font-weight:700}
html:root .sum-stats button span{font-size:.75rem;color:var(--muted)}
html:root .sum-stats button:hover strong,html:root .sum-stats button:focus-visible strong{color:var(--act)}
html:root .donut .seg{cursor:pointer;transition:stroke-width .12s,opacity .12s}
html:root .donut .seg:hover{stroke-width:20}
html:root .bar-g{cursor:pointer}
html:root .bar-g:hover .bar-rec,html:root .bar-g:hover .bar-fin,html:root .bar-g.on .bar-rec,html:root .bar-g.on .bar-fin{filter:brightness(1.15)}
html:root .bar-g.on .bar-l{fill:var(--act);font-weight:700}
html:root .day-detail{margin-top:12px;border-top:1px solid var(--line);padding-top:10px;font-size:.85rem}
html:root .day-detail h4{margin:0 0 6px;font-size:.85rem;font-weight:700}
html:root .day-detail p{margin:6px 0 2px;color:var(--muted)}
html:root .day-detail ul{margin:0;padding-left:18px}
html:root .day-detail li{margin:2px 0;overflow-wrap:anywhere}
html:root .leg-row:hover:not(:disabled){background:var(--hover,rgba(0,0,0,.05))}
html:root #reportSummary>div{cursor:pointer}
html:root #reportSummary>div:hover strong{color:var(--act)}
@media(max-width:1000px){html:root .day-detail{display:none}}
html:root .donut text{pointer-events:none}
/* v25 simple staff card + flat summary numbers */
html:root .response-both{display:grid;gap:12px}
html:root .response-both label{display:grid;gap:4px}
html:root .response-both input,html:root .response-both textarea{border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;padding:8px 0;font:inherit;color:var(--text);width:100%;box-sizing:border-box}
html:root .response-both input:focus,html:root .response-both textarea:focus{outline:0;border-bottom-color:var(--accent)}
html:root .card-body .response-both .quiet{justify-self:start;background:none!important;color:var(--accent)!important;padding:0!important;min-height:0;font-weight:700}
html:root .card-body .video-form{display:grid;gap:8px;justify-items:start}
html:root .card-body .video-form .file-pick{background:none!important;color:var(--accent)!important;padding:0!important;min-height:0;font-weight:700;cursor:pointer}
html:root .card-body .video-form button{background:var(--accent)!important;color:#fff!important;font-weight:700}
html:root .card-body .video-form button:disabled{background:var(--lift)!important;color:var(--muted)!important;opacity:1;cursor:not-allowed}
html:root .video-form progress{width:100%;height:4px;accent-color:var(--accent)}
html:root .sum-stats{border:0!important;margin-top:14px}
html:root .sum-stats button,html:root .sum-stats div{border:0!important;padding:8px 0!important}
html:root .sum-stats button+button,html:root .sum-stats div+div{border:0!important;padding-left:0!important}
html:root .card-body .response-both input,html:root .card-body .response-both textarea{background:none!important;border:0!important;border-bottom:1px solid var(--line)!important;border-radius:0!important;box-shadow:none!important;padding:8px 0!important;font-weight:400}
html:root .card-body .response-both input:focus,html:root .card-body .response-both textarea:focus{border-bottom-color:var(--accent)!important;outline:0!important}
html:root .card-body .response-both .quiet{border:0!important;box-shadow:none!important}
/* v26 compact person header, like an Instagram chat header */
html:root .dm-head{gap:10px;padding:8px 0;margin:0 0 8px}
html:root .dm-head .dm-avatar{width:36px;height:36px;font-size:.9rem;flex:none}
html:root .dm-who{min-width:0;flex:1}
html:root .dm-who h2{margin:0;font-size:1rem;line-height:1.25;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html:root .dm-who p{margin:0;font-size:.78rem;line-height:1.3;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:860px){html:root .dm-head{margin:0 -14px 8px;padding:6px 14px}html:root .person-arrows{display:none}}

/* v28 mono: pure black / white, hairlines, one blue (matches the main app) */
html:root{--bg:#000;--surface:#0a0a0a;--lift:#111;--line:#1f1f1f;--text:#fafafa;--muted:#8b8b8b;--accent:#0095f6;--action:#fafafa;--good:#fafafa;--warn:#0095f6;--bad:#ed4956;color-scheme:dark}
html:root[data-theme=light]{--bg:#fff;--surface:#fff;--lift:#f5f5f5;--line:#e8e8e8;--text:#000;--muted:#6b6b6b;--accent:#0095f6;--action:#000;--good:#000;--warn:#0095f6;--bad:#ed4956;color-scheme:light}
html:root body{background:var(--bg)!important}
html:root button.primary,html:root .primary,html:root button[type=submit]:not(.ghost),html:root .btn-primary,html:root .upload-btn{border-radius:999px}
html:root button.primary,html:root .primary,html:root .send-form button,html:root .invite-form button,html:root .card-body .approve,html:root .card-body .mark-done:not(:disabled),html:root .card-body .review-actions .approve,html:root .card-body .staff-finish .mark-done:not(:disabled),html:root .card-body .video-form button:not(:disabled){background:var(--text)!important;color:var(--bg)!important;border-radius:999px!important}
html:root .staff-create>summary>span:last-child{background:var(--text);color:var(--bg)}
html:root .card-body .video-form button:disabled{background:var(--lift)!important;color:var(--muted)!important;border-radius:999px!important}

/* ---- Owner view of a task: only the title, description and finished video are visible.
   Dates, source and status sit under "Details"; approve/cancel/etc. sit under "Owner controls" until you tap. ---- */
html:root .card.owner-view .card-summary-text small{display:none}
html:root .card.owner-view .card-summary:hover .card-summary-title{text-decoration:none}
html:root .card-body .more>summary,html:root .card-body .owner-more>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;margin:0;border-top:1px solid var(--line);color:var(--muted);font-size:.9rem;font-weight:600;background:none}
html:root .card-body .more>summary::-webkit-details-marker,html:root .card-body .owner-more>summary::-webkit-details-marker{display:none}
html:root .card-body .more>summary::after,html:root .card-body .owner-more>summary::after{content:"";width:7px;height:7px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(45deg) translateY(-2px);transition:transform .2s cubic-bezier(.23,1,.32,1);opacity:.7}
html:root .card-body .more[open]>summary::after,html:root .card-body .owner-more[open]>summary::after{transform:rotate(-135deg) translateY(-2px)}
html:root .card-body .more[open]>summary,html:root .card-body .owner-more[open]>summary{color:var(--text)}
html:root .card-body .more .card-top{display:none}
html:root .card-body .more .card-meta{margin:0 0 12px;color:var(--muted);font-size:.86rem}
html:root .card-body .more .timeline,html:root .card-body .more .task-steps{border:0!important;border-top:0!important;padding-top:0!important}
html:root .card-body .owner-more>.review-actions{border-top:0!important;padding-top:4px!important}
html:root .card-body .owner-more>.review-actions .owner-controls-head{display:none}
/* finished video row: flat, same look as the rest of the site, no purple */
html:root .submission li{display:flex!important;flex-wrap:wrap;align-items:center;gap:12px}
html:root .submission .file-icon{flex:none;width:44px;height:44px;border-radius:12px;display:grid;place-items:center;background:var(--lift)!important;color:var(--muted)!important;border:1px solid var(--line)!important;font-size:1rem}
html:root .submission .file-info{flex:1;min-width:0;display:grid;gap:2px}
html:root .submission .file-info strong{font-size:.95rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root .submission .file-info small{color:var(--muted);font-size:.82rem}
html:root .submission a.file-open{flex:none;border:1px solid var(--line)!important;border-radius:999px;padding:8px 18px;background:transparent!important;color:var(--text)!important;font-weight:700;font-size:.9rem;text-decoration:none!important}
html:root .submission a.file-open:hover{background:var(--lift)!important}
html:root .submission .file-more{flex:none}
html:root .submission .file-more[open]{flex-basis:100%}
html:root .submission .file-more>summary{list-style:none;cursor:pointer;width:36px;height:36px;display:grid;place-items:center;border-radius:50%;color:var(--muted);font-size:1.3rem;line-height:1}
html:root .submission .file-more>summary::-webkit-details-marker{display:none}
html:root .submission .file-more>summary:hover{background:var(--lift)}
html:root .submission .file-more[open]>summary{background:var(--lift);color:var(--text)}
html:root .submission .file-more>button{margin-top:6px}
html:root .submission-head strong{font-size:1rem}
/* the trash button was still picking up the old purple button style */
html:root .card-body .submission button,html:root .card-body .submission li>button{background:transparent!important;border:1px solid var(--line)!important;color:var(--text)!important;box-shadow:none!important;border-radius:999px!important;padding:9px 16px!important;font-size:.88rem!important;font-weight:700}
html:root .card-body .submission button:hover{background:var(--lift)!important}
html:root .card-body .submission button[data-already-closed=false]{color:var(--bad)!important}

/* channel tabs: swipe between channels, or tap a tab */
.ch-wrap{min-width:0}
.ch-bar{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 0 12px}
.ch-bar::-webkit-scrollbar{display:none}
html:root .ch-tab{flex:0 0 auto;display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:14px;font-weight:700;color:var(--text)!important;background:none!important;border:1px solid var(--line)!important;border-radius:999px!important;padding:8px 14px;cursor:pointer;box-shadow:none!important;transition:background-color .15s ease-out,color .15s ease-out}
.ch-tab i{font-style:normal;font-size:12px;opacity:.65}
html:root .ch-tab[aria-selected="true"]{background:var(--text)!important;color:var(--bg)!important;border-color:var(--text)!important}
.ch-track{display:flex;align-items:flex-start;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:none}
.ch-track::-webkit-scrollbar{display:none}
.ch-pane{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always;display:grid;gap:9px;align-content:start}
.ch-badge{display:inline-flex;align-items:center;font-size:11px;font-weight:700;color:var(--text);border:1px solid var(--line);border-radius:999px;padding:2px 8px;margin-left:auto;margin-right:8px}
@media (prefers-reduced-motion:reduce){.ch-tab{transition:none}}
