/* The approved Clearspace mockups' layout (2026-10-31: docs/evidence/redesign/): the shell, Home, Dashboards, Team and Ask Maya, over the
   earlier stylesheets. Afterhours is the same layout on its own tokens. Colors and type are tokens.css's; nothing here names a color. */

/* ---- The shell: a fixed left rail, a top bar, one scrolling panel */
html,body{height:100%;overflow:hidden;font:400 14px/1.5 var(--font)}
.shell{height:100dvh;width:100%;display:grid;grid-template-columns:var(--side) minmax(0,1fr);position:relative}
svg.ico{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex:none}
.sidebar{position:relative;padding:27px 22px 20px;gap:0;z-index:20;background:var(--rail)}
.sidebar .brand{margin:0 0 30px;flex:none}.sidebar .brand img{width:200px;height:auto;max-width:100%}
.side-business{padding:12px 8px;margin-bottom:24px}
.side-business .initial{width:31px;height:31px;border-radius:9px;background:var(--bg)}
.side-business b{font-size:12px}.side-business small{font-size:11px}
.nav-primary,.nav-panel nav{display:grid;gap:4px}
.sidebar nav button{padding:11px 12px;gap:11px;border-radius:8px;color:var(--muted);font-size:13px;font-weight:500}
.sidebar nav button:hover{background:var(--bg)}
.sidebar nav button.active,.sidebar nav button.active:hover{background:var(--nav-active-bg);color:var(--nav-active-ink);font-weight:600}
.sidebar nav button svg{width:18px;height:18px;stroke-width:1.65}
.sidebar nav .nav-badge{background:none;color:inherit;font-size:11px;font-weight:500;min-width:0;padding:0}
/* ---- After the nine, a few groups with plain names (W13): each opens beside the sidebar on a wide screen (fixed, placed
   by navPlace, over the chat dock while open) and stands open in a phone's drawer, its screens under its name */
.nav-groups{display:grid;gap:4px;margin-top:6px}
.nav-group summary{display:flex;align-items:center;gap:11px;padding:11px 12px;border-radius:8px;color:var(--muted);font-size:13px;font-weight:500;cursor:pointer;list-style:none;min-height:40px}
.nav-group summary::-webkit-details-marker{display:none}.nav-group summary:hover{background:var(--bg)}
.nav-group summary::after{content:"";margin-left:auto;width:6px;height:6px;border:solid currentColor;border-width:0 1.5px 1.5px 0;transform:rotate(-45deg);opacity:.6}
.nav-group.current>summary{color:var(--nav-active-ink);font-weight:600}
/* (W17) Mail, a link out among a group's screens (the BothChairs mailbox, in a new tab): drawn as they are, with an
   arrow at its end that says it leaves the app */
.sidebar nav a.nav-link{display:flex;align-items:center;gap:11px;width:100%;padding:11px 12px;border-radius:8px;color:var(--muted);font-size:13px;font-weight:500;text-decoration:none}
.sidebar nav a.nav-link:hover{background:var(--bg)}
.sidebar nav a.nav-link::after{content:"\2197";margin-left:auto;opacity:.6}
/* A short window (a laptop's): every entry stays in view. The note gives way first, as it did while More was open,
   then a little of each row's padding for a mouse (a finger's rows keep their height) */
@media(min-width:761px) and (max-height:1050px){.sidebar-note{display:none}}
@media(min-width:761px) and (max-height:900px) and (pointer:fine){
  .sidebar{padding-top:18px}.sidebar .brand{margin-bottom:14px}.side-business{padding-block:8px;margin-bottom:10px}
  .nav-primary,.nav-groups{gap:2px}.sidebar nav button,.nav-group summary{padding-block:8px;min-height:34px}
  .sidebar nav a.nav-link{padding-block:8px;min-height:34px}
}
@media(min-width:761px){
  .nav-group[open]>summary{background:var(--bg)}
  .nav-group[open]>.nav-panel{position:fixed;z-index:50;width:236px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow-y:auto;padding:8px;background:var(--raised);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow)}
  .sidebar.flying{z-index:45}
  .nav-panel .nav-settings button{padding-left:12px}
}
.nav-settings{display:grid;gap:2px;margin-top:6px;padding-top:8px;border-top:1px solid var(--line)}
.nav-settings button{display:block;width:100%;text-align:left;padding:8px 12px 8px 41px;border-radius:8px;color:var(--muted);font-size:12px;font-weight:500}
.nav-settings button:hover{background:var(--bg)}
.sidebar-foot{margin-top:auto;padding-top:14px;border-top:0;font-size:12px;display:block}
.sidebar-note{padding:16px 10px;color:var(--muted);font-size:12px}.sidebar-note strong{display:block;color:var(--ink);margin:6px 0;font-weight:600}
.side-person{padding:15px 10px 0;border-top:1px solid var(--line)}.side-person .av{width:32px;height:32px;min-width:32px;background:var(--primary-soft);color:var(--primary-ink);font-size:11px}
.side-person b{font-weight:500;font-size:12px}.side-person small{font-size:11px}
.workspace{position:relative;min-height:0;min-width:0;display:flex;flex-direction:column;overflow:hidden}
.topbar{flex:none;height:76px;padding:0 36px;gap:18px;background:var(--panel);border-bottom:1px solid var(--line)}
.topbar-mark{display:none}
.crumb{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px;min-width:0;white-space:nowrap}
.crumb h1,.topbar .crumb h1{margin:0;font:500 12px var(--font);color:var(--ink);white-space:nowrap;overflow:visible}
#dash-back:not([hidden])+.crumb{margin-left:-6px}
.top-actions{display:flex;gap:10px;align-items:center;flex:none}
.search-btn{border:1px solid var(--line);background:var(--bg);color:var(--muted);display:flex;align-items:center;gap:10px;width:245px;text-align:left;border-radius:8px;padding:8px 12px;font-size:12px;font-weight:500;min-height:36px}
.search-btn kbd{margin-left:auto;border:1px solid var(--line);padding:0 4px;border-radius:3px;font:500 10px var(--font)}
.icon-btn{display:inline-grid;place-items:center;width:36px;height:36px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);flex:none}
.topbar .icon-btn,.topbar .search-btn{flex:none}
.initial.round{border-radius:50%;background:var(--primary-soft);color:var(--primary-ink);border:0;width:32px;height:32px;font-size:11px;font-weight:600}
.initial.round.big{width:90px;height:90px;font-size:28px}
.content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
body.has-dock .content>section,body.has-dock .content>div:not(.conversations){padding-bottom:110px}
body[data-view="conversations"] .content{overflow:hidden}

/* ---- Words and pieces the mockups share */
.redesign{padding:31px 36px 40px;max-width:1700px}
.attention,.approval-page,.staff-page,.meeting{padding:31px 36px 40px;max-width:1700px;margin:0}
.page-intro{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:26px;gap:16px}
.page-intro>div:first-child{min-width:0}
.page-intro h2,.page-head h2{font:600 30px/1.2 var(--font);letter-spacing:-1px;margin:0 0 9px;overflow-wrap:anywhere}
.page-intro p.eyebrow,.page-head p.eyebrow{font-size:13px;letter-spacing:1.5px;margin:0;color:var(--muted)}
.page-intro p:not(.eyebrow){margin:0;color:var(--muted);font-size:13px}
.page-head{margin-bottom:26px}.page-head>p:not(.eyebrow){margin:0;color:var(--muted);font-size:13px}
.eyebrow{font-size:10px;letter-spacing:1.5px;text-transform:uppercase;font-weight:500;color:var(--muted);margin:0 0 8px}
.date,.updated{font-size:12px;color:var(--muted);margin-top:6px;white-space:nowrap}.date small{font-size:10px}.date .dot{margin-left:7px;color:var(--primary)}
.dot{height:6px;width:6px;border-radius:50%;background:currentColor;display:inline-block;flex:none}
.av .dot{display:none}
.button{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--ink);min-height:36px;padding:8px 12px;font-size:12px;font-weight:500;flex:none}
.button.primary{background:var(--primary);border-color:var(--primary);color:var(--on-primary)}.button.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}
.button svg.ico{width:16px;height:16px}
.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px}
.section-head h3{font:600 15px var(--font);margin:0;display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.text-button{color:var(--primary-ink);font-size:12px;background:none;border:0;padding:0;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.text-button svg.ico{width:16px;height:16px}
.badge.active,.badge.attention,.today .section-head .badge{display:inline-flex;align-items:center;gap:6px;height:auto;min-width:0;border-radius:30px;padding:3px 8px;font-size:10px;font-weight:500;white-space:nowrap}
.badge.active{background:var(--primary-soft);color:var(--primary-ink)}
.badge.attention{background:var(--warn-bg);color:var(--warn-ink)}
.today .section-head .badge{background:var(--bg);color:var(--muted);border:1px solid var(--line)}
.panel{padding:22px}
.tab-chip{background:none;border:0;color:var(--muted);padding:9px 15px;border-radius:7px;font-size:12px;font-weight:500;display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.tab-chip.active{background:var(--ink);color:var(--panel)}.tab-chip .count{opacity:.65}
.toolbar{display:flex;gap:8px;align-items:center;margin-bottom:24px;flex-wrap:wrap}
.filter-input{margin-left:auto;border:1px solid var(--line);border-radius:8px;background:var(--panel);padding:8px 12px;color:var(--ink);min-height:36px;font-size:12px;width:220px;flex:none}
.empty-filter{padding:30px;color:var(--muted);grid-column:1/-1;text-align:center}
.all-clear{display:flex;gap:9px;align-items:center;color:var(--primary-ink);font-size:13px;margin:6px 0}

/* ---- The other pages, on the same scale as the mockups: the app's forms, tables, lists and cards */
.btn{font-size:13px;padding:8px 12px;border-radius:8px}.primary{font-size:13px;padding:8px 13px;border-radius:8px}.secondary{font-size:13px;border-radius:8px}
input,textarea,select{font-size:13px;padding:9px 11px;border-radius:8px}label{font-size:13px}
.panel h3{font-size:15px;margin-bottom:12px}.panel p{font-size:13px}.small{font-size:11px}
.metric{padding:19px 20px}.metric span{font-size:11px;font-weight:500}.metric strong{font-size:28px;letter-spacing:-.9px;margin:9px 0 4px;font-weight:600}.metric small{font-size:10px}.metric-link .go{font-size:11px;color:var(--primary-ink)}
.metric-grid{gap:15px;grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}
.work-tabs .btn,.customer-status .btn,.decision-tabs .btn{background:none;border-color:transparent;color:var(--muted);font-size:12px;padding:8px 13px;border-radius:7px;flex:none}
.work-tabs .btn.active,.customer-status .btn.active,.customer-status .btn[aria-pressed="true"],.decision-tabs .btn.active{background:var(--ink);color:var(--panel);border-color:var(--ink)}
.decision-filters label,.customer-toolbar label,.work-select,.work-check{font-size:12px;color:var(--muted)}
.decision-filters select,.customer-toolbar select,.customer-toolbar input,.work-toolbar select,.work-toolbar input[type=search]{font-size:12px;padding:8px 10px;min-height:36px;border-color:var(--line)}
.decision-row{padding:15px 18px;border-radius:var(--radius)}.decision-main b{font-size:13px}.decision-main span{font-size:11px}.decision-meta{font-size:11px}.decision-meta small{font-size:11px}
.job-card,.pipe-card{border-radius:var(--radius);padding:16px;font-size:13px}.job-card small,.pipe-card small,.pipe-card span{font-size:11px}.pipe-col{border-radius:var(--radius)}
.task-link b{font-size:13px}.task-link span{font-size:11px}.activity-item small{font-size:11px;color:var(--muted)}.activity-item p{font-size:12px;margin:4px 0 0}.activity-item{padding:12px 0}
.customers-table{font-size:13px}.customers-table th{font-size:10px}.customer-who small{font-size:11px}.chip{font-size:11px}
.dialog{border-radius:16px;font-size:13px}.dialog h2{font-size:20px;letter-spacing:-.01em}
.priority-row{font-size:13px;display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}.priority-row .line-label{flex:1 1 auto;min-width:0}
.facts{display:grid;grid-template-columns:minmax(110px,200px) minmax(0,1fr);gap:6px 16px;margin:0;font-size:13px}.facts dt{color:var(--muted)}.facts dd{margin:0;overflow-wrap:anywhere}
.approval-page>.panel,.approval-page>article{margin-bottom:17px}
.m{font-size:14px;margin-top:14px}.m .body{min-width:0}.who-line{font-size:12px;min-height:22px}.row .t b{font-size:13px}.row .t span{font-size:12px}
.bubble{padding:9px 13px}
.page-head .primary,.page-head .btn{margin-top:12px}

/* ---- Home */
.overview{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(280px,1fr);gap:20px;margin-bottom:24px;align-items:stretch}
.attention-list{display:grid}
.task-row{display:flex;align-items:center;gap:12px;padding:15px 0;border-bottom:1px solid var(--line)}
.task-row:last-child{border:0;padding-bottom:0}.task-row:first-child{padding-top:0}
.task-icon{color:var(--warn);width:34px;height:34px;border-radius:9px;background:var(--warn-bg);display:grid;place-items:center;flex:none}
.task-text{flex:1;min-width:0}.task-text strong{font-size:12px;font-weight:600;display:block;margin-bottom:4px;overflow-wrap:anywhere}
.task-text small{font-size:11px;color:var(--muted);display:block;overflow-wrap:anywhere}
.task-row .button{min-height:32px;font-size:11px;padding:6px 10px}
.today{display:flex;flex-direction:column}
.today-line{display:grid;grid-template-columns:48px 1fr;gap:12px;margin:0;padding:9px 0;text-align:left;width:100%;border-radius:8px;font-weight:400}
.today-line:hover{background:var(--hover)}
.today-line time{font-size:10px;color:var(--muted);padding-top:3px;white-space:nowrap}.today-line b{display:block;font-size:12px;font-weight:600;overflow-wrap:anywhere}
.today-line small{color:var(--muted);font-size:11px;overflow-wrap:anywhere}.today-line span{min-width:0}
.today-none{color:var(--muted);font-size:13px;margin:6px 0 14px}
.today-note{margin-top:auto;border-top:1px solid var(--line);padding-top:16px;display:flex;gap:9px;color:var(--primary-ink);font-size:11px;font-weight:400;width:100%;text-align:left}
.glance{margin-bottom:26px}
.numbers{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}
.metric-card{padding:19px 20px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);text-align:left;display:block;min-width:0;font-weight:400;transition:border-color .15s}
.metric-card:hover{border-color:var(--primary)}
.metric-label{font-size:11px;color:var(--muted);font-weight:500;display:block}
.metric-value{display:block;font-size:28px;font-weight:600;letter-spacing:-.9px;margin:9px 0 4px;line-height:1.2;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.metric-card small{font-size:10px;color:var(--muted);display:block}.metric-card small.trend{color:var(--primary-ink)}
.staff-working{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.working-card{padding:17px;border:1px solid var(--line);border-radius:var(--radius);background:var(--panel);display:flex;gap:12px;align-items:center;text-align:left;min-width:0;font-weight:400}
.working-card:hover{border-color:var(--primary)}
.working-who{min-width:0;display:block}.working-who strong{display:block;font-size:12px;font-weight:600;overflow-wrap:anywhere}
.working-role{display:block;margin:3px 0;font-size:11px;color:var(--muted)}
.working-task{color:var(--primary-ink);font-size:10px;display:flex;gap:5px;align-items:baseline;overflow-wrap:anywhere}.working-task .dot{position:relative;top:-1px}
.face{width:41px;height:41px;border-radius:50%;background:var(--primary-soft);color:var(--primary-ink);display:inline-grid;place-items:center;overflow:hidden;flex:none;font-size:13px;font-weight:600}
.face img{display:block;width:100%;height:100%;object-fit:cover}

/* ---- Ask Maya: one bar, docked at the bottom of every page */
.chat-dock{position:absolute;bottom:20px;left:36px;right:36px;z-index:30;border:1px solid var(--line);border-radius:14px;background:var(--raised);box-shadow:var(--shadow);padding:12px 16px}
.chat-dock[hidden]{display:none}
.dock-line{display:flex;align-items:center;gap:11px;grid-template-columns:none}
.dock-line .face{width:32px;height:32px}
.dock-person{min-width:100px;flex:none}.dock-person strong{display:block;font-size:11px;font-weight:600}.dock-person small{display:block;font-size:10px;color:var(--muted)}
.dock-line input{flex:1;min-width:0;border:0;background:transparent;padding:10px;color:var(--ink);outline:none;font-size:12px;width:auto;text-overflow:ellipsis}
.dock-line input::placeholder{color:var(--muted)}
.dock-line input:focus-visible{box-shadow:inset 0 -2px 0 var(--focus)}
.expand{border:1px solid var(--line);background:var(--bg);color:var(--ink);border-radius:7px;padding:7px;font-size:11px;font-weight:500;display:flex;gap:5px;align-items:center;flex:none}
.expand svg.ico{width:16px;height:16px}
.dock-line .send{width:44px;min-height:36px;padding:0;flex:none}

/* ---- Dashboards */
.dash-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.dash-card{display:flex;flex-direction:column;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:21px;text-align:left;transition:transform .15s,border-color .15s;min-width:0;font-weight:400}
.dash-card:hover{transform:translateY(-2px);border-color:var(--primary)}
.dash-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px}
.dash-symbol{width:32px;height:32px;border-radius:8px;background:var(--primary-soft);color:var(--primary-ink);display:grid;place-items:center}
.dash-title{display:block;font-size:13px;font-weight:600;margin:0 0 7px}
.dash-number{display:block;font-size:24px;font-weight:600;letter-spacing:-.7px;overflow-wrap:anywhere}
.dash-sub{display:block;font-size:11px;color:var(--muted);margin:7px 0 17px}
.dash-bottom{margin-top:auto;padding-top:12px;border-top:1px solid var(--line);color:var(--primary-ink);font-size:10px;display:flex;align-items:center;justify-content:space-between;gap:7px}
.dash-owner{display:flex;align-items:center;gap:8px;min-width:0}.dash-owner .face{width:25px;height:25px;font-size:9px}
.dash-back-link{display:inline-flex;align-items:center;gap:6px;flex:none;margin-bottom:18px;padding:7px 12px;font-size:12px;border-radius:8px}
.kept-by{display:flex;align-items:center;gap:8px;color:var(--primary-ink);font-size:12px}.kept-by .face{width:25px;height:25px;font-size:9px}
.page-intro p.kept-by{color:var(--primary-ink);font-size:12px}
.dash-lines .priority-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;padding:12px 0;font-size:13px}
.dash-lines .priority-row:first-of-type{border-top:0}
.line-text,.door-line{flex:1 1 200px;min-width:0;display:flex;align-items:baseline;justify-content:space-between;gap:12px;overflow-wrap:anywhere;text-align:left}
.door-line{text-decoration:none;color:var(--ink)}.door-line:hover .line-label,.door-line:hover{color:var(--primary-ink)}
.line-figure{font-weight:600;font-variant-numeric:tabular-nums;flex:none}
.dash-open{margin:0 0 6px;display:flex;justify-content:flex-end}.dash-open .button{flex:none}
.dashboard-tabs{margin-bottom:22px}.dashboard-tabs .btn{flex:none;padding:8px 13px;font-size:12px;border-radius:7px;background:none;border-color:transparent;color:var(--muted)}
.dashboard-tabs .btn.active{background:var(--ink);color:var(--panel);border-color:var(--ink)}

/* ---- Team */
.staff-summary{display:flex;align-items:center;gap:20px;margin-bottom:25px;border-bottom:1px solid var(--line);padding-bottom:20px;font-size:12px;color:var(--muted);flex-wrap:wrap}
.staff-summary b{color:var(--ink);font-weight:600;margin-right:4px}
.staff-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:19px}
.staff-card{position:relative;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);display:block;min-width:0}
.staff-open{display:flex;flex-direction:column;justify-content:flex-start;width:100%;height:100%;padding:0;text-align:left;font:inherit;color:inherit;background:none;border:0}
button.staff-open:hover{background:none;outline:0}button.staff-open:focus-visible{outline:2px solid var(--focus);outline-offset:-2px}
.staff-card:hover{border-color:var(--primary)}
.portrait-wrap{display:grid;place-items:center;height:175px;width:100%;flex:none;position:relative;background:var(--primary-soft);overflow:hidden;border-radius:var(--radius) var(--radius) 0 0}
.portrait-wrap img.portrait{position:absolute;max-width:none;width:180%;height:auto;left:-40%;top:0;transition:transform .2s;transform-origin:50% 10%}
.staff-card:hover .portrait-wrap img.portrait{transform:scale(1.025)}
.staff-card-content{display:flex;flex-direction:column;flex:1;padding:16px;width:100%;min-width:0}
.staff-name{display:block;font-size:15px;font-weight:600;overflow-wrap:anywhere}.staff-name small{font-weight:400;color:var(--muted)}
.staff-role{display:block;font-size:11px;color:var(--muted);margin:3px 0 8px}
.staff-strength{display:block;font-size:11px;color:var(--ink2);margin:0 0 12px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.staff-activity{border-top:1px solid var(--line);padding-top:12px;display:flex;gap:7px;align-items:center;font-size:10px;color:var(--muted);min-height:29px;overflow-wrap:anywhere}
.staff-activity.working{color:var(--primary-ink)}.staff-activity.waiting{color:var(--warn-ink)}
.staff-talk{width:100%;margin-top:auto}.staff-activity{margin-bottom:13px}
.card-menu{position:absolute;top:8px;right:8px;z-index:2}
.card-menu summary{list-style:none;cursor:pointer;width:30px;height:30px;border-radius:8px;display:grid;place-items:center;background:var(--panel);border:1px solid var(--line);color:var(--ink);opacity:.92}
.card-menu summary::-webkit-details-marker{display:none}
.card-menu-list{position:absolute;right:0;top:34px;background:var(--raised);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow);padding:4px;width:max-content;max-width:min(180px,70vw);z-index:3}
.card-menu-list button{display:block;width:100%;text-align:left;padding:9px 10px;border-radius:7px;font-size:12px;background:none;border:0;color:var(--ink);white-space:normal}
.card-menu-list button:hover{background:var(--hover)}
.team-panel{display:flex;gap:12px;align-items:center;padding:18px;border:1px dashed var(--line);border-radius:var(--radius);margin:20px 0;color:var(--muted);font-size:12px}
.staff-summary .text-button{margin-left:auto}
.meeting-body{grid-template-columns:minmax(240px,340px) minmax(0,1fr)}
.meeting-top .btn{flex:none}.meeting-face{padding:14px}
.staff-face.big{width:100%;max-width:310px;height:auto;aspect-ratio:4/5;border-radius:10px;position:relative;background:var(--primary-soft)}
.staff-face.big img{position:static;max-width:100%;width:100%;height:100%;object-fit:contain;object-position:center}

/* ---- Conversations: people first, the people's list never buried */
.conversations{height:100%}
.channel-tools{gap:6px;padding:12px 12px 8px;border-bottom:0}.channel-tools .btn{font-size:12px;padding:7px 8px;border-radius:8px}
.list-filter{display:flex;gap:4px;padding:0 12px 8px;border-bottom:1px solid var(--line)}.list-filter .tab-chip{padding:7px 11px;flex:1;justify-content:center}.list-filter .badge{height:18px;min-width:18px;font-size:10px;padding:0 5px}
.row .thread-mark{background:var(--sunken);color:var(--ink2)}.row.automatic{opacity:.82}
.thread-menu{position:relative;top:auto;right:auto;flex:none}.thread-menu summary{width:36px;height:36px;opacity:1}
.task-event{font-size:12px;border-left:0;margin:6px 0;padding:0 2px 0 46px;color:var(--muted)}.task-event p{margin:0;overflow-wrap:anywhere}.task-event small{font-size:10px}
.look img{aspect-ratio:1/1}
.av{background:var(--primary)}
.main .top{gap:8px 12px;padding:12px 18px;border-bottom:1px solid var(--line);background:var(--panel)}
.main .top h2{font-size:17px;min-width:0;flex:1 1 140px;letter-spacing:-.01em;overflow-wrap:anywhere}
.main .top .btn.back svg.ico{width:18px;height:18px}
.m{max-width:min(760px,100%)}.m .body{flex:1 1 auto}
.composer{min-width:0}.compose-row{min-width:0}

/* ---- Sign-in */
#app{min-width:0;overflow:auto}.welcome{box-sizing:border-box;width:100%;max-width:440px;min-width:0;padding:32px 24px}
.welcome form{text-align:left}.welcome .primary{width:100%}
.welcome-links{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}.welcome-links .btn{flex:1 1 140px;font-size:13px;padding:10px 12px;border-radius:9px}
.dev-mail{margin:14px 0 0}

/* ---- Search and the bell */
.dialog.command{padding:18px}.command-search{background:var(--bg)}
.command-results{display:grid;gap:5px;margin-top:12px}
.command-results button{display:flex;align-items:center;gap:8px;text-align:left;padding:11px 12px;border-radius:7px;background:var(--bg);font-size:13px;font-weight:400}
.command-results button:hover{background:var(--primary-soft)}
.command-results button>span{min-width:0;overflow-wrap:anywhere}.command-results button>small{margin-left:auto;flex:none;color:var(--muted);font-size:12px}
.dialog #phone-notifications{display:inline-flex;gap:8px;align-items:center;flex:none;font-size:13px;padding:9px 12px;border-radius:9px;margin-top:6px}

/* ---- A message's actions: there when wanted, not under every line. On touch a tap on the message shows them. */
@media(hover:hover){.m .body{position:relative}.m-actions{position:absolute;top:-4px;right:0;z-index:1;margin:0;opacity:0;transition:opacity .12s;pointer-events:none}.m:hover .m-actions,.m:focus-within .m-actions,.m.actions-open .m-actions{opacity:1;pointer-events:auto}}
@media(hover:none){.m-actions{display:none;margin-top:3px}.m.actions-open .m-actions{display:flex}}
.typing{margin:0;height:auto;padding:0 2px;color:var(--muted);font-size:12px}.typing[hidden]{display:none}

/* ---- Afterhours: the same layout, the darker mockup's touches */
[data-theme="afterhours"] .topbar{height:65px;background:var(--bg)}
[data-theme="afterhours"] .metric-card{border-top:2px solid var(--secondary)}
[data-theme="afterhours"] .staff-working .face{box-shadow:0 0 0 2px var(--secondary)}
[data-theme="afterhours"] .section-head .text-button,[data-theme="afterhours"] .today-note,[data-theme="afterhours"] .metric-card small.trend,[data-theme="afterhours"] .working-task,[data-theme="afterhours"] .dash-bottom,[data-theme="afterhours"] .staff-activity.working,[data-theme="afterhours"] .kept-by{color:var(--ink)}
[data-theme="afterhours"] .badge.active{color:var(--bothchairs-white);background:var(--bothchairs-teal)}
[data-theme="afterhours"] .initial.round,[data-theme="afterhours"] .side-person .av{color:var(--bothchairs-white);background:var(--bothchairs-indigo)}
[data-theme="afterhours"] .panel,[data-theme="afterhours"] .metric-card,[data-theme="afterhours"] .working-card,[data-theme="afterhours"] .dash-card,[data-theme="afterhours"] .staff-card{border-radius:9px}
@media (prefers-color-scheme:dark){
  [data-theme="system"] .topbar{height:65px;background:var(--bg)}
  [data-theme="system"] .metric-card{border-top:2px solid var(--secondary)}
  [data-theme="system"] .staff-working .face{box-shadow:0 0 0 2px var(--secondary)}
[data-theme="system"] .section-head .text-button,[data-theme="system"] .today-note,[data-theme="system"] .metric-card small.trend,[data-theme="system"] .working-task,[data-theme="system"] .dash-bottom,[data-theme="system"] .staff-activity.working,[data-theme="system"] .kept-by{color:var(--ink)}
  [data-theme="system"] .badge.active{color:var(--bothchairs-white);background:var(--bothchairs-teal)}
  [data-theme="system"] .initial.round,[data-theme="system"] .side-person .av{color:var(--bothchairs-white);background:var(--bothchairs-indigo)}
  [data-theme="system"] .panel,[data-theme="system"] .metric-card,[data-theme="system"] .working-card,[data-theme="system"] .dash-card,[data-theme="system"] .staff-card{border-radius:9px}
}

/* ---- The phone's bar: Home, Dashboards, Staff, More; shown only on the narrow layout */
.mobile-nav,.scrim{display:none}

/* ---- Wider than a phone, narrower than a desktop: the Fold's inner screen and tablets */
@media(max-width:1000px){
  .shell{grid-template-columns:232px minmax(0,1fr)}
  .sidebar{padding-inline:12px}.sidebar .brand img{width:200px}
  .topbar{padding-inline:24px}.redesign,.attention,.approval-page,.staff-page,.meeting{padding-inline:24px}
  .overview{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
  .search-btn{width:200px}
  .staff-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.dash-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .numbers{gap:10px}.metric-card{padding:14px 12px}.metric-value{font-size:22px;letter-spacing:-.6px}
  .staff-working{gap:10px;grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}.working-card{padding:12px}.working-card .face{width:34px;height:34px}
  .chat-dock{left:24px;right:24px}
  .conversations .side{width:230px}
  .customer-toolbar{grid-template-columns:repeat(2,minmax(0,1fr))}.customer-search{grid-column:1/-1}
}
@media(max-width:860px){.overview{grid-template-columns:minmax(0,1fr)}.staff-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.search-btn{width:36px;height:36px;padding:8px;justify-content:center;min-height:0}.search-btn span,.search-btn kbd{display:none}.dash-grid{grid-template-columns:minmax(0,1fr)}}

/* ---- Phones and the Fold's cover screen: one column, the bar at the bottom, Ask Maya over it */
@media(max-width:760px){
  .shell{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
  .sidebar{display:none;position:fixed;inset:0 0 0 auto;width:min(320px,86vw);overflow-y:auto;z-index:60;box-shadow:var(--shadow);padding:18px 14px calc(18px + var(--sab))}
  .sidebar.open{display:flex;inset:0 0 0 auto;z-index:60}.sidebar .brand{margin-bottom:16px}.sidebar .brand img{width:170px}
  .scrim:not([hidden]){display:block;position:fixed;inset:0;z-index:55;background:var(--scrim);border:0}
  .sidebar-note{display:none}.nav-groups{margin-top:4px}
  .nav-primary button,.nav-group summary,.nav-panel nav button{min-height:44px}.nav-panel nav button{padding-left:41px}
  .nav-panel nav a.nav-link{min-height:44px;padding-left:41px}
  .nav-group summary::after{transform:rotate(45deg)}.nav-group[open]>summary::after{transform:rotate(-135deg)}
  .topbar{height:66px;padding:0 18px;gap:10px}
  .topbar-mark{display:block;line-height:0}.topbar-mark img{width:44px;height:auto}
  .crumb,.top-me{display:none}.top-actions{gap:7px;margin-left:auto}
  .search-btn{background:transparent;width:35px;height:35px}.icon-btn{width:35px;height:35px}
  .redesign,.attention,.approval-page,.staff-page,.meeting{padding:27px 18px 40px}
  body.has-dock .content>section,body.has-dock .content>div:not(.conversations){padding-bottom:124px}
  .page-intro{display:block;margin-bottom:23px}.page-intro h2,.page-head h2{font-size:27px;letter-spacing:-.9px}
  .page-intro p:not(.eyebrow){font-size:12px;line-height:1.6}.page-intro .date,.page-intro .updated{font-size:10px;margin-top:15px}
  .page-intro>.button{margin-top:15px}
  .overview{display:flex;flex-direction:column;gap:18px;margin-bottom:22px}
  .panel{padding:20px 17px;border-radius:14px}
  .section-head h3{font-size:14px}.section-head{margin-bottom:18px}
  .task-row{gap:9px;padding:16px 0}.task-text strong{font-size:12px;line-height:1.45}.task-text small{font-size:11px}
  .task-icon{width:30px;height:32px}.task-row .button{font-size:11px;padding:6px 9px;min-height:34px}
  .numbers{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.metric-card{padding:16px;border-radius:12px}.metric-value{font-size:25px}.metric-label{font-size:10px}
  .staff-working{display:flex;flex-direction:column;gap:10px}.working-card{padding:15px}.working-card .face{width:43px;height:43px}
  .dash-grid{grid-template-columns:minmax(0,1fr);gap:12px}.dash-card{padding:18px 20px}.dash-top{margin-bottom:12px}.dash-title{font-size:14px}.dash-number{font-size:26px}
  .toolbar{gap:4px;margin-bottom:20px}.tab-chip{padding:9px 11px;font-size:11px}.filter-input{width:100%;margin:10px 0 0;min-height:41px;flex:1 1 100%}
  .staff-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.portrait-wrap{height:150px}.staff-card-content{padding:13px 11px}.staff-name{font-size:16px}
  .staff-role{font-size:10px;line-height:1.4;margin-bottom:6px}.staff-strength{font-size:10px;white-space:normal}.staff-activity{font-size:9px;align-items:flex-start;line-height:1.6}.staff-activity .dot{margin-top:4px}
  .staff-talk{font-size:10px;min-height:35px;padding:6px 8px}.staff-summary{gap:13px;font-size:10px}.team-panel{font-size:11px}.staff-summary .text-button{margin-left:0}
  .chat-dock{left:10px;right:10px;bottom:6px;padding:10px 11px;border-radius:12px}
  .dock-line{gap:7px;flex-wrap:wrap}.dock-line .face{width:26px;height:26px}.dock-person{min-width:0;flex:1}
  .dock-person strong{font-size:10px}.dock-person small{font-size:9px}
  .dock-line input{order:4;flex:1 1 calc(100% - 50px);border-top:1px solid var(--line);border-radius:0;padding:9px 0 0;margin-top:4px;height:34px;font-size:16px}.dock-line input::placeholder{font-size:13px}
  .dock-line .send{order:5;width:34px;height:34px;min-height:34px;padding:0;margin-top:4px}.expand{padding:5px 7px;font-size:10px}.expand svg.ico{width:13px;height:13px}
  .mobile-nav{display:flex;justify-content:space-around;background:var(--panel);border-top:1px solid var(--line);padding:6px 6px calc(6px + var(--sab));z-index:40;grid-row:2}
  .mobile-nav button{position:relative;display:flex;flex-direction:column;gap:2px;align-items:center;justify-content:center;font-size:9px;font-weight:500;color:var(--muted);min-width:56px;flex:1;min-height:44px;padding:2px 0}
  .mobile-nav button.active{color:var(--primary-ink)}.mobile-nav .menu-badge{position:absolute;top:-2px;right:calc(50% - 22px);font-size:9px;min-width:16px;height:16px;padding:0 4px}
  body.in-convo .mobile-nav{display:none}
  .conversations .side{width:100%;border:0}.conversations .main{width:100%}
  .task-event{padding-left:2px}.main .top{padding:10px 12px}.main .top .tabs{order:3;width:100%}.main .top .btn{font-size:12px;padding:7px 10px}
  .main .top .btn.back{display:inline-grid;place-items:center;width:36px;height:36px;padding:0;flex:none}
  .dash-open{justify-content:flex-start;margin-bottom:10px}
  .meeting-body{grid-template-columns:minmax(0,1fr);gap:12px}.meeting-top{margin-bottom:10px}
  .meeting-face{flex-direction:row;align-items:center;padding:10px 12px;gap:12px}.meeting-face figcaption{align-items:flex-start;text-align:left}.meeting-face figcaption b{font-size:16px}
  .staff-face.big{width:64px;height:80px;max-width:none;flex:none;border-radius:8px}
  .meeting-msgs{min-height:180px;max-height:50dvh}
  .customers-head{align-items:stretch}
  .facts{grid-template-columns:minmax(0,1fr);gap:2px}.facts dd{margin-bottom:8px}
  input,textarea,select{font-size:16px;padding:10px 11px}.metric-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.metric{padding:14px}.metric strong{font-size:22px}
  .decision-filters select,.customer-toolbar select,.customer-toolbar input,.work-toolbar select,.work-toolbar input[type=search]{font-size:16px}
}
/* The narrowest: the Fold's cover screen (344) and small phones. */
@media(max-width:400px){
  .redesign,.attention,.approval-page,.staff-page,.meeting{padding-inline:14px}.panel{padding:18px 14px}
  .topbar{padding-inline:14px}.staff-grid{gap:10px}.portrait-wrap{height:140px}
  .numbers{gap:10px}.metric-card{padding:14px 12px}.metric-value{font-size:22px}
  .task-row .button{padding:6px 8px}.today-line{grid-template-columns:48px minmax(0,1fr);gap:8px}
  .welcome{padding:24px 16px}
}
@media(prefers-reduced-motion:reduce){.dash-card,.metric-card,.portrait-wrap img.portrait{transition:none}.dash-card:hover{transform:none}.staff-card:hover .portrait-wrap img.portrait{transform:none}}

/* Chat controls retain comfortable targets on the phone and unfolded screens. */
.chat-quiet{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.chat-notification-buttons{display:flex;flex-wrap:wrap;gap:8px}
.chat-notification-buttons button,#channel-apps{min-height:40px}
#hook-token{width:100%;overflow-wrap:anywhere;font-size:14px}
.chat-presence{font-size:14px;line-height:1.4;max-width:240px;overflow-wrap:anywhere}
.chat-preferences form{gap:10px}
.chat-preferences h2{margin-bottom:16px}
.chat-preferences label,.chat-preferences .small{font-size:14px}
.chat-preferences input,.chat-preferences select{font-size:16px;min-height:44px}
.chat-preferences p{margin:0}
.chat-preferences .attention-list:empty{display:none}
.chat-preferences .btns{position:sticky;bottom:-18px;background:var(--panel);margin-top:2px;padding-block:10px}
.chat-preferences .error:empty{display:none}
.task-event:has([data-chat-app]){font-size:14px}.task-event [data-chat-app]{font-size:14px;min-height:40px;margin-bottom:8px}

/* UI4: size compact controls from their words, rather than equal zero-basis columns.
   Shared by Payroll tabs, Campaigns actions and Customers pagination. Desktop is unchanged. */
@media(max-width:600px){
  .pr-page .pr-tabs>button,.crm-page .crm-toolbar>button,.customers-page .customer-pager .btn{
    flex:0 0 auto;overflow-wrap:normal;word-break:normal;
  }
  .pr-page .pr-tabs{flex-wrap:nowrap;max-width:100%;overflow-x:auto}
  .pr-page .pr-tabs>button{white-space:nowrap}
  /* Jobs and Invoices share this label/select component; keep the label above its control. */
  .work-toolbar .work-select{display:grid;grid-template-columns:minmax(0,1fr);gap:4px;min-width:0;flex:1 1 220px;overflow-wrap:normal}
  .work-toolbar .work-select select{width:100%;min-width:0;max-width:100%}
  #vendors-page .work-toolbar{grid-template-columns:minmax(0,1fr)}
}

/* Approved menu #62089. Frame-only rules; workspace layouts keep their reviewed styles. */
.approved-frame{grid-template-columns:256px minmax(0,1fr)}
.approved-frame .sidebar{display:flex;flex-direction:column;overflow-y:auto;overscroll-behavior:contain;padding:20px 12px;gap:0}
.approved-frame .sidebar .brand{margin:0 12px 16px}.approved-frame .sidebar .brand img{width:180px}
.approved-frame .frame-business{display:flex;align-items:center;gap:10px;width:100%;min-width:0;padding:10px 8px;text-align:left;border:1px solid var(--line);border-radius:10px;margin-bottom:12px;color:var(--ink)}
.approved-frame .frame-business>span:nth-child(2){min-width:0;flex:1}.approved-frame .frame-business b{display:block;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.approved-frame .frame-business small{display:block;font-size:11px;color:var(--muted);overflow-wrap:normal;word-break:normal}
.approved-frame .frame-business .initial{display:grid;place-items:center;flex:none;width:36px;height:36px;border-radius:9px;background:var(--primary-soft);color:var(--primary-ink);font-weight:650}
.approved-frame .nav-primary,.approved-frame .frame-section>nav{display:grid;gap:2px}
.approved-frame .nav-groups{display:block;margin-top:4px}
.approved-frame .frame-section{margin:14px 0 0}.approved-frame .frame-section h2{font-size:11px;font-weight:650;color:var(--muted);margin:0;padding:8px 10px;letter-spacing:.02em}
.approved-frame .sidebar nav button,.approved-frame .sidebar nav a.nav-link,.approved-frame .frame-parent>summary{display:flex;align-items:center;gap:10px;text-align:left;width:100%;padding:8px 10px;min-height:36px;border-radius:8px;font-size:13px;font-weight:500;line-height:1.4;white-space:normal;word-break:normal;overflow-wrap:normal;color:var(--ink)}
.approved-frame .frame-parent>summary{cursor:pointer;list-style:none}.approved-frame .frame-parent>summary::-webkit-details-marker{display:none}.approved-frame .frame-parent>summary::after{content:'⌄';margin-left:auto}.approved-frame .frame-parent[open]>summary::after{transform:rotate(180deg)}
.approved-frame .frame-parent>nav{padding-left:16px}.approved-frame .frame-parent.current>summary{color:var(--nav-active-ink)}
.approved-frame .sidebar button:hover,.approved-frame .frame-parent>summary:hover{background:var(--bg)}
.approved-frame .sidebar nav button.active{background:var(--nav-active-bg);color:var(--nav-active-ink)}
.approved-frame .topbar{position:relative;height:64px;padding-inline:24px;gap:16px}.approved-frame .crumb{flex:1}.approved-frame .crumb h1{font-size:14px}
.approved-frame .top-me{display:grid;place-items:center;width:40px;height:40px;cursor:pointer}
.approved-frame .frame-top-business,.approved-frame .frame-sheet-head{display:none}
.approved-frame #frame-account{position:absolute;right:16px;top:58px;z-index:55;width:280px;max-height:calc(100dvh - 80px);overflow-y:auto;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);box-shadow:var(--shadow)}
.approved-frame #frame-account[hidden]{display:none}.approved-frame #frame-account button{display:flex;align-items:center;gap:10px;min-height:40px;width:100%;padding:8px 10px;text-align:left;font-size:13px;border-radius:8px;overflow-wrap:normal;word-break:normal}
.approved-frame #frame-account button:hover{background:var(--bg)}.approved-frame .frame-who{padding:6px 10px 12px;border-bottom:1px solid var(--line);margin-bottom:8px}.approved-frame .frame-who b,.approved-frame .frame-who small{display:block}.approved-frame .frame-who small{color:var(--muted)}
.approved-frame button:focus-visible,.approved-frame summary:focus-visible,.approved-frame a:focus-visible{outline:2px solid var(--primary-ink);outline-offset:2px}
/* The dock participates in the workspace's height, so no page action is behind it. */
.approved-frame .chat-dock{position:relative;flex:none;bottom:auto;left:auto;right:auto;margin:6px 24px 12px}
body.has-dock .approved-frame .content>section,body.has-dock .approved-frame .content>div:not(.conversations){padding-bottom:24px}
@media(max-width:760px){
  .approved-frame{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto}
  .approved-frame .sidebar{display:none;position:fixed;inset:auto 0 0;width:100%;max-height:90dvh;padding:0 16px calc(20px + var(--sab));border-radius:18px 18px 0 0;background:var(--panel);z-index:60}
  .approved-frame .sidebar.open{display:flex;inset:auto 0 0}.approved-frame .sidebar>.brand{display:none}
  .approved-frame .frame-sheet-head{display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;background:var(--panel);padding:10px 0;z-index:1}.approved-frame .frame-sheet-head h2{margin:0;font-size:18px}
  .approved-frame .frame-sheet-head button{width:44px;height:44px}
  .approved-frame .frame-section>nav{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:8px;align-items:start}
  .approved-frame .frame-parent{grid-column:1/-1}.approved-frame .frame-parent>nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:2px 8px;padding-left:0}
  .approved-frame .sidebar nav button,.approved-frame .sidebar nav a.nav-link,.approved-frame .frame-parent>summary,.approved-frame #frame-account button{min-height:44px}
  .approved-frame .topbar{height:64px;padding:6px 12px;gap:6px}.approved-frame .top-actions{gap:4px}
  .approved-frame .frame-top-business{display:block;flex:1;min-width:0}.approved-frame .frame-top-business .frame-business{margin:0;border:0;padding:0;gap:6px}.approved-frame .frame-top-business .frame-business b{max-width:145px}
  .approved-frame .frame-top-business small{display:none}.approved-frame .frame-top-business .initial{width:30px;height:30px;font-size:11px}
  .approved-frame .topbar .search-btn,.approved-frame .topbar .icon-btn{width:40px;height:44px;padding:8px;border:0}.approved-frame .topbar .search-btn span,.approved-frame .topbar .search-btn kbd{display:none}
  .approved-frame .topbar .top-me{display:grid;width:36px;height:36px}.approved-frame .crumb{display:none}
  .approved-frame .mobile-nav{display:flex;min-width:0}.approved-frame .mobile-nav button{min-width:0;min-height:48px;font-size:11px;word-break:normal;overflow-wrap:normal}
  .approved-frame .mobile-nav button.active{color:var(--nav-active-ink);background:var(--nav-active-bg);border-radius:8px}
  .approved-frame .scrim:not([hidden]){display:block;position:fixed;inset:0;z-index:59}
  .approved-frame #sheet-account-slot #frame-account{position:static;width:100%;max-height:none;box-shadow:none;border:0;border-top:1px solid var(--line);margin-top:18px;padding:12px 0}
  .approved-frame .chat-dock{margin:4px 10px 6px;padding:10px 11px}
}
@media(max-width:760px){body.in-convo .approved-frame .mobile-nav{display:flex}}

/* CL-05: Compact phone IM / Chat: content first, readable messages and reachable controls. */
@media(max-width:760px){
  body[data-view="conversations"] .topbar{height:48px;min-height:48px;padding-inline:12px}
  body[data-view="conversations"] .topbar :is(.icon-btn,.search-btn,#notify){width:44px;height:44px}
  body[data-view="conversations"] .conversations .main{background:var(--panel)}
  body[data-view="conversations"] .msgs>:first-child{margin-top:0}
  body[data-view="conversations"] .thread-panel{top:48px}
  body[data-view="conversations"] :is(.channel-tools,.list-filter){padding:6px 12px;gap:6px}
  body[data-view="conversations"] .row .t :is(b,span){white-space:normal;overflow-wrap:anywhere;font-size:14px}
  body[data-view="conversations"] :is(.conversations,.dialog) :is(button,summary){min-height:44px;min-width:44px;font-size:14px}
  body[data-view="conversations"] .main .top .btn.back{width:44px;height:44px}
  body[data-view="conversations"] :is(.main .top .btn,#channel-apps,.dialog #phone-notifications){min-height:44px;font-size:14px}
  body[data-view="conversations"] :is(.who-line,.task-event,.typing,.pending-file,.file-meta small,.no-access,.file-row>small,.thread-count,.composer label){font-size:14px}
  body[data-view="conversations"] :is(.bubble,.pending-file,.file-card,.dialog){overflow-wrap:anywhere}
  body[data-view="conversations"] .file-meta{flex-basis:100%}
  body[data-view="conversations"] .pending-file{max-width:100%}
  body[data-view="conversations"] .composer{padding:8px 12px calc(8px + var(--sab));gap:6px;max-height:50dvh;overflow:auto;flex-shrink:0}
  body[data-view="conversations"] .compose-row{flex-wrap:wrap;gap:6px;align-items:flex-end}
  body[data-view="conversations"] .compose-row>:is(.rt-host,textarea){flex:1 1 100%;width:100%;min-width:0}
  body[data-view="conversations"] .compose-row>.primary{margin-left:auto}
  body[data-view="conversations"] :is(.conversations,.dialog) .rt-toolbar{flex-wrap:nowrap;overflow-x:auto}
  body[data-view="conversations"] :is(.conversations,.dialog) .rt-btn{height:44px}
  body[data-view="conversations"] :is(.conversations,.dialog) .ProseMirror{font-size:16px;max-height:20dvh}
  body[data-view="conversations"] :is(.conversations,.dialog) :is(.rich code,.ProseMirror code,.rt-link-error,.rt-person-kind){font-size:14px}
  body[data-view="conversations"] :is(.conversations,.dialog) :is(.rt-person,.rt-person-name,.mention){white-space:normal;overflow-wrap:anywhere}
  body[data-view="conversations"] :is(.conversations,.dialog) .rt-person{min-height:44px}
  body[data-view="conversations"] .dialog :is(label,p,.small,small,.hint,.task-text strong,.task-text span){font-size:14px}
  body[data-view="conversations"] .dialog :is(input:not([type=checkbox]):not([type=radio]),select,textarea){min-width:0;max-width:100%;min-height:44px;font-size:16px}
  body[data-view="conversations"] .dialog pre{white-space:pre-wrap;overflow-wrap:anywhere}
  body[data-view="conversations"] .dialog .chat-quiet{grid-template-columns:minmax(0,1fr)}
}

/* Password visibility is a separate, thumb-sized control for each field. */
.password-field{display:block;position:relative;min-width:0}
.password-field input{width:100%;padding-right:54px;min-height:48px}
.password-eye{position:absolute;right:2px;top:2px;bottom:2px;width:46px;min-height:44px;display:grid;place-items:center;border:0;border-radius:8px;background:transparent;color:inherit;padding:10px;cursor:pointer}
.password-eye svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8}
.password-eye .eye-slash{display:none}
.password-eye[aria-pressed="true"] .eye-slash{display:block}
.password-eye:focus-visible{outline:2px solid currentColor;outline-offset:-3px}
.signin-actions{display:flex;flex-wrap:wrap;gap:10px}
.signin-actions button{flex:1 1 180px;min-height:48px}
.passkey-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid var(--line)}
.passkey-row div{min-width:0;overflow-wrap:anywhere}
.passkey-row p,.account-details p{margin:6px 0;font-size:1rem}
.passkey-row button{min-height:44px;flex-shrink:0}
.passkey-list{margin-bottom:18px}
.account-details{overflow-wrap:anywhere}

.account-form{font-size:16px}
.account-passkeys{display:grid;gap:12px}
.account-passkeys>h3,.account-passkeys>p{margin:0}
.account-form .passkey-row button{width:auto;min-width:88px;flex:0 0 auto}
.account-form button{min-height:44px}
.account-form .error:empty,.account-form #cancel{display:none}
.account-form .btns{margin-top:0}
.sidebar-foot #my-account{min-height:44px;font-size:14px}
/* Account access is an action, including on narrow screens. */
#account-avatar{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;cursor:pointer;border:1px solid var(--line)}

.account-details dl{display:grid;grid-template-columns:minmax(80px,auto) minmax(0,1fr);gap:8px 16px}
.account-details dt{font-weight:600}
.account-details dd{margin:0;overflow-wrap:anywhere}
.account-password{padding-block:16px;border-block:1px solid var(--line);margin-block:16px}

/* CL-02: API/MCP, provider keys, connector settings and their token dialogs. */
@media(max-width:760px){
  body[data-view="integrations"] .approval-page{padding-top:14px}
  body[data-view="integrations"] .page-head{margin-bottom:14px}
  :is(body[data-view="integrations"] .admin-page,#admin-providers,#admin-settings .admin-item:last-child){min-width:0;overflow-wrap:anywhere}
  :is(body[data-view="integrations"] .admin-page,#admin-providers,#admin-settings .admin-item:last-child) :is(p,label,.small,.btn){font-size:14px}
  :is(body[data-view="integrations"] .admin-page,#admin-providers,#admin-settings .admin-item:last-child) .btn{display:inline-flex;align-items:center;min-height:44px;max-width:100%;white-space:normal}
  body[data-view="integrations"] .panel a:not(.btn){display:inline-block;min-height:44px;padding-block:10px}
  #api-key-create{grid-template-columns:minmax(0,1fr)}
  #api-key-create label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px;min-height:44px}
  #api-key-create input[type=checkbox]{width:20px;height:20px;flex:none}
  #admin-settings .admin-item:last-child .admin-line{flex-wrap:wrap}
  #admin-settings .admin-item:last-child .btn{flex:none}
  :is(body[data-view="integrations"] .dialog,.dialog:has(#hook-token,select[name=direction])){font-size:14px;overflow-wrap:anywhere}
  :is(body[data-view="integrations"] .dialog,.dialog:has(#hook-token,select[name=direction])) :is(label,.small,.task-text strong){font-size:14px}
  :is(body[data-view="integrations"] .dialog,.dialog:has(#hook-token,select[name=direction])) button{font-size:14px;min-height:44px}
  .dialog:has(select[name=direction]) .task-row .btn{flex:none}
}

/* CL-03: approval facts and signing records stay readable in the compact phone workspace. */
@media(max-width:600px){
  :is(.decisions-page,.decision-detail,.approval-page:has(#esign-signed)){padding-top:12px;overflow-wrap:anywhere}
  :is(.decisions-page,.decision-detail,.approval-page:has(#esign-signed)) .page-head{margin-bottom:12px}
  :is(.decisions-page,.decision-detail,.approval-page:has(#esign-signed)) :is(p,small,.small,.chip,.decision-main span,.decision-meta){font-size:14px}
  :is(.decisions-page,.decision-detail,.approval-page:has(#esign-signed)) :is(button,.btn,summary,label.check){min-height:44px;max-width:100%;white-space:normal}
  .decision-filters{gap:8px;margin-top:8px}.decision-filters label{flex:1 1 0;min-width:0}
  .decision-meta{min-width:0}.decision-tabs{flex-wrap:wrap}
  body:has(:is(.decisions-page,.decision-detail,#esign-signed)) .dialog{font-size:14px;overflow-wrap:anywhere}
  body:has(:is(.decisions-page,.decision-detail,#esign-signed)) .dialog :is(p,small,.small,legend){font-size:14px}
  body:has(:is(.decisions-page,.decision-detail,#esign-signed)) .dialog :is(button,.btn,summary,label.check){min-height:44px;max-width:100%;white-space:normal}
}

/* CL-24: Compact AI runtime cards, provider health and read-only usage. */
@media(max-width:600px){
  .staff-page{padding-top:14px;overflow-wrap:anywhere}
  .staff-page .page-intro{margin-bottom:12px}
  .staff-page .page-intro p:not(.eyebrow){font-size:14px}
  .staff-page .staff-summary{margin-bottom:12px;padding-bottom:12px;font-size:14px}
  .staff-page .toolbar{margin-bottom:12px;flex-wrap:wrap}
  .staff-page .toolbar button,.staff-page .toolbar input{min-height:44px;font-size:14px;max-width:100%;min-width:0}
  .staff-page .toolbar input{font-size:16px}
  .staff-page .staff-grid{grid-template-columns:minmax(0,1fr)}
  .staff-page [data-kind="ai"] .portrait-wrap{display:none}
  .staff-page [data-kind="ai"] .staff-card-content{padding:12px}
  .staff-page [data-kind="ai"] .staff-name{order:-3;padding-right:44px}
  .staff-page [data-kind="ai"] .staff-role{order:-2;font-size:14px}
  .staff-page [data-kind="ai"] .staff-activity{order:-1;font-size:14px;line-height:1.5;margin-bottom:10px}
  .staff-page [data-kind="ai"] .staff-strength,.staff-page [data-kind="ai"] .staff-support{font-size:14px;white-space:normal;overflow:visible;overflow-wrap:anywhere}
  .staff-page [data-kind="ai"] .staff-talk{min-height:44px;font-size:14px}
  .staff-page [data-kind="ai"] .card-menu summary{width:44px;height:44px}
  .staff-page [data-kind="ai"] .card-menu-list{top:48px}
  .staff-page [data-kind="ai"] .card-menu-list button{min-height:44px;font-size:14px}
  .staff-page .team-panel{font-size:14px}
  #admin-providers,#admin-ai-usage{min-width:0;overflow-wrap:anywhere}
  #admin-providers p,#admin-ai-usage p,#admin-ai-usage li{font-size:14px;line-height:1.5}
  #admin-providers .admin-head,#admin-ai-usage .admin-head{min-width:0}
  #admin-providers button{min-height:44px;max-width:100%;white-space:normal;font-size:14px}
}

/* Approved menu Home v4, 62089/72912. Content only: no shell, sidebar or dock selectors. */
#home-page.home-approved{padding:18px 36px 40px;max-width:1700px;color:var(--ink)}
#home-page.home-approved [hidden]{display:none!important}
#home-page.home-approved button{font:inherit}
#home-page .home-brand{display:flex;align-items:center;gap:12px;padding:18px 0 8px}
#home-page .home-logo{position:relative;flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:11px;background:var(--primary-soft);color:var(--primary-ink);font-weight:750}
#home-page .home-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;border-radius:11px;background:var(--panel)}
#home-page .home-business{flex:1;min-width:0}
#home-page .home-business b{display:block;font-size:17px;font-weight:750;overflow-wrap:anywhere}
#home-page .home-business small{display:block;color:var(--muted);font-size:13px}
#home-page .home-link{border:0;background:none;padding:8px 6px;color:var(--ink2);font-weight:600;text-decoration:underline;text-decoration-color:var(--line);text-underline-offset:3px;min-height:36px}
#home-page .home-link:hover{color:var(--primary-ink)}
#home-page .home-hello{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:10px 0 2px}
#home-page .home-hello h2{font-size:27px;font-weight:750;letter-spacing:-.01em;margin:0}
#home-page .home-role{display:inline-block;padding:4px 13px;border-radius:14px;background:var(--ink);color:var(--bg);font-weight:650;font-size:14px;max-width:100%;overflow-wrap:anywhere}
#home-page .home-purpose{margin:2px 0 16px;font-size:16.5px;color:var(--ink2)}
#home-page .home-purpose>span{color:var(--muted);font-size:14px;margin-left:8px;display:inline-block}
#home-page .home-snapshot-head{display:flex;align-items:baseline;margin:0 0 8px;font-size:13px;color:var(--muted)}
#home-page .home-nums{display:grid;grid-template-columns:repeat(var(--home-n,4),minmax(0,1fr));background:var(--panel);border-radius:14px;box-shadow:0 1px 2px var(--shadow-c1);overflow:hidden}
#home-page .home-num{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:18px 22px;min-width:0;border:0;border-left:1px solid var(--line);border-radius:0;text-align:left;background:none}
#home-page .home-num:first-child{border-left:0}
#home-page .home-num>span,#home-page .home-num small{font-size:13.5px;color:var(--muted)}
#home-page .home-num strong{font-size:30px;font-weight:700;letter-spacing:-.015em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#home-page .home-num .home-num-action{font-size:16px;margin:5px 0;text-decoration:underline;text-underline-offset:3px}
#home-page .home-num:hover strong{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px}
#home-page .home-num small.home-late{color:var(--bad);font-weight:600}
#home-page .home-staffline{margin:14px 2px 0;color:var(--ink2)}
#home-page .home-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px;align-items:start}
#home-page .home-card{background:var(--panel);border-radius:14px;padding:18px 22px 16px;min-width:0;box-shadow:0 1px 2px var(--shadow-c1)}
#home-page .home-card h3{font-size:16px;font-weight:700;display:flex;align-items:baseline;gap:8px;margin:0 0 8px}
#home-page .home-card h3 .home-link{margin-left:auto;font-size:13.5px;white-space:nowrap;padding:0 2px}
#home-page .home-card p{margin:0;color:var(--ink2)}
#home-page .home-card.home-quiet{grid-column:1/-1;display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;background:none;box-shadow:none;padding:4px 2px;color:var(--muted)}
#home-page .home-quiet h3{font-size:14px;margin:0;gap:12px}
#home-page .home-quiet p{font-size:13.5px;color:var(--muted)}
#home-page .home-row{display:flex;align-items:center;gap:12px;padding:7px 0;border-top:1px solid var(--line)}
#home-page .home-row:first-of-type{border-top:0}
#home-page .home-row time{flex:none;width:80px;font-size:13.5px;color:var(--muted);font-variant-numeric:tabular-nums}
#home-page .home-row-open{flex:1;min-width:0;display:block;text-align:left;padding:2px 0;border:0;background:none}
#home-page .home-row-open>span{display:block;overflow-wrap:anywhere}
#home-page .home-row-open small{display:block;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
#home-page .home-row-open:hover>span{text-decoration:underline;text-underline-offset:3px}
#home-page .home-control,#home-page .home-review{border:1px solid var(--line);background:var(--panel);border-radius:8px;padding:8px 12px;min-height:44px;white-space:nowrap;font-weight:600}
#home-page .home-control.primary{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
#home-page .home-control:disabled{opacity:.4;cursor:default}
#home-page .home-remove{color:var(--bad)}
#home-page .home-remainder{font-size:13.5px;color:var(--muted);margin-top:8px}
#home-page .home-promoted{grid-column:1/-1}
#home-page .home-morebar{text-align:center;margin-top:18px}
#home-page .home-morebar .home-link{font-size:14.5px}
#home-page .home-edit-head{display:flex;gap:16px;align-items:center;justify-content:space-between;margin:22px 0 18px;flex-wrap:wrap}
#home-page .home-edit-head h2{margin:0;font-size:27px}
#home-page .home-edit-head p{margin:4px 0;color:var(--muted)}
#home-page .home-edit-head small{color:var(--muted)}
#home-page .home-edit-head>div:last-child{display:flex;flex-wrap:wrap;gap:8px}
#home-page .home-edit-section,#home-page .home-add-list{background:var(--panel);border-radius:14px;padding:6px 22px;margin-bottom:16px;box-shadow:0 1px 2px var(--shadow-c1)}
#home-page .home-edit-section h3{font-size:13px;font-weight:700;color:var(--muted);padding:12px 0 4px;margin:0}
#home-page .home-edit-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-top:1px solid var(--line)}
#home-page .home-edit-row:first-of-type{border-top:0}
#home-page .home-edit-row>div{flex:1;min-width:0}
#home-page .home-edit-row b,#home-page .home-add-row b{display:block;font-weight:650}
#home-page .home-edit-row small,#home-page .home-add-row small{display:block;font-size:13px;color:var(--muted)}
#home-page .home-edit-row>span{display:flex;gap:8px;flex:none}
#home-page .home-add-list h3{display:flex;align-items:baseline;justify-content:space-between}
#home-page .home-add-list h4{color:var(--muted);font-size:13px;margin:16px 0 2px}
#home-page .home-add-row{display:flex;gap:12px;align-items:center;padding:9px 0;border-top:1px solid var(--line)}
#home-page .home-add-row>span{flex:1;min-width:0}
#home-page button:focus-visible{outline:2px solid var(--primary);outline-offset:3px}
#home-page .sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
@media(max-width:1180px) and (min-width:900px){#home-page .home-num{padding:16px}#home-page .home-num strong{font-size:26px}}
@media(max-width:899px){
  #home-page.home-approved{padding:12px 16px 32px}
  #home-page .home-brand{padding:12px 0 4px;gap:10px}
  #home-page .home-logo{width:36px;height:36px;border-radius:10px}
  #home-page .home-business b{font-size:15.5px;line-height:1.25}
  #home-page .home-hello{margin:8px 0 2px;gap:10px}
  #home-page .home-hello h2{font-size:23px}
  #home-page .home-role{font-size:13.5px;padding:3px 11px}
  #home-page .home-purpose{font-size:15.5px;margin-bottom:12px}
  #home-page .home-purpose>span{display:block;margin:2px 0 0;font-size:13.5px}
  #home-page .home-nums{grid-template-columns:repeat(2,minmax(0,1fr))}
  #home-page .home-num{padding:13px 14px}
  #home-page .home-num:nth-child(odd){border-left:0}
  #home-page .home-num:nth-child(n+3){border-top:1px solid var(--line)}
  #home-page .home-num strong{font-size:24px}
  #home-page .home-num>span,#home-page .home-num small{font-size:13px}
  #home-page .home-staffline{font-size:13.5px;margin-top:10px}
  #home-page .home-cards{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:14px}
  #home-page .home-card{padding:14px 16px 12px}
  #home-page .home-edit-section{padding:4px 14px}
  #home-page .home-edit-row{flex-wrap:wrap}
  #home-page .home-edit-row>div{flex-basis:100%}
  #home-page .home-edit-row>span{width:100%;gap:6px}
  #home-page .home-edit-row .home-control{flex:1;padding:0 8px;font-size:13px}
  #home-page .home-edit-head h2{font-size:22px}
}
#home-page .home-add-backdrop{position:fixed;inset:0;background:var(--scrim);z-index:70;display:flex;justify-content:flex-end}
#home-page .home-add-backdrop .home-add-list{width:440px;max-width:100%;height:100%;margin:0;border-radius:0;overflow:auto;padding:14px 22px 24px;box-shadow:var(--shadow)}
#home-page .home-add-backdrop .home-add-list>h3{position:sticky;top:-14px;background:var(--panel);margin:0;padding:12px 0;border-bottom:1px solid var(--line)}
@media(max-width:899px){
  #home-page .home-add-backdrop{align-items:flex-end}
  #home-page .home-add-backdrop .home-add-list{width:100%;height:auto;max-height:86dvh;border-radius:16px 16px 0 0;padding-inline:16px}
}

#home-page .home-new{position:relative;flex:none}
#home-page .home-new summary{display:block;cursor:pointer;list-style:none;border-radius:8px;background:var(--primary);color:var(--on-primary);font-weight:600;padding:10px 14px;min-height:44px}
#home-page .home-new summary::-webkit-details-marker{display:none}
#home-page .home-new>div{position:absolute;right:0;top:48px;z-index:5;background:var(--panel);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:10px;padding:6px;width:180px}
#home-page .home-new button{display:block;text-align:left;width:100%;padding:10px;border-radius:6px}
#home-page .home-new button:hover{background:var(--hover)}

#home-page .home-edit-phone{display:none}
@media(max-width:899px){#home-page #home-edit{display:none}#home-page .home-edit-phone{display:block;text-align:center;margin-top:10px}}

/* Rows that scroll sideways (C24 fix 7): one rule for every row of tabs or buttons wider than the screen. app.js
   (markScrollRows) sets data-scroll-more to the edge(s) with more to see. While there is more to the right, a chevron
   sits on the right edge, held there with position:sticky as the row scrolls. It comes after the last item and its
   width is cancelled by its margin, so nothing in the row moves. (No start chevron: a flex gap before it would shift
   the row.) */
[data-scroll-more]::after{content:"›";position:sticky;right:0;z-index:1;flex:none;align-self:stretch;order:9999;width:28px;margin-left:-28px;display:flex;align-items:center;justify-content:center;background:var(--bg);color:var(--muted);font-size:22px;line-height:1;pointer-events:none;visibility:hidden}
[data-scroll-more="end"]::after,[data-scroll-more="both"]::after{visibility:visible}
