/* Direction D: shared controls, document surfaces and navigation. */
.icon{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.skip{position:fixed;top:-80px;inset-inline-start:20px;z-index:200;background:var(--action);color:var(--accent-text);padding:12px 20px;border-radius:6px}.skip:focus{top:12px}
.shell{min-height:100dvh;padding-inline-start:var(--sidebar)}
.sidebar{position:fixed;inset-block:0;inset-inline-start:0;width:var(--sidebar);padding:24px 16px;background:var(--rail);border-inline-end:1px solid var(--line);display:flex;flex-direction:column;z-index:40;overflow-y:auto}
.brand{display:flex;align-items:center;gap:16px;min-height:64px;padding:0 12px;margin-bottom:28px}.brand img{width:84px;height:56px;object-fit:contain}.brand-copy{font-size:12px;color:var(--muted);max-width:64px}.brand-copy strong{font-size:12px;font-weight:400}.brand-copy small{display:none}
.workspace-label{border:1px solid var(--line);background:var(--paper);border-radius:6px;padding:12px 16px;margin-bottom:28px;font-size:12px}
.side-nav{display:grid;gap:4px}.nav-item{display:flex;align-items:center;gap:12px;padding:10px 16px;min-height:44px;border-radius:6px;color:var(--muted)}.nav-item:hover{background:var(--surface)}.nav-item.active{color:var(--ink);background:var(--surface);font-weight:500}.nav-item.active .icon{stroke-width:2}.nav-item .count{margin-inline-start:auto;font-size:12px}.nav-label{font-size:12px;color:var(--muted);margin:24px 16px 8px}
.sidebar .new-request{margin-top:24px}.sidebar-foot{margin-top:auto;padding:24px 4px 0}.sidebar-foot>.row{padding-top:20px;border-top:1px solid var(--line)}.account{display:flex;align-items:center;gap:12px;margin-top:20px}.account p{font-size:12px}.account>.icon-button{margin-inline-start:auto}.avatar,.store-mark{width:40px;height:40px;border-radius:10px;background:var(--soft);border:1px solid var(--line);display:grid;place-items:center;color:var(--ink);font-size:14px;flex-shrink:0}.avatar{width:36px;height:36px}.store-mark img{width:100%;height:100%;object-fit:contain;border-radius:inherit}
.status-dot{display:inline-block;width:6px;height:6px;flex-shrink:0;border-radius:50%;background:var(--live)}.status-dot.stale{background:var(--muted)}
.topbar{height:72px;display:flex;align-items:center;justify-content:space-between;padding-inline:40px;border-bottom:1px solid var(--line);gap:16px}.topbar-title{display:flex;align-items:center;gap:12px;color:var(--muted);font-size:12px}.topbar-actions{display:flex;align-items:center;gap:4px}.crumb-separator{margin-inline:12px;color:var(--muted)}.desktop-crumb{color:var(--ink)}.topbar .mobile-logo{display:none}.language-toggle{font-size:12px!important;min-width:44px}
.content{max-width:1260px;margin-inline:auto;padding:32px 40px 64px}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:8px}.page-head .muted{margin-top:4px;font-size:12px}.heading-actions{display:flex;align-items:center;gap:8px}.eyebrow{color:var(--muted);font-size:12px;margin-bottom:8px}.breadcrumb{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:12px;margin-bottom:20px}
button:not(.icon-button),.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 16px;border:1px solid var(--line-strong);border-radius:6px;background:var(--surface);color:var(--ink);font-weight:450;transition:background var(--fast)}
button:hover,.button:hover{background:var(--soft)}button.primary,a.primary{background:var(--action);color:var(--accent-text);border-color:var(--action)}button.primary:hover,a.primary:hover{background:var(--action-hover);border-color:var(--action-hover)}button.ghost,.button.ghost{background:transparent;border-color:transparent;color:var(--muted)}.button.full{width:100%}button.small-button,.button.small-button{font-size:12px;padding:8px 12px}
.icon-button{width:44px;min-width:44px;height:44px;padding:0;display:inline-grid;place-items:center;background:transparent;border:1px solid transparent;border-radius:6px;color:var(--muted)}.icon-button:hover{background:var(--soft);color:var(--ink)}
.text-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;text-decoration:underline;text-underline-offset:4px;font-size:12px}.text-link .icon{width:16px;height:16px}
.pill,.badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted);max-width:100%;width:fit-content;white-space:normal;overflow-wrap:anywhere}.pill::before{content:'';width:6px;height:6px;border-radius:50%;background:var(--muted);flex-shrink:0}.pill.live,.pill.orange{color:var(--live)}.pill.live::before,.pill.orange::before{background:var(--live)}.pill.danger,.danger{color:var(--danger)}.pill.warning,.warning{color:var(--warning)}.badge:not(.pill){padding:2px 8px;background:var(--soft);border-radius:4px}
.section-count{font-size:12px;color:var(--ink);background:var(--soft);border-radius:6px;min-width:22px;padding:0 6px;text-align:center}.section-head,.panel-header{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px}.section-head{margin:8px 0 12px}.section-head h2{display:flex;align-items:center;gap:8px}
.stack{display:grid;gap:20px;align-content:start}.row,.actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.spread{display:flex;align-items:center;justify-content:space-between;gap:12px}.grid{display:grid;gap:24px;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}.two{display:grid;grid-template-columns:minmax(0,1fr) 304px;gap:32px}.layout-two{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,1fr);gap:32px}.stack>*,.grid>*,.two>*,.layout-two>*,.review-layout>*,.composer-layout>*{min-width:0}
.card,.panel{padding:24px;border:1px solid var(--line);border-radius:12px;background:var(--surface);min-width:0}.card{display:grid;gap:12px;align-content:start}.panel-pad{padding:24px}.card>.button{justify-self:start}.rule,hr{height:1px;border:0;background:var(--line);margin:16px 0}.footer-note{font-size:12px;color:var(--muted);margin-top:28px;display:flex;align-items:center;gap:8px}
.tabs{display:flex;gap:24px;border-bottom:1px solid var(--line);margin:0 0 4px;white-space:nowrap;overflow-x:auto;scrollbar-width:none;min-width:0}.tabs a,.tabs button{display:inline-flex;align-items:center;min-height:48px;padding:8px 0;border:0;border-bottom:2px solid transparent;border-radius:0;background:transparent;color:var(--muted);flex-shrink:0}.tabs [aria-current=page]{color:var(--ink);border-bottom-color:var(--ink);font-weight:500}
.field,label{display:grid;gap:8px;min-width:0}.field-label,.field-help{font-size:12px}.field-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}input:not([type=range],[type=radio],[type=checkbox],[type=file]),select,textarea{width:100%;min-width:0;min-height:44px;padding:10px 12px;border:1px solid var(--border-control);border-radius:6px;background:var(--surface);color:var(--ink);font-size:14px}textarea{resize:vertical;line-height:1.95;min-height:120px}input::placeholder,textarea::placeholder{color:var(--muted)}input[type=file]{width:100%;font-size:12px;padding-block:8px}input::file-selector-button{font:inherit;color:var(--ink);background:var(--surface);border:1px solid var(--line-strong);border-radius:6px;min-height:44px;padding:8px 12px;margin-inline-end:12px;cursor:pointer}input[type=radio],input[type=checkbox]{width:20px;height:20px;min-height:20px;accent-color:var(--ink);flex-shrink:0}label:has(>input[type=checkbox]){display:flex;align-items:center;gap:12px;min-height:44px}fieldset{min-width:0;border:1px solid var(--line);border-radius:6px;padding:16px}legend{font-size:12px;padding-inline:8px}fieldset:has(input[type=radio]){display:grid;grid-template-columns:1fr 1fr;gap:12px}fieldset:has(input[type=radio])>label{display:flex;justify-content:space-between;align-items:center;padding:12px;border:1px solid var(--line);border-radius:6px;min-height:44px}fieldset:has(input[type=radio])>label:has(:checked){background:var(--soft);border-color:var(--ink)}fieldset:has(input[type=radio])>p{grid-column:1/-1;font-size:12px}
.empty{padding:32px 20px;text-align:center;justify-items:center;gap:12px;min-height:200px;border-style:dashed}.empty .icon{width:24px;height:24px;color:var(--muted)}.empty p{font-size:12px;max-width:420px;color:var(--muted)}.empty .button{justify-self:center}.skeleton{min-height:160px;color:var(--muted)}.skeleton::after{content:'';height:12px;width:65%;background:var(--line);border-radius:3px;box-shadow:none}.form-error,.error-inline{padding:16px;border:1px solid var(--line);border-inline-start:3px solid var(--danger);border-radius:6px;background:var(--surface);display:grid;gap:12px;color:var(--danger)}
progress,.progress{display:block;width:100%;height:5px;accent-color:var(--live);border:0;border-radius:3px;overflow:hidden;direction:ltr;background:var(--line)}progress::-webkit-progress-bar{background:var(--line)}progress::-webkit-progress-value{background:var(--live);border-radius:3px}progress::-moz-progress-bar{background:var(--live)}.progress>span{height:100%;display:block;background:var(--live)}
.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}th,td{text-align:start;padding:16px 12px;border-block-end:1px solid var(--line);vertical-align:top}th{font-size:12px;font-weight:400;color:var(--muted);background:var(--soft)}th:first-child,td:first-child{padding-inline-start:0}th:last-child,td:last-child{padding-inline-end:0}
.key-value{display:grid;grid-template-columns:minmax(100px,1fr) 2fr;gap:12px;font-size:12px}.key-value dt{color:var(--muted)}.key-value dd{margin:0;min-width:0;overflow-wrap:anywhere}.safe-text{white-space:pre-wrap}.metadata{direction:ltr;unicode-bidi:isolate;overflow-wrap:anywhere;color:var(--muted)}pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;padding:16px;background:var(--soft);border-radius:6px}details{min-width:0}details>summary{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--muted);cursor:pointer;list-style:none}details>summary::-webkit-details-marker{display:none}details>summary::after{content:'+';margin-inline-start:auto;font-size:16px}details[open]>summary::after{content:'−'}details[open]>summary{margin-bottom:12px}audio{max-width:100%}canvas{max-width:100%;height:40px}
.file-chip,.file-row{padding:16px 0;border-bottom:1px solid var(--line);min-width:0}.file-chip{display:grid;gap:12px}.file-chip img,.file-chip video{max-width:140px;max-height:100px;object-fit:contain;border-radius:6px}.file-row{display:flex;align-items:center;gap:12px}.file-icon{width:36px;height:40px;background:var(--soft);border-radius:6px;display:grid;place-items:center;color:var(--muted)}.file-info{flex:1;min-width:0}.files-detail{display:flex;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--muted)}.dropzone{padding:20px;border:1px dashed var(--line-strong);border-radius:6px;background:var(--surface)}.dropzone.drag{border-color:var(--ink)}.dropzone>small{display:block;margin-top:12px}
.sticky-actions{position:sticky;bottom:16px;background:var(--surface);padding:16px;border:1px solid var(--line);border-radius:6px;z-index:10}
dialog{overflow:auto;max-width:460px;width:calc(100% - 40px);max-height:85dvh;border:1px solid var(--line);border-radius:12px;padding:28px;background:var(--surface);color:var(--ink);box-shadow:var(--shadow)}dialog::backdrop{background:#20221f50;backdrop-filter:none}dialog::before{display:none;content:'';width:36px;height:4px;background:var(--line-strong);border-radius:2px;margin:0 auto 24px}dialog h2{margin-bottom:12px}dialog p{line-height:1.9}dialog .dialog-actions{display:flex;gap:12px;justify-content:flex-end}dialog .sticky-actions{position:sticky;bottom:-28px;margin-inline:-28px;margin-bottom:-28px;border:0;border-top:1px solid var(--line);border-radius:0;padding:16px 28px}
#notice{position:fixed;bottom:100px;inset-inline-end:24px;z-index:150;max-width:360px;width:max-content;pointer-events:none;font-size:14px}#notice:not(:empty){background:var(--ink);color:var(--paper);padding:14px 20px;border-radius:8px;box-shadow:var(--shadow)}
.bottom-nav{display:none}
@media(max-width:1100px) and (min-width:701px){:root{--sidebar:190px}.content,.topbar{padding-inline:24px}.sidebar{padding-inline:10px}.layout-two{grid-template-columns:minmax(0,1.2fr) minmax(240px,1fr);gap:24px}.two{grid-template-columns:minmax(0,1fr) 240px;gap:24px}}
@media(max-width:700px){.shell{padding-inline-start:0}.sidebar,.desktop-crumb{display:none}.topbar{position:sticky;top:0;height:64px;padding:0 20px;background:var(--paper);z-index:24}.topbar .mobile-logo{display:flex;align-items:center;gap:12px;min-height:44px;font-size:12px}.topbar .mobile-logo img{width:56px;height:36px;object-fit:contain}.topbar-actions{gap:0}.content{padding:24px 20px calc(var(--tabbar) + 32px)}.page-heading{gap:12px;margin-bottom:0}.heading-actions .button,.heading-actions button{font-size:12px;padding-inline:12px}.layout-two,.two{grid-template-columns:1fr;gap:24px}.stack{gap:20px}.card,.panel{padding:20px}.tabs{gap:20px}.tabs a,.tabs button{font-size:12px;min-height:44px}.store-content .tabs{gap:0;justify-content:space-between}.store-content .tabs a{padding-inline:2px}.bottom-nav{position:fixed;inset-inline:0;bottom:0;height:var(--tabbar);padding:6px 12px max(16px,env(safe-area-inset-bottom,0px));background:var(--surface);border-top:1px solid var(--line);display:flex;align-items:flex-start;justify-content:space-around;z-index:40}.bottom-nav .nav-item{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;min-width:60px;min-height:48px;padding:0;font-size:12px;border-radius:0;color:var(--muted);background:transparent}.bottom-nav .nav-item.active{color:var(--ink);font-weight:550}.bottom-nav .nav-item.active .icon{stroke-width:2.2}.sticky-actions{bottom:calc(var(--tabbar) + 12px)}dialog{position:fixed;inset:auto 0 0;margin:0;width:100%;max-width:none;max-height:85dvh;padding:12px 24px max(32px,env(safe-area-inset-bottom,0px));border-radius:20px 20px 0 0;border-bottom:0}dialog::before{display:block}dialog .sticky-actions{bottom:-32px;margin-inline:-24px;margin-bottom:-32px;padding:16px 24px}#notice{bottom:calc(var(--tabbar) + var(--actionbar) + 20px);inset-inline:20px;max-width:none;width:auto}.field-row{gap:12px}}
@media(max-width:359px){.page-heading{flex-wrap:wrap}.topbar .mobile-logo span{display:none}.field-row,fieldset:has(input[type=radio]){grid-template-columns:1fr}.field-row>*{grid-column:1/-1}}
