/* HUMAN+ shared styles, humanplus@5b11f288. Copyright HUMAN+. */
/* @humanplus/design-system · tokens/colors.css */
/* HUMAN+ · Apple 平台习惯优先，品牌与功能色分层。 */
:root{
--brand-purple:#5138C9;--brand-purple-light:#AA96FF;--brand-purple-deep:#4429AE;--brand-gradient:linear-gradient(135deg,#765AE0 0%,#5138C9 52%,#4429AE 100%);
--ink:#1D1D1F;--canvas:#F5F5F7;
--gray-1:#1D1D1F;--gray-2:#424245;--gray-3:#63636B;--gray-4:#6C6C73;--gray-5:#AEAEB2;--gray-6:#E5E5EA;
--bg-app:var(--canvas);--bg-elevated:#FFFFFF;--bg-sidebar:rgba(248,248,251,.82);--surface-card:#FFFFFF;--surface-inset:#EEEEF2;
--text-primary:var(--ink);--text-secondary:#63636B;--text-tertiary:#686870;--text-on-accent:#FFFFFF;
--accent:var(--brand-purple);--accent-hover:#452EB5;--accent-press:#39259B;--accent-soft:#F0ECFC;
--signal:#285DA8;--signal-soft:#EAF1FC;--alert:#805B00;--alert-soft:#FFF3CD;
--border-subtle:#E3E3E8;--border-strong:#85858D;--separator:#E3E3E8;--toast-bg:#FFFFFF;
--glass-bg:rgba(255,255,255,.76);--glass-line:rgba(255,255,255,.85);--glass-edge:rgba(90,100,130,.13);--glass-highlight:rgba(255,255,255,.95);
}
[data-theme="dark"]{
--bg-app:#101014;--bg-elevated:#1C1C22;--bg-sidebar:rgba(25,25,32,.82);--surface-card:#1C1C22;--surface-inset:#292931;
--text-primary:#F5F5F7;--text-secondary:#B7B7C0;--text-tertiary:#AAAAB4;--text-on-accent:#180F32;
--accent:var(--brand-purple-light);--accent-hover:#BDADFF;--accent-press:#9982F5;--accent-soft:#2A2341;
--signal:#A0BDF0;--signal-soft:#26344A;--alert:#F0CC70;--alert-soft:#433919;
--border-subtle:#373740;--border-strong:#8B8B96;--separator:#373740;--toast-bg:#25252D;
--glass-bg:rgba(43,43,53,.78);--glass-line:rgba(255,255,255,.2);--glass-edge:rgba(0,0,0,.3);--glass-highlight:rgba(255,255,255,.24);
}
/* @humanplus/design-system · tokens/typography.css */
/* 调用设备系统字体，不分发 Apple 字体文件。 */
:root{
--font-ui:-apple-system,BlinkMacSystemFont,"SF Pro Text","PingFang SC",system-ui,"Noto Sans CJK SC","Microsoft YaHei",sans-serif;
--font-display:-apple-system,BlinkMacSystemFont,"SF Pro Display","PingFang SC",system-ui,sans-serif;--font-brand:var(--font-display);--font-mono:ui-monospace,"SF Mono",Menlo,Consolas,monospace;
--text-caption:12px;--text-footnote:13px;--text-body-s:15px;--text-body:17px;--text-callout:20px;--text-title-3:22px;--text-title-2:28px;--text-title-1:40px;--text-large-title:56px;
--weight-regular:400;--weight-medium:500;--weight-semibold:600;--weight-bold:700;
--leading-tight:1.15;--leading-normal:1.5;--leading-loose:1.7;--tracking-display:-0.04em;--tracking-caps:0.06em;
}
/* @humanplus/design-system · tokens/spacing.css */
:root{
--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-5:20px;--space-6:24px;--space-8:32px;--space-10:40px;--space-12:48px;--space-16:64px;--space-24:96px;
--radius-s:8px;--radius-m:12px;--radius-l:20px;--radius-xl:28px;--radius-pill:999px;
--control-h-s:32px;--control-h-m:44px;--control-h-l:52px;--tap-target:44px;
}
/* @humanplus/design-system · tokens/status.css */
:root{
--state-running:var(--signal);--state-running-soft:var(--signal-soft);--state-waiting:var(--alert);--state-waiting-soft:var(--alert-soft);
--state-done:#237A44;--state-done-soft:#E9F5EC;--state-error:#BF283B;--state-error-soft:#FCEBEF;--text-on-error:#FFFFFF;
--state-offline:var(--text-secondary);--state-offline-soft:var(--surface-inset);--state-unknown:var(--text-secondary);--state-unknown-soft:var(--surface-inset);--state-stale:var(--alert);--state-stale-soft:var(--alert-soft);
}
[data-theme="dark"]{--state-done:#8DD9A5;--state-done-soft:#203D2B;--state-error:#FFA0AC;--state-error-soft:#4A2731;--text-on-error:#230810;}
/* @humanplus/design-system · tokens/base.css */
*{box-sizing:border-box}body{font-family:var(--font-ui);font-size:var(--text-body);line-height:var(--leading-normal);color:var(--text-primary);background:var(--bg-app);-webkit-font-smoothing:antialiased;margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}a{color:var(--accent);text-decoration:none}a:hover{text-decoration:underline}::selection{background:var(--accent-soft);color:var(--text-primary)}:focus-visible{outline:2px solid var(--accent);outline-offset:4px}button:disabled,input:disabled,select:disabled{opacity:.45}small{font-size:var(--text-footnote)}.hp-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* @humanplus/design-system · tokens/components.css */
.hp-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:var(--control-h-m);padding:0 18px;border:1px solid transparent;border-radius:var(--radius-pill);font-size:15px;font-weight:500;white-space:nowrap;transition:background var(--dur-fast),transform var(--dur-fast);background:var(--accent);color:var(--text-on-accent)}.hp-button:hover:not(:disabled){background:var(--accent-hover)}.hp-button:active:not(:disabled){background:var(--accent-press);transform:scale(.97)}.hp-button[data-size=s]{height:var(--control-h-s);padding:0 14px;font-size:13px}.hp-button[data-size=l]{height:var(--control-h-l);padding:0 24px;font-size:16px}.hp-button[data-variant=secondary]{background:var(--surface-inset);border-color:transparent;color:var(--text-primary)}.hp-button[data-variant=secondary]:hover:not(:disabled){background:var(--border-subtle)}.hp-button[data-variant=ghost]{background:transparent;color:var(--accent)}.hp-button[data-variant=tinted]{background:var(--accent-soft);color:var(--accent)}.hp-button:is([data-variant=ghost],[data-variant=tinted]):hover:not(:disabled){background:var(--surface-inset)}.hp-button[data-variant=destructive]{background:var(--state-error);color:var(--text-on-error)}.hp-button[data-variant=destructive]:hover:not(:disabled){filter:brightness(.94)}
.hp-field{display:flex;flex-direction:column;gap:8px;min-width:0;width:100%;font-size:14px}.hp-field-title{font-weight:500;color:var(--text-primary)}.hp-input-wrap{display:flex;align-items:center;gap:8px;border:1px solid var(--border-strong);border-radius:var(--radius-m);padding:0 12px;background:var(--bg-elevated);height:var(--control-h-m)}.hp-input-wrap:focus-within{border-color:var(--accent);box-shadow:var(--focus-ring)}.hp-input-wrap[data-error=true]{border-color:var(--state-error)}.hp-input-wrap input{border:0;background:transparent;color:var(--text-primary);outline:none;min-width:0;width:100%;height:100%;font-size:16px}.hp-input-wrap input::placeholder{color:var(--text-tertiary)}.hp-field small{color:var(--text-secondary)}.hp-field .hp-error{color:var(--state-error)}.hp-select{height:var(--control-h-m);border:1px solid var(--border-strong);border-radius:var(--radius-m);padding:0 12px;background:var(--bg-elevated);color:var(--text-primary);width:100%}
.hp-check{display:flex;align-items:center;gap:12px;min-height:44px;font-size:14px;cursor:pointer}.hp-check input{width:20px;height:20px;margin:0;accent-color:var(--accent);flex:none}.hp-check small{display:block;color:var(--text-secondary)}.hp-switch-label{display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:14px;min-height:44px}.hp-switch{width:48px;height:44px;display:inline-flex;align-items:center;justify-content:center;padding:0;background:none;border:0}.hp-switch-track{width:44px;height:26px;border:1px solid var(--border-strong);background:var(--surface-inset);border-radius:99px;padding:3px;display:block;transition:background var(--dur-fast)}.hp-switch[aria-checked=true] .hp-switch-track{background:var(--accent);border-color:var(--accent)}.hp-switch-knob{display:block;width:18px;height:18px;border-radius:50%;background:var(--text-secondary);transition:transform var(--dur-normal)}.hp-switch[aria-checked=true] .hp-switch-knob{transform:translateX(18px);background:var(--text-on-accent)}
.hp-badge{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;border-radius:var(--radius-pill);min-height:26px;padding:2px 8px;color:var(--text-secondary);background:var(--surface-inset)}.hp-badge[data-tone=accent]{color:var(--accent);background:var(--accent-soft)}.hp-badge[data-tone=signal]{color:var(--signal);background:var(--signal-soft)}.hp-badge[data-tone=alert]{color:var(--alert);background:var(--alert-soft)}.hp-badge[data-tone=success]{color:var(--state-done);background:var(--state-done-soft)}.hp-badge[data-tone=error]{color:var(--state-error);background:var(--state-error-soft)}.hp-badge[data-tone=solid]{color:var(--text-on-accent);background:var(--accent)}
.hp-tag{display:inline-flex;align-items:center;gap:4px;min-height:34px;padding:0 12px;border:1px solid var(--border-subtle);border-radius:var(--radius-pill);background:var(--bg-elevated);font-size:13px}.hp-tag[data-selected=true]{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}.hp-plain{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:0;color:inherit;min-height:32px;padding:0 4px;font:inherit}.hp-tag .hp-plain[aria-label]{min-width:32px}
.hp-card{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-l);padding:24px;min-width:0}.hp-card h3{font-size:18px;margin:0 0 8px;font-weight:600}.hp-card p{margin:0;color:var(--text-secondary);font-size:14px}.hp-card footer{border-top:1px solid var(--separator);padding-top:16px;margin-top:20px}.hp-tabs{display:inline-flex;padding:4px;gap:4px;background:var(--surface-inset);border-radius:var(--radius-pill);max-width:100%}.hp-tab{background:transparent;border:0;padding:0 16px;min-height:36px;color:var(--text-secondary);font-size:14px;border-radius:var(--radius-pill);transition:background var(--dur-normal),box-shadow var(--dur-normal)}.hp-tab[aria-selected=true]{background:var(--bg-elevated);color:var(--text-primary);box-shadow:var(--shadow-card);font-weight:600}.hp-tabs[data-variant=underline]{display:flex;border-bottom:1px solid var(--separator);background:none;padding:0;border-radius:0;gap:16px}.hp-tabs[data-variant=underline] .hp-tab{border-bottom:2px solid transparent;border-radius:0;padding:0 4px;min-height:44px}.hp-tabs[data-variant=underline] .hp-tab[aria-selected=true]{background:none;border-color:var(--accent);box-shadow:none}
.hp-dialog{border:1px solid var(--border-subtle);background:var(--bg-elevated);color:var(--text-primary);border-radius:var(--radius-xl);padding:28px;box-shadow:var(--shadow-modal);max-width:calc(100% - 32px);margin:auto}.hp-dialog::backdrop{background:rgba(8,12,24,.32);backdrop-filter:blur(6px)}.hp-dialog h2{font-size:24px;line-height:1.4;margin:0 0 12px}.hp-dialog p{color:var(--text-secondary);margin:0;font-size:14px}.hp-dialog-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:28px}.hp-toast{display:flex;align-items:flex-start;gap:12px;border:1px solid var(--border-subtle);padding:16px;background:var(--toast-bg);border-radius:12px;box-shadow:var(--shadow-popover);font-size:14px;max-width:440px}.hp-toast small{display:block;color:var(--text-secondary);margin-top:4px}.hp-toast-close{margin-left:auto;width:32px;flex:none}.hp-tooltip{position:relative;display:inline-flex}.hp-tooltip-text{position:absolute;z-index:10;background:var(--text-primary);color:var(--bg-app);font-size:12px;line-height:1.5;padding:8px 12px;white-space:nowrap;border-radius:6px;left:50%;transform:translateX(-50%);bottom:calc(100% + 8px)}.hp-tooltip-text[data-placement=bottom]{top:calc(100% + 8px);bottom:auto}.hp-spinner{width:16px;height:16px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:hp-spin .8s linear infinite}@keyframes hp-spin{to{transform:rotate(360deg)}}
@media(pointer:coarse){.hp-button[data-size=s],.hp-tab,.hp-tag,.hp-plain{min-height:44px}}@media(forced-colors:active){.hp-button,.hp-badge,.hp-switch-track,.hp-tab,.hp-card{border:1px solid ButtonText}.hp-tab[aria-selected=true]{border-bottom:3px solid Highlight}.hp-switch[aria-checked=true] .hp-switch-track{background:Highlight}.hp-switch-knob{background:ButtonText}}

.hp-button,.hp-tab,.hp-switch{ -webkit-tap-highlight-color:transparent}.hp-button{padding:0 22px}.hp-input-wrap{transition:border-color var(--dur-fast),box-shadow var(--dur-fast)}.hp-card{box-shadow:var(--shadow-card)}.hp-switch-knob{background:#FFFFFF;box-shadow:0 2px 4px rgba(0,0,0,.18)}.hp-switch[aria-checked=true] .hp-switch-knob{background:#FFFFFF}.hp-switch-track{background:var(--border-strong);border-color:transparent}.hp-switch[aria-checked=true] .hp-switch-track{background:var(--accent);border-color:transparent}.hp-dialog{animation:hp-present var(--dur-normal) var(--ease-spring)}@keyframes hp-present{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:none}}
/* @humanplus/design-system · tokens/layout.css */
/* Responsive page structure. Product CSS should describe composition, not reskin controls. */
.hp-logo{display:inline-block;flex:none;overflow:visible;color:var(--text-primary)}
.hp-grow{flex:1;min-width:0}.hp-badge-dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex:none}
.hp-module-identity{display:inline-flex;align-items:center;gap:12px;font-size:17px;font-weight:500;white-space:nowrap;color:var(--text-primary)}.hp-module-identity-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--surface-inset);color:var(--accent)}.hp-module-identity[data-size=s]{font-size:15px;gap:8px}.hp-module-identity[data-size=s] .hp-module-identity-icon{width:28px;height:28px;border-radius:8px}.hp-module-identity[data-size=s] svg{width:16px;height:16px}.hp-module-identity[data-size=l]{font-size:22px;gap:16px}.hp-module-identity[data-size=l] .hp-module-identity-icon{width:52px;height:52px;border-radius:16px}.hp-module-identity[data-size=l] svg{width:24px;height:24px}
.hp-textarea{resize:vertical;min-height:120px;padding:12px;border:1px solid var(--border-strong);border-radius:var(--radius-m);background:var(--bg-elevated);color:var(--text-primary);font-size:16px;line-height:1.5}.hp-textarea[aria-invalid=true],.hp-select[aria-invalid=true]{border-color:var(--state-error)}.hp-check label{cursor:pointer;flex:1;min-height:44px;display:flex;flex-direction:column;justify-content:center}.hp-check[data-disabled=true] label{opacity:.45;cursor:not-allowed}.hp-input-wrap[data-disabled=true],textarea:disabled{opacity:.5}.hp-input-wrap[data-disabled=true] input:disabled{opacity:1}.hp-switch-label label{cursor:pointer}.hp-card[role=button]{cursor:pointer}.hp-card[role=button]:hover{border-color:var(--accent)}
.hp-tabs{overflow-x:auto;vertical-align:middle}.hp-tab{flex:none;white-space:nowrap}.hp-dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.hp-dialog-heading h2{padding-top:6px}.hp-dialog-heading>.hp-button{padding:0;min-width:44px;flex:none}.hp-dialog-body{margin-top:20px}.hp-dialog{max-height:calc(100dvh - 32px);overflow:auto}.hp-dialog-actions{flex-wrap:wrap}.hp-tooltip-text{z-index:1000;inset:auto;transform:none;max-width:min(300px,calc(100vw - 16px));white-space:normal;pointer-events:auto}.hp-toast-close{min-width:44px;min-height:44px}.hp-toast{flex-wrap:wrap;align-items:center}.hp-toast>.hp-grow{min-width:140px}
.hp-state{display:flex;min-height:240px;padding:40px 24px;gap:16px;align-items:center;justify-content:center;flex-direction:column;text-align:center}.hp-state h2{font-size:20px;font-weight:600;line-height:1.4;margin:0}.hp-state p{max-width:46ch;margin:8px 0 0;color:var(--text-secondary);font-size:15px;line-height:1.6}.hp-state-icon{color:var(--text-tertiary)}
.hp-shell{min-height:100dvh;background:var(--bg-app);color:var(--text-primary)}.hp-shell-header{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;gap:24px;position:sticky;top:0;z-index:20;border-radius:0;border-width:0 0 1px;box-shadow:none}.hp-shell-brand,.hp-shell-actions{display:flex;align-items:center;gap:24px;min-width:0}.hp-shell-app-name{font-size:15px;border-left:1px solid var(--border-subtle);padding-left:24px;color:var(--text-secondary);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hp-shell-body{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:calc(100dvh - 76px)}.hp-sidebar{padding:28px 16px;border-right:1px solid var(--separator);display:flex;flex-direction:column;gap:32px;background:var(--bg-app);position:sticky;top:76px;height:calc(100dvh - 76px);overflow:auto}.hp-sidebar nav{display:flex;flex-direction:column;gap:4px}.hp-nav-link{display:flex;align-items:center;gap:12px;border-radius:var(--radius-m);min-height:44px;padding:10px 16px;font-size:15px;font-weight:500;color:var(--text-secondary)}.hp-nav-link:hover{background:var(--surface-inset);text-decoration:none}.hp-nav-link[aria-current=page]{background:var(--accent-soft);color:var(--accent)}.hp-sidebar-footer{margin-top:auto;font-size:13px;color:var(--text-secondary);padding:16px}.hp-main{width:100%;max-width:1440px;margin:0 auto;min-width:0;padding:48px;scroll-margin-top:100px}.hp-main:focus{outline:none}.hp-nav-toggle{display:none}.hp-skip-link{position:fixed;top:-100px;left:16px;z-index:1100;background:var(--bg-elevated);padding:12px 20px;border-radius:var(--radius-m)}.hp-skip-link:focus{top:12px}
.hp-page-header{margin-bottom:32px}.hp-page-heading{display:flex;justify-content:space-between;align-items:center;gap:24px}.hp-page-heading h1{font-size:34px;line-height:1.2;letter-spacing:-.025em;font-weight:600;margin:0;overflow-wrap:anywhere}.hp-page-heading p{font-size:15px;line-height:1.6;color:var(--text-secondary);max-width:65ch;margin:12px 0 0}.hp-eyebrow{font-size:12px;letter-spacing:.08em;color:var(--text-secondary);font-weight:600;margin-bottom:12px}.hp-page-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;flex:none}.hp-breadcrumbs{font-size:13px;margin-bottom:24px}.hp-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:24px 0;flex-wrap:wrap}.hp-toolbar-controls,.hp-toolbar-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}.hp-toolbar-controls{flex:1}.hp-toolbar-controls>.hp-field{width:min(320px,100%)}
.hp-table-container{background:var(--surface-card);border:1px solid var(--border-subtle);border-radius:var(--radius-l);overflow:hidden;box-shadow:var(--shadow-card)}.hp-table-scroll{overflow:auto}.hp-table{width:100%;border-collapse:collapse;font-size:15px;text-align:left}.hp-table th,.hp-table td{padding:16px 20px;border-bottom:1px solid var(--separator);vertical-align:middle;line-height:1.5}.hp-table thead th{background:var(--surface-inset);font-size:13px;font-weight:500;color:var(--text-secondary);white-space:nowrap}.hp-table tbody th{font-weight:500;min-width:160px}.hp-table tbody tr:last-child>*{border-bottom:0}.hp-table tbody tr:hover{background:var(--accent-soft)}.hp-table-footer{padding:12px 20px;border-top:1px solid var(--separator);display:flex;align-items:center;justify-content:space-between;gap:16px;font-size:13px;color:var(--text-secondary)}
.hp-stack{display:flex;flex-direction:column;gap:24px}.hp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.hp-form{display:flex;flex-direction:column;gap:24px;max-width:640px}.hp-form fieldset{border:0;padding:0;margin:0;min-width:0}.hp-form legend{font-weight:600;margin-bottom:16px}.hp-inline{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.hp-divider{border:0;border-top:1px solid var(--separator);margin:24px 0}
@media(max-width:1100px){.hp-main{padding:32px}.hp-shell-body{grid-template-columns:200px minmax(0,1fr)}}
@media(max-width:760px){.hp-shell-header{height:auto;min-height:68px;padding:12px 16px;gap:12px}.hp-shell-brand,.hp-shell-actions{gap:12px}.hp-shell-brand .hp-logo{width:106px}.hp-shell-app-name{padding-left:12px;font-size:13px}.hp-shell-body{display:block;min-height:calc(100dvh - 68px)}.hp-nav-toggle{display:inline-flex;padding:0;min-width:44px}.hp-sidebar{display:none;position:static;height:auto;border-right:0;border-bottom:1px solid var(--separator);padding:12px 16px}.hp-sidebar[data-expanded=true]{display:flex}.hp-sidebar-footer{display:none}.hp-main{padding:28px 20px}.hp-page-heading{align-items:flex-start;flex-direction:column;gap:20px}.hp-page-heading h1{font-size:28px}.hp-page-actions{width:100%}.hp-page-header{margin-bottom:24px}.hp-grid{grid-template-columns:1fr}.hp-table th,.hp-table td{padding:14px 16px}.hp-dialog{padding:20px}.hp-dialog-actions>.hp-button{flex:1}.hp-toolbar-controls{flex-basis:100%}.hp-toolbar-controls>.hp-field{width:100%}}
@media(pointer:coarse){.hp-tag .hp-plain{min-width:44px}.hp-input-wrap{min-height:44px}}
@media(forced-colors:active){.hp-nav-link[aria-current=page]{outline:2px solid Highlight}.hp-switch[aria-checked=true] .hp-switch-track{background:Highlight}.hp-switch-knob{background:ButtonText}.hp-button:focus-visible{outline:2px solid Highlight}}
.hp-table-scroll{position:relative}.hp-table{min-width:560px}.hp-page-heading>div:first-child{min-width:0}
/* @humanplus/design-system · tokens/effects.css */
:root{
--shadow-card:0 2px 8px rgba(30,35,60,.035);--shadow-popover:0 8px 32px rgba(30,35,60,.12);--shadow-modal:0 24px 80px rgba(20,25,50,.24);
--shadow-glass:0 8px 32px rgba(25,40,80,.1),inset 0 1px 0 var(--glass-highlight),inset 0 0 0 1px var(--glass-edge);
--blur-material:saturate(160%) blur(24px);--ease-standard:cubic-bezier(.2,0,.2,1);--ease-spring:cubic-bezier(.2,.8,.2,1);
--dur-fast:120ms;--dur-normal:240ms;--dur-slow:360ms;--focus-ring:0 0 0 3px var(--bg-elevated),0 0 0 5px var(--accent);
}
[data-theme="dark"]{--shadow-card:0 2px 8px rgba(0,0,0,.1);--shadow-popover:0 8px 32px rgba(0,0,0,.3);--shadow-modal:0 24px 80px rgba(0,0,0,.5)}
.hp-glass{background:var(--glass-bg);backdrop-filter:var(--blur-material);-webkit-backdrop-filter:var(--blur-material);border:1px solid var(--glass-line);box-shadow:var(--shadow-glass)}
@supports not (backdrop-filter:blur(1px)){.hp-glass{background:var(--bg-elevated)}}
@media(prefers-reduced-transparency:reduce){.hp-glass{background:var(--bg-elevated);backdrop-filter:none;-webkit-backdrop-filter:none}}
[data-transparency="reduced"] .hp-glass{background:var(--bg-elevated);backdrop-filter:none;-webkit-backdrop-filter:none}
@media(prefers-reduced-motion:reduce){:root{--dur-fast:0ms;--dur-normal:0ms;--dur-slow:0ms}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Consultation page layout */
[hidden] { display: none !important; }
.frame { width: min(1120px, calc(100% - 2 * var(--space-8))); margin-inline: auto; }
header.hp-glass { border-width: 0 0 1px; box-shadow: 0 1px 0 var(--glass-edge); }
.bar, .byline, nav, .status, .actions, .report-head { display: flex; align-items: center; gap: var(--space-4); }
.bar, .status, .report-head { justify-content: space-between; }
.bar { min-height: var(--space-16); }
.byline { gap: var(--space-3); font-weight: var(--weight-semibold); }
.byline svg { flex: none; }
nav { gap: var(--space-6); }
nav a { display: inline-flex; align-items: center; min-height: var(--tap-target); font-size: var(--text-body-s); color: var(--text-secondary); }
nav a:hover { color: var(--accent); }
.spread { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: start; padding-block: var(--space-12); }
.intro { max-width: 26rem; }
h1, h2, p { margin: 0; }
h1, h2, .metric b { font-family: var(--font-display); line-height: var(--leading-tight); letter-spacing: var(--tracking-display); }
h1 { font-size: clamp(2.5rem, 5.2vw, var(--text-large-title)); margin-block: var(--space-4) var(--space-6); }
h1 span { color: var(--accent); }
h2 { font-size: var(--text-title-2); margin-block: var(--space-2); }
.kicker, .status { font-size: var(--text-body-s); font-weight: var(--weight-semibold); color: var(--accent); }
.intro > p:not(.kicker), .report-head > p, details p, footer { color: var(--text-secondary); }
.note.hp-card { margin-top: var(--space-8); padding: var(--space-5); }
.note p, .note a { font-size: var(--text-body-s); }
.note p { margin-block: var(--space-2); }
.panel.hp-card { padding: clamp(20px, 3vw, 32px); }
#counter { font: var(--text-footnote) var(--font-mono); color: var(--text-secondary); }
.steps { display: flex; gap: var(--space-1); margin-block: var(--space-3) var(--space-6); }
.steps i { flex: 1; height: var(--space-1); background: var(--surface-inset); border-radius: var(--radius-pill); }
.steps i.on { background: var(--accent); }
fieldset { margin: 0 0 var(--space-6); padding: 0; border: none; min-width: 0; }
legend { font-size: var(--text-body); font-weight: var(--weight-semibold); padding: 0; margin-bottom: var(--space-3); }
.options { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pick { gap: var(--space-2); border-radius: var(--radius-m); padding: var(--space-2) var(--space-3); border: 1px solid var(--border-subtle); background: var(--bg-elevated); transition: background var(--dur-fast), border-color var(--dur-fast); }
.pick:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pick input { width: var(--space-4); height: var(--space-4); }
.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.detail { margin-top: var(--space-4); }
textarea { width: 100%; resize: vertical; border: 1px solid var(--border-strong); background: var(--bg-elevated); color: var(--text-primary); border-radius: var(--radius-m); padding: var(--space-2) var(--space-3); font-size: 1rem; }
textarea::placeholder { color: var(--text-tertiary); }
.actions { justify-content: flex-end; margin-top: var(--space-4); }
#back { margin-right: auto; }
.panel #feedback { color: var(--state-error); }
.panel #receipt p:not(.kicker) { margin-block: var(--space-3); }
#report { border-top: 1px solid var(--separator); padding-block: var(--space-8); }
.report-head { align-items: end; }
.report-head > p { max-width: 320px; font-size: var(--text-body-s); }
.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-3); margin-block: var(--space-6); }
.metric { background: var(--surface-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-l); padding: var(--space-4); }
.metric b { display: block; color: var(--text-primary); font-size: var(--text-title-1); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.metric span { color: var(--text-secondary); font-size: var(--text-body-s); }
details { border-block-start: 1px solid var(--separator); padding-block: var(--space-3); }
summary { cursor: pointer; font-weight: var(--weight-medium); }
details p { font-size: var(--text-body-s); margin-block: var(--space-3); }
.row { display: grid; grid-template-columns: 8em 1fr 3em; align-items: center; gap: var(--space-3); margin-block: var(--space-2); }
progress { width: 100%; accent-color: var(--accent); }
body > footer { font-size: var(--text-footnote); padding-bottom: var(--space-8); }
@media(max-width: 760px) {
  .frame { width: calc(100% - 2 * var(--space-4)); }
  .bar { min-height: var(--control-h-l); }
  .byline, nav { gap: var(--space-2); }
  .byline svg { width: 28px; height: 28px; }
  .spread { grid-template-columns: 1fr; gap: var(--space-6); padding-block: var(--space-6); }
  .intro { max-width: none; }
  h1 { font-size: var(--text-title-1); margin-block: var(--space-2) var(--space-4); }
  h1 br { display: none; }
  .note.hp-card { margin-top: var(--space-4); }
  .panel.hp-card { padding: var(--space-4); }
  .report-head { display: block; }
  .report-head > p { max-width: none; }
  .totals { gap: var(--space-2); }
  .metric { padding: var(--space-3); }
}
