:root {
  color-scheme: dark;
  --bg: #10151e;
  --surface: #19212e;
  --surface-2: #202b3a;
  --surface-3: #2a384b;
  --line: rgba(168, 189, 220, .12);
  --text: #eff4fc;
  --muted: #9baac0;
  --accent: #8eaaff;
  --accent-text: #101b36;
  --green: #70d5af;
  --red: #ff9297;
  --yellow: #edc988;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
body { font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { transition: background .16s ease, border-color .16s ease, box-shadow .16s ease; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button:disabled { opacity: .55; cursor: wait; }
button:active:not(:disabled) { filter: brightness(.9); }
button b, button small { pointer-events: none; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; flex: 0 0 auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
h2, h3, p { margin-top: 0; }
h2 { font-size: clamp(25px, 5vw, 31px); line-height: 1.16; margin-bottom: 10px; letter-spacing: -.035em; font-weight: 650; }
h3 { font-size: 16px; margin-bottom: 0; font-weight: 650; letter-spacing: -.01em; }
small, .muted { color: var(--muted); }
.app { position: relative; height: 100vh; height: 100dvh; max-width: 1040px; margin: 0 auto; display: grid; grid-template-rows: 62px auto 0 minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.appbar { grid-row: 1; height: 62px; display: flex; align-items: center; gap: 12px; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--bg); z-index: 5; }
.appbar__title { min-width: 0; margin: 0; font-size: 14px; font-weight: 600; flex: 1; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar__back { width: 44px; height: 44px; flex: 0 0 44px; margin-left: -10px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 12px; }
.appbar__back[hidden] { display: grid !important; visibility: hidden; pointer-events: none; }
.appbar__net { flex: 0 0 auto; max-width: 45%; font-size: 10px; line-height: 1.2; color: var(--red); background: color-mix(in srgb, var(--red) 9%, transparent); border: 0; border-radius: 20px; padding: 8px; }
.appbar__net[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.banner { grid-row: 2; padding: 7px 24px; color: var(--muted); background: color-mix(in srgb, var(--accent) 4%, var(--bg)); font-size: 11px; border-bottom: 1px solid var(--line); }
.activity-bar { position: absolute; top: 47px; left: 24px; right: 24px; z-index: 6; height: 12px; display: flex; align-items: center; gap: 6px; color: var(--accent); font-size: 9px; line-height: 12px; overflow: hidden; pointer-events: none; }
.activity-bar .spinner { width: 8px; height: 8px; border-width: 1px; flex: 0 0 8px; }
.activity-bar #activity-text { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.screen { grid-row: 4; min-width: 0; overflow: auto; overflow-anchor: none; overscroll-behavior-y: contain; scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; outline: 0; }
.screen-inner { max-width: 760px; margin: 0 auto; padding: 28px 24px 36px; }
.page-content { min-width: 0; }
.page-content > :first-child { margin-top: 0; }
.welcome { position: relative; padding: 6px 104px 28px 0; }
.eyebrow { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .13em; display: flex; align-items: center; gap: 7px; }
.brand-spark { font-size: 16px; }
.welcome h2 { margin: 17px 0 10px; font-size: clamp(29px, 5.8vw, 40px); line-height: 1.12; }
.welcome h2 span { color: var(--accent); }
.welcome p, .page-intro p { color: var(--muted); margin: 0; font-size: 13px; }
.profile-avatar { position: relative; display: grid; place-items: center; width: 64px; height: 64px; flex: 0 0 64px; overflow: hidden; border-radius: 22px; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line)); font-size: 23px; font-weight: 600; }
.profile-avatar__initials { grid-area: 1 / 1; }
.profile-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.profile-avatar.is-loaded img { opacity: 1; }
.profile-avatar.is-loaded .profile-avatar__initials { visibility: hidden; }
.profile-avatar--home { position: absolute; right: 3px; top: 46px; width: 76px; height: 76px; border-radius: 25px; box-shadow: 0 8px 26px #0001; }
.page-intro { padding: 3px 0 24px; }
.page-intro .eyebrow { margin-bottom: 12px; }
.page-intro h2 { margin: 3px 0 10px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 12px; }
.section-head h3 { font-size: 14px; }
.section-kicker { color: var(--muted); font-size: 9px; letter-spacing: .09em; }
.status-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric { min-width: 0; min-height: 112px; padding: 17px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.metric small { font-size: 11px; }
.metric strong { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.metric > span:last-child { font-size: 11px; color: var(--muted); }
.metric--wide { grid-column: 1 / -1; min-height: 76px; flex-direction: row; align-items: center; text-align: left; gap: 12px; background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.metric--wide > span:nth-child(2) { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 3px; }
.metric--wide strong { font-size: 13px; font-weight: 600; letter-spacing: 0; }
.metric-icon { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 13px; }
.metric--connected .metric-icon { color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); }
.arrow { color: var(--muted); }
.arrow .icon { width: 16px; height: 16px; }
.action-list, .stack, .menu-list, .job-stack { display: grid; gap: 9px; min-width: 0; }
.action-row, .result-card, .document-row, .contact-row, .dialog-row, .share-card { width: 100%; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 16px; }
.action-row > span:nth-child(2), .result-card > span:nth-child(2), .document-row > span:nth-child(2), .contact-row > span:nth-child(2), .dialog-main, .share-card > span:nth-child(2) { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.action-row b, .result-card b, .document-row b, .contact-row b, .dialog-main b, .share-card b { font-size: 13px; font-weight: 600; overflow-wrap: anywhere; }
.action-row small, .result-card small, .document-row small, .contact-row small, .dialog-main small, .share-card small { font-size: 11px; color: var(--muted); }
.action-row > .icon, .result-card > .icon, .share-card > .icon { width: 16px; height: 16px; color: var(--muted); }
.action-symbol, .result-card__icon, .doc-icon, .share-card__icon { width: 39px; height: 39px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.action-symbol { font-size: 19px; }
.action-row--primary { border-color: color-mix(in srgb, var(--accent) 32%, var(--line)); background: color-mix(in srgb, var(--accent) 9%, var(--surface)); }
.text-button, .btn--link, .back-inline { color: var(--accent); border: 0; background: transparent; min-height: 40px; padding: 7px 3px; display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-size: 12px; }
.text-button .icon { width: 14px; height: 14px; }
.tabbar { grid-row: 5; z-index: 10; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 9px 10px calc(9px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.tab { border: 0; border-radius: 13px; background: transparent; color: var(--muted); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; min-height: 49px; padding: 5px 2px; font-size: 10px; font-weight: 500; }
.tab > span { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.tab .icon { width: 21px; height: 21px; }
.tab--active { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.btn { border: 0; border-radius: 13px; min-height: 48px; padding: 12px 16px; font-weight: 650; font-size: 13px; width: 100%; }
.btn--primary { background: var(--accent); color: var(--accent-text); }
.btn--secondary { background: color-mix(in srgb, var(--accent) 12%, var(--surface-2)); color: var(--accent); margin-top: 12px; }
.btn--ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); margin-top: 16px; }
.btn--link { width: auto; display: flex; margin: 5px auto 0; min-height: 40px; }
.form-card, .period-card { display: grid; min-width: 0; gap: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 19px; }
.form-card > *, .period-card > * { min-width: 0; max-width: 100%; }
.form-card input:not([type="checkbox"]), .period-card input, .period-card select, .form-card textarea { width: 100%; min-width: 0; min-height: 46px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); background: var(--surface-2); padding: 10px 12px; font-size: 16px; }
.form-card input::placeholder, .search input::placeholder { color: var(--muted); }
.form-card label, .date-grid label, .field-label { display: grid; min-width: 0; gap: 7px; font-size: 12px; color: var(--muted); }
.period-card input[type="date"] { display: block; width: 100%; max-width: 100%; min-width: 0; inline-size: 100%; min-inline-size: 0; appearance: none; -webkit-appearance: none; overflow: hidden; padding-inline: 9px; font-size: 14px; font-variant-numeric: tabular-nums; }
.period-card input[type="date"]::-webkit-date-and-time-value { min-width: 0; text-align: left; }
.period-card input[type="date"]::-webkit-datetime-edit { min-width: 0; padding: 0; }
.period-card input[type="date"]::-webkit-calendar-picker-indicator { margin: 0; padding: 0 0 0 3px; width: 15px; flex: 0 0 15px; }
.period-card select { text-overflow: ellipsis; }
.form-card textarea { resize: vertical; }
.form-hint { color: var(--muted); font-size: 11px; margin: -5px 0 0; text-align: center; }
.privacy-note { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 12px; padding: 16px 2px; margin: 0; }
.privacy-note .icon { width: 16px; height: 16px; color: var(--yellow); margin-top: 2px; }
.account-link-intro { padding: 3px 0 25px; margin-bottom: 23px; border-bottom: 1px solid var(--line); }
.account-link-intro .eyebrow { margin-bottom: 12px; }
.account-link-intro h2 { font-size: clamp(24px, 5vw, 29px); }
.account-link-intro p, .link-success-note { color: var(--muted); font-size: 13px; }
.account-link-intro p { margin-bottom: 0; }
.page-intro .link-success-note { margin: 15px 0 20px; }
.phone-guidance { text-align: left; line-height: 1.6; }
.step-dots { display: flex; gap: 6px; margin-bottom: 20px; }
.step-dots i { width: 30px; height: 4px; border-radius: 4px; background: var(--surface-3); }
.step-dots i.active { background: var(--accent); }
.toolbar { display: flex; gap: 8px; }
.search { min-width: 0; min-height: 48px; flex: 1; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); padding: 0 12px; }
.search:focus-within { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.search > span { color: var(--muted); display: grid; }
.search .icon { width: 17px; height: 17px; }
.search input { width: 100%; min-width: 0; min-height: 46px; flex: 1; border: 0; padding: 0; background: transparent; color: var(--text); outline: 0; font-size: 16px; }
.search button { border: 0; background: transparent; color: var(--accent); min-height: 44px; font-size: 12px; font-weight: 600; }
.icon-button { width: 48px; min-width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--muted); }
.small-button { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 40px; border: 0; background: color-mix(in srgb, var(--accent) 9%, transparent); color: var(--accent); padding: 8px 10px; border-radius: 10px; font-size: 11px; white-space: nowrap; }
.small-button .icon { width: 15px; height: 15px; }
.check-row { display: flex !important; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); }
.check-row input[type="checkbox"] { width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--accent); }
.dialog-row { flex-wrap: wrap; padding: 15px; }
.dialog-main { flex-basis: calc(100% - 54px); }
.dialog-main b { font-size: 14px; }
.dialog-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; width: 100%; padding-left: 49px; }
.avatar { width: 37px; height: 37px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px; background: color-mix(in srgb, var(--accent) 15%, var(--surface-3)); color: var(--accent); font-weight: 650; }
.avatar--large { width: 54px; height: 54px; font-size: 22px; border-radius: 17px; }
.progress-wrap { padding: 12px 0; }
.progress-label { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.progress-label strong { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.progress { height: 5px; overflow: hidden; border-radius: 5px; background: var(--surface-3); }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .25s ease; }
.job-card { padding: 15px 18px 4px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.job-card > b, .job-heading b { font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.job-card > p { font-size: 12px; margin: 8px 0; overflow-wrap: anywhere; }
.job-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.job-heading > b { min-width: 0; }
.job-heading .pill { white-space: normal; text-align: center; flex: 0 0 auto; max-width: 50%; }
.status-section { min-width: 0; margin-top: 30px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface) 40%, transparent); }
.status-section > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 57px; padding: 14px 15px; cursor: pointer; list-style: none; }
.status-section > summary::-webkit-details-marker { display: none; }
.status-section > summary > span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.status-section > summary b { font-size: 12px; font-weight: 600; white-space: nowrap; }
.status-section > summary .icon { width: 16px; height: 16px; color: var(--muted); }
.status-section .status-summary { color: var(--muted); font-size: 10px; text-align: right; }
.status-summary > .icon { width: 13px; transition: transform .16s ease; }
.status-section[open] .status-summary > .icon { transform: rotate(90deg); }
.status-content { border-top: 1px solid var(--line); padding: 14px 12px 12px; }
.status-content > .job-card { margin-bottom: 9px; }
.status-empty { font-size: 12px; margin: 0; padding: 2px; }
.share-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; }
.share-actions .text-button { font-size: 11px; }
.share-actions .share-cancel { color: var(--muted); }
.contact-action-hint { border-top: 1px solid var(--line); padding-top: 12px; }
.contact-action-hint > p { font-size: 11px; color: var(--muted); margin: 0 0 2px; }
.field-error { color: var(--red); font-size: 12px; margin: -4px 0; }
.job-error { color: var(--red); }
.retry-note { color: var(--yellow); font-size: 11px; margin: 10px 0 0; overflow-wrap: anywhere; }
.result-notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; padding: 12px 14px; margin-top: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.result-notice > span { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--green); }
.result-notice > span .icon { width: 17px; height: 17px; }
.notice { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--yellow) 10%, var(--surface)); color: var(--yellow); font-size: 12px; margin: 12px 0; }
.notice--error { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; background: color-mix(in srgb, var(--red) 10%, var(--surface)); color: var(--red); }
.notice--error > span { flex: 1; overflow-wrap: anywhere; }
.notice--error .text-button { color: var(--red); }
.pill { display: inline-flex; justify-content: center; align-items: center; white-space: nowrap; font-size: 10px; font-weight: 500; color: var(--muted); background: var(--surface-2); border-radius: 7px; padding: 4px 7px; }
.pill--done { color: var(--green); background: color-mix(in srgb, var(--green) 10%, transparent); }
.pill--error, .pill--failed { color: var(--red); background: color-mix(in srgb, var(--red) 10%, transparent); }
.pill--running, .pill--queued, .pill--pending { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pill--retrying, .pill--cancelled { color: var(--yellow); background: color-mix(in srgb, var(--yellow) 10%, transparent); }
.divider-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; margin: 23px 0 14px; }
.divider-label::before, .divider-label::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.contact-results { margin-top: 12px; }
.selected-contact { display: flex; align-items: center; gap: 13px; border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line)); border-radius: var(--radius); padding: 17px; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.selected-contact > div { flex: 1; min-width: 0; }
.selected-contact small { font-size: 10px; }
.selected-contact h3 { margin: 3px 0; overflow-wrap: anywhere; }
.selected-contact p { margin: 0; color: var(--muted); font-size: 11px; }
.selected-contact .icon-button { width: 38px; min-width: 38px; height: 38px; background: transparent; border: 0; }
.period-card { margin-top: 16px; }
.period-presets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.period-presets button { min-height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.period-presets button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 15%, var(--surface)); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.date-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.success-mark { width: 58px; height: 58px; display: grid; place-items: center; color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); border-radius: 19px; margin-bottom: 20px; }
.success-mark .icon { width: 28px; height: 28px; }
.empty { display: grid; justify-items: center; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); padding: 32px 20px; color: var(--muted); }
.empty > span { color: var(--accent); margin-bottom: 13px; }
.empty > span .icon { width: 28px; height: 28px; }
.empty b { color: var(--text); font-size: 14px; margin-bottom: 6px; }
.empty p { margin: 0 0 14px; font-size: 12px; max-width: 280px; }
.empty .btn { max-width: 240px; }
.empty--quiet { background: color-mix(in srgb, var(--surface) 50%, transparent); border-style: solid; }
.empty--small { padding: 20px 10px; border: 0; }
.summary-box, .preview { padding: 19px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
.summary-box small { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; }
.summary-box p { margin: 8px 0 0; color: var(--text); }
.document-row .document-retention { margin-top: 6px; font-size: 10px; line-height: 1.5; color: var(--muted); }
.document-row { min-height: 100px; }
.document-action { color: var(--accent); font-size: 11px; font-weight: 600; margin-top: 3px; }
.document-row > .icon { width: 17px; color: var(--accent); }
.document-row:disabled { opacity: .75; cursor: default; }
.document-row[aria-busy="true"] { cursor: wait; }
.document-row .document-reason { overflow-wrap: anywhere; color: var(--yellow); }
.document-row--sent { border-color: color-mix(in srgb, var(--green) 30%, var(--line)); }
.document-row--sent .document-action, .document-row--sent > .icon, .document-row--sent .doc-icon { color: var(--green); }
.personal-card { display: flex; position: relative; width: 100%; align-items: center; gap: 13px; padding: 19px 17px 22px; text-align: left; overflow: hidden; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); margin-bottom: 20px; }
.personal-card__icon { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 15px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.personal-card > span:nth-child(2) { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 4px; }
.personal-card small { color: var(--accent); letter-spacing: .1em; font-size: 9px; font-weight: 650; }
.personal-card b { font-size: 16px; font-weight: 650; }
.personal-card > span:nth-child(2) > span { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.personal-card > .icon { color: var(--muted); width: 16px; }
.personal-card__meter { position: absolute; left: 0; right: 0; height: 3px; bottom: 0; background: var(--surface-3); }
.personal-card__meter i { height: 100%; display: block; background: var(--accent); }
.personal-panel { display: grid; gap: 17px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.personal-panel__heading { display: flex; align-items: center; gap: 12px; }
.personal-panel__heading p { color: var(--muted); font-size: 11px; margin: 5px 0 0; }
.personal-rationale { font-size: 13px; margin: 0; }
.personal-evidence { color: var(--muted); font-size: 11px; margin: 0; }
.personal-panel .notice { margin: 0; }
.personal-panel .progress-wrap { padding: 0; }
.back-inline { margin-bottom: 12px; }
.back-inline .icon { width: 16px; height: 16px; }
.profile-strip { display: flex; align-items: center; gap: 14px; padding: 7px 0 26px; }
.profile-strip div { display: flex; flex-direction: column; gap: 4px; }
.profile-strip small { font-size: 12px; }
.menu-list { margin-top: 4px; }
.model-list { display: grid; gap: 10px; }
.model-row { display: flex; align-items: center; gap: 13px; padding: 19px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.model-row b { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.model-mark { display: grid; place-items: center; width: 35px; height: 35px; flex: 0 0 35px; color: var(--accent); border-radius: 11px; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.privacy-heading { display: flex; align-items: center; gap: 7px; color: var(--accent); font-size: 9px; font-weight: 650; letter-spacing: .08em; margin-bottom: 16px; }
.privacy-heading .icon { width: 16px; height: 16px; }
.privacy-intro h2 { font-size: clamp(24px, 5.2vw, 31px); overflow-wrap: anywhere; }
.privacy-promise { display: flex; align-items: center; gap: 12px; padding: 17px; border: 1px solid color-mix(in srgb, var(--green) 20%, var(--line)); border-radius: var(--radius); background: color-mix(in srgb, var(--green) 5%, var(--surface)); }
.privacy-promise > .icon { color: var(--green); width: 22px; height: 22px; }
.privacy-promise > span { display: grid; gap: 4px; }
.privacy-promise b { font-size: 13px; font-weight: 600; }
.privacy-promise small { font-size: 11px; }
.privacy-sections p { font-size: 13px; line-height: 1.7; }
.privacy-sections h3 { font-size: 14px; }
.report-list-item { min-width: 0; }
.delete-report { color: var(--muted); font-size: 11px; gap: 6px; margin: 6px 0 0; }
.delete-report .icon { width: 14px; height: 14px; }
.page-content > .delete-report { margin-top: 18px; }
.delete-confirmation { padding: 15px; margin-top: 10px; border: 1px solid color-mix(in srgb, var(--red) 28%, var(--line)); border-radius: 14px; background: color-mix(in srgb, var(--red) 4%, var(--surface)); }
.delete-confirmation > b { font-size: 12px; overflow-wrap: anywhere; }
.delete-confirmation p { font-size: 11px; color: var(--muted); margin: 7px 0 12px; }
.delete-confirmation__actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.small-button--danger { color: var(--red); background: color-mix(in srgb, var(--red) 12%, var(--surface)); }
.text-sections article { padding: 18px 0; border-bottom: 1px solid var(--line); }
.text-sections h3 { margin-bottom: 8px; }
.text-sections p { color: var(--muted); margin: 0; }
.local-note { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 25px 0 0; font-size: 10px; color: var(--muted); }
.local-note .icon { width: 13px; height: 13px; color: var(--green); }
.toasts { position: fixed; left: 16px; right: 16px; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 20; display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; max-width: 480px; margin: 0 auto; padding: 13px 17px; border-radius: 13px; background: var(--surface-3); border: 1px solid var(--line); color: var(--text); box-shadow: 0 8px 32px #0003; font-size: 12px; animation: enter .18s ease-out; }
.toast--success { border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.toast--error { border-color: color-mix(in srgb, var(--red) 45%, transparent); }
.fatal, .boot { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; background: var(--bg); }
.boot strong { margin-top: 25px; font-size: 27px; letter-spacing: -.02em; }
.boot p { color: var(--muted); font-size: 13px; max-width: 300px; text-align: center; margin: 12px 0 0; }
.boot__mark { position: relative; display: grid; place-items: center; color: var(--accent); background: var(--surface); border-radius: 23px; width: 80px; height: 80px; font-size: 42px; font-weight: 300; }
.boot__mark span { position: absolute; inset: -9px; border: 1px solid var(--line); border-top-color: var(--accent); border-radius: 30px; animation: spin 2s linear infinite; }
.fatal__card { max-width: 380px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; background: var(--surface); }
.fatal__icon { width: 30px; height: 30px; color: var(--yellow); margin-bottom: 16px; }
.fatal__title { font-size: 21px; margin-bottom: 12px; }
.fatal__text { color: var(--muted); font-size: 13px; margin-bottom: 20px; overflow-wrap: anywhere; }
.fatal__actions { display: grid; gap: 8px; }
.skeleton-row { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.skeleton-row i { width: 39px; height: 39px; border-radius: 12px; }
.skeleton-row span { display: grid; flex: 1; gap: 9px; }
.skeleton-row b { width: 70%; height: 12px; border-radius: 4px; }
.skeleton-row small { width: 44%; height: 9px; border-radius: 4px; }
.skeleton-row i, .skeleton-row b, .skeleton-row small, .skeleton-text { background: linear-gradient(100deg, var(--surface-2) 20%, var(--surface-3) 50%, var(--surface-2) 80%); background-size: 240% 100%; animation: shimmer 1.8s ease-in-out infinite; }
.skeleton-text { min-width: 60px; border-radius: 6px; color: transparent; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes enter { from { opacity: .5; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shimmer { to { background-position: -180% 0; } }
@media (hover: hover) {
  .action-row:hover, .result-card:hover, .document-row:hover, .contact-row:hover, .share-card:hover, .metric--wide:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); }
  .tab:hover:not(.tab--active), .small-button:hover, .icon-button:hover { background: var(--surface-2); }
}
@media (min-width: 840px) {
  body { background: color-mix(in srgb, var(--bg) 85%, #000); }
  .app { grid-template-columns: 180px minmax(0, 1fr); border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
  .appbar, .banner, .activity-bar, .screen { grid-column: 2; }
  .appbar { padding: 0 32px; }
  .banner { padding-left: 32px; }
  .activity-bar { left: 212px; right: 32px; }
  .screen-inner { padding: 34px 32px 48px; }
  .tabbar { grid-column: 1; grid-row: 1 / 6; display: flex; flex-direction: column; gap: 8px; border-top: 0; border-right: 1px solid var(--line); padding: 114px 14px 20px; position: relative; }
  .tabbar::before { content: "✦  Jarvis"; position: absolute; top: 28px; left: 25px; font-size: 23px; font-weight: 600; color: var(--text); letter-spacing: -.03em; }
  .tab { flex-direction: row; justify-content: flex-start; min-height: 48px; gap: 12px; padding: 12px 14px; font-size: 12px; }
  .action-list--featured { grid-template-columns: 1fr 1fr; }
  .action-list--featured .action-row { padding: 19px 15px; }
  .action-list--featured .action-row > .icon { display: none; }
  .toasts { bottom: 28px; left: 180px; }
}
@media (max-width: 370px) {
  .screen-inner { padding: 23px 16px 30px; }
  .appbar, .banner { padding-left: 16px; padding-right: 16px; }
  .welcome { padding-right: 72px; }
  .profile-avatar--home { width: 56px; height: 56px; top: 49px; right: 1px; border-radius: 19px; font-size: 20px; }
  .eyebrow { font-size: 8px; }
  .section-kicker { display: none; }
  .metric { padding: 14px; }
  .dialog-actions { padding-left: 0; }
  .result-card { gap: 8px; padding: 13px; }
  .result-card > .icon { display: none; }
  .form-card, .period-card { padding: 15px; }
  .date-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .activity-bar { left: 16px; right: 16px; }
  .period-card input { padding: 9px 6px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
