/* ANGELS / WORKSPACE 0.2 — self-hosted, zero runtime UI dependencies. */
:root{color-scheme:light;--bg:#f3f5f7;--surface:#fff;--surface-2:#f8f9fb;--text:#19212b;--muted:#647080;--line:#dfe4ea;--line-soft:#ecf0f3;--ink:#171c23;--gold:#d0aa69;--gold-soft:#f7efdf;--gold-text:#79551c;--accent:#a5772f;--focus:#8150d3;--success:#176847;--success-bg:#e9f5ee;--warning:#87590d;--warning-bg:#fff2d8;--danger:#b12b39;--danger-bg:#fcecf0;--blue:#255e99;--blue-bg:#eaf2fc;--radius:12px;--shadow:0 10px 34px -22px rgba(25,33,43,.3);--sidebar-width:252px;--font:Inter,"Segoe UI",Arial,sans-serif}
:root[data-theme=dark]{color-scheme:dark;--bg:#11161c;--surface:#1a2028;--surface-2:#202833;--text:#edf1f5;--muted:#a4b0bf;--line:#34404d;--line-soft:#293441;--ink:#edf1f5;--gold:#dab678;--gold-soft:#3c3326;--gold-text:#ebc78c;--accent:#dab678;--focus:#c9a7ff;--success:#9cddba;--success-bg:#203e32;--warning:#f0cc82;--warning-bg:#3d321e;--danger:#ffb3ba;--danger-bg:#45262e;--blue:#adcdf7;--blue-bg:#23364e;--shadow:none}
*{box-sizing:border-box}html{margin:0;scroll-behavior:smooth;scroll-padding-top:92px}body{margin:0;font:14px/1.6 var(--font);color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}body,button,input,select,textarea{font-family:var(--font)}button,input,select,textarea{font-size:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}a:hover{text-decoration:none}p{margin:0 0 16px}p:last-child{margin-bottom:0}strong{font-weight:650}h1,h2,h3,h4{color:var(--text);line-height:1.2;margin:0 0 14px;font-weight:700;letter-spacing:-.035em}h1{font-size:34px}h2{font-size:22px}h3{font-size:17px;letter-spacing:-.02em}small{font-size:12px}ul,ol{padding-left:22px}img{max-width:100%;height:auto}svg{flex-shrink:0}.icon{width:20px;height:20px;vertical-align:middle}a,button,input,select,textarea,summary{outline-offset:4px}:focus-visible{outline:3px solid var(--focus)}[hidden]{display:none!important}button:disabled{opacity:.6;cursor:wait}::selection{background:#e7d4b0;color:#19212b}input::placeholder,textarea::placeholder{color:var(--muted);opacity:1}.muted{color:var(--muted)}.skip{position:fixed;left:20px;top:-80px;z-index:1000;padding:12px 22px;background:var(--text);color:var(--surface);border-radius:8px}.skip:focus{top:12px}.separator{color:var(--muted)}.wide{grid-column:1/-1}.stack{display:grid;gap:16px}.grid-2{display:grid;grid-template-columns:minmax(0,1.75fr) minmax(270px,1fr);gap:24px;align-items:start}.grid-equal{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:start}.grid-2>*{min-width:0}.inline-form{display:inline-flex;vertical-align:middle;max-width:100%}.readonly-note{color:var(--muted);font-size:13px;margin:12px 0}.intro-card{padding:26px;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
/* Global navigation */
.sidebar{position:fixed;z-index:70;inset:0 auto 0 0;width:var(--sidebar-width);background:#151a21;color:#d0d6df;border-right:1px solid #30363e;display:flex;flex-direction:column;padding:26px 15px 0}.sidebar-brand{display:flex;align-items:center;justify-content:space-between;padding:0 9px 30px}.wordmark{display:flex;gap:12px;align-items:center;color:#fafafa;line-height:1.12;font-size:23px;letter-spacing:.1em;font-weight:800}.wordmark small{display:block;font-size:10px;letter-spacing:.22em;color:#97a2b1;margin-top:6px;font-weight:550}.brand-symbol{display:flex;align-items:center;justify-content:center;width:39px;height:43px;border:1px solid #695b42;color:#dbb982;transform:skewY(-7deg);border-radius:4px}.brand-symbol .icon{width:25px;height:25px;transform:skewY(7deg)}.workspace-label{padding:0 13px 13px;color:#8491a3;font-size:10px;letter-spacing:.13em;font-weight:700}.sidebar nav{flex:1;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#4b5665 transparent;padding:0 0 18px}.nav-link{min-height:44px;padding:10px 13px;display:flex;align-items:center;gap:12px;border-radius:7px;font-size:13px;font-weight:500;color:#b8c3d1;transition:background .15s,color .15s;position:relative;margin-bottom:3px;line-height:1.35}.nav-link .icon{width:18px;height:18px;opacity:.82}.nav-link:hover{background:#252d38;color:#fff}.nav-link.active{background:#e4c48e;color:#252118;font-weight:700}.nav-link.active .icon{opacity:1}.nav-link.active:after{content:"";width:4px;height:4px;border-radius:50%;background:currentColor;margin-left:auto;flex-shrink:0}.nav-divider{height:1px;background:#2b343f;margin:18px 11px}.nav-section{border:0;margin:2px 0;background:none}.nav-section>summary{list-style:none;min-height:44px;padding:12px 13px;color:#91a0b3;font-size:11px;letter-spacing:.07em;font-weight:700;display:flex;align-items:center;justify-content:space-between;cursor:pointer;border-radius:5px}.nav-section>summary::-webkit-details-marker{display:none}.nav-section>summary .icon{height:13px;width:13px;transition:transform .18s}.nav-section[open]>summary .icon{transform:rotate(90deg)}.nav-section>summary:hover{color:#edf1f5;background:#1e2630}.nav-section-links{padding-bottom:8px}.sidebar-footer{background:#151a21;border-top:1px solid #303944;padding:17px 8px 14px;flex-shrink:0}.sidebar-profile{display:flex;align-items:center;gap:10px}.sidebar-profile>.icon{margin-left:auto;color:#8d9bac;width:18px;height:18px}.profile-caption{min-width:0;line-height:1.5}.profile-caption strong{display:block;color:#e8edf3;font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:137px}.profile-caption small{font-size:10px;color:#9daabc}.suite-version{display:flex;justify-content:space-between;color:#8995a5;font-size:10px;margin-top:18px}.suite-version span{font-size:9px;letter-spacing:.06em}.workspace-main{margin-left:var(--sidebar-width);min-height:100vh;display:flex;flex-direction:column}.topbar{height:77px;display:flex;align-items:center;gap:24px;padding:0 32px;background:var(--surface);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:40}.topbar-location{display:flex;gap:10px;align-items:center;font-size:12px;min-width:0;white-space:nowrap}.topbar-location>span:first-of-type:not(.topbar-dot){color:var(--muted)}.topbar-location strong{max-width:180px;overflow:hidden;text-overflow:ellipsis}.topbar-dot{width:6px;height:6px;background:var(--gold);border-radius:2px;transform:rotate(45deg)}.global-search{margin:0 auto 0 auto;max-width:345px;min-width:100px;flex:1;display:flex;align-items:center;gap:9px;border:1px solid var(--line);background:var(--surface-2);border-radius:7px;min-height:39px;padding:0 11px;color:var(--muted)}.global-search input{border:0;background:transparent;box-shadow:none;padding:7px 0;min-width:0;width:100%;font-size:12px;color:var(--text);height:auto;min-height:0}.global-search input:focus{outline:0;box-shadow:none}.global-search:focus-within{outline:3px solid var(--focus);outline-offset:3px}.global-search .icon{width:17px;height:17px}kbd{font:11px var(--font);border:1px solid var(--line);background:var(--surface);padding:0 5px;border-radius:3px}.top-actions{display:flex;align-items:center;gap:13px}.public-link{font-size:12px;font-weight:600;white-space:nowrap;display:flex;gap:5px;align-items:center;color:var(--muted)}.public-link .icon{width:14px;height:14px}.icon-button,.notification-button{border:0;background:transparent;color:var(--muted);height:42px;width:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;position:relative}.icon-button:hover,.notification-button:hover{background:var(--surface-2);color:var(--text)}.avatar{height:34px;width:34px;background:#ddc29a;color:#3c3020;border:1px solid #c2a374;font-size:12px;font-weight:750;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-shrink:0}.top-avatar{background:var(--gold-soft);border-color:var(--line);color:var(--gold-text)}.count{position:absolute;right:0;top:0;min-width:17px;padding:1px 4px;border-radius:5px;background:var(--danger);color:var(--surface);font-size:10px;line-height:15px;text-align:center;font-weight:700}.mobile-menu,.nav-scrim{display:none}.main-content{padding:25px 32px 36px;max-width:1700px;width:100%;margin:0 auto;flex:1;min-width:0;outline:none}.breadcrumb{display:flex;align-items:center;gap:10px;font-size:10px;color:var(--muted);margin:0 0 23px;letter-spacing:.07em}.breadcrumb>span:nth-of-type(3){letter-spacing:0;color:var(--text)}.crumb-separator{opacity:.5}.role-tag{margin-left:auto;font-size:10px;letter-spacing:0;display:flex;gap:6px;align-items:center}.role-tag .icon{width:12px;height:12px}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 27px}.heading-copy{min-width:0;max-width:800px}.eyebrow{font-size:10px;letter-spacing:.15em;font-weight:750;color:var(--gold-text);margin-bottom:10px;text-transform:uppercase;display:flex;align-items:center;gap:10px}.eyebrow:before{content:"";height:1px;width:18px;background:currentColor;opacity:.6}.page-heading h1{font-size:31px;letter-spacing:-.045em;line-height:1.16;margin:0 0 10px}.page-heading p{color:var(--muted);font-size:13px;max-width:650px;line-height:1.6}.heading-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px;flex-shrink:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:43px;padding:10px 16px;font-weight:650;font-size:12px;line-height:1.35;color:var(--text);border:1px solid var(--line);background:var(--surface);border-radius:7px;transition:background .15s,box-shadow .15s,transform .15s;text-align:center;max-width:100%;white-space:normal}.button .icon{width:16px;height:16px}.button:hover{background:var(--surface-2);border-color:var(--muted);box-shadow:var(--shadow)}.button:active{transform:translateY(1px)}.button.primary{background:var(--text);color:var(--surface);border-color:var(--text)}.button.primary:hover{background:var(--gold);border-color:var(--gold);color:#251e14}.button.subtle{background:transparent;border-color:transparent;color:var(--muted)}.button.subtle:hover{background:var(--surface-2);color:var(--text)}.button.small{min-height:36px;padding:8px 12px;font-size:11px}.button.danger{background:var(--danger-bg);color:var(--danger);border-color:var(--danger)}.button:disabled{transform:none;box-shadow:none}.app-footer{display:flex;justify-content:space-between;gap:20px;font-size:10px;color:var(--muted);padding:16px 32px 22px;line-height:1.6}.app-footer>span:first-child{font-weight:600}.footer-divider{display:inline-block;padding:0 7px;color:var(--muted)}
/* Work surfaces and explicit states */
.panel{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);min-width:0;box-shadow:var(--shadow)}.panel-header{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid var(--line-soft);padding:18px 22px;min-height:66px}.panel-header h2,.panel-header h3{font-size:15px;letter-spacing:-.02em;margin:0}.panel-header h2>.icon,.panel-header h3>.icon{width:17px;height:17px;margin-right:8px;color:var(--gold-text)}.panel-header>.muted{font-size:11px}.panel-body{padding:23px}.panel-body>h2:first-child,.panel-body>h3:first-child{margin-top:0}.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:24px}.stat{background:var(--surface);border:1px solid var(--line);padding:19px 21px;border-radius:10px;min-width:0;position:relative;overflow:hidden}.stat-top{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12px;color:var(--muted);margin-bottom:10px;font-weight:550}.stat-top>.icon{width:17px;height:17px;color:var(--gold-text)}.stat-value{font-size:34px;font-weight:700;letter-spacing:-.05em;line-height:1.15;font-variant-numeric:tabular-nums;margin-bottom:10px}.stat-value small{font-size:13px;font-weight:450;letter-spacing:0;color:var(--muted);margin-left:6px}.stat-foot{font-size:10px;color:var(--muted);display:flex;align-items:center;gap:5px}.stat-foot .icon{width:12px;height:12px}.stat.alert .stat-value{color:var(--danger)}.stat.alert:after{content:"";position:absolute;inset:0 auto 0 0;width:3px;background:var(--danger)}.money-value{font-size:26px;letter-spacing:-.04em;overflow-wrap:anywhere}.notice,.welcome-strip{background:var(--blue-bg);color:var(--blue);border:1px solid color-mix(in srgb,var(--blue) 22%,transparent);padding:15px 18px;border-radius:8px;margin-bottom:20px;font-size:12px;line-height:1.65;display:flex;align-items:flex-start;gap:10px;overflow-wrap:anywhere}.notice .icon{width:17px;height:17px;margin-top:2px}.notice.warning{color:var(--warning);background:var(--warning-bg);border-color:color-mix(in srgb,var(--warning) 20%,transparent)}.notice.error{color:var(--danger);background:var(--danger-bg);border-color:color-mix(in srgb,var(--danger) 20%,transparent)}.notice.success{color:var(--success);background:var(--success-bg);border-color:color-mix(in srgb,var(--success) 20%,transparent)}.welcome-strip{justify-content:space-between;align-items:center;background:var(--gold-soft);color:var(--gold-text);border-color:color-mix(in srgb,var(--gold-text) 20%,transparent)}.welcome-strip h2,.welcome-strip h3{color:inherit;margin:0 0 5px;font-size:16px}.welcome-strip p{font-size:12px}.welcome-strip .button{flex-shrink:0}.table-wrap{max-width:100%;overflow-x:auto;scrollbar-width:thin}table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}th{background:var(--surface-2);color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.045em;padding:12px 18px;white-space:nowrap}td{padding:16px 18px;border-bottom:1px solid var(--line-soft);vertical-align:middle;overflow-wrap:anywhere}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:var(--surface-2)}.record-title{font-weight:650;line-height:1.5;display:block;color:var(--text)}.record-title:hover{color:var(--gold-text)}.row-sub{display:block;color:var(--muted);font-size:10px;line-height:1.6;margin-top:3px}.record-cell{display:flex;gap:10px;align-items:center;min-width:145px}.record-type-icon{display:flex;align-items:center;justify-content:center;border:1px solid var(--line);background:var(--surface-2);height:33px;width:33px;border-radius:7px;flex-shrink:0;color:var(--muted)}.record-type-icon .icon{width:16px;height:16px}.records-table th:first-child{width:40%}.records-table td:nth-child(4){font-size:11px;min-width:118px}.assignee-name{font-size:11px}.badge{display:inline-flex;align-items:center;gap:5px;font-size:10px;font-weight:650;line-height:1.25;border-radius:5px;padding:5px 7px;background:var(--blue-bg);color:var(--blue);white-space:nowrap}.badge>span{height:4px;width:4px;border-radius:50%;background:currentColor;flex-shrink:0}.badge.pending{background:var(--warning-bg);color:var(--warning)}.badge.complete{background:var(--success-bg);color:var(--success)}.badge.neutral{background:var(--surface-2);color:var(--muted);border:1px solid var(--line)}.badge.danger{background:var(--danger-bg);color:var(--danger)}.badge.active{background:var(--blue-bg);color:var(--blue)}.priority{font-size:10px;display:inline-flex;align-items:center;gap:5px;color:var(--muted);white-space:nowrap}.priority:before{content:"";width:5px;height:5px;flex-shrink:0;background:currentColor;border-radius:1px}.priority.high{color:var(--warning)}.priority.urgent{color:var(--danger);font-weight:700}.overdue{color:var(--danger)!important;font-weight:600}.overdue .icon{height:12px;width:12px;margin-right:4px}.empty-state{padding:40px 28px;text-align:center;max-width:550px;margin:auto}.empty-icon{display:flex;align-items:center;justify-content:center;width:46px;height:46px;margin:0 auto 17px;border:1px solid var(--line);background:var(--surface-2);border-radius:12px;color:var(--muted)}.empty-icon .icon{width:22px;height:22px}.empty-state h3{font-size:17px}.empty-state p{font-size:12px;color:var(--muted);line-height:1.8;max-width:340px;margin:0 auto 18px}.empty-state .button{margin-top:5px}.section-divider{border:0;border-top:1px solid var(--line);margin:24px 0}.quick-link{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid var(--line-soft);font-size:12px;font-weight:600}.quick-link:last-child{border-bottom:0}.quick-link .icon{width:16px;height:16px;color:var(--muted)}.quick-link:hover{color:var(--gold-text)}.quick-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:24px 0}.quick-path{border:1px solid var(--line);border-radius:10px;padding:18px;display:flex;align-items:center;gap:12px;background:var(--surface);transition:border-color .2s,transform .2s;min-width:0}.quick-path:hover{border-color:var(--gold);transform:translateY(-2px)}.quick-path>.icon{width:22px;height:22px;color:var(--gold-text)}.quick-path>div{min-width:0}.quick-path strong{font-size:12px;display:block}.quick-path small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.quick-path .path-arrow{margin-left:auto;width:15px;height:15px;flex-shrink:0}.attention-list{display:grid}.attention-row{display:flex;align-items:center;gap:13px;padding:17px 22px;border-bottom:1px solid var(--line-soft)}.attention-row:last-child{border-bottom:0}.attention-row:hover{background:var(--surface-2)}.attention-row .attention-icon{width:33px;height:33px;border:1px solid var(--line);border-radius:8px;display:flex;align-items:center;justify-content:center;color:var(--muted);flex-shrink:0}.attention-icon .icon{width:16px;height:16px}.attention-copy{min-width:0;flex:1}.attention-copy strong{font-size:12px;line-height:1.5;display:block}.attention-copy small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.attention-meta{text-align:right;min-width:90px}.attention-meta small{display:block;font-size:10px;margin-top:6px;color:var(--muted)}.panel-foot{padding:12px 22px;border-top:1px solid var(--line-soft);display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:10px}.panel-foot a{font-weight:650;color:var(--text);display:flex;gap:7px;align-items:center;min-height:30px}.panel-foot .icon{width:12px;height:12px}.agenda-item{display:flex;gap:13px;padding:16px 0;border-bottom:1px solid var(--line-soft)}.agenda-item:last-child{border-bottom:0}.agenda-date{flex-shrink:0;width:39px;text-align:center;padding-top:2px}.agenda-date strong{font-size:22px;line-height:1;letter-spacing:-.06em;display:block}.agenda-date small{font-size:9px;letter-spacing:.08em;color:var(--muted);display:block;margin-top:5px;text-transform:uppercase}.agenda-body{border-left:2px solid var(--gold);padding-left:13px;min-width:0}.agenda-body a{font-size:12px;font-weight:650;display:block;line-height:1.6}.agenda-body small{font-size:10px;color:var(--muted);display:block;margin-top:3px}.announcement-card{padding:19px 0;border-bottom:1px solid var(--line-soft)}.announcement-card:first-child{padding-top:0}.announcement-card:last-child{padding-bottom:0;border-bottom:0}.announcement-card a{font-size:14px;font-weight:650;display:block;margin:7px 0}.announcement-card p{font-size:12px;color:var(--muted);line-height:1.7}.announcement-card>small{font-size:9px;letter-spacing:.08em;color:var(--gold-text);font-weight:650}.system-note{display:flex;align-items:flex-start;gap:10px;font-size:11px;padding:16px 19px;background:var(--surface);border:1px dashed var(--line);border-radius:10px;color:var(--muted)}.system-note>.icon{width:16px;height:16px;color:var(--gold-text);margin-top:3px}.system-note strong{font-size:11px;color:var(--text);display:block;margin-bottom:4px}
/* Fields, editors and record reading */
form{margin:0}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.field{display:flex;flex-direction:column;gap:7px;min-width:0}.field label,fieldset legend{font-size:12px;font-weight:650;line-height:1.5;color:var(--text)}.required-mark{color:var(--muted);margin-left:2px}input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea{width:100%;min-height:44px;border:1px solid var(--line);border-radius:7px;padding:11px 12px;background:var(--surface);color:var(--text);line-height:1.5;box-shadow:none;transition:border-color .15s;min-width:0}input:hover,select:hover,textarea:hover{border-color:var(--muted)}input:focus,select:focus,textarea:focus{border-color:var(--focus)}input[type=checkbox],input[type=radio]{accent-color:var(--gold-text);height:17px;width:17px;flex-shrink:0;margin:0;vertical-align:middle}textarea{resize:vertical;min-height:118px}input[type=file]{font-size:12px;padding:8px!important}input[type=file]::file-selector-button{background:var(--surface-2);border:0;border-right:1px solid var(--line);padding:5px 10px;margin-right:10px;border-radius:4px;font:inherit;color:var(--text);cursor:pointer}.field small{font-size:11px;line-height:1.7;color:var(--muted)}.check-label{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.6;padding:10px 0}.check-label input{margin-top:2px}.people-picker{border:1px solid var(--line);border-radius:8px;padding:13px 15px;margin:0;min-width:0}.people-picker legend{padding:0 6px;font-size:11px;color:var(--muted)}.people-picker label{display:flex;gap:10px;align-items:center;padding:9px 0;font-size:12px;cursor:pointer}.people-picker small{display:block;color:var(--muted);font-size:10px}.people-picker label+label{border-top:1px solid var(--line-soft)}.people-picker>p{font-size:11px}.form-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:23px;padding-top:20px;border-top:1px solid var(--line)}.form-note{font-size:11px;color:var(--muted);line-height:1.8}.editor-layout{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(260px,1fr);gap:22px;align-items:start}.editor-main,.editor-aside{min-width:0;display:grid;gap:22px}.editor-aside .panel-header{padding:17px 20px;min-height:0}.editor-aside .panel-body{padding:20px}.editor-aside .form-grid{grid-template-columns:1fr}.editor-main .editor-title input{font-size:21px;font-weight:650;min-height:55px;letter-spacing:-.025em}.editor-main textarea[name=body]{min-height:210px;line-height:1.8}.editor-actions{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:18px 22px;margin-top:23px;background:var(--surface);border:1px solid var(--line);border-radius:10px}.editor-actions>.form-note{max-width:470px}.editor-actions>div:last-child{display:flex;gap:10px}.editor-visibility-note{display:flex;gap:8px;color:var(--muted);font-size:11px;line-height:1.8;padding-top:14px}.editor-visibility-note .icon{width:15px;height:15px;margin-top:3px}.detail-text{font-size:14px;line-height:1.85;overflow-wrap:anywhere;white-space:pre-wrap;max-width:80ch}.details{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px;margin:20px 0}.details dt{font-size:10px;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);margin-bottom:5px;font-weight:650}.details dd{font-size:12px;margin:0;overflow-wrap:anywhere}.details>div{min-width:0;padding-bottom:13px;border-bottom:1px solid var(--line-soft)}.details a{color:var(--blue);text-decoration:underline;text-underline-offset:3px}.activity-item{padding:17px 0;border-bottom:1px solid var(--line-soft);font-size:12px;overflow-wrap:anywhere}.activity-item:first-child{padding-top:0}.activity-item:last-child{border-bottom:0;padding-bottom:0}.activity-item p{margin:7px 0 0;white-space:pre-wrap;font-size:13px}.activity-item small{font-size:10px;color:var(--muted)}.file-row{padding:14px 0;border-bottom:1px solid var(--line-soft);display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;font-size:12px}.file-row a{font-weight:600;overflow-wrap:anywhere}.file-row small{display:block;font-size:10px;color:var(--muted)}.file-row .icon{height:16px;width:16px}.code-block{padding:15px;background:var(--surface-2);border:1px solid var(--line);border-radius:7px;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:12px/1.8 ui-monospace,Consolas,monospace}.log-item{font:11px/1.7 ui-monospace,Consolas,monospace;padding:12px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}details:not(.nav-section){border-top:1px solid var(--line);padding:14px 0}details:not(.nav-section)>summary{font-weight:600;font-size:12px;cursor:pointer;min-height:25px}details:not(.nav-section)[open]>summary{margin-bottom:15px}.checklist-row{display:flex;align-items:flex-start;gap:10px;padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;color:var(--success)}.checklist-row .icon{height:16px;width:16px;flex-shrink:0}.checklist-row.fail{color:var(--danger)}.danger-zone{border:1px solid var(--danger);background:var(--danger-bg);border-radius:10px;padding:21px;margin-top:22px}.danger-zone h2,.danger-zone h3{color:var(--danger)}.pill{display:inline-block;padding:4px 9px;border:1px solid var(--line);border-radius:5px;font-size:11px;color:var(--muted)}.legal-text{white-space:pre-wrap;line-height:1.85;overflow-wrap:anywhere}.control-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
/* Lists, filters, boards */
.filters{display:flex;align-items:center;gap:12px;padding:15px 20px;background:var(--surface);border-bottom:1px solid var(--line);flex-wrap:wrap}.filters>form{display:flex;gap:8px;flex:1;min-width:180px;max-width:460px}.filters>form input{height:39px;min-height:39px!important;font-size:12px}.filters>form .button{min-height:39px}.filters .right{margin-left:auto;display:flex;align-items:center;gap:10px}.tabs{display:flex;gap:5px;flex-wrap:wrap;border-bottom:1px solid var(--line);margin-bottom:21px;padding-bottom:9px}.tabs a{padding:9px 13px;border-radius:6px;font-size:12px;min-height:39px;font-weight:550}.tabs a:hover{background:var(--surface-2)}.tabs a.active{background:var(--text);color:var(--surface)}.view-switch{display:inline-flex;gap:3px;border:1px solid var(--line);padding:3px;border-radius:7px;background:var(--surface-2)}.view-switch a{min-height:32px;display:flex;gap:6px;align-items:center;padding:6px 10px;font-size:10px;color:var(--muted);border-radius:5px;font-weight:600}.view-switch a.active{background:var(--surface);color:var(--text);box-shadow:0 1px 3px #00000012}.view-switch .icon{height:14px;width:14px}.list-context{display:flex;justify-content:space-between;align-items:center;padding:12px 20px;color:var(--muted);font-size:10px;border-bottom:1px solid var(--line-soft);gap:15px}.list-context strong{color:var(--text)}.board{display:flex;gap:16px;overflow-x:auto;padding:20px;max-width:100%;scrollbar-width:thin;scroll-snap-type:x proximity}.board-column{flex:0 0 270px;min-width:0;background:var(--surface-2);border:1px solid var(--line-soft);padding:13px;border-radius:9px;scroll-snap-align:start;min-height:230px}.board-column h3{font-size:12px;letter-spacing:0;display:flex;gap:10px;justify-content:space-between;align-items:center;margin:0 0 16px;padding:3px}.board-column h3 span{background:var(--surface);border:1px solid var(--line);color:var(--muted);min-width:21px;text-align:center;border-radius:4px;font-size:10px;padding:3px}.board-card{display:block;padding:16px 13px;background:var(--surface);border:1px solid var(--line);border-radius:7px;margin-bottom:10px;box-shadow:0 2px 4px #00000003}.board-card:hover{border-color:var(--gold)}.board-card>strong{font-size:12px;display:block;line-height:1.6;margin:9px 0 12px}.board-card small{display:block;color:var(--muted);font-size:10px}.board-card-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;border-top:1px solid var(--line-soft);padding-top:10px;margin-top:12px}.board-card-footer .icon{width:12px;height:12px}.board-empty{font-size:11px;color:var(--muted);border:1px dashed var(--line);padding:20px 12px;text-align:center;border-radius:7px}.pagination{display:flex;gap:10px;align-items:center;justify-content:space-between;padding:17px 20px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.pagination>div{display:flex;gap:8px;align-items:center}.calendar-day{display:grid;grid-template-columns:130px minmax(0,1fr);border-bottom:1px solid var(--line);padding:18px 22px;gap:22px}.calendar-day h3{font-size:13px;margin:3px 0;color:var(--muted);font-weight:550;letter-spacing:0}.calendar-event{border-left:2px solid var(--gold);padding:10px 15px;margin-bottom:10px;background:var(--surface-2);border-radius:0 7px 7px 0;font-size:12px}.calendar-event:last-child{margin-bottom:0}.calendar-event a{font-weight:650}.calendar-event small{display:block;color:var(--muted);font-size:10px}.metric-row{padding:15px 0;border-bottom:1px solid var(--line-soft)}.metric-top{display:flex;gap:15px;justify-content:space-between;font-size:12px;margin-bottom:10px}.meter{height:5px;border-radius:3px;background:var(--surface-2);overflow:hidden}.meter span{display:block;height:100%;background:var(--gold)}.notification-row{padding:18px 22px;border-bottom:1px solid var(--line);font-size:12px;display:flex;align-items:center;justify-content:space-between;gap:18px}.notification-row.unread{background:var(--gold-soft)}.notification-row a{font-weight:600}.notification-row small{font-size:10px;display:block;color:var(--muted);margin-top:5px}
/* Mail remains an explicit, manual send workflow. */
.mail-list{display:grid}.mail-list a,.mail-row{display:grid;grid-template-columns:150px minmax(0,1fr) 80px;align-items:center;gap:16px;padding:20px 22px;border-bottom:1px solid var(--line-soft);font-size:12px}.mail-list a:last-child{border-bottom:0}.mail-list a:hover{background:var(--surface-2)}.mail-list a.unread{background:var(--gold-soft)}.mail-list .sender{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:11px}.mail-list a.unread .sender{font-weight:700}.mail-list strong{font-size:12px;line-height:1.6}.mail-list .snippet{font-size:11px;display:block;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:4px}.mail-list .date{font-size:10px;color:var(--muted);text-align:right}.mail-body{white-space:pre-wrap;font:13px/1.85 var(--font);overflow-wrap:anywhere;max-width:85ch;padding:10px 0}.mail-list .badge{margin-top:5px}
/* Authentication / installation: public shell, never sensitive data in artwork. */
.auth-page{min-height:100vh;display:flex;align-items:center;justify-content:center;background:#edf0ef;padding:34px;color:#19212b;--text:#19212b;--surface:#fff;--surface-2:#f7f8f9;--muted:#657180;--line:#dce2e7;--focus:#8150d3;--gold-text:#79551c;--warning:#87590d;--warning-bg:#fff2d8;--danger:#b12b39;--danger-bg:#fcecf0;color-scheme:light}.auth-card{width:100%;max-width:495px;background:#fff;padding:40px;border:1px solid #dfe4ea;border-radius:14px;box-shadow:0 22px 70px -45px #17232c50}.auth-card h1{font-size:30px;letter-spacing:-.045em;margin-bottom:13px}.auth-card>p{color:#657180;font-size:12px;line-height:1.85;margin-bottom:23px}.auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:32px;font-size:14px;letter-spacing:.07em;color:#19212b;font-weight:750}.auth-brand .mark-letter{display:inline-flex;align-items:center;justify-content:center;background:#19212b;color:#d9b577;width:35px;height:39px;border-radius:5px;font-size:23px}.auth-card .stack{gap:17px}.auth-card .button.primary{background:#19212b;color:#fff;min-height:47px}.auth-card .button.primary:hover{background:#322b22;color:#e6c895}.auth-card .section-divider{margin:23px 0}.auth-card .muted{font-size:11px}.auth-layout{display:grid;grid-template-columns:minmax(0,1.06fr) minmax(0,1fr);max-width:1000px;width:100%;background:#fff;border-radius:16px;overflow:hidden;box-shadow:0 24px 100px -55px #17232c70;border:1px solid #d9e0e5}.auth-story{background:#171b21;min-height:650px;color:#a8b3bf;padding:43px;display:flex;flex-direction:column;position:relative;overflow:hidden}.auth-story:after{content:"";position:absolute;width:440px;height:440px;border:1px solid #ffffff10;border-radius:50%;bottom:-190px;right:-110px;box-shadow:0 0 0 50px #ffffff03,0 0 0 110px #ffffff03}.auth-story .wordmark{position:relative;z-index:1}.auth-story-main{margin:auto 0;position:relative;z-index:1;padding:45px 0}.auth-story .eyebrow{color:#d9b77d;font-size:10px}.auth-story h2{color:#f6f5f0;font-size:45px;line-height:1.05;letter-spacing:-.055em;max-width:340px;margin:20px 0 22px}.auth-story h2 em{font-style:normal;color:#d9b77d}.auth-story p{font-size:13px;color:#a5afbd;max-width:300px;line-height:1.85}.auth-story-footer{border-top:1px solid #ffffff20;display:flex;align-items:center;gap:8px;padding-top:18px;font-size:10px;color:#9fabbc;position:relative;z-index:1}.auth-story-footer .icon{height:14px;width:14px;color:#d9b77d}.auth-layout .auth-card{box-shadow:none;border:0;border-radius:0;max-width:none;padding:45px;align-self:center}.auth-back{font-size:11px;display:inline-flex;align-items:center;gap:7px;color:#657180;margin-bottom:32px;min-height:32px}.auth-back .icon{width:13px;height:13px;transform:rotate(180deg)}.auth-card .auth-overline{color:#79551c;font-size:10px;letter-spacing:.14em;font-weight:700;margin-bottom:12px}.auth-security-note{display:flex;gap:8px;align-items:center;font-size:10px;color:#657180;margin-top:22px;line-height:1.7}.auth-security-note .icon{height:15px;width:15px}.auth-card a:not(.button){text-decoration:underline;text-underline-offset:3px}.auth-card .form-grid{gap:17px}.auth-page .notice{display:block}.auth-page .notice .icon{margin-right:7px}
/* One explicit decision dialog, keyboard- and reduced-motion-safe. */
dialog{border:1px solid var(--line);border-radius:14px;padding:30px;max-width:420px;width:calc(100% - 36px);color:var(--text);background:var(--surface);box-shadow:0 30px 90px #00000040}dialog::backdrop{background:#111827a6;backdrop-filter:blur(3px)}dialog h2{font-size:25px;letter-spacing:-.04em}dialog p{font-size:12px;color:var(--muted);line-height:1.8;margin-bottom:22px}dialog .stack{gap:9px}dialog .eyebrow{margin-bottom:11px}.dialog-icon{width:43px;height:43px;border-radius:11px;background:var(--gold-soft);color:var(--gold-text);display:flex;align-items:center;justify-content:center;margin-bottom:23px}
/* Responsive layout is designed for the task, not merely scaled down. */
@media(min-width:1650px){.main-content{padding-left:42px;padding-right:42px}.topbar{padding-left:42px;padding-right:42px}.page-heading h1{font-size:36px}.stat-value{font-size:39px}.stats-grid{gap:20px}.grid-2{gap:28px}}
@media(max-width:1250px){:root{--sidebar-width:225px}.topbar{padding:0 24px;gap:14px}.topbar-location{display:none}.main-content{padding:23px 24px 30px}.app-footer{padding-left:24px;padding-right:24px}.top-actions{gap:7px}.stats-grid{gap:12px}.stat{padding:17px}.grid-2{grid-template-columns:minmax(0,1.55fr) minmax(250px,1fr);gap:18px}.record-type-icon{display:none}.quick-path{padding:16px 13px;gap:9px}.quick-path small{font-size:9px}.editor-layout{gap:18px}.sidebar-brand{padding-left:5px;padding-right:5px}.wordmark{font-size:21px}.sidebar-profile .profile-caption strong{max-width:115px}}
@media(max-width:1020px){.grid-2{grid-template-columns:1fr}.stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading h1{font-size:29px}.heading-actions{flex-shrink:1}.editor-layout{grid-template-columns:1fr}.editor-aside{grid-template-columns:repeat(2,minmax(0,1fr))}.editor-aside>.panel:last-child:nth-child(odd){grid-column:1/-1}.grid-equal{gap:18px}.auth-story{padding:32px}.auth-layout .auth-card{padding:32px}.auth-story h2{font-size:40px}.auth-layout{max-width:900px}.calendar-day{grid-template-columns:110px minmax(0,1fr);gap:14px}}
@media(max-width:800px){:root{--sidebar-width:260px}.sidebar{transform:translateX(-100%);transition:transform .22s ease;z-index:85;box-shadow:none}.sidebar.open{transform:translateX(0);box-shadow:20px 0 55px #00000040}.workspace-main{margin-left:0}.mobile-menu{display:inline-flex;flex-shrink:0}.sidebar-brand>.mobile-menu{color:#b7c0ca;height:33px;width:33px}.nav-scrim:not([hidden]){display:block;position:fixed;inset:0;width:100%;height:100%;border:0;z-index:80;background:#0d14248a;backdrop-filter:blur(2px)}body.nav-open{overflow:hidden}.topbar{height:66px;padding:0 17px;gap:12px}.top-actions{gap:5px}.global-search{max-width:none;margin:0}.public-link{display:none}.topbar .icon-button,.notification-button{width:35px;height:38px}.main-content{padding:20px 22px 28px}.breadcrumb{margin-bottom:22px}.page-heading h1{font-size:31px}.app-footer{padding:17px 22px;flex-direction:column;gap:4px}.sidebar-profile .profile-caption strong{max-width:150px}.sidebar{padding-top:21px}.auth-page{padding:25px}.auth-layout{max-width:490px;display:block}.auth-story{display:none}.auth-layout .auth-card{padding:38px}.auth-card .auth-brand{display:flex}}
@media(max-width:520px){body{font-size:14px}.main-content{padding:19px 16px 25px}.topbar{padding:0 11px;gap:7px}.global-search{padding:0 8px;min-height:37px}.global-search input{font-size:11px}.global-search kbd{display:none}.top-avatar{display:none}.top-actions{gap:0}.topbar .icon-button,.notification-button{width:33px}.breadcrumb{font-size:9px;gap:7px}.role-tag{font-size:9px}.role-tag .icon{display:none}.page-heading{display:block;margin-bottom:23px}.heading-actions{justify-content:flex-start;margin-top:18px}.page-heading h1{font-size:28px;margin-bottom:9px;line-height:1.18}.page-heading p{font-size:12px}.eyebrow{font-size:9px;margin-bottom:11px}.stats-grid{gap:11px;margin-bottom:19px}.stat{padding:15px 14px}.stat-top{font-size:10px;gap:5px;margin-bottom:12px}.stat-top>.icon{width:15px;height:15px}.stat-value{font-size:32px}.stat-foot{font-size:9px;line-height:1.5}.stat-foot .icon{display:none}.grid-equal{grid-template-columns:1fr}.grid-2{gap:18px}.panel-header{padding:17px;min-height:58px}.panel-header h2,.panel-header h3{font-size:14px}.panel-body{padding:19px 17px}.panel-foot{padding:12px 17px}.quick-paths{gap:9px;margin:20px 0}.quick-path{padding:14px 10px;display:block;position:relative}.quick-path>.icon{width:18px;height:18px;margin-bottom:10px}.quick-path strong{font-size:10px;line-height:1.5}.quick-path small{display:none}.quick-path .path-arrow{position:absolute;right:8px;top:14px;width:11px;height:11px}.attention-row{padding:16px 17px;gap:10px}.attention-row .attention-icon{display:none}.attention-copy strong{font-size:11px}.attention-copy small{font-size:9px}.attention-meta{min-width:79px}.attention-meta small{font-size:9px}.badge{font-size:9px;padding:5px 6px}.welcome-strip{display:block;font-size:11px;padding:16px}.welcome-strip .button{margin-top:13px}.notice{font-size:11px;padding:14px}.records-table thead{display:none}.records-table tbody{display:block}.records-table tr{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;padding:18px 17px;border-bottom:1px solid var(--line)}.records-table tr:last-child{border-bottom:0}.records-table td{display:block;padding:0;border:0;font-size:11px;min-width:0!important}.records-table td:first-child{grid-column:1/-1;padding-bottom:4px}.records-table td:not(:first-child):before{content:attr(data-label);display:block;font-size:9px;color:var(--muted);font-weight:500;margin-bottom:5px}.records-table .record-cell{min-width:0}.records-table .record-type-icon{display:flex;height:30px;width:30px}.records-table .record-title{font-size:12px}.records-table .row-sub{font-size:9px}.table-wrap>table:not(.records-table){min-width:480px}.filters{padding:14px 15px;gap:11px}.filters>form{max-width:none;min-width:100%;width:100%}.filters .right{width:100%;margin:0;justify-content:space-between}.view-switch a{padding:5px 9px}.list-context{padding:11px 15px;font-size:9px;align-items:flex-start}.board{padding:15px;gap:13px}.board-column{flex-basis:252px}.pagination{padding:15px;flex-wrap:wrap;gap:12px}.form-grid{grid-template-columns:1fr;gap:17px}.editor-aside{grid-template-columns:1fr}.editor-main .editor-title input{font-size:18px}.editor-main textarea[name=body]{min-height:180px}.editor-actions{display:block;padding:17px}.editor-actions>.form-note{margin-bottom:15px;font-size:10px}.editor-actions>div:last-child{justify-content:stretch}.editor-actions .button{flex:1}.editor-layout{gap:17px}.editor-main,.editor-aside{gap:17px}.field label,fieldset legend{font-size:12px}.field input,.field select,.field textarea{font-size:16px;/* prevent iOS focus zoom */}.field small{font-size:10px}.details{gap:16px}.calendar-day{display:block;padding:17px}.calendar-day h3{margin-bottom:14px;color:var(--text)}.calendar-event{font-size:11px}.notification-row{padding:17px;align-items:flex-start;flex-wrap:wrap}.mail-list a,.mail-row{grid-template-columns:minmax(0,1fr) 75px;gap:7px 13px;padding:17px}.mail-list .sender{grid-column:1;grid-row:1}.mail-list a>div:nth-child(2){grid-column:1/-1;grid-row:2}.mail-list .date{grid-column:2;grid-row:1}.mail-list .snippet{font-size:10px}.auth-page{padding:18px;align-items:flex-start}.auth-layout{margin:18px 0;border-radius:12px}.auth-layout .auth-card,.auth-card{padding:27px 23px}.auth-card h1{font-size:28px}.auth-card>p{font-size:12px}.auth-card input{font-size:16px!important}.auth-back{margin-bottom:25px}.auth-page .form-grid{grid-template-columns:1fr}.auth-page .eyebrow{font-size:9px}.panel-header .button{min-height:33px;font-size:10px;padding:7px 10px}.system-note{font-size:10px}.details dd{font-size:11px}.app-footer{font-size:9px;padding:16px}}
@media(max-width:355px){.main-content{padding-left:12px;padding-right:12px}.role-tag{display:none}.global-search input{width:100px}.page-heading h1{font-size:26px}.stat{padding:14px 11px}.stat-top>.icon{display:none}.quick-path strong{font-size:9px}.topbar{gap:4px}.auth-card{padding:23px 19px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}.quick-path:hover,.button:active{transform:none}}
@media print{.sidebar,.topbar,.app-footer,.heading-actions,.form-actions,.filters,.skip,.nav-scrim,.button,dialog{display:none!important}.workspace-main{margin:0}.main-content{padding:0}.panel,.stat{box-shadow:none;break-inside:avoid}.page-heading{margin-top:15px}:root{--bg:white;--surface:white;--text:black;--muted:#555;--line:#ccc}body{background:white;color:black}.grid-2,.grid-equal{display:block}.panel{margin-bottom:20px}}
.grid-2>div:not(.stack)>.panel+.panel,.grid-2>div:not(.stack)>.intro-card+.panel{margin-top:22px}
h2.section-divider,h3.section-divider{padding-top:22px;margin-top:26px;margin-bottom:18px}
.activity-item:has(>.avatar){display:flex;gap:12px;align-items:flex-start}.activity-item:has(>.avatar)>div{min-width:0;flex:1}
.activity-item .avatar{width:30px;height:30px;font-size:11px}.activity-item strong{font-size:12px;display:block}
.editor-actions>.form-note{margin:0}.panel-header p{color:var(--muted);font-size:11px;margin:5px 0 0}.stat>small{font-size:10px;color:var(--muted);display:block}.stat>.stat-value{display:block}

/* Readability pass, based on the rendered desktop and 320/390px screens. */
.workspace .topbar .global-search input[type=search]{border:0;background:transparent;box-shadow:none;padding:7px 0;min-height:0;border-radius:0;font-size:12px}
.attention-copy strong{font-size:13px}.attention-copy small{font-size:11px}.attention-meta small{font-size:11px}.stat-top{font-size:13px}.stat-foot{font-size:11px}.panel-foot{font-size:11px}.quick-path strong{font-size:13px}.quick-path small{font-size:11px}.quick-link{font-size:13px}.quick-link .row-sub{font-size:11px}.agenda-body a{font-size:13px}.agenda-body small{font-size:11px}.announcement-card p{font-size:13px}.page-heading p{font-size:14px}.badge{font-size:11px}.field label,fieldset legend{font-size:13px}.field small{font-size:12px}.form-note{font-size:12px}.sidebar nav .nav-link{font-size:13px}.auth-card .field label{font-size:12px}
@media(max-width:520px){.attention-copy strong{font-size:12px}.attention-copy small{font-size:10px}.attention-meta small{font-size:10px}.badge{font-size:10px}.stat-top{font-size:11px}.stat-foot{font-size:10px}.page-heading p{font-size:13px}.panel-foot{font-size:10px}.quick-path strong{font-size:11px}.field label,fieldset legend{font-size:13px}.field small{font-size:11px}.form-note{font-size:12px}.records-table .record-title{font-size:13px}.records-table .row-sub{font-size:10px}.records-table td:not(:first-child):before{font-size:10px}.attention-meta{min-width:82px}}

/* Assurance work surfaces: shared tokens and responsive text, not a second visual system. */
.assurance-filters{display:grid;grid-template-columns:2fr 1fr 1.4fr auto;align-items:end;gap:16px;margin:24px 0}.assurance-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.assurance-card{margin:0}.assurance-card h2{font-size:1.15rem;line-height:1.5;margin:12px 0}.assurance-card p{line-height:1.65}.assurance-detail{display:grid;gap:10px;overflow-wrap:anywhere}.assurance-detail dt{font-weight:700;margin-top:12px}.assurance-detail dd{margin:0;white-space:pre-wrap;line-height:1.65}.routine-run{padding:20px 0;border-top:1px solid var(--line);overflow-wrap:anywhere}.assurance-card code{overflow-wrap:anywhere}.assurance-card .card-topline{flex-wrap:wrap;gap:10px}.component-lab .field{min-width:0}@media(max-width:900px){.assurance-filters{grid-template-columns:1fr 1fr}.assurance-list{grid-template-columns:1fr}}@media(max-width:480px){.assurance-filters{grid-template-columns:1fr}}
/* Keep foreground/background changes atomic when switching theme. Interpolating only
   the background briefly put dark text on a dark primary button (lab regression). */
.button.primary{transition:box-shadow .15s,transform .15s}

/* 0.4 resilient editing: all controls remain in document flow and work at 320px. */
.working-copy-panel{padding:18px 20px;border:1px solid var(--line,#cbd5e1);background:var(--surface,#fff);border-radius:12px;margin-bottom:20px;color:var(--text,#17212c)}
.working-copy-panel p{font-size:14px;line-height:1.6;margin:8px 0 12px}.working-copy-panel .actions{display:flex;gap:8px;flex-wrap:wrap}.working-copy-panel button,.working-copy-panel a{font-size:13px;min-height:42px;white-space:normal}
.field-error{color:#a12b2b;font-size:14px;line-height:1.5}.field [aria-invalid="true"]{border:2px solid #a12b2b}.error-summary h2{font-size:18px}.error-summary a{text-decoration:underline;color:inherit}.error-summary:focus{outline:3px solid #876328;outline-offset:3px}
[data-theme="dark"] .field-error{color:#ffb4b4}[data-theme="dark"] .field [aria-invalid="true"]{border-color:#ffb4b4}
[hidden]{display:none!important}.stats-grid .stat-value{overflow-wrap:anywhere;font-size:clamp(20px,2.5vw,32px)}.stats-grid .stat h2{font-size:15px}.quick-paths{flex-wrap:wrap}

/* Switch paired foreground/background colors atomically for all button variants. */
.button{transition:box-shadow .15s,transform .15s}

.webops-report>.panel{margin-bottom:22px}.webops-paths{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:16px 0 24px}.webops-report .stat p{font-size:13px;line-height:1.6}
@media(max-width:1100px){.webops-paths{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:420px){.webops-paths{grid-template-columns:1fr}}

.working-copy-panel>details{margin:12px 0 18px;border:1px solid var(--line);padding:12px;border-radius:8px}.working-diff>section{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;border-top:1px solid var(--line);padding-top:12px;margin-top:12px}.working-diff h3{grid-column:1/-1;margin:0;font-size:14px}.working-diff strong{font-size:12px}.working-diff pre{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.65 ui-monospace,monospace;color:var(--text);background:var(--surface-2);padding:12px;border-radius:6px;max-height:200px;overflow:auto}.working-diff>section>div{min-width:0}@media(max-width:540px){.working-diff>section{grid-template-columns:1fr}}
