/* traquno identity layer. Keep accounting, storage and workflow selectors stable. */
@font-face {
  font-family: Inter;
  src: url('/static/fonts/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: var(--traquno-ink);
  /* Slightly darker secondary text maintains AA contrast on the mist canvas. */
  --muted: #5e7284;
  --green: var(--traquno-gain);
  --mint: #e5f8f2;
  --red: var(--traquno-loss);
  --line: var(--traquno-border);
  --paper: var(--traquno-mist);
  --sidebar: 264px;
  font-family: var(--traquno-font);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: 'liga' 1, 'calt' 1;
  color: var(--ink);
  background: var(--paper);
}
body { background: var(--paper); }
.dot { background: var(--traquno-teal); }
.dot.secondary { background: #64788a; }
button, input, select, textarea { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: #185b82; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--traquno-focus); outline-offset: 3px; }
button:disabled { cursor: not-allowed; opacity: .5; }
[hidden] { display: none !important; }
.sidebar {
  width: var(--sidebar);
  padding: 24px;
  background: white;
  color: var(--ink);
  border-right: 1px solid var(--line);
  overflow-y: auto;
}
.brand { display: flex; width: 190px; max-width: 100%; min-height: 64px; margin: 0 0 8px; text-decoration: none; }
.brand img { display: block; width: 190px; max-width: 100%; height: auto; }
.sidebar > .eyebrow { font-size: 10px; letter-spacing: .15em; color: var(--muted); margin: 0 0 32px; }
.portfolio-label { color: var(--muted); font-size: 11px; letter-spacing: .12em; font-weight: 600; margin-bottom: 8px; }
.sidebar select { float: none; width: 100%; background: var(--paper); border-color: var(--line); color: var(--ink); padding: 12px; margin: 0; font-size: 13px; }
.portfolio-actions { display: block; margin: 12px 0 24px; }
.sidebar .portfolio-actions .button { font-size: 13px; padding: 12px; border-radius: 12px; background: white; color: var(--traquno-navy); border-color: var(--line); min-height: 44px; }
.sidebar .portfolio-actions .button:hover { background: #eff9f7; }
.sidebar nav { display: block; overflow: visible; margin: 0; }
nav a { min-height: 46px; font-size: 13px; font-weight: 500; color: var(--muted); padding: 12px; gap: 12px; margin-bottom: 4px; border-radius: 12px; }
nav a.active, nav a[aria-current='page'] { color: var(--traquno-navy); background: #e7f6f2; box-shadow: inset 3px 0 var(--traquno-teal); }
nav a:hover { color: var(--traquno-navy); background: #f0f6f8; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; flex-shrink: 0; }
.nav-locked-note { font-size: 12px; color: var(--muted); line-height: 1.7; padding: 8px 12px; }
.sidebar-bottom { display: block; font-size: 12px; padding-top: 32px; color: var(--traquno-navy); }
.sidebar-bottom p, .sidebar-bottom button { color: var(--muted); font-size: 11px; line-height: 1.8; }
.privacy-dot { background: var(--traquno-teal); }
main { margin-left: var(--sidebar); max-width: 1900px; padding: 0 40px; min-width: 0; }
header { min-height: 88px; height: auto; padding: 20px 0; gap: 16px; }
.breadcrumb { font-size: 12px; color: var(--muted); }
.header-actions { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.button { min-height: 44px; padding: 11px 16px; font-size: 13px; line-height: 1.5; font-weight: 600; border-radius: var(--traquno-button-radius); border-color: var(--line); color: var(--traquno-navy); background: white; }
.button:hover { filter: none; background: #edf5f7; }
.button.primary { color: white; background: var(--traquno-navy); border-color: var(--traquno-navy); }
.button.primary:hover { background: var(--traquno-navy-soft); }
.button.danger { color: var(--red); border-color: #edcbd1; }
.button.subtle { background: transparent; }
.text-button { font-size: 13px; min-height: 32px; }
.icon-button { min-width: 44px; min-height: 44px; }
.page-heading { padding: 36px 0 28px; align-items: flex-start; gap: 20px; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .13em; color: var(--muted); }
h1 { font-size: clamp(30px, 2.7vw, 42px); line-height: 1.16; letter-spacing: -.045em; font-weight: 700; margin-bottom: 12px; color: var(--traquno-navy); }
h2 { font-size: 22px; line-height: 1.3; font-weight: 650; letter-spacing: -.025em; color: var(--traquno-navy); }
h3 { font-size: 17px; line-height: 1.4; font-weight: 600; }
.subtitle { font-size: 14px; line-height: 1.7; max-width: 760px; }
select, input, textarea { min-height: 44px; padding: 10px 12px; border-radius: var(--traquno-input-radius); border-color: var(--line); color: var(--ink); background: white; }
input[type='checkbox'] { min-height: 20px; width: 20px; height: 20px; accent-color: var(--traquno-gain); }
input[aria-invalid='true'] { border-color: var(--red); }
.badge, .pill { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 6px 10px; letter-spacing: .03em; background: #e4f6f0; color: #11654f; }
.pill.warning { background: #fff3dc; color: #80500d; }
.pill.error { background: #fff0f2; color: var(--red); }
.kpis { gap: 16px; margin-bottom: 24px; }
.kpi, .panel, .setup-card { background: white; border: 1px solid var(--line); border-radius: var(--traquno-card-radius); box-shadow: 0 8px 24px rgba(15,45,58,.025); }
.kpi { padding: 24px; min-height: 160px; }
.kpi.featured { background: white; border-top: 3px solid var(--traquno-teal); padding-top: 22px; }
.kpi-label { font-size: 12px; line-height: 1.5; gap: 8px; min-height: 28px; align-items: flex-start; color: var(--muted); }
.kpi-value { font-size: clamp(26px, 2.3vw, 36px); font-weight: 700; letter-spacing: -.045em; line-height: 1.25; margin: 16px 0 10px; font-variant-numeric: tabular-nums; }
.kpi-note { font-size: 12px; line-height: 1.6; }
.positive { color: var(--traquno-gain); }
.negative { color: var(--traquno-loss); }
.panel { margin-bottom: 24px; }
.panel-heading { padding: 24px 24px 12px; align-items: flex-start; }
.panel-heading p { font-size: 12px; line-height: 1.7; margin-top: 8px; }
.panel-body { padding: 12px 24px 24px; }
.two-columns, .equal-columns { gap: 24px; }
.chart { height: 380px; }
.chart.small { height: 300px; }
.metric-grid { gap: 0 24px; }
.metric-row { padding: 16px 0; gap: 12px; font-size: 13px; }
.metric-row .metric-label { line-height: 1.6; }
.metric-row strong { font-weight: 600; }
.help { width: 28px; height: 28px; min-width: 28px; min-height: 28px; flex-basis: 28px; font-size: 12px; color: #4a6375; border-color: #bacbd5; background: white; }
.help:hover { color: var(--traquno-navy); background: #e7f6f2; border-color: var(--traquno-teal); }
.help:focus-visible { outline-color: var(--traquno-focus); }
.risk-rate { border-radius: 14px; background: var(--paper); padding: 20px; gap: 12px; }
.risk-rate label { font-size: 14px; }
.risk-rate p { font-size: 13px; }
.risk-rate button { min-height: 44px; }
.legend { font-size: 12px; gap: 16px; flex-wrap: wrap; }
.toolbar { padding: 16px 24px; gap: 12px; }
.toolbar input, .toolbar select { font-size: 13px; }
table { font-size: 13px; font-variant-numeric: tabular-nums; }
th { font-size: 11px; letter-spacing: .035em; font-weight: 600; background: #f4f8fa; padding: 16px; }
td { padding: 18px 16px; border-color: #edf2f5; }
tbody tr:hover { background: #f0f9f7; }
.security-icon { width: 36px; height: 36px; border-radius: 10px; color: #166b5a; background: #e4f7f1; font-size: 12px; }
.security small { font-size: 11px; }
.explanation, details { font-size: 13px; line-height: 1.8; }
summary { min-height: 36px; padding-block: 4px; }
pre { font-size: 12px; line-height: 1.8; background: var(--paper); border-radius: 12px; }
.notice, #quality-banner { padding: 16px 20px; font-size: 13px; line-height: 1.8; background: #fff8e9; color: #795015; border-color: #ead6ac; border-radius: 14px; margin-bottom: 24px; }
.notice.neutral { background: #edf9f5; border-color: #c8e8de; color: #235f50; }
#message, .upload-success { font-size: 13px; line-height: 1.8; border-radius: 14px; background: #e8f7f0; border-color: #c5e4d6; color: #205c48; }
#message.error, .wizard-error { background: #fff1f3; color: #9b2c3d; border-color: #e5b7c2; }
.wizard-error { border-left-color: var(--red); font-size: 14px; }
.wizard-error .button { margin: 8px 0 0 12px; }
.upload-zone { background: #f4fbf9; border-color: #81bcb0; border-radius: 20px; }
.upload-zone p { font-size: 13px; }
.upload-zone .upload-icon { color: #087c62; }
.form-grid { gap: 16px; }
.form-grid label, .check-label { font-size: 13px; line-height: 1.7; }
.inline-links { font-size: 13px; gap: 16px; }
.setup-shell { max-width: 1100px; }
.setup-intro { margin-bottom: 24px; gap: 16px; }
.setup-intro p { font-size: 13px; }
.setup-card { padding: 32px; }
.step-heading { margin-bottom: 24px; }
.step-heading h2 { font-size: clamp(24px, 2.2vw, 30px); }
.step-heading .eyebrow { color: var(--muted); }
.setup-save-note, .upload-limit { font-size: 12px; color: var(--muted); }
.setup-steps { gap: 8px; margin-bottom: 24px; }
.setup-step { padding: 16px 12px; border-radius: 14px; color: #4b6474; border-color: var(--line); background: #f0f5f8; font-size: 12px; gap: 8px; }
.setup-step.current { background: #e5f7f1; border-color: #8ecdbc; color: #135b4d; }
.setup-step.done { background: #f0faf6; color: #205f50; }
.setup-step small { font-size: 10px; }
.step-number { width: 28px; height: 28px; border-color: #a9c5bd; }
.setup-step.current .step-number, .setup-step.done .step-number { background: var(--traquno-gain); border-color: var(--traquno-gain); }
.wizard-lead { color: #4f6474; font-size: 15px; line-height: 1.8; }
.required-files { gap: 16px; }
.required-files > div { border-radius: 16px; background: #f2faf7; border-color: #cee8de; padding: 24px; }
.required-files strong { font-size: 15px; }
.required-files p { font-size: 13px; }
.required-files span { background: #d7f2e7; color: #1c6552; }
.wizard-field { font-size: 14px; }
.wizard-field input { font-size: 15px; }
.check-label { color: #465f6d; }
.check-label input { min-width: 20px; margin-top: 3px; }
.wizard-actions { gap: 12px; margin: 28px 0 8px; }
.wizard-actions .button { font-size: 14px; padding: 12px 18px; }
.export-guide { background: #f5f9fb; border-left-color: #8ab7cd; padding: 24px; border-radius: 0 14px 14px 0; }
.export-guide h3 { font-size: 17px; }
.instruction-list { color: #4d6575; font-size: 14px; line-height: 1.8; }
.instruction-list strong { color: var(--traquno-navy); }
.guide-warning { color: #795015; font-size: 13px; background: #fff1d7; }
.guide-source { font-size: 12px; }
.wizard-upload { border-color: #86beb0; background: #f2fbf7; border-radius: 16px; padding: 24px; }
.wizard-upload h3 { font-size: 18px; }
.wizard-upload p { font-size: 13px; }
.upload-glyph { color: var(--traquno-gain); }
.uploaded-files li { border-color: #c8e5d8; background: #f0faf5; border-radius: 12px; padding: 16px; }
.uploaded-files strong { font-size: 14px; }
.uploaded-files small { font-size: 12px; color: var(--muted); }
.price-progress { border-radius: 16px; }
.price-progress > div { padding: 16px; gap: 12px; font-size: 13px; flex-wrap: wrap; }
.price-progress small { font-size: 11px; }
.wizard-market-form { padding: 24px; border-radius: 16px; background: var(--paper); }
.wizard-market-form h3 { font-size: 18px; }
.wizard-market-form .explanation { font-size: 13px; }
.listing-choice { font-size: 13px; border-radius: 12px; padding: 16px; }
.listing-choice small { font-size: 12px; }
.review-checks { border-radius: 14px; }
.review-checks > div { padding: 18px; font-size: 14px; }
.setup-issues { border-radius: 14px; }
.setup-issues h3 { font-size: 17px; }
.setup-issues ul { font-size: 13px; }
.setup-bottom { font-size: 12px; color: var(--muted); gap: 16px; }
.setup-bottom .text-button { font-size: 13px; color: var(--traquno-navy); }
.file-stage { padding: 24px; border-radius: 16px; background: #ecfaf4; border-color: #a9d5c5; border-left-color: var(--traquno-gain); }
.file-badge { font-size: 11px; letter-spacing: .08em; }
.file-stage p, .export-recovery p, .export-recovery li { font-size: 14px; line-height: 1.8; }
.account-stage { background: #eff6ff; border-color: #bad4f4; border-left-color: #266ccf; color: #204e80; }
.account-button, [data-file-step='statement'] .wizard-upload .primary, [data-file-step='statement'] #wizard-history-form .primary { background: #245e9d; border-color: #245e9d; color: white; }
[data-file-step='statement'] .setup-step.current { background: #edf5ff; border-color: #82afe2; color: #204e80; }
[data-file-step='statement'] .setup-step.current .step-number { background: #245e9d; border-color: #245e9d; }
.report-handoff { border-color: #c8dcef; border-radius: 12px; }
.export-recovery { border-radius: 16px; background: #fff8e9; border-color: #e7d1a5; border-left-color: var(--traquno-amber); color: #795015; padding: 24px; }
.technical-checks { font-size: 13px; }
.heatmap { grid-template-columns: 48px repeat(12,minmax(40px,1fr)); gap: 6px; font-size: 11px; }
.heatmap > div { padding: 12px 4px; border-radius: 8px; }
.heatmap .up { background: #e3f5ec; color: var(--traquno-gain); }
.heatmap .down { background: #fbe9ed; color: var(--traquno-loss); }
dialog { border-radius: 20px; padding: 28px; width: min(760px,calc(100vw - 32px)); border-color: var(--line); box-shadow: 0 24px 80px #0f2d3a25; }
dialog::backdrop { background: #0f2d3a66; backdrop-filter: blur(4px); }
.modal-head { gap: 16px; }
.modal-head h2 { font-size: 24px; }
#modal-body p { font-size: 14px; line-height: 1.8; }
.metric-plain { font-size: 16px !important; }
.metric-details { font-size: 13px; }
.manager-row { gap: 16px; padding: 20px 0; }
.manager-row .check-label { font-size: 14px; margin: 0; }
.manager-row .actions { gap: 8px; margin: 0; }
.glossary-card { padding: 24px; }
.glossary-card h2 { font-size: 21px; }
.glossary-card p, .about-card p { font-size: 15px; line-height: 1.8; color: #4f6474; }
.about-card { max-width: 980px; padding: 32px; }
.about-brand { background: var(--traquno-navy); border-radius: 16px; padding: 24px; margin: 0 0 28px; }
.about-brand img { width: 200px; height: auto; display: block; }
.about-brand p { color: #d3e4ed; margin: 12px 0 0; font-size: 14px; }
.empty { padding: 56px 32px; }
.empty h2 { font-family: var(--traquno-font); font-weight: 700; color: var(--traquno-navy); }
.empty p { font-size: 15px; }
.empty-grid p, .empty-grid h3 { font-size: 14px; }
.intro-mark { color: var(--traquno-gain); }
footer { font-size: 11px; padding: 28px 0 32px; gap: 16px; color: var(--muted); }
footer a, footer .text-button { font-size: 12px; color: #315c75; }
#busy-overlay { background: rgba(248,250,252,.78); }
.busy-card { color: var(--traquno-navy); border-color: var(--line); border-radius: 20px; box-shadow: var(--traquno-shadow); }
.busy-spinner { border-color: #d8eeeb; border-top-color: var(--traquno-teal); }

@media (max-width: 1279px) {
  :root { --sidebar: 240px; }
  .sidebar { padding: 24px 20px; }
  main { padding: 0 28px; }
  .kpis { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .two-columns, .equal-columns, .performance-detail { grid-template-columns: 1fr; }
  .header-actions .subtle { display: inline-flex; }
  .setup-step { flex-direction: column; align-items: center; text-align: center; padding: 12px 8px; }
}
@media (max-width: 1023px) {
  :root { --sidebar: 0px; }
  .sidebar { position: relative; inset: auto; width: 100%; height: auto; display: grid; grid-template-columns: auto minmax(200px,1fr); align-items: center; gap: 12px 24px; padding: 16px 28px; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand { grid-column: 1; grid-row: 1; margin: 0; width: 180px; min-height: 60px; }
  .sidebar > .eyebrow, .portfolio-label, .sidebar-bottom { display: none; }
  .sidebar select { grid-column: 2; grid-row: 1; justify-self: end; width: min(100%,290px); }
  .portfolio-actions { grid-column: 1/-1; grid-row: 2; margin: 0; }
  .sidebar .portfolio-actions .button { width: auto; }
  .sidebar nav { grid-column: 1/-1; display: flex; gap: 4px; overflow-x: auto; padding: 4px 0; margin: 0; }
  nav a { flex-shrink: 0; white-space: nowrap; min-height: 44px; padding: 10px 12px; margin: 0; font-size: 12px; }
  .nav-icon { display: none; }
  .nav-locked-note { display: none; }
  main { margin-left: 0; padding: 0 28px; }
  header { min-height: 80px; }
  h1 { font-size: 36px; }
}
@media (max-width: 599px) {
  .sidebar { padding: 12px 16px; grid-template-columns: 1fr; gap: 12px; }
  .brand { width: 170px; min-height: 54px; justify-self: center; }
  .brand img { width: 170px; }
  .sidebar select { grid-column: 1; grid-row: 2; width: 100%; justify-self: stretch; font-size: 14px; }
  .portfolio-actions { grid-row: 3; }
  .sidebar .portfolio-actions .button { width: 100%; text-align: center; }
  .sidebar nav { grid-row: 4; }
  main { padding: 0 16px; }
  header { flex-wrap: wrap; padding: 16px 0; gap: 12px; }
  .header-actions { flex: 1; }
  .header-actions .subtle { display: none; }
  .breadcrumb { font-size: 11px; }
  .breadcrumb span { margin-left: 4px; }
  .button { padding: 10px 14px; font-size: 13px; }
  .page-heading { padding: 28px 0 24px; display: block; }
  h1 { font-size: 32px; }
  h2 { font-size: 21px; }
  #range-controls { margin-top: 20px; }
  #range-controls > select { width: 100%; }
  #custom-range input { width: calc(50% - 4px); min-width: 0; }
  .kpis { grid-template-columns: 1fr; gap: 12px; }
  .kpi { min-height: 140px; padding: 20px; }
  .kpi-value { font-size: 34px; }
  .kpi-label, .kpi-note { font-size: 12px; }
  .panel-heading { padding: 20px 16px 12px; }
  .panel-body { padding: 8px 16px 20px; }
  .chart { height: 310px; }
  .chart.small { height: 280px; }
  .metric-grid { grid-template-columns: 1fr; }
  .metric-row { font-size: 13px; }
  .setup-card { padding: 24px 16px; }
  .setup-intro { display: block; }
  .setup-intro p { margin-top: 12px; }
  .setup-steps { gap: 4px; }
  .setup-step { padding: 10px 3px; font-size: 10px; border-radius: 10px; overflow-wrap: anywhere; }
  .setup-step small { font-size: 9px; }
  .step-number { height: 24px; width: 24px; }
  .step-heading h2 { font-size: 24px; }
  .wizard-lead, .instruction-list, .check-label { font-size: 14px; }
  .export-guide, .file-stage, .export-recovery, .required-files > div { padding: 20px 16px; }
  .file-stage h3 { font-size: 22px; }
  .report-handoff { gap: 8px; padding: 12px; font-size: 12px; }
  .report-handoff small { font-size: 11px; }
  .wizard-upload { align-items: flex-start; gap: 12px; padding: 20px 16px; }
  .upload-glyph { padding: 0; font-size: 28px; }
  .wizard-upload .button { width: 100%; }
  .wizard-actions { flex-direction: column; align-items: stretch; }
  .setup-bottom { font-size: 11px; }
  .review-checks > div { font-size: 13px; padding: 16px; }
  .toolbar { padding: 16px; }
  .toolbar input { min-width: 0; width: 100%; }
  .about-card, .glossary-card { padding: 24px 20px; }
  .about-brand { padding: 20px; }
  .about-brand img { width: 180px; }
  dialog { padding: 20px; }
  .modal-head h2 { font-size: 22px; }
  .manager-row { align-items: flex-start; }
  .manager-row .actions { width: 100%; flex-wrap: wrap; }
  .manager-row .button { font-size: 12px; padding: 10px; }
  footer { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.chart-data { margin: 0 24px 24px; border-top: 1px solid var(--line); padding-top: 12px; }
.chart-data summary { font-size: 13px; color: #315c75; }
.chart-data > div > .button { margin-top: 16px; }
.chart-data .table-scroll { max-height: 420px; }
@media (max-width: 599px) { .chart-data { margin-inline: 16px; } }
@media (pointer: coarse) { .help { min-width: 44px; min-height: 44px; flex-basis: 44px; } }

/* Mobile navigation: persistent destinations, full labels in the menu. */
.mobile-menu-toggle, #mobile-navigation { display: none; }
.mobile-menu-links { display: grid; gap: 6px; }
.mobile-menu-links a { display: grid; grid-template-columns: 24px minmax(0,1fr) 20px; align-items: center; gap: 14px; min-height: 52px; padding: 12px; white-space: normal; margin: 0; font-size: 15px; }
.mobile-menu-links a[aria-current='page'] { background: #e7f6f2; color: var(--traquno-navy); }
.mobile-menu-links svg { width: 24px; height: 24px; }
.mobile-menu-links .menu-import { background: #edf9f5; color: var(--traquno-navy); border: 1px solid #c8e8de; margin-bottom: 8px; }
.demo-invitation { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px; margin-bottom: 24px; border: 1px solid #b9ded4; border-radius: 20px; background: #edf9f5; }
.demo-invitation h2 { margin: 8px 0; }
.demo-invitation p:not(.eyebrow) { color: #465f6d; font-size: 14px; line-height: 1.7; max-width: 600px; }
.demo-invitation .button { flex-shrink: 0; }
@media (max-width: 1023px) {
  main > header { min-height: 0; padding-block: 12px 0; border: 0; }
  main > header .breadcrumb, main > header #new-portfolio, main > header #header-import { display: none; }
  main > header:has(#demo-badge[hidden]) { display: none; }
  main > header .header-actions { justify-content: flex-start; }
  html { scroll-padding-bottom: 100px; }
  .sidebar { grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 12px 24px; padding-top: max(12px,env(safe-area-inset-top)); }
  .brand, .brand img { width: 170px; }
  .brand { grid-column: 1; grid-row: 1; justify-self: start; min-height: 54px; }
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 10px; grid-column: 2; grid-row: 1; min-height: 44px; }
  .mobile-menu-toggle span { font-size: 20px; }
  .sidebar select { grid-column: 1; grid-row: 2; width: 100%; max-width: none; justify-self: stretch; font-size: 16px; min-width: 0; }
  .portfolio-actions { grid-column: 2; grid-row: 2; }
  .sidebar .portfolio-actions .button { width: auto; font-size: 13px; padding: 12px; }
  .sidebar #navigation { display: none; }
  main { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  #mobile-navigation { display: flex; position: fixed; z-index: 100; inset: auto 0 0; justify-content: space-around; background: white; border-top: 1px solid var(--line); box-shadow: 0 -4px 24px #0f2d3a08; padding: 6px max(8px,env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left)); }
  #mobile-navigation a, #mobile-navigation button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 56px; padding: 6px 2px; margin: 0 2px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; line-height: 1.3; text-decoration: none; box-shadow: none; cursor: pointer; }
  #mobile-navigation svg { width: 24px; height: 24px; flex-shrink: 0; }
  #mobile-navigation .active { background: #e7f6f2; color: var(--traquno-navy); }
  #mobile-navigation :focus-visible { outline-offset: -3px; }
  body.busy #mobile-navigation { filter: blur(3px); pointer-events: none; }
}
@media (max-width: 599px) {
  .demo-invitation { flex-direction: column; align-items: stretch; padding: 20px; gap: 16px; }
  .sidebar { padding-inline: 16px; gap: 10px; }
  .sidebar select { font-size: 16px; }
  .sidebar .portfolio-actions .button { font-size: 12px; padding: 12px 10px; }
  header { min-height: 64px; padding-block: 12px; }
  header .breadcrumb { display: none; }
  .header-actions { justify-content: space-between; }
  #header-import { margin-left: auto; }
  .page-heading { padding-top: 20px; }
  input, select, textarea, .toolbar input, .toolbar select, .wizard-field input, #custom-range input { font-size: 16px; }
  .toolbar { flex-wrap: wrap; }
  .toolbar select { max-width: 100%; }
  .mobile-menu-links a { font-size: 15px; }
  dialog { max-height: calc(100dvh - 32px); max-width: calc(100vw - 24px); }
  .modal-head { position: sticky; top: -20px; background: white; padding-block: 8px; z-index: 1; }
  .panel-heading { flex-wrap: wrap; gap: 12px; }
}
