/* Project Command public/demo shell, panels, attention metrics and mobile navigation,
   combined with IM v0's message/list/composer styles. No industry screens or records. */
.shell{height:100dvh;width:100%;display:grid;grid-template-columns:var(--side) minmax(0,1fr)}
.sidebar{background:var(--panel);color:var(--ink);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:14px 16px 14px;gap:12px;overflow-y:auto;min-height:0}
.brand{line-height:0;flex:none}.brand img{width:200px;height:auto}
.sidebar nav{display:grid;gap:2px}.sidebar nav button{display:flex;align-items:center;gap:11px;width:100%;text-align:left;padding:10px 12px;border-radius:9px;color:var(--ink2);font-weight:500}.sidebar nav button svg{flex:none;width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.sidebar nav button:hover{background:var(--hover)}.sidebar nav button.active{background:var(--nav-active-bg);color:var(--nav-active-ink)}
.sidebar-foot{margin-top:auto;font-size:13px;display:grid;gap:4px;padding-top:12px;border-top:1px solid var(--line)}.sidebar-foot button{display:block;width:100%;text-align:left;color:var(--ink2);padding:7px 12px;border-radius:9px;border:0;background:none;flex:none;font-size:13px}.sidebar-foot button:hover{background:var(--hover)}
.workspace{display:flex;flex-direction:column;min-width:0;min-height:0}.topbar{height:68px;border-bottom:1px solid var(--line);padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:var(--panel)}
.topbar h1{margin:0;font:600 18px var(--font)}.top-actions{display:flex;gap:8px}.content{flex:1;min-height:0;overflow:auto}.view{height:100%}
.conversations{display:flex;height:100%;min-height:0}.conversations .side{width:290px}.conversations .main{position:relative}
.main .msgs{flex:1;overflow:auto;min-height:0}.channel-tools{padding:12px;border-bottom:1px solid var(--line);display:flex;gap:8px;flex-wrap:wrap}.row{width:100%;text-align:left}.av{background:var(--primary);flex-shrink:0;width:36px;height:36px;min-width:36px;font-size:13px}.av.ai{background:var(--secondary);color:var(--on-secondary)}.av .dot{display:none}
.attention,.approval-page{padding:28px;max-width:1200px;margin:auto}.page-head{margin-bottom:24px}.page-head h2{font:600 32px/1.15 var(--font);letter-spacing:-.025em;margin:0 0 8px}.eyebrow{font-size:12px;font-weight:500;text-transform:uppercase;letter-spacing:.1em;color:var(--muted);margin:0 0 6px}
.metric-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:16px;margin:18px 0}.metric,.panel,.duty-focus{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:20px}.metric span,.metric small{display:block;color:var(--muted)}.metric strong{display:block;font:600 30px var(--font);letter-spacing:-.02em;margin:8px 0}.duty-focus{margin:18px 0}.panel h3{margin-top:0}.priority-row,.activity-item{padding:14px 0;border-top:1px solid var(--line);white-space:pre-wrap;overflow-wrap:anywhere}.dashboard-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}
.card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px;margin:12px 0;overflow-wrap:anywhere;box-shadow:none}.card h3{margin:0 0 8px}.card p{white-space:pre-wrap}.card .btns{flex-wrap:wrap}.typed{white-space:pre-wrap;padding:10px 13px;font:inherit;overflow-wrap:anywhere}.sys{white-space:pre-wrap;overflow-wrap:anywhere}.badge{min-width:22px}.small{font-size:12px;color:var(--muted)}
.btn,.primary,.secondary{border:1px solid var(--line);background:var(--panel);padding:9px 13px;border-radius:9px}.primary,.btn.primary{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}.primary:hover,.btn.primary:hover{background:var(--primary-hover);border-color:var(--primary-hover)}.danger{color:var(--bad)}.back{display:none}.empty{padding:32px}
form{display:grid;gap:15px}label{display:grid;gap:6px;text-align:left}input,textarea,select{border:1px solid var(--control-line);border-radius:9px;background:var(--raised);color:var(--ink);padding:11px;width:100%;font:inherit;font-weight:400;min-width:0}input[type=checkbox]{width:auto}label.check{display:flex;align-items:center;gap:8px}.welcome{max-width:440px}.welcome form p{margin:0}.error{color:var(--bad)}
.dialog-bg{position:fixed;inset:0;background:var(--scrim);z-index:80;display:grid;place-items:center;padding:20px}.dialog{background:var(--panel);border-radius:18px;padding:26px;width:min(100%,580px);max-height:90dvh;overflow:auto;box-shadow:var(--shadow)}.dialog h2{font:600 24px var(--font);letter-spacing:-.015em;margin-top:0}.dialog .btns{display:flex;justify-content:flex-end;gap:10px}
.setup-hours{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.setup-days{border:0;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 16px}
.setup-days legend{padding:0;margin-bottom:8px}
.setup-days label.check{min-height:32px}
@media(max-width:400px){.setup-hours{grid-template-columns:1fr}}
.composer{padding:12px 18px calc(12px + var(--sab));border-top:1px solid var(--line);display:grid;gap:8px;background:var(--panel)}.compose-row{display:flex;gap:10px}.compose-row textarea{resize:none;min-height:48px}.compose-row button{flex:none}.task-event p{margin:6px 0}.task-event{font-size:13px;border-left:2px solid var(--line);margin:12px 0;padding:10px;color:var(--ink2)}
@media(max-width:1000px){.shell{grid-template-columns:232px minmax(0,1fr)}.conversations .side{width:230px}.sidebar{padding:14px 12px}.dashboard-grid{grid-template-columns:1fr}}
@media(max-width:760px){.shell{grid-template-columns:minmax(0,1fr)}.sidebar{display:none}.sidebar.open{display:flex;position:fixed;inset:68px 0 0;z-index:30}.topbar{padding:12px}.back{display:inline-grid}.conversations .side{width:100%}.conversations .main{width:100%}.attention,.approval-page{padding:18px}.top-actions .btn{font-size:12px;padding:8px}.main .top{padding-top:14px}.dialog-bg{padding:12px}.metric-grid{gap:10px}.metric{padding:14px}}

.main .top{flex-wrap:wrap}.main .top h2{font-size:20px;min-width:150px}.main .top .btn{flex:0 1 auto;font-size:13px;padding:8px 12px}.task-event{flex-shrink:0}

.mobile-label{display:none}@media(max-width:760px){.desktop-label{display:none}.mobile-label{display:inline}.topbar{gap:8px}.topbar h1{font-size:19px;min-width:0;flex:1}.top-actions{gap:5px;flex-shrink:0}.topbar #notify{width:36px;height:36px;padding:4px}.topbar #menu{width:36px;padding:4px;flex-shrink:0}}

@media(max-width:760px){.topbar #menu{flex:0 0 36px}.topbar h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.top-actions .primary{font-size:12px;padding:8px 10px}}
/* Owner setup/summary controls use the paper button background in the dark sidebar. */
.sidebar-foot .btn{color:var(--ink)}
/* IM upgrade A: formatted messages, actions, reactions, files, threads, tabs and search. */
.rich p{margin:0 0 6px}.rich p:last-child{margin-bottom:0}.rich ul,.rich ol{margin:4px 0;padding-left:22px}.rich blockquote{margin:4px 0;padding-left:10px;border-left:3px solid var(--line);color:var(--muted)}
.rich code{font-family:var(--mono);font-size:.92em;background:var(--sunken);border-radius:4px;padding:1px 4px}.rich pre{background:var(--sunken);border-radius:8px;padding:10px;overflow:auto;white-space:pre}.rich pre code{background:none;padding:0}
.m.me .rich a{color:inherit}.m.me .rich code,.m.me .rich pre{background:var(--mention-me-bg)}.rich a{color:var(--primary-ink);text-decoration:underline}.mention{background:var(--mention-bg);color:var(--mention-ink);border-radius:5px;padding:0 3px;font-weight:600}
.bubble.deleted{font-style:italic;color:var(--muted)}.m.pinned .bubble{box-shadow:inset 3px 0 0 var(--attention)}
.m-actions{display:flex;gap:4px;flex-wrap:wrap;margin-top:4px}.m-actions button{font-size:12px;padding:3px 8px;border:1px solid var(--line);border-radius:7px;background:var(--panel);color:var(--ink2)}
.reactions{display:flex;gap:4px;flex-wrap:wrap;margin-top:6px}.reaction{border:1px solid var(--line);border-radius:12px;padding:2px 8px;background:var(--panel);font-size:13px}.reaction.mine{border-color:var(--primary);background:var(--primary-soft)}
.replies{margin-top:6px;font-size:12px;color:var(--primary-ink);border:0;background:none;padding:2px 0;text-decoration:underline}.emoji-grid{display:flex;gap:8px;flex-wrap:wrap}.btn.emoji{font-size:22px;padding:6px 10px}
.file-card{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border:1px solid var(--line);border-radius:10px;padding:8px 10px;margin-top:6px;background:var(--panel);max-width:520px}.file-card.held{background:var(--sunken);color:var(--muted)}
.file-meta{display:grid;min-width:0;flex:1}.file-meta b{overflow-wrap:anywhere}.file-meta small,.no-access{color:var(--muted)}.file-preview-box{flex-basis:100%}.file-preview{display:block;max-width:100%;max-height:260px;width:auto;height:auto;border-radius:8px;image-rendering:auto}
.pending-files{display:flex;gap:6px;flex-wrap:wrap}.pending-files:empty{display:none}.pending-file{border:1px solid var(--line);border-radius:8px;padding:3px 8px;font-size:13px;background:var(--panel)}.pending-file button{border:0;background:none;margin-left:4px}
.btn.icon{padding:8px 10px}.rt-host{flex:1;min-width:0}.rt-host[hidden]{display:none}.compose-row textarea[hidden]{display:none}.main.dropping{outline:3px dashed var(--attention);outline-offset:-6px}
.tabs{display:flex;gap:4px}.tab{border:1px solid var(--line);border-radius:8px;padding:6px 10px;background:var(--panel);font-size:13px}.tab.on{background:var(--primary);color:var(--on-primary);border-color:var(--primary)}
.tab-page{padding:8px 4px}.file-row{display:grid;gap:2px;margin-bottom:8px}
.thread-panel{width:360px;flex:none;border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0;background:var(--panel)}.thread-panel[hidden]{display:none}.thread-panel .msgs{flex:1;overflow:auto;padding:12px}.thread-panel .top{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-bottom:1px solid var(--line)}.thread-panel h2{margin:0;font-size:18px}
.hits{display:grid;gap:8px}.hit{display:grid;gap:4px;text-align:left;border:1px solid var(--line);border-radius:10px;padding:10px;background:var(--panel)}.hit span{overflow-wrap:anywhere;white-space:pre-wrap}.hit mark{background:var(--mark-bg);color:var(--ink)}
.preview-text{max-height:50dvh;overflow:auto}.badge.at{background:var(--attention);color:var(--on-attention)}
@media(max-width:1000px){.thread-panel{position:absolute;right:0;top:0;bottom:0;z-index:20;box-shadow:var(--shadow)}.conversations{position:relative}}
@media(max-width:760px){.thread-panel{position:fixed;inset:68px 0 0;width:auto;z-index:40}.tabs{order:3;width:100%}.file-card{max-width:100%}}
.compose-row{min-width:0}.compose-row .rt-host,.rt-host .rt,.rt-toolbar{min-width:0;max-width:100%}.compose-row>button{flex:none}
.thread-panel .top .btn{flex:none;width:auto;padding:6px 12px}.thread-panel .composer{padding-left:12px;padding-right:12px}
.admin-page .panel{margin-bottom:18px}.admin-item{border-top:1px solid var(--line);padding:12px 0}.admin-item:first-of-type{border-top:0}
.admin-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:8px}.admin-head span:not(.tag){margin-left:auto;color:var(--muted);font-size:14px}
.admin-item p{margin:6px 0}.admin-item progress{width:100%;height:8px;accent-color:var(--primary)}
.admin-inline{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-top:8px}.admin-inline label{flex:1;min-width:180px}
.admin-inline .btn,.admin-item .btns .btn,.admin-line .btn,.admin-form .btn{flex:none;padding:8px 14px}
.admin-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:10px;margin-top:8px}.admin-form .btn{justify-self:start}
.admin-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 0}
@media(max-width:760px){.admin-head span:not(.tag){margin-left:0;width:100%}.admin-inline label{min-width:0;width:100%}.admin-form{grid-template-columns:1fr}}
/* W7: "Invite someone" at the top of the Admin page's team list, and each pending invitation on its person's row. */
#admin-invite-form>:not(label){grid-column:1/-1}#admin-invite .btns,.admin-invited .btns{justify-content:flex-start;flex-wrap:wrap;margin-top:8px}
#admin-invite-confirm p,#admin-invite-status{margin:6px 0}#admin-invite-status:empty{margin:0}
.dashboard-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}.dashboard-tabs .btn.active{background:var(--ink);color:var(--panel);border-color:var(--ink)}
.setup-role{border:1px solid var(--line);border-radius:12px;padding:10px 14px 12px;margin:10px 0}.setup-role legend{font-weight:600;padding:0 6px}.setup-role p{margin:2px 0 8px}.setup-role p.hint{color:var(--ink2)}.setup-brings a,.admin-brings a{color:var(--primary-ink)}
.setup-candidate{display:flex;align-items:center;gap:16px;margin-top:14px;min-width:0}.setup-candidate[hidden]{display:none}.setup-candidate img{width:84px;height:126px;object-fit:contain;background:var(--raised);border-radius:8px;flex:none}.setup-candidate>div{min-width:0;overflow-wrap:anywhere}.setup-candidate strong{display:block;margin-bottom:5px}.setup-candidate p{font-size:13px}
/* Platform 7: the Decisions queue (badge, list, filters, detail view, choices) and the attention page's links. */
.sidebar nav .nav-badge{display:inline-grid;margin-left:auto;background:var(--attention);color:var(--on-attention)}
.sidebar nav .nav-badge[hidden],#menu .menu-badge[hidden]{display:none}
#menu{position:relative}.menu-badge{position:absolute;top:-6px;right:-8px;background:var(--attention);color:var(--on-attention);font-size:11px;min-width:18px;height:18px}
.decision-filters{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0 6px}.decision-filters label{flex:1 1 200px;min-width:180px}
.decision-list{display:grid;gap:10px;margin-top:10px}
.decision-row{display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:12px;background:var(--panel);text-align:left}
.decision-row:hover,.decision-row:focus-visible{border-color:var(--primary)}.decision-row.due{border-left:4px solid var(--attention)}.decision-row.waiting{opacity:.75}
.decision-main{flex:1;min-width:0}.decision-main b{display:block;font-weight:600;overflow-wrap:anywhere}.decision-main span{display:block;color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.decision-meta{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:flex-end;color:var(--muted);font-size:13px}
.chip{display:inline-block;border-radius:99px;padding:2px 9px;font-size:12px;font-weight:500;background:var(--primary-soft);color:var(--primary-ink)}.chip.asked{background:var(--sunken);color:var(--ink2)}.chip.answered,.chip.handed{background:var(--warn-bg);color:var(--warn-ink)}
.decision-detail .page-head{margin-top:14px}.decision-detail .panel{margin:14px 0}.decision-state{border-left:4px solid var(--attention)}
.decision-detail .facts{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr);gap:8px 18px;margin:0}.decision-detail .facts dt{color:var(--muted)}.decision-detail .facts dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}.choice{display:grid;gap:6px;align-content:start;border:1px solid var(--line);border-radius:12px;padding:12px}.choice .btn{width:100%}.choice p{margin:0}
.decided-row{padding:12px 0;border-top:1px solid var(--line)}.decided-row:first-child{border-top:0}.decided-row p{margin:4px 0;overflow-wrap:anywhere}
.page-head .btn{margin-top:4px}.decision-detail label.check{margin-top:12px}#attention-tasks h3{margin-top:22px}#attention-tasks h3:first-child{margin-top:0}.metric-link{width:100%;text-align:left;cursor:pointer;font:inherit;color:inherit}.metric-link:hover,.metric-link:focus-visible{border-color:var(--primary)}.metric-link .go{display:block;margin-top:8px;font-style:normal;font-size:13px;font-weight:500;color:var(--primary-ink)}
.task-link{display:block;width:100%;text-align:left;padding:12px 0;border-top:1px solid var(--line)}.task-link b{display:block;overflow-wrap:anywhere}.task-link span{display:block;color:var(--muted);font-size:13px}.task-link.dim{opacity:.4}
@media(max-width:760px){.decision-row{flex-direction:column;align-items:stretch;gap:8px}.decision-meta{justify-content:flex-start}.decision-detail .facts{grid-template-columns:minmax(0,1fr);gap:2px}.decision-detail .facts dd{margin-bottom:10px}.choices{grid-template-columns:minmax(0,1fr)}.decision-filters label{flex-basis:100%;min-width:0}.decision-tabs .btn{flex:1 1 auto}}
/* PC1: Project Command's Customers list and detail (search, filters, paging, linked records, possible duplicates). */
.customers-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.customers-head>div{min-width:0}.customers-head .primary{flex:none}
.customer-toolbar{display:grid;grid-template-columns:minmax(220px,2fr) repeat(3,minmax(130px,1fr));gap:12px;margin:8px 0 12px}
.customer-status{margin:0 0 12px}.customer-status .btn[aria-pressed="true"]{background:var(--ink);color:var(--panel);border-color:var(--ink)}
.customer-table{background:var(--panel);border:1px solid var(--line);border-radius:14px;overflow-x:auto}
.customers-table{width:100%;border-collapse:collapse;font-size:14px}.customers-table th{text-align:left;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);padding:12px 14px;border-bottom:1px solid var(--line);white-space:nowrap}
.customers-table td{padding:12px 14px;border-bottom:1px solid var(--line);vertical-align:middle}.customers-table tbody tr:last-child td{border-bottom:0}
.customers-table tr[data-customer]{cursor:pointer}.customers-table tr[data-customer]:hover,.customers-table tr[data-customer]:focus-visible{background:var(--hover);outline:2px solid var(--focus);outline-offset:-2px}
.customer-who{display:flex;align-items:center;gap:10px;min-width:0}.customer-who strong,.customer-who small{display:block;overflow-wrap:anywhere}.customer-who small{color:var(--muted);font-size:13px}
.chip.customer-prospect{background:var(--warn-bg);color:var(--warn-ink)}.chip.customer-inactive{background:var(--sunken);color:var(--ink2)}
.customer-pager{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:12px 0;color:var(--muted);font-size:14px}.customer-pager div{display:flex;gap:8px}.customer-pager .btn[disabled]{opacity:.45}
.customer-dupes{margin-bottom:16px;border-left:4px solid var(--attention)}.dupe{border-top:1px solid var(--line);padding:12px 0}.dupe:first-of-type{border-top:0}
.dupe-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:6px 0 10px}.dupe-side{display:grid;gap:6px;align-content:start;border:1px solid var(--line);border-radius:12px;padding:12px}.dupe-side span{color:var(--muted);font-size:13px;overflow-wrap:anywhere}
.customer-detail .page-head{margin-top:14px}.customer-detail .panel{margin:14px 0}
.customer-facts{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr);gap:8px 18px;margin:0}.customer-facts dt{color:var(--muted)}.customer-facts dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.customer-line{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 12px;padding:10px 0;border-top:1px solid var(--line)}.customer-line:first-of-type{border-top:0}.customer-line b{overflow-wrap:anywhere}.customer-line span{grid-column:1;color:var(--muted);font-size:13px;overflow-wrap:anywhere}.customer-line .btn{grid-column:2;grid-row:1/span 2;align-self:center;padding:6px 12px}
.customer-conflict{margin:12px 0 0;padding:12px 14px;border-radius:10px;border-left:4px solid var(--attention);background:var(--warn-bg);color:var(--warn-ink);font-weight:600}
.btn.customer-link{margin-left:8px;padding:3px 10px;font-size:13px;color:var(--primary-ink)}
@media(max-width:760px){.customers-head{flex-direction:column}.customer-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.customer-search{grid-column:1/-1}.customer-status .btn{flex:1 1 auto}
.customer-table{border:0;background:none;overflow:visible}.customers-table thead{display:none}.customers-table,.customers-table tbody,.customers-table tr,.customers-table td{display:block;width:100%}
.customers-table tr[data-customer]{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin-bottom:10px}.customers-table td{display:flex;justify-content:space-between;gap:12px;border:0;padding:3px 0;text-align:right}
.customers-table td::before{content:attr(data-label);color:var(--muted);font-size:13px;text-align:left;flex:none}.customers-table td[data-label="Customer"]{text-align:left;padding-bottom:8px}.customers-table td[data-label="Customer"]::before{content:none}
.dupe-pair{grid-template-columns:minmax(0,1fr)}.customer-facts{grid-template-columns:minmax(0,1fr);gap:2px}.customer-facts dd{margin-bottom:10px}}
/* Pipeline, Jobs and Schedule (PC2): Project Command's pipeline board, project cards and week view; dashboard doors */
.dash-doors{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}.door-link{margin-left:8px;font-size:13px;padding:4px 10px}
/* PC4: the card's one door at the top of a dashboard's panel; each line is itself the link to its screen */
.dash-open{margin:0 0 14px}.door-line{background:none;border:0;padding:2px 0;margin:0;font:inherit;color:var(--primary-ink);text-align:left;cursor:pointer;text-decoration:underline;text-decoration-color:var(--primary);text-underline-offset:3px}.door-line:hover{text-decoration-thickness:2px}.door-line:focus-visible{outline:2px solid var(--focus);outline-offset:2px}#dash-back[hidden]{display:none}.topbar #dash-back{flex:0 0 auto;width:auto}.topbar #dash-back:not([hidden])+h1{flex:1}
.work-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0}.work-tabs{display:flex;flex-wrap:wrap;gap:6px}.work-tabs .btn.active{background:var(--ink);color:var(--panel);border-color:var(--ink)}.work-check,.work-select{display:flex;gap:6px;align-items:center}.work-toolbar input[type=search]{flex:1 1 200px;min-width:0}
.pipe-board{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(220px,1fr);gap:12px;overflow-x:auto;padding-bottom:8px}.pipe-col{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:12px;min-height:160px}.pipe-col.drop{outline:2px dashed var(--primary)}.pipe-col-head{display:flex;justify-content:space-between;gap:8px;margin-bottom:6px}.pipe-col-head span{color:var(--muted);font-size:13px}
.pipe-card,.job-card,.sched-item{display:block;width:100%;text-align:left;background:var(--raised);border:1px solid var(--line);border-radius:10px;padding:10px 12px;margin:8px 0;cursor:pointer;font:inherit;color:inherit}.pipe-card span,.pipe-card small,.job-card small,.sched-item small{display:block;color:var(--muted);font-size:13px;margin-top:3px}.pipe-card.due{border-left:4px solid var(--attention)}
.jobs-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}.job-card{margin:0}.job-card-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}.job-card dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 10px;margin:8px 0}.job-card dt{color:var(--muted)}.job-card dd{margin:0}
progress.progress{display:block;width:100%;height:6px;margin-top:8px;border:0;border-radius:3px;overflow:hidden;background:var(--line);accent-color:var(--primary);appearance:none}progress.progress::-webkit-progress-bar{background:var(--line)}progress.progress::-webkit-progress-value{background:var(--primary)}progress.progress::-moz-progress-bar{background:var(--primary)}
.tag.health{white-space:nowrap}.health-at_risk .tag.health,.tag.health.health-at_risk{background:var(--bad-bg);color:var(--bad-ink)}.health-decision_due .tag.health,.tag.health.health-decision_due{background:var(--warn-bg);color:var(--warn-ink)}.health-on_track .tag.health,.tag.health.health-on_track{background:var(--good-bg);color:var(--good-ink)}.health-at_risk.job-card{border-left:4px solid var(--bad)}.health-decision_due.job-card{border-left:4px solid var(--attention)}
.sched-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px}.sched-day{background:var(--panel);border:1px solid var(--line);border-radius:12px;padding:8px;min-height:130px;min-width:0}.sched-day h3{font-size:14px;margin:0 0 6px}.sched-day.today{border:2px solid var(--primary)}.sched-day.other{opacity:.55}.sched-grid.month .sched-day{min-height:90px}.sched-item{padding:6px 8px;font-size:13px}
.deal-facts{display:grid;grid-template-columns:auto minmax(0,1fr);gap:2px 12px}.deal-facts dd{margin:0}.conflict{background:var(--warn-bg);color:var(--warn-ink);padding:8px 10px;border-radius:8px}
@media(max-width:760px){.pipe-board{grid-auto-columns:minmax(78vw,1fr)}.jobs-grid{grid-template-columns:minmax(0,1fr)}.sched-grid,.sched-grid.month{grid-template-columns:minmax(0,1fr)}.sched-day{min-height:0}.work-toolbar input[type=search]{flex-basis:100%}.door-link{margin:6px 0 0;display:inline-block}}
/* Vendors, Help desk and Invoices (PC3): papers and their expiry, priorities, invoice states */
.tag.paper,.tag.prio,.tag.inv{white-space:nowrap}.paper-expiring.tag,.tag.paper-expiring,.inv-overdue.tag,.tag.prio-high{background:var(--warn-bg);color:var(--warn-ink)}.paper-expired.tag,.tag.paper-expired,.tag.prio-urgent{background:var(--bad-bg);color:var(--bad-ink)}.tag.paper-ok,.tag.inv-paid{background:var(--good-bg);color:var(--good-ink)}.tag.inv-part_paid{background:var(--info-bg);color:var(--info-ink)}
.vendor-card.flag-expiring,.ticket-card.late,.invoice-card.inv-overdue{border-left:4px solid var(--attention)}.vendor-card.flag-expired{border-left:4px solid var(--bad)}.paper-row .tag{margin-right:6px}.cash-panel .priority-row{display:flex;justify-content:space-between;gap:8px}
#paper-form,#visit-form,#pay-form{margin-top:10px}.paper-row .tag,.vendor-card .tag.paper,.vendor-detail .tag.paper{white-space:normal}
.vendor-detail .purchasing-receipt{display:block;white-space:normal;padding:18px 0;font-size:15px}
.purchasing-order-heading{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.purchasing-outcomes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 28px}
.vendor-detail .purchasing-receipt p{font-size:15px;line-height:1.5;margin:6px 0}
.purchasing-receipt summary{cursor:pointer;padding:8px 0;min-height:36px}
@media(max-width:760px){.purchasing-outcomes{grid-template-columns:minmax(0,1fr)}}
/* The Staff page and 1-1 meetings (PC5) */
.staff-page,.meeting{padding:28px;max-width:1200px;margin:auto}
.staff-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:16px}
.staff-card{background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);display:flex;flex-direction:column;overflow:hidden}
.staff-open{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:18px;width:100%;text-align:left;font:inherit;color:inherit;background:none;border:0;flex:1}
button.staff-open{cursor:pointer}button.staff-open:hover,button.staff-open:focus-visible{background:var(--hover);outline:2px solid var(--focus);outline-offset:-2px}
.staff-face{width:64px;height:64px;border-radius:50%;background:var(--primary-soft);color:var(--primary-ink);display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:22px;overflow:hidden;flex:none}
.staff-face.ai{background:var(--secondary-soft);color:var(--secondary-ink)}.staff-face img{width:100%;height:100%;object-fit:cover;object-position:50% 12%}
.staff-who{display:flex;flex-direction:column}.staff-who b{font-size:17px}.staff-who>span{color:var(--muted);font-size:14px}
.staff-ai{font-size:11px;font-weight:500;background:var(--secondary);color:var(--on-secondary);border-radius:6px;padding:1px 5px;vertical-align:middle}
.staff-does{font-size:14px;line-height:1.4}.staff-meta{display:flex;gap:10px;align-items:center;flex-wrap:wrap;font-size:13px;color:var(--muted)}
.staff-status{display:inline-block;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:500;background:var(--sunken);color:var(--ink2)}
.staff-status.working{background:var(--good-bg);color:var(--good-ink)}.staff-status.waiting{background:var(--warn-bg);color:var(--warn-ink)}
.meeting-top{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px}
.meeting-body{display:grid;grid-template-columns:minmax(260px,380px) 1fr;gap:24px;align-items:start}
.meeting-face{margin:0;background:var(--panel);border:1px solid var(--line);border-radius:var(--radius);padding:18px;display:flex;flex-direction:column;align-items:center;gap:12px}
.meeting-face figcaption{display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}.meeting-face figcaption b{font-size:20px}
.staff-face.big{width:min(320px,70vw);height:min(400px,88vw);border-radius:16px;font-size:72px}
.staff-face.big img{object-fit:contain;object-position:50% 50%}
.meeting-face.thinking .staff-face.big{box-shadow:0 0 0 4px var(--warn-line);animation:staff-think 1.4s ease-in-out infinite}
.meeting-face.speaking .staff-face.big{outline:3px solid var(--primary-ink);outline-offset:3px}
@keyframes staff-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.012) translateY(-1px)}}
@keyframes staff-think{0%,100%{box-shadow:0 0 0 3px var(--warn-line)}50%{box-shadow:0 0 0 7px var(--warn-bg)}}
@keyframes staff-talk{from{transform:scale(1) translateY(0)}to{transform:scale(1.02) translateY(-3px)}}
@media (prefers-reduced-motion:reduce){.staff-face.big img,.meeting-face.thinking .staff-face.big,.meeting-face.speaking .staff-face.big img{animation:none}}
.meeting-talk{display:flex;flex-direction:column;gap:12px;min-width:0}
.meeting-voice{display:flex;flex-wrap:wrap;align-items:center;gap:8px;grid-column:1/-1}
.meeting-voice [role=status]{flex-basis:100%;font-size:14px;color:var(--muted)}
.meeting-voice [hidden]{display:none}
.meeting-notes p{margin:0 0 6px;font-size:14px;color:var(--muted)}
.meeting-msgs{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:14px;min-height:220px;max-height:52vh;overflow:auto;display:flex;flex-direction:column;gap:10px}
.meeting-line{max-width:85%;align-self:flex-start;background:var(--sunken);border-radius:12px;padding:8px 12px}.meeting-line.mine{align-self:flex-end;background:var(--primary-soft)}
.meeting-line small{color:var(--muted);font-size:12px}.meeting-line p{margin:4px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.meeting-event{font-size:13px;color:var(--muted);margin:0}
.meeting-say{display:grid;grid-template-columns:1fr auto;gap:10px;align-items:end}.meeting-say textarea{min-height:64px;resize:vertical;font:inherit;padding:10px;border-radius:10px;border:1px solid var(--control-line)}
.meeting-say label.check{grid-column:1/-1;font-size:13px}
@media (max-width:760px){.staff-page,.meeting{padding:16px}.meeting-body{grid-template-columns:1fr}.staff-face.big{width:min(220px,60vw);height:min(270px,74vw)}.meeting-msgs{max-height:55vh;min-height:160px}}
.staff-face{position:relative}.staff-face img.cropped{position:absolute;max-width:none;object-fit:fill}
.staff-face.portrait{width:100%;height:auto;aspect-ratio:4/3;border-radius:10px;background:var(--sunken)}.staff-face.portrait img{object-position:50% 0}
.av-pic{position:absolute;inset:0;border-radius:50%;overflow:hidden;display:grid;place-items:center}.av-pic img{width:100%;height:100%;object-fit:cover;display:block}.av-pic img.cropped{position:absolute;max-width:none;object-fit:fill}
.meeting-line small .av{display:inline-grid;width:22px;height:22px;min-width:22px;font-size:10px;vertical-align:middle;margin-right:6px}
.look-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:10px;max-height:calc(90dvh - 300px);min-height:200px;overflow:auto;padding:6px}
.look{position:relative;display:grid;grid-template-columns:64px minmax(0,1fr);gap:10px;align-items:start;cursor:pointer;border-radius:10px;padding:6px}.look input{position:absolute;opacity:0;width:1px;height:1px}
.look-who{display:grid;gap:2px;min-width:0;font-size:13px;line-height:1.3}.look-who small{color:var(--muted)}.look-who ul{margin:2px 0;padding:0 0 0 16px}.look-who q{font-style:italic;color:var(--muted)}
.look img{width:100%;aspect-ratio:3/4;object-fit:cover;object-position:50% 0;border-radius:8px;background:var(--sunken)}.look:has(input:checked){outline:3px solid var(--primary);background:var(--primary-soft)}.look:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:2px}
.staff-note{border-left:4px solid var(--attention);padding:6px 10px;background:var(--warn-bg);color:var(--warn-ink)}
/* Add and edit everywhere (PC6): forms fit a phone; a New button under the page's words. */
.new-record{margin-top:12px}
.dialog fieldset{border:1px solid var(--line);border-radius:10px;padding:12px;margin:0;display:grid;gap:12px;min-width:0}.dialog fieldset[hidden]{display:none}.dialog legend{padding:0 6px;color:var(--muted);font-size:13px}
.dialog label.check{display:flex;gap:8px;align-items:center}.dialog label.check input{width:auto}
.people-pick label.check{min-height:32px}
.line-rows{display:grid;gap:10px}.line-row{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,1fr) minmax(0,1fr) minmax(0,2fr);gap:8px;align-items:end}.line-row:not(:has(select)){grid-template-columns:minmax(0,3fr) minmax(0,1fr) minmax(0,1fr)}
.edit-hint{color:var(--primary-ink);font-weight:600;margin-top:4px}
.sched-entry{display:grid;gap:4px}.sched-edit{justify-self:start;padding:4px 10px;font-size:13px}
.card-with-action{display:grid;gap:6px;align-content:start}.card-with-action>.btn{justify-self:start}
.admin-form .btns{display:flex;justify-content:flex-end;gap:10px}.deal-marks{display:flex;gap:8px;flex-wrap:wrap}
.tag.inv-draft{background:var(--sunken);color:var(--ink2)}.timeoff-row small{display:block}
@media(max-width:560px){.dialog{padding:18px;border-radius:14px}.dialog-bg{padding:8px}.dialog h2{font-size:22px}.dialog .btns{flex-wrap:wrap}.dialog .btns button{flex:1 1 40%}.line-row,.line-row:not(:has(select)){grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.line-row label:first-child{grid-column:1/-1}.line-row label:last-child:nth-child(4){grid-column:1/-1}}
/* BothChairs layout (PC8): the approved reference's shell, pages and Staff cards, over the rules above. Every feature and id stays. */
.welcome-logo{display:flex;justify-content:center}.welcome-logo img{width:220px;height:auto}
.side-business{display:flex;align-items:center;gap:10px;padding:10px 6px;border-block:1px solid var(--line);flex:none;min-width:0}
.side-business>span:last-child,.side-person>span:last-child{min-width:0}
.side-business b,.side-person b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.side-business small,.side-person small{display:block;color:var(--muted);font-size:12px}
.initial{width:30px;height:30px;flex:none;border:1px solid var(--line);border-radius:8px;display:grid;place-items:center;font-weight:600}
.side-person{display:flex;align-items:center;gap:10px;padding:8px 6px 2px}
.topbar-mark{display:none;line-height:0;flex:none}.topbar-mark img{width:44px;height:auto}
.page-head>p:last-child{color:var(--muted)}.metric span{font-size:13px;font-weight:500}.metric small{font-size:13px}.panel h3{font-size:16px}
.dashboard-tabs .btn,.work-tabs .btn,.customer-status .btn{border-radius:9px;font-size:13px;flex:none}.dashboard-tabs .btn,.work-tabs .btn{padding:8px 13px}
.theme-choice{display:grid;gap:4px}.theme-option{align-items:flex-start;padding:8px 2px}.theme-option input{margin-top:4px}.theme-option small{display:block;color:var(--muted);font-weight:400;font-size:13px}
.dashboard-grid{align-items:start}.channel-tools .btn{flex:1 1 auto;white-space:nowrap;padding:8px 10px;font-size:13px}
.compose-row{align-items:flex-end}.compose-row>button{min-height:42px;padding:8px 12px}
@media(min-width:761px){.top-actions .btn,.top-actions .primary{flex:none;white-space:nowrap;padding:8px 13px;font-size:13px}}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
input[type=radio],input[type=checkbox]{accent-color:var(--primary)}
/* Sign-in and every form: a field never pushes past its column, whatever the browser takes its natural width to be. Below 16 px
   iOS zooms the page when a field is tapped, which runs the fields off the right edge (Wolf, 2026-10-31: seen on sign-in at ~420 px). */
form,label{min-width:0}form,form>label{grid-template-columns:minmax(0,1fr)}.welcome{min-width:0}.dialog-bg{grid-template-columns:minmax(0,1fr)}
@media(max-width:760px){input,textarea,select,.rt .ProseMirror{font-size:16px}}

/* CL-16: Help desk phone queue, conversation and new-request dialog. */
@media(max-width:480px){
  :is(#helpdesk-page,#ticket-detail){padding:12px;min-width:0;overflow-wrap:anywhere}
  :is(#helpdesk-page,#ticket-detail) .page-head{margin-bottom:12px}
  :is(#helpdesk-page,#ticket-detail,body[data-view=helpdesk] #dialog-host) :is(p,small,label,legend,dl,.tag,.eyebrow,.priority-row){font-size:14px}
  :is(#helpdesk-page,#ticket-detail,body[data-view=helpdesk] #dialog-host) :is(button,input,select,textarea){min-height:44px;max-width:100%;min-width:0;font-size:16px;overflow-wrap:anywhere}
  #helpdesk-page .work-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
  #helpdesk-page :is(.work-tabs,input[type=search]){grid-column:1/-1}
  #helpdesk-page .work-select{display:grid;gap:4px}
  #helpdesk-page .work-tabs .btn{padding:8px 10px}
  #helpdesk-page .jobs-grid{grid-template-columns:minmax(0,1fr);gap:8px}
  #helpdesk-page .job-card{padding:12px}
  #helpdesk-page .job-card-top{flex-wrap:wrap}
  #ticket-detail{display:flex;flex-direction:column}
  #ticket-detail>article{order:2}
  #ticket-detail>#ticket-public-chat,#ticket-detail>article:last-child{order:1}
  #ticket-detail .panel{padding:12px}
  #ticket-detail :is(.admin-form,.facts){grid-template-columns:minmax(0,1fr)}
  #ticket-detail .btns{flex-wrap:wrap}
  #ticket-chat-messages{max-height:45vh;overflow:auto}
  body[data-view=helpdesk] #dialog-host .dialog{padding:16px;overflow-wrap:anywhere}
  body[data-view=helpdesk] #dialog-host label.check{min-height:44px}
  body[data-view=helpdesk] #dialog-host input[type=checkbox]{min-height:0}
}

/* CL-18: Shared customer records at phone width; calls and campaign panels keep their own layouts. */
@media(max-width:600px){
  :is(#customer-list-page,#customer-detail,#customer-transfer){padding:12px;min-width:0;max-width:100%}
  :is(#customer-list-page,#customer-transfer){overflow-wrap:anywhere}
  :is(#customer-list-page,#customer-detail,#customer-transfer)>.page-head{margin-block:8px 12px;gap:8px}
  #customer-list-page{display:flex;flex-direction:column}
  #customer-list-page>#customer-dupes{order:1}
  #customer-list-page .customer-toolbar{gap:8px;margin-block:4px 8px}
  #customer-list-page .customer-toolbar:has(#customer-transfer-open){display:flex}
  #customer-list-page :is(.customer-who,.customer-who>span,td){min-width:0;overflow-wrap:anywhere}
  #customer-list-page :is(.customers-table,.customer-who small,.chip,.small,.dupe-side span,label),#customer-list-page td::before{font-size:14px}
  #customer-list-page button:not([data-crm-door]),#customer-detail :is(#customer-back,#customer-edit,.customer-dupes button,#customer-portal-access button),#customer-transfer :is(button,summary){min-height:44px;font-size:14px;white-space:normal}
  :is(#customer-list-page,#customer-transfer) :is(input,select,textarea){min-height:44px;font-size:16px;max-width:100%}
  #customer-detail>.metric-grid{gap:8px;margin-block:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
  #customer-detail .metric{min-width:0;padding:10px;overflow-wrap:anywhere}
  #customer-detail .metric strong{font-size:18px;margin-block:4px}
  #customer-detail .metric :is(span,small){font-size:14px}
  #customer-detail>.panel:not(#customer-phone):not(:has([data-crm-customer])),#customer-transfer .panel,#customer-list-page .customer-dupes{padding:12px;overflow-wrap:anywhere}
  #customer-detail>.panel:not(#customer-phone):not(:has([data-crm-customer])) :is(p,.small,.customer-line span),#customer-transfer :is(p,label){font-size:14px}
  #customer-detail .customer-line{grid-template-columns:minmax(0,1fr)}
  #customer-detail .customer-line .btn{grid-column:1;grid-row:auto;justify-self:start}
  #customer-detail .customer-linked summary{min-height:44px;padding-block:10px}
  #customer-detail #customer-portal-access textarea{min-height:44px;font-size:16px;max-width:100%}
  .dialog-bg:has(#customer-form,#customer-merge){padding:10px}
  .dialog:has(#customer-form,#customer-merge){padding:16px;max-height:calc(100dvh - 20px);overflow-wrap:anywhere;font-size:14px}
  .dialog:has(#customer-form,#customer-merge) label{font-size:14px}
  .dialog:has(#customer-form,#customer-merge) :is(button,input,select,textarea){min-height:44px;font-size:16px}
  .dialog:has(#customer-form,#customer-merge) .btns{flex-wrap:wrap}
}

/* CL-22: Purchasing on phones; vendors and purchase-only approval records/dialogs. */
@media(max-width:600px){
  #vendors-page,#vendor-detail,#decision-detail[data-purchasing="true"]{padding:12px;min-width:0;overflow-wrap:anywhere}
  #vendors-page .page-head,#vendor-detail .page-head,#decision-detail[data-purchasing="true"] .page-head{margin-bottom:12px}
  #vendors-page .work-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:10px 0}
  #vendors-page .work-tabs,#vend-q{grid-column:1/-1}
  #vendors-page .work-select{display:grid;min-width:0;gap:4px}
  #vendors-page .work-tabs .btn{flex:1 1 auto;white-space:normal}
  #vendors-page .vendor-card{overflow-wrap:anywhere;min-width:0}
  #vendors-page .job-card-top{flex-wrap:wrap}
  #vendors-page .vendor-card dl{grid-template-columns:minmax(0,1fr);gap:2px}
  #vendors-page .vendor-card dd{margin-bottom:6px}
  #vendor-detail{display:flex;flex-direction:column}
  #vendor-detail>*{order:1}
  #vendor-detail>#vendor-back,#vendor-detail>.page-head,#vendor-detail>.conflict,#vendor-detail>#vendor-orders{order:0}
  #vendor-detail .panel,#decision-detail[data-purchasing="true"] .panel{padding:12px;min-width:0}
  #vendor-detail .admin-form{grid-template-columns:minmax(0,1fr)}
  #vendor-detail .btns{flex-wrap:wrap}
  #vendor-orders .purchasing-receipt{padding:12px 0}
  #vendor-orders .purchasing-outcomes{grid-template-columns:minmax(0,1fr)}
  #vendor-orders summary{min-height:44px;padding:10px 0}
  :is(#vendors-page,#vendor-detail,[data-purchasing="true"],.dialog:has([data-purchasing="true"]),body:has(#decision-detail[data-purchasing="true"]) .dialog){font-size:14px;overflow-wrap:anywhere}
  :is(#vendors-page,#vendor-detail,[data-purchasing="true"],.dialog:has([data-purchasing="true"]),body:has(#decision-detail[data-purchasing="true"]) .dialog) :is(p,small,label,legend,dt,dd,.small,.tag,.chip,.decision-main b,.decision-main span){font-size:14px}
  :is(#vendors-page,#vendor-detail,[data-purchasing="true"],.dialog:has([data-purchasing="true"]),body:has(#decision-detail[data-purchasing="true"]) .dialog) :is(button,input,select,textarea){min-height:44px;min-width:0;max-width:100%;font-size:16px;white-space:normal}
  #decision-detail[data-purchasing="true"] label.check{min-height:44px}
  #decision-detail[data-purchasing="true"] input[type=checkbox]{min-height:24px;min-width:24px}
  .dialog:has([data-purchasing="true"]),body:has(#decision-detail[data-purchasing="true"]) .dialog{padding:16px}
  .dialog [data-purchasing="true"].typed{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}
}

/* CL-29: phone IT administration, access requests, quotas and operation receipts. */
@media(max-width:760px){
  .admin-page>.page-head{margin-bottom:16px}
  .admin-page>.page-head p.eyebrow,.admin-page>.page-head p:not(.eyebrow){font-size:14px}
  .admin-page>.page-head button{min-height:44px;font-size:14px;white-space:normal}
  #admin-people,#admin-storage,#admin-it{padding:16px;min-width:0;overflow-wrap:anywhere}
  #admin-people p,#admin-storage p,#admin-it p{font-size:14px;line-height:1.5}
  #admin-people .tag,#admin-storage label,#admin-it summary{font-size:14px}
  #admin-people .admin-head>*,#admin-storage .admin-head>*{min-width:0;max-width:100%}
  #admin-people .btns{flex-wrap:wrap}
  #admin-people button,#admin-storage button{min-height:44px;font-size:14px;white-space:normal;max-width:100%}
  #admin-storage .admin-inline{flex-direction:column;align-items:stretch}
  #admin-storage input{min-height:44px;font-size:16px}
  #admin-people :is(input,select){min-height:44px;max-width:100%;font-size:16px}
  #admin-it summary{min-height:44px;padding-block:10px;line-height:1.5}
  #dialog-host .dialog:has([data-admin-for],[name="mail_routing"]){
    padding:16px;font-size:14px;overflow-wrap:anywhere;min-width:0;
  }
  #dialog-host .dialog:has([data-admin-for],[name="mail_routing"]) :is(p,label,.small){font-size:14px;line-height:1.5}
  #dialog-host .dialog:has([data-admin-for],[name="mail_routing"]) :is(input,select){
    min-height:44px;max-width:100%;font-size:16px;
  }
  #dialog-host .dialog:has([data-admin-for],[name="mail_routing"]) .btns{flex-wrap:wrap}
  #dialog-host .dialog:has([data-admin-for],[name="mail_routing"]) button{
    min-height:44px;min-width:44px;font-size:14px;white-space:normal;
  }
}

/* CL-32: Mail messages, compose/confirmation and held-mail review on phones. */
@media(max-width:560px){
  .m[data-mail="true"]{min-width:0;overflow-wrap:anywhere}
  .m[data-mail="true"] .who-line{font-size:14px;overflow-wrap:anywhere}
  .m[data-mail="true"] :is(.m-actions,.reactions){flex-wrap:wrap}
  .m[data-mail="true"] button{min-width:44px;min-height:44px;font-size:14px;white-space:normal;overflow-wrap:anywhere}
  #thread:has(.m[data-mail="true"]) #thread-head{flex-wrap:wrap;gap:8px}
  #thread:has(.m[data-mail="true"]) #thread-head h2{min-width:0;white-space:normal;overflow-wrap:anywhere}
  #thread:has(.m[data-mail="true"]) #thread-head :is(button,summary){min-width:44px;min-height:44px;font-size:14px;white-space:normal;overflow-wrap:anywhere}
  #thread:has(.m[data-mail="true"]) #thread-head .tabs{flex-wrap:wrap}
  #thread:has(.m[data-mail="true"]) #messages>:first-child{margin-top:0}
  #decision-detail[data-mail="true"]{padding:12px;overflow-wrap:anywhere;font-size:14px}
  #decision-detail[data-mail="true"] .page-head{margin:12px 0}
  #decision-detail[data-mail="true"] .panel{padding:12px;margin:12px 0}
  #decision-detail[data-mail="true"] :is(p,small,.eyebrow){font-size:14px}
  #decision-detail[data-mail="true"] .btn{min-height:44px;white-space:normal;overflow-wrap:anywhere;font-size:14px}
  .dialog:has(#mail-compose,#mail-confirm,[data-mail-dialog="true"]){padding:16px;font-size:14px;overflow-wrap:anywhere}
  .dialog:has(#mail-compose,#mail-confirm,[data-mail-dialog="true"]) :is(label,p){font-size:14px}
  .dialog:has(#mail-compose,#mail-confirm,[data-mail-dialog="true"]) :is(input,textarea,select){font-size:16px;min-height:44px;max-width:100%}
  .dialog:has(#mail-compose) textarea{min-height:120px}
  .dialog:has(#mail-compose,#mail-confirm,[data-mail-dialog="true"]) button{min-height:44px;font-size:14px;white-space:normal;overflow-wrap:anywhere}
}
