:root {
  --paper: #faf9f6;
  --paper-alt: #f1efe8;
  --paper-muted: #e8e6dd;
  --ink: #23282b;
  --ink-soft: #6f736b;
  --line: #ddd9cd;
  --teal: #2b6e63;
  --teal-dark: #1f5049;
  --teal-soft: rgba(43, 110, 99, 0.12);
  --ochre: #a9713a;
  --ochre-bg: #f2e6d5;
  --brick: #b3492f;
  --brick-bg: #f6e1da;
  --surface: #ffffff;
  --on-accent: #ffffff;
  --backdrop: rgba(35, 40, 43, 0.35);
  --shadow: 0 10px 30px rgba(35, 40, 43, 0.12);
  --grid: #ebe8df;
  --font-serif: "Source Serif 4", Georgia, serif;
  --font-sans: "Inter", system-ui, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --paper: #151819;
  --paper-alt: #1d2122;
  --paper-muted: #272c2d;
  --ink: #e6e4de;
  --ink-soft: #9a9e96;
  --line: #333839;
  --teal: #3a9481;
  --teal-dark: #5fb8a5;
  --teal-soft: rgba(58, 148, 129, 0.16);
  --ochre: #dba56b;
  --ochre-bg: #3a2f22;
  --brick: #e27a5e;
  --brick-bg: #3d2520;
  --surface: #1e2223;
  --on-accent: #ffffff;
  --backdrop: rgba(0, 0, 0, 0.6);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  --grid: #2a2f30;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; margin: 0; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }

a { color: var(--teal); }

.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pos { color: var(--teal); }
.neg { color: var(--ink); }
.muted { color: var(--ink-soft); }
.small { font-size: 13px; }

/* --- Pagina en navigatie --- */

.page {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 24px 64px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 18px 10px 0;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}
.brand img { display: block; border-radius: 8px; }
.brand-name { font-family: var(--font-serif); font-size: 19px; font-weight: 600; white-space: nowrap; }

.tab-list { display: flex; gap: 22px; }

.tab {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 0 12px;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--ink); }
.tab.active { color: var(--teal); border-bottom-color: var(--teal); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  flex-shrink: 0;
  margin-bottom: 8px;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover, .icon-btn.active { color: var(--teal); border-color: var(--teal); }
.settings-toggle { margin-left: auto; }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }

@media (max-width: 720px) {
  .page { padding: 16px 16px calc(92px + env(safe-area-inset-bottom, 0px)); }
  .tabs { margin-bottom: 18px; }
  .tab-list {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 20;
    gap: 0;
    background: var(--surface);
    border-top: 1px solid var(--line);
    padding: 4px 4px env(safe-area-inset-bottom, 0px);
  }
  .tab {
    flex: 1;
    flex-direction: column;
    gap: 2px;
    padding: 8px 0 8px;
    font-size: 11px;
    border-bottom: none;
    margin: 0;
  }
  .tab svg { width: 21px; height: 21px; }
}

/* --- Bouwstenen --- */

.view-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.view-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}
.card + .card, .card + .grid, .grid + .card, .grid + .grid { margin-top: 16px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h3 { font-size: 16px; }

.grid { display: grid; gap: 16px; }
.grid > .card { margin-top: 0; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .grid.three { grid-template-columns: 1fr 1fr 1fr; gap: 8px; } }

.stat { padding: 14px 16px; }
.stat .label { font-size: 13px; color: var(--ink-soft); }
.stat .value { font-family: var(--font-serif); font-size: 22px; font-weight: 600; margin-top: 2px; }
@media (max-width: 720px) {
  .stat { padding: 10px 12px; }
  .stat .value { font-size: 17px; }
  .stat .label { font-size: 12px; }
}

.hero .label { color: var(--ink-soft); font-size: 14px; }
.hero .value {
  font-family: var(--font-serif);
  font-size: clamp(34px, 7vw, 48px);
  font-weight: 600;
  line-height: 1.1;
  margin: 4px 0 6px;
  letter-spacing: -0.01em;
}
.delta { font-size: 14px; color: var(--ink-soft); }
.delta strong { color: var(--ink); font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: inherit;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  text-decoration: none;
  min-height: 40px;
}
.btn svg { width: 16px; height: 16px; }
.btn:hover { border-color: var(--teal); color: var(--teal); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: var(--on-accent); }
.btn.primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); color: var(--on-accent); }
:root[data-theme="dark"] .btn.primary:hover { background: #2f7a6b; border-color: #2f7a6b; }
.btn.danger { color: var(--brick); }
.btn.danger:hover { border-color: var(--brick); }
.btn.link { border: none; background: none; color: var(--ink-soft); padding: 6px; min-height: 0; }
.btn.link:hover { color: var(--teal); }
.btn.small { padding: 5px 10px; min-height: 32px; font-size: 13px; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: default; }

label { display: block; font-size: 13px; font-weight: 500; color: var(--ink-soft); }
form > * + label, label + label, label + .row, .row + label, .row + .row, .field + .field { margin-top: 12px; }

input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  font: inherit;
  font-size: 16px; /* voorkomt inzoomen op iPhone */
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px;
  min-height: 42px;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal-soft); border-color: var(--teal); }
input[type="file"] { padding: 8px; }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row > label { margin-top: 0; }
@media (max-width: 480px) { .row.stack { grid-template-columns: 1fr; } }

.segmented { display: flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: 5px; }
.segmented label {
  flex: 1;
  margin: 0;
  text-align: center;
  padding: 9px 6px;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  background: var(--surface);
}
.segmented label + label { border-left: 1px solid var(--line); margin: 0; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; width: 1px; min-height: 0; }
.segmented label:has(input:checked) { background: var(--teal); color: var(--on-accent); }

.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; flex-wrap: wrap; }
.form-actions .spacer { flex: 1; }
.form-error { color: var(--brick); font-size: 14px; margin: 12px 0 0; }
.hint { color: var(--ink-soft); font-size: 14px; margin: 0 0 14px; }

/* --- Inlogscherm --- */

.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.auth-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.auth-brand img { border-radius: 10px; }
.auth-brand h1 { font-size: 26px; }
.auth-step .btn.primary { margin-top: 18px; }
.auth-step .btn.link { display: block; margin: 10px auto 0; }
.code-input { font-size: 24px; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }
.steps { padding-left: 20px; margin: 0 0 12px; font-size: 14px; }
.steps li + li { margin-top: 6px; }
.qr { display: block; margin: 6px auto 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.secret { font-size: 13px; margin-bottom: 12px; color: var(--ink-soft); }
.secret summary { cursor: pointer; }
.secret code { display: block; font-size: 15px; padding: 8px; background: var(--paper-alt); border-radius: 8px; word-break: break-all; color: var(--ink); }

/* --- Lijsten --- */

.list { list-style: none; margin: 0; padding: 0; }
.list-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.list-row:first-child { border-top: none; }
.list-row .main { flex: 1; min-width: 0; }
.list-row .title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .sub { font-size: 13px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-row .amount { font-weight: 500; text-align: right; }
.list-row.clickable { cursor: pointer; }
.list-row.clickable:hover .title { color: var(--teal); }

.group-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 600;
  margin: 18px 0 2px;
}
.group-title:first-child { margin-top: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  white-space: nowrap;
}
.badge.warn { background: var(--ochre-bg); color: var(--ochre); }
.badge.bad { background: var(--brick-bg); color: var(--brick); }

.kind-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--ink-soft); }

/* Categorie-keuze in de transactielijst */
.cat-select {
  width: auto;
  max-width: 46vw;
  min-height: 30px;
  margin: 3px 0 0;
  padding: 2px 26px 2px 9px;
  font-size: 12.5px;
  border-radius: 999px;
  background-color: var(--paper-alt);
  border-color: transparent;
  color: var(--ink-soft);
}
.cat-select.unset { background-color: var(--ochre-bg); color: var(--ochre); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.filters select, .filters input { width: auto; flex: 1 1 150px; margin: 0; }

.month-switch { display: inline-flex; align-items: center; gap: 4px; }
.month-switch .label { font-family: var(--font-serif); font-size: 20px; font-weight: 600; min-width: 150px; text-align: center; }
.month-switch .icon-btn { margin: 0; }

.empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 28px 12px;
}
.empty h3 { color: var(--ink); margin-bottom: 6px; }

.onboarding { list-style: none; padding: 0; margin: 14px 0 0; counter-reset: step; }
.onboarding li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-align: left; }
.onboarding li:first-child { border-top: none; }
.onboarding .n {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal-soft); color: var(--teal); font-weight: 600; font-size: 14px;
}
.onboarding li.done .n { background: var(--teal); color: var(--on-accent); }
.onboarding .main { flex: 1; color: var(--ink); }

/* --- Budgetbalken --- */

.budget-row { padding: 10px 0; border-top: 1px solid var(--line); cursor: pointer; }
.budget-row:first-child { border-top: none; }
.budget-row .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.budget-row .name { font-weight: 500; display: flex; align-items: center; gap: 8px; min-width: 0; }
.budget-row:hover .name { color: var(--teal); }
.bar { height: 8px; border-radius: 4px; background: var(--paper-muted); margin-top: 7px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 4px; background: var(--teal); }
.bar.warn > span { background: var(--ochre); }
.bar.bad > span { background: var(--brick); }
.bar.share > span { background: var(--ink-soft); opacity: 0.55; }

/* --- Grafieken --- */

.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { fill: var(--ink-soft); stroke: none; font-size: 11px; font-family: var(--font-sans); }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .zero-line { stroke: var(--line); stroke-width: 1; }
.chart .line { stroke: var(--teal); stroke-width: 2; }
.chart .area { fill: var(--teal); opacity: 0.1; stroke: none; }
.chart .dot { fill: var(--teal); stroke: var(--surface); stroke-width: 2; }
.chart .cross { stroke: var(--ink-soft); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .bar-in { fill: var(--teal); stroke: none; }
.chart .bar-out { fill: var(--ochre); stroke: none; }
.chart .hit { fill: transparent; stroke: none; cursor: crosshair; }
.chart .bar-group:hover .bar-in, .chart .bar-group:hover .bar-out { opacity: 0.8; }

.legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-soft); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend .in { background: var(--teal); }
.legend .out { background: var(--ochre); }

.chart-tip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  font-size: 12.5px;
  padding: 7px 10px;
  border-radius: 8px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  transform: translate(-50%, calc(-100% - 12px));
}
.chart-tip strong { display: block; font-weight: 600; }

/* --- Bezittingen --- */

.asset-card .card-head { margin-bottom: 4px; }
.asset-card .value { font-family: var(--font-serif); font-size: 26px; font-weight: 600; }
.asset-card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 12px 0 0; font-size: 14px; }
.asset-card dt { color: var(--ink-soft); }
.asset-card dd { margin: 0; }
.asset-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.kind-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); font-weight: 600; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice {
  text-align: left;
  font: inherit;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.choice strong { display: block; margin-bottom: 2px; }
.choice span { font-size: 13px; color: var(--ink-soft); }
.choice:hover { border-color: var(--teal); }

/* --- Modal en melding --- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal {
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 0;
  position: sticky;
  top: 0;
  background: var(--surface);
}
.modal-head .icon-btn { margin: 0; }
.modal-body { padding: 14px 20px 20px; }
@media (max-width: 720px) {
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { max-width: none; border-radius: 16px 16px 0 0; max-height: 92vh; padding-bottom: env(safe-area-inset-bottom, 0px); }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 70;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow);
  font-size: 14px;
  max-width: calc(100vw - 32px);
}
@media (max-width: 720px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); } }

.table-wrap { overflow-x: auto; }
table.preview { border-collapse: collapse; font-size: 13px; width: 100%; }
table.preview th, table.preview td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.preview th { color: var(--ink-soft); font-weight: 500; }
table.preview td.num { text-align: right; }

.settings-section + .settings-section { margin-top: 16px; }
.temp-pass { font-family: ui-monospace, monospace; font-size: 20px; padding: 10px; background: var(--paper-alt); border-radius: 8px; text-align: center; color: var(--ink); user-select: all; }

/* --- Voorbeeldmodus --- */

.demo-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--ochre-bg);
  color: var(--ink);
  border: 1px solid var(--ochre);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 14px;
}
#demoToggle[aria-pressed="true"] { color: var(--ochre); border-color: var(--ochre); background: var(--ochre-bg); }

/* --- Uitleg bij begrippen --- */

.info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  margin: 0 0 0 4px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font: 600 11px/1 var(--font-sans);
  cursor: pointer;
  vertical-align: middle;
  position: relative;
}
.info::after { content: ""; position: absolute; inset: -10px; } /* groter raakvlak op de telefoon */
.info:hover, .info[aria-expanded="true"] { color: var(--teal); border-color: var(--teal); }

.explain {
  position: absolute;
  z-index: 80;
  width: min(300px, calc(100vw - 32px));
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}
.explain strong { display: block; font-family: var(--font-serif); font-size: 15px; margin-bottom: 3px; }

.glossary dt { font-weight: 600; margin-top: 12px; }
.glossary dt:first-child { margin-top: 0; }
.glossary dd { margin: 2px 0 0; color: var(--ink-soft); font-size: 14px; }

/* --- Budgetten instellen --- */

.budget-intro { font-size: 14px; margin-bottom: 8px; }
.budget-intro p { margin: 0 0 6px; }
.budget-intro ul { margin: 0 0 8px; padding-left: 20px; }
.budget-edit .budget-input { width: 110px; flex-shrink: 0; margin: 0; }
.budget-edit .budget-input input { margin: 0; text-align: right; }
.budget-edit .sub { white-space: normal; }
.small-link { font-size: 13px; padding: 0 0 0 4px; color: var(--teal); text-decoration: underline; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.check-row { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; color: var(--ink); font-weight: 400; font-size: 14px; cursor: pointer; }
.check-row input { width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--teal); }

/* --- Dashboard --- */

.dash-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.dash-col { display: grid; gap: 16px; }
.dash-col > .card { margin-top: 0; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
.big-num { font-weight: 600; font-size: 17px; }
.pace { margin-top: 16px; }
.pace-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); margin-top: 10px; }
.pace-row:first-child { margin-top: 0; }
.pace .bar { margin-top: 5px; }
.badge.good { background: var(--teal-soft); color: var(--teal); }
.saved-line { margin: 14px 0 0; }
.todo-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-soft); flex-shrink: 0; }
.todo-dot.warn { background: var(--ochre); }
.todo-dot.bad { background: var(--brick); }
.chev { color: var(--ink-soft); font-size: 20px; line-height: 1; }
.list-row.clickable:hover .main { color: var(--teal); }
.all-good { margin: 0; color: var(--teal); font-weight: 500; }

@media (max-width: 720px) {
  .tab span { font-size: 10.5px; }
}

.head-actions { display: flex; align-items: center; gap: 12px; }
.period-hint { font-size: 13.5px; margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--teal-soft); color: var(--ink); }

.view-title { margin-bottom: 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 26px 2px 10px; }
.section-head h3 { font-size: 18px; }

.search-row { display: flex; gap: 8px; margin-top: 5px; }
.search-row input { margin: 0; }
.quote-results { margin-top: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; max-height: 260px; overflow: auto; }
.section-sub { margin: -4px 2px 10px; }
