/* Compact work surfaces; reading text and touch targets retain their size. */
main{padding-top:22px}.page-title{margin-bottom:18px}.page-title h1{font-size:1.625rem}.page-title .eyebrow{margin-bottom:3px}.page-title .subtitle{margin-top:5px}
.panel{margin-bottom:16px}.panel-head{padding:13px 19px}.panel-body{padding:16px 19px}.detail-grid dt,.detail-grid dd{padding-block:8px}
.workbench-status{padding:20px 23px}.workbench-status h2{font-size:24px;margin-top:12px}.workbench-status p{margin:8px 0 14px}.workbench-links{margin-top:12px}.assistant-entry{padding:19px 22px}.assistant-entry h2{font-size:20px;margin-top:10px}.assistant-entry p{margin:8px 0}.assistant-entry>a{margin-top:10px;padding-top:10px}
.sync-line{margin-block:12px}.shortcut-grid{margin-bottom:18px;gap:12px}.work-shortcut{padding:12px 15px}.stat-grid{margin-bottom:16px}.stat{padding:15px 18px;min-height:108px}.metric-value{font-size:29px;margin-block:6px}.stat .sparkline{height:34px}.section-heading{margin-bottom:10px}.chart>svg{height:155px}
.section-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:0 0 16px;padding:4px;background:#edf1f6;border:1px solid var(--line);border-radius:8px;width:fit-content;max-width:100%}
.section-tabs button{border:1px solid transparent;border-radius:5px;padding:8px 15px;min-height:36px;font:600 13px var(--font);background:transparent;color:var(--muted);cursor:pointer}
.section-tabs button[aria-selected="true"]{background:white;border-color:#d7e0ed;color:var(--accent-hover);box-shadow:0 1px 3px #19243309}.section-tabs button:hover{color:var(--accent-hover)}
.workspace-section{min-width:0}.workspace-section:focus{outline-offset:5px}
.table-wrap[data-paginated],.table-wrap[data-unpaged]{max-height:none;scroll-margin-top:82px}.table-wrap tr[hidden]{display:none}
.table-pager{display:flex;align-items:center;gap:14px;flex-wrap:wrap;padding:12px 18px;border-top:1px solid var(--rule);font-size:12px;color:var(--muted)}
.table-pager label{display:flex;align-items:center;gap:6px;white-space:nowrap}.table-pager select{min-height:32px;padding:4px 7px}.pager-buttons{display:flex;align-items:center;gap:12px;margin-left:auto}.pager-position{font-variant-numeric:tabular-nums;white-space:nowrap}
.project-sync-compact{display:flex;align-items:center;flex-wrap:wrap;gap:8px 20px;padding:14px 19px;font-size:13px}.project-sync-compact p{flex-basis:100%;margin:0;font-size:12px;color:var(--muted)}
.device-hero h2{font-size:18px}.device-hero{padding:15px 19px}.mini-grid{padding-block:12px}.mini-grid .value{font-size:17px}.device-details{border-top:1px solid var(--rule);padding:0 19px}.device-details>summary{padding:13px 0;font-size:13px;cursor:pointer}.device-details .panel-body{padding:0 0 16px}
.hermes-panel iframe{height:max(420px,calc(100dvh - 350px));min-height:420px}.hermes-expanded .hermes-panel iframe{height:calc(100dvh - 200px);min-height:350px}
.help-status{padding:12px 16px;margin-bottom:14px}.help-version{gap:6px 10px}.help-version strong{font-size:16px}.help-status p{font-size:12px;margin-top:7px}.help-search{margin:14px 0}.help-search label{font-size:13px;margin-bottom:7px}.help-search p{margin:5px 0;font-size:12px}
.help-reading{padding:22px}.help-print-version{margin-block:8px}.help-print-sha{display:none}.help-layout{gap:20px;grid-template-columns:210px minmax(0,1fr)}
.help-chapters{padding-right:12px}.help-chapters>summary{font-size:13px;font-weight:650;cursor:pointer;padding:7px 0;min-height:36px}.help-chapter-link{padding:7px;min-height:36px;font-size:13px}.help-category{margin-top:17px}
#help-toc{padding-block:9px;margin:12px 0}#help-toc summary{font-size:13px;min-height:28px;cursor:pointer}#help-toc details>div{display:flex;flex-wrap:wrap;gap:6px 16px;padding-top:8px}
.help-article h2{margin:16px 0;font-size:25px}.help-article h3{margin-top:24px;padding-top:18px}.help-article p{margin-block:11px}
.diagram-viewport{max-height:360px;scrollbar-gutter:stable}.diagram-viewport svg{max-width:none;min-width:0;width:auto;height:auto}.diagram-full svg{min-width:0;width:auto;height:auto}.diagram-controls{gap:8px}.diagram-controls .button{min-height:36px}.diagram-hint{font-size:12px;color:var(--muted);margin:8px 0 0!important}
@media(min-width:1500px){main{padding-top:26px}.workbench-status{padding:22px 26px}}
@media(max-width:820px){
 main{padding-top:20px}.page-title h1{font-size:25px}.page-title{margin-bottom:16px}.page-title .subtitle{font-size:.875rem}.page-actions{margin-top:12px}
 .section-tabs{gap:4px;flex-wrap:nowrap;width:100%;overflow-x:auto;scrollbar-width:thin}.section-tabs button{flex:0 0 auto;white-space:nowrap}.section-tabs button{min-height:42px;padding:8px 10px}
 .workbench-status{padding:18px}.workbench-status h2{font-size:22px}.assistant-entry{padding:15px 18px}.assistant-entry h2{font-size:17px;margin:0}.assistant-entry p{margin:0}.assistant-entry>a{padding-top:5px;margin:0}.work-shortcut{padding:12px}.stat{min-height:110px;padding:14px}.metric-value{font-size:27px}
 .table-pager{gap:10px;padding:12px 14px}.table-count{flex-basis:100%}.pager-buttons{gap:8px}.table-pager select{min-height:40px}.table-pager .button{min-height:42px}
 .project-sync-compact{gap:7px 12px;padding:13px 15px}.device-hero{flex-wrap:wrap;gap:12px}.device-details{padding-inline:15px}
 .help-layout{display:block}.help-chapters{max-height:none;padding:0 12px;margin-bottom:12px;background:#f3f3f3}.help-chapters>summary{min-height:44px;display:list-item;line-height:1.7;padding:11px 0}.help-chapters[open]>nav{max-height:50dvh;overflow:auto;padding-bottom:10px}.help-skip{display:none}
 .help-status{padding:11px 13px}.help-version strong{font-size:15px}.help-version>span:not(.pill){font-size:.75rem}.help-version .pill{font-size:.75rem}.help-status p{line-height:1.6;font-size:.75rem}.help-search label{margin-bottom:5px}.help-search input{flex-basis:100%;min-height:42px}.help-search>div{gap:7px}.help-search .button{min-height:40px}.help-search p:empty{display:none}
 .help-reading{padding:15px}.help-tools{gap:6px}.help-tools .button{min-height:40px}.help-tools>span{font-size:12px}.help-print-version{font-size:.75rem}.help-article h2{font-size:23px}.diagram-viewport{max-height:310px}.diagram-controls .button{min-height:44px}
}
@media print{.section-tabs,.table-pager,.diagram-hint{display:none!important}.table-wrap[data-paginated]{overflow:visible}.table-wrap tr[hidden]{display:table-row}.help-print-sha{display:inline}.diagram-viewport{max-height:none;overflow:visible}.diagram-viewport svg{max-width:100%!important;height:auto}.workspace-section[hidden]{display:none}}

.doc-path{display:block;max-width:40ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:.75rem/1.7 var(--mono)}

/* Shared hierarchy: page 26 / section 16 / body 14 / data 13 / context 12. */
:root{--danger:#b42318;--danger-soft:#fff0ee;--attention:#c2410c;--attention-soft:#fff;--control-line:#7b899d}
#content{font-size:.875rem;line-height:1.6}
.page-title h1{line-height:1.25;letter-spacing:-.025em}.page-title .subtitle{max-width:72ch;line-height:1.65}
.panel-head h2{font-size:1rem;line-height:1.4}.panel-head p,.panel-head .meta{font-size:.75rem}
.panel-head{align-items:center;flex-wrap:wrap}.panel-head>div{min-width:0}.panel-head h2,.panel-head p{overflow-wrap:anywhere}
.button,.text-link,.table-button{font-size:.8125rem}.button{line-height:1.5}.button.small{min-height:36px}
.pill{font-size:.75rem;line-height:1.5;max-width:100%;overflow-wrap:anywhere}
.pill.critical{background:var(--danger-soft);color:var(--danger)}.pill.warning{background:transparent;color:var(--attention)}
.button.attention{background:var(--attention);border-color:var(--attention);color:white}.button.attention:hover{background:#7c3706}
.button.danger{background:var(--danger);border-color:var(--danger);color:white}.button.danger:hover{background:#8e1b12}
.error-banner{background:var(--danger-soft);border-color:#e4a39c;color:var(--danger);font-size:.875rem}
.workflow-error{color:var(--danger)}.quota-note.warning,.help-warning{background:transparent;border-color:var(--attention);color:var(--attention)}
.workbench-status,.workbench-status.warning,.workbench-status.critical{background:#fff;border-color:var(--line)}
.text-attention{color:var(--attention)}.text-danger{color:var(--danger)}
.workbench-status.warning .workbench-kicker,.workbench-status.critical .workbench-kicker{color:var(--muted)}.workbench-status.warning h2,.workbench-status.critical h2{color:var(--ink)}
.workbench-status.warning .status-lamp{background:var(--attention);box-shadow:none}.workbench-status.critical .status-lamp{background:var(--danger);box-shadow:none}
.alert-row.critical .alert-mark{background:var(--danger-soft);color:var(--danger)}.alert-row.warning .alert-mark{background:transparent;color:var(--attention)}
.alert-row.notice .alert-mark{background:var(--accent-soft);color:var(--accent-hover)}
.workbench-host,.workbench-links>span,.assistant-caption,.assistant-entry p,.assistant-entry>a,.sync-line,.sync-line>span,.sync-line>b,.work-shortcut small,.section-heading>span,.stat-note,.chart-legend,.chart-labels,.chart>small,.storage-path,.storage-size{font-size:.75rem}
.workbench-status>p{font-size:.875rem}.metric-value{line-height:1.25;overflow-wrap:anywhere}.stat-label{font-size:.8125rem}.stat{min-width:0}
.stat-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.section-heading{flex-wrap:wrap}
table{font-size:.8125rem;line-height:1.55}th{font-size:.75rem;font-weight:650}td,th{padding:11px 16px}
.table-pager{font-size:.8125rem}.log-message{font-size:.75rem;line-height:1.7}.raw-details pre{font-size:.75rem;max-height:360px;overflow:auto}
.detail-grid{font-size:.875rem;line-height:1.55}.detail-grid dt{font-size:.8125rem}
.toolbar{gap:10px;padding:14px 18px}.toolbar>*{min-width:0;max-width:100%}.toolbar input[type=search]{flex:1 1 240px}
.search-toolbar>label{font-size:.8125rem;font-weight:600}.search-toolbar>input{flex:1 1 200px}.search-toolbar>select{flex:0 1 150px}.search-toolbar>button{flex:0 0 auto}
.model-form{grid-template-columns:minmax(0,1fr);min-width:0}.model-form label{grid-template-columns:minmax(0,1fr);min-width:0;font-size:.8125rem}
.model-form input,.model-form select,.model-form textarea{min-width:0;max-width:100%;width:100%}.model-form input[type=checkbox],.model-form input[type=radio]{width:auto}
.model-form fieldset{min-width:0}.photo-card>div>strong{display:block;overflow-wrap:anywhere;font-size:.8125rem}
.hermes-toolbar{gap:8px;padding:12px 16px}.hermes-help{font-size:.8125rem;padding-block:10px;line-height:1.6}
.hermes-toolbar .button{gap:6px}.section-note{font-size:.8125rem;line-height:1.7}
#detail>header{z-index:5;gap:16px}#detail-title{font-size:1.125rem;line-height:1.4;overflow-wrap:anywhere}#detail>header .icon-button{flex:0 0 auto}
dialog :focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(min-width:821px) and (max-width:1150px){.stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:820px){
 .page-title h1{font-size:1.5rem}.panel-head{padding:14px 16px}.panel-body{padding:16px}
 .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.metric-value{font-size:1.625rem}
 .detail-grid{font-size:.8125rem}.section-heading>span{font-size:.75rem}
 .button,.table-button,.icon-button{min-height:44px}.icon-button{min-width:44px}.section-tabs button{min-height:44px}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:1rem;min-height:44px}.nav-search input{font-size:1rem}
 .search-toolbar{padding:14px;gap:8px}.search-toolbar>label{flex:1 1 100%}.search-toolbar>input{flex:1 1 100%}.search-toolbar>select{flex:1 1 110px}
 .hermes-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:8px}.hermes-toolbar .button{width:100%;font-size:.75rem;padding-inline:6px}
 .help-tools{align-items:flex-start;flex-wrap:wrap}.help-tools>div{display:flex;gap:8px;flex-wrap:wrap}
 .help-status p,.help-version>span:not(.pill),.help-print-version,.help-search p{font-size:.75rem}
 .work-shortcut small,.sync-line>b,.sync-line>span{font-size:.75rem}.work-shortcut strong{font-size:.8125rem}
}

/* Project originals share the documentation reader, with a bounded modal. */
#project-reader{width:min(1160px,calc(100vw - 48px));max-height:92dvh;padding:0;border-radius:10px}
#project-reader[open]{display:flex;flex-direction:column}
#project-reader>header{position:relative;z-index:5;flex:0 0 auto;padding:14px 20px;gap:16px;background:#fff}
#project-reader-title{font-size:1.125rem;line-height:1.45;margin:0;overflow-wrap:anywhere}
#project-reader>header button{flex:0 0 auto;min-width:44px;min-height:44px}
.project-reader-body{overflow:auto;min-height:0;padding:18px 24px 28px;overscroll-behavior:contain;scrollbar-gutter:stable;background:white}
.project-reader-toolbar{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px 16px;margin-bottom:14px}
.project-reader-toolbar [role=group]{display:flex;flex-wrap:wrap;gap:6px}.project-reader-toolbar [aria-pressed=true]{background:var(--accent-soft);color:var(--accent-hover);border-color:var(--accent)}
.project-reader-version{margin:0 0 8px}.project-reader-version>summary{cursor:pointer;min-height:32px;line-height:32px;font-size:.8125rem;color:var(--muted)}.project-reader-version[open]>.project-reader-meta{margin-top:8px}
.project-reader-meta{display:grid;grid-template-columns:90px minmax(0,1fr);gap:4px 12px;padding:12px 14px;background:#f5f5f5;border:1px solid #e3e3e3;border-radius:6px;font-size:.75rem;line-height:1.6;margin:0}
.project-reader-meta dt{color:var(--muted)}.project-reader-meta dd{margin:0;overflow-wrap:anywhere}
.project-reader-status{font-size:.75rem;line-height:1.6;color:var(--muted);margin:10px 0}
.project-reader-error{color:var(--danger);background:var(--danger-soft);padding:14px;border-radius:6px}
.project-reader-toc{border-block:1px solid var(--rule);padding:8px 0;margin:16px 0}
.project-reader-toc summary{font-size:.8125rem;font-weight:600;cursor:pointer;min-height:32px;line-height:32px}
.project-reader-toc a{display:block;font-size:.8125rem;line-height:1.6;color:var(--accent);padding:4px 8px;overflow-wrap:anywhere}
.project-reader-toc details[open]{max-height:240px;overflow:auto}.project-reader-article{font-size:.9375rem;max-width:920px;margin:auto}
.project-reader-article h2{font-size:1.5rem}.project-reader-article h3{font-size:1.1875rem}.project-reader-article h4{font-size:1.0625rem}
.project-reader-article :is(h2,h3,h4){scroll-margin-top:16px}
.project-reader-raw{white-space:pre-wrap;overflow-wrap:anywhere;font:.8125rem/1.8 var(--mono);padding:18px;background:#f5f5f5;border:1px solid #e3e3e3}
@media(max-width:820px){
 #project-reader{width:calc(100vw - 16px);max-height:96dvh;border-radius:8px}#project-reader>header{padding:10px 14px}
 .project-reader-body{padding:14px 16px 24px}.project-reader-meta{grid-template-columns:70px minmax(0,1fr);gap:5px 8px;padding:10px}
 .project-reader-toolbar{align-items:stretch}.project-reader-toolbar .button{min-height:44px}.project-reader-toc summary,.project-reader-version>summary{min-height:44px;line-height:44px}
 .project-reader-article{font-size:.9375rem}.project-reader-article h2{font-size:1.375rem}
}

.sync-line.is-unverified{background:white;border-color:var(--line)}.sync-line.is-unverified>.ui-icon{color:var(--attention)}
