@font-face {
  font-family: Nunito;
  src: url("nunito.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  --ground: #F3F6F4;
  --card: #FFFFFF;
  --line: #DDE4DF;
  --ink: #15302A;
  --muted: #4F6560;
  --green: #1E5B4A;
  --green-tint: #E3F1EC;
  --sun: #F4C430;
  --sun-tint: #FBF1CF;
  --sun-line: #E8D99A;
  --red: #A32E1A;
  --radius: 18px;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: Nunito, "Segoe UI", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.35;
  -webkit-text-size-adjust: 100%;
}
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
h1 { font-size: 30px; line-height: 1.1; font-weight: 900; }
h2 { font-size: 22px; line-height: 1.2; font-weight: 900; }
h3 { font-size: 19px; line-height: 1.2; font-weight: 800; }
ul, ol { padding-left: 24px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green); font-weight: 800; }
img { display: block; max-width: 100%; }

.muted { color: var(--muted); }
.small { font-size: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.grow { flex: 1 1 0; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.right { margin-left: auto; }
.num { white-space: nowrap; font-weight: 800; }

/* Rahmen */
.shell { display: flex; height: 100%; min-height: 0; }
.main { flex: 1; min-width: 0; overflow-y: auto; padding: 20px 20px 104px; }
.page { display: flex; flex-direction: column; gap: 14px; max-width: 1180px; margin: 0 auto; }
.side { display: none; }

.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 5;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  background: var(--card); border-top: 1px solid var(--line);
  padding: 6px 4px calc(8px + env(safe-area-inset-bottom));
}
.tabs button {
  min-height: 60px; border: 0; background: none; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 14px; font-weight: 700; color: var(--muted);
}
.tabs button[aria-current] { color: var(--green); font-weight: 900; }
.tabs svg { width: 26px; height: 26px; }

@media (min-width: 900px) {
  .tabs { display: none; }
  .only-phone { display: none !important; }
}
@media (max-width: 899px) {
  .only-big { display: none !important; }
  .foldergrid[data-open] .folder:not([aria-pressed="true"]) { display: none; }
  .foldergrid[data-open] { grid-template-columns: minmax(0, 1fr); }
}

/* Bausteine */
.card { background: var(--card); border-radius: var(--radius); padding: 16px 18px; min-width: 0; }
.card.sun { background: var(--sun-tint); }
.card.green { background: var(--green); color: #fff; }
.card.mint { background: var(--green-tint); }

.btn {
  min-height: 52px; border: 0; border-radius: 14px; padding: 0 20px;
  background: var(--green); color: #fff; font-size: 19px; font-weight: 800;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; text-align: center;
}
.btn.sun { background: var(--sun); color: var(--ink); font-weight: 900; }
.btn.line { background: var(--card); color: var(--ink); border: 2px solid var(--green); }
.btn.quiet { background: none; color: var(--ink); text-decoration: underline; padding: 0 8px; }
.btn.danger { background: var(--card); color: var(--red); border: 2px solid var(--red); }
.btn.mini { min-height: 44px; font-size: 17px; padding: 0 14px; border-radius: 12px; }
.btn.wide { width: 100%; }
.btn.huge { min-height: 76px; font-size: 24px; border-radius: 20px; width: 100%; }
.btn svg { width: 28px; height: 28px; flex: none; }
.btn:disabled { opacity: .6; cursor: default; }

.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--green-tint); font-size: 16px; font-weight: 800; }
.pill.warn { background: var(--sun-tint); }

label.field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: 17px; min-width: 0; }
.input, select.input, textarea.input {
  width: 100%; min-height: 52px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--card); padding: 10px 14px; font-size: 18px; font-weight: 500;
}
textarea.input { min-height: 96px; resize: vertical; }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 700; }
.check input { width: 26px; height: 26px; accent-color: var(--green); margin: 0; flex: none; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.form .full { grid-column: 1 / -1; }

.head { display: flex; align-items: center; gap: 12px; }
.logo { width: 40px; height: 40px; flex: none; }
.side .logo { width: 44px; height: 44px; }

.back { width: 44px; height: 44px; border: 0; background: none; padding: 0; display: flex; align-items: center; justify-content: center; flex: none; }
.back svg { width: 28px; height: 28px; }

.avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 900;
}
.avatar svg { width: 55%; height: 55%; }
.avatar.big { width: 52px; height: 52px; font-size: 23px; }
.avatar.tiny { width: 30px; height: 30px; font-size: 15px; }

.task { background: var(--card); border: 0; width: 100%; text-align: left; border-radius: 16px; padding: 12px 14px; display: flex; align-items: center; gap: 12px; min-width: 0; }
.task > svg { width: 28px; height: 28px; flex: none; color: var(--green); }
.task b { display: block; font-size: 18px; font-weight: 800; line-height: 1.2; }
.task span.sub { display: block; font-size: 16px; color: var(--muted); }
.task.late span.sub { color: var(--red); font-weight: 800; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--card); border-radius: 16px; padding: 12px 14px; min-width: 0; }
.tile p:first-child { font-size: 16px; color: var(--muted); }
.tile .big { font-size: 22px; line-height: 1.15; font-weight: 900; overflow-wrap: anywhere; }
.tile.green { background: var(--green); color: #fff; }
.tile.green p:first-child { color: #fff; }
.tiles.three { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tiles.tax { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile .ico { margin-bottom: 6px; }

/* Kleine farbige Symbole */
.ico { width: 40px; height: 40px; flex: none; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--green-tint); color: var(--green); }
.ico svg { width: 22px; height: 22px; }
.ico.sun { background: var(--sun-tint); color: #7A5900; }
.ico.blue { background: #E4EDF8; color: #1F5FA8; }
.ico.plum { background: #F0E9F8; color: #6B3FA0; }
.ico.rose { background: #F9E6EC; color: #B83A5E; }
.ico.orange { background: #FBEBDA; color: #B85C00; }
.ico.big { width: 64px; height: 64px; border-radius: 20px; }
.ico.big svg { width: 34px; height: 34px; }

.pagehead { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.searchbox { flex: 1 1 260px; min-width: 0; }
.row.nowrap { flex-wrap: nowrap; }
.row.center { justify-content: center; }
.stack.tight { gap: 8px; }
.page.narrow { max-width: 720px; }
.family { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.linkish { border: 0; background: none; padding: 0; color: var(--green); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
tr.quiet td { color: var(--muted); }
table.narrow { min-width: 0; }

/* Einrichtung */
.setup { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: var(--sun-tint); }
.setup .grow { flex: 1 1 220px; }
.setup .ico { background: #fff; }
.lockcard { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 28px 20px; }
.samples { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.samples span { padding: 8px 14px; border-radius: 999px; background: var(--ground); font-size: 16px; }
.wizardlist { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wizard { display: flex; gap: 14px; align-items: flex-start; }
.wizard.now { box-shadow: inset 0 0 0 2px var(--sun); }
.step { width: 36px; height: 36px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--green); color: #fff; font-weight: 900; }
.wizard.now .step { background: var(--sun); color: var(--ink); }

/* Reiter in Hilfe und Einstellungen */
.tabbed { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.sublist { display: flex; flex-wrap: wrap; gap: 8px; }
.sublist button { display: flex; align-items: center; gap: 8px; min-height: 48px; border: 0; border-radius: 14px; background: var(--card); padding: 4px 14px 4px 6px; font-size: 16px; font-weight: 800; text-align: left; }
.sublist .ico { width: 34px; height: 34px; border-radius: 10px; }
.sublist .ico svg { width: 19px; height: 19px; }
.sublist button[aria-current] { box-shadow: inset 0 0 0 2px var(--green); background: var(--green-tint); }
.tabbody { flex: 1 1 auto; }

.more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.more button { min-height: 60px; border: 0; border-radius: 16px; background: var(--card); font-size: 18px; font-weight: 800; }

/* Personen und Ordner */
.people { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; }
.people button {
  border: 0; background: none; padding: 4px 0; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12.5px; letter-spacing: -.2px; font-weight: 700; min-width: 0;
}
.people button[aria-pressed="true"] { font-weight: 900; }
.people button[aria-pressed="true"] .avatar { box-shadow: 0 0 0 3px var(--ground), 0 0 0 6px var(--who); }
.foldergrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.folder { border: 0; border-radius: 16px; background: var(--card); padding: 12px; display: flex; align-items: center; gap: 10px; text-align: left; min-width: 0; min-height: 70px; }
.folder .ico { background: var(--tint); color: var(--who); }
.folder b { display: block; font-size: 17px; font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
.folder span.sub { display: block; font-size: 15px; color: var(--muted); }
.folder[aria-pressed="true"] { background: var(--tint); box-shadow: inset 0 0 0 2px var(--who); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; border: 0; border-radius: 12px; background: var(--card); padding: 0 14px; font-size: 17px; font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--tint, var(--green-tint)); box-shadow: inset 0 0 0 2px var(--who, var(--green)); font-weight: 900; }

/* Papier-Karten */
.paper { background: var(--card); border: 0; border-radius: 20px; padding: 18px; display: flex; flex-wrap: wrap; gap: 18px; text-align: left; width: 100%; min-width: 0; }
.paper .words { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.paper .date { font-size: 17px; font-weight: 700; color: var(--muted); }
.paper h2 { font-size: 24px; overflow-wrap: anywhere; }
.paper .summary { font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.paper .box { flex: 0 1 380px; min-width: 0; border-radius: 16px; padding: 12px; display: flex; gap: 12px; align-items: center; background: var(--tint, var(--green-tint)); }
.paper .caption { min-width: 0; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.paper .caption b { display: block; font-size: 18px; font-weight: 900; }
.sheet { width: 112px; height: 150px; flex: none; border-radius: 6px; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--muted); }
.sheet img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.sheet.small { width: 76px; height: 100px; }

.bigimage { width: 100%; border-radius: 12px; background: #fff; }
.facts { background: var(--card); border-radius: var(--radius); padding: 4px 16px; }
.facts > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 50px; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { font-weight: 800; text-align: right; min-width: 0; overflow-wrap: anywhere; }

.choose { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choose button { min-height: 96px; border: 2px solid var(--line); border-radius: 18px; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 19px; font-weight: 800; min-width: 0; overflow-wrap: anywhere; }

.detail { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.detail > .stack { flex: 1 1 340px; }
.detail > .imagecol { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* Monat */
.bar { display: grid; grid-template-columns: 170px minmax(0, 1fr) 104px; align-items: center; gap: 12px; min-height: 32px; font-size: 17px; }
.bar b { font-weight: 700; overflow-wrap: anywhere; }
.bar i { display: block; height: 12px; background: var(--green); border-radius: 0 4px 4px 0; min-width: 3px; }
.bar span { text-align: right; font-weight: 800; white-space: nowrap; }
@media (max-width: 520px) {
  .bar { grid-template-columns: minmax(0, 1fr) 96px; }
  .bar i { grid-column: 1 / -1; grid-row: 2; }
}
.split { display: flex; flex-wrap: wrap; gap: 14px; }
.split > * { flex: 1 1 320px; min-width: 0; }
.split > .wide { flex: 3 1 440px; }
.li { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 40px; font-size: 18px; }
.li + .li { border-top: 1px solid var(--line); }
.card.sun .li + .li { border-top-color: var(--sun-line); }
.li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.tablebox { overflow-x: auto; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 18px; }
th { text-align: left; color: var(--muted); font-weight: 700; padding: 6px 8px 6px 0; }
td { padding: 7px 8px 7px 0; border-top: 1px solid var(--line); }
td.amount, th.amount { text-align: right; padding-right: 0; white-space: nowrap; font-weight: 800; }

/* Chat */
.chatlog { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: min(86%, 640px); padding: 10px 14px; font-size: 18px; line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.me { align-self: flex-end; background: var(--green); color: #fff; border-radius: 18px 18px 4px 18px; }
.bubble.you { align-self: flex-start; background: var(--card); border-radius: 18px 18px 18px 4px; }
.bubble.wait { color: var(--muted); }
.chatcard { align-self: flex-start; width: min(92%, 460px); background: var(--card); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.chatform { display: flex; gap: 8px; position: sticky; bottom: 0; padding-top: 8px; background: var(--ground); }
.chatform .input { flex: 1; min-width: 0; }
.send { width: 54px; height: 54px; flex: none; border: 0; border-radius: 16px; background: var(--sun); display: flex; align-items: center; justify-content: center; }
.send svg { width: 26px; height: 26px; }

/* Scannen */
.tray { display: flex; flex-wrap: wrap; gap: 10px; }
.progress { height: 14px; background: var(--line); border-radius: 7px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--green); }
.dropveil { position: fixed; inset: 0; z-index: 30; background: rgba(21, 48, 42, .55); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; font-weight: 900; pointer-events: none; }

.scanbox { position: fixed; inset: 0; z-index: 40; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px; overflow-y: auto; }
.scanstage { position: relative; width: min(100%, 560px); touch-action: none; }
.scanstage canvas { display: block; width: 100%; height: auto; }
.scanstage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scanstage polygon { fill: rgba(244, 196, 48, .18); stroke: var(--sun); stroke-width: 3; }
.scancorner { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 4px solid var(--sun); background: rgba(21, 48, 42, .4); touch-action: none; }
.scanbuttons { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.scanbuttons button { min-height: 52px; border: 0; border-radius: 14px; padding: 0 18px; font-size: 18px; font-weight: 800; }
.scanbuttons .save { background: var(--sun); color: var(--ink); }
.scanbuttons .ghost { background: none; color: #fff; border: 2px solid #fff; }

.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 50; max-width: min(90vw, 520px); background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 18px; font-size: 18px; font-weight: 700; text-align: center; }

.lockbox { max-width: 420px; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 14px; }
.steps { display: flex; flex-direction: column; gap: 6px; font-size: 18px; }
.steps li { padding-left: 4px; }
.helpsec { display: flex; flex-direction: column; gap: 8px; }
.qr { width: 240px; height: 240px; border-radius: 12px; background: #fff; }

/* Laptop: ruhiger, kleiner, geordnet wie ein Programm. Am Handy bleibt alles groß zum Tippen. */
@media (min-width: 900px) {
  body { font-size: 15.5px; line-height: 1.4; }
  h1 { font-size: 26px; letter-spacing: -.01em; }
  h2 { font-size: 17px; }
  h3 { font-size: 15.5px; }
  .small { font-size: 14px; }
  .main { padding: 26px 32px 40px; }
  .page { gap: 16px; }
  .side { display: flex; flex: 0 0 236px; overflow-y: auto; background: var(--green); color: #fff; padding: 16px 12px 12px; flex-direction: column; }
  .side .brand { display: flex; align-items: center; gap: 9px; padding: 0 6px 12px; font-size: 21px; font-weight: 900; }
  .side .logo { width: 30px; height: 30px; }
  .side .add { display: flex; align-items: center; justify-content: center; gap: 6px; flex: none; min-height: 40px; border: 0; border-radius: 10px; background: var(--sun); color: var(--ink); font-size: 15px; font-weight: 900; margin-bottom: 10px; }
  .side .add svg { width: 17px; height: 17px; }
  .navlist { display: flex; flex-direction: column; gap: 1px; flex: 1 0 auto; }
  .nav { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 33px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: #E4F0EB; font-size: 14.5px; font-weight: 700; text-align: left; }
  .nav svg { width: 17px; height: 17px; flex: none; }
  .nav:hover { background: rgba(255, 255, 255, .09); color: #fff; }
  .nav[aria-current] { background: rgba(10, 30, 25, .45); color: #fff; font-weight: 900; box-shadow: inset 3px 0 0 var(--sun); }
  .nav .avatar.tiny { width: 22px; height: 22px; font-size: 12px; box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .6); }
  .nav .avatar.tiny svg { width: 62%; height: 62%; }
  .nav .count { font-size: 12.5px; color: #BFDAD0; }
  .nav .badge { min-width: 21px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sun); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 900; }
  .navlock svg { width: 14px; height: 14px; color: #F4C430; display: block; }
  .navlabel { padding: 12px 10px 4px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: #BFDAD0; }
  .yearbar { display: flex; gap: 5px; padding: 0 2px 5px; }
  .yearbar button { flex: 1; min-height: 27px; border: 1px solid rgba(255, 255, 255, .28); border-radius: 8px; background: none; color: #E4F0EB; font-size: 13px; font-weight: 700; }
  .yearbar button[aria-pressed] { background: var(--sun); border-color: var(--sun); color: var(--ink); font-weight: 900; }
  .months { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 3px 2px 6px; }
  .months button { min-height: 26px; border: 0; border-radius: 7px; background: none; color: #E4F0EB; font-size: 13px; font-weight: 700; }
  .months button:hover { background: rgba(255, 255, 255, .09); }
  .months button.future { color: #9CC4B5; font-weight: 600; }
  .months button[aria-current] { background: var(--sun); color: var(--ink); font-weight: 900; }
  .spacer { flex: 1; min-height: 12px; }

  .card { border-radius: 14px; padding: 16px 18px; box-shadow: 0 0 0 1px var(--line); }
  .card.sun { box-shadow: 0 0 0 1px var(--sun-line); }
  .card.mint { box-shadow: 0 0 0 1px #CBE3D9; }
  .wizard.now { box-shadow: inset 0 0 0 2px var(--sun); }
  .btn { min-height: 40px; border-radius: 10px; padding: 0 16px; font-size: 15px; }
  .btn.line { border-width: 1.5px; }
  .btn.danger { border-width: 1.5px; }
  .btn.mini { min-height: 34px; font-size: 14px; padding: 0 12px; border-radius: 9px; }
  .btn svg { width: 19px; height: 19px; }
  .pill { padding: 2px 10px; font-size: 13.5px; }
  label.field { font-size: 14.5px; }
  .input, select.input, textarea.input { min-height: 40px; border-radius: 10px; border-width: 1.5px; padding: 7px 12px; font-size: 15px; }
  .check { min-height: 34px; }
  .check input { width: 20px; height: 20px; }
  .back svg { width: 22px; height: 22px; }
  .back { width: 34px; height: 34px; }

  .ico { width: 34px; height: 34px; border-radius: 10px; }
  .ico svg { width: 19px; height: 19px; }
  .ico.big { width: 60px; height: 60px; border-radius: 18px; }
  .ico.big svg { width: 32px; height: 32px; }

  .task { border-radius: 12px; padding: 10px 12px; box-shadow: 0 0 0 1px var(--line); }
  .task:hover { box-shadow: 0 0 0 1px var(--green); }
  .task b { font-size: 15px; }
  .task span.sub { font-size: 13.5px; }
  .task > svg { width: 22px; height: 22px; }
  .avatar { width: 34px; height: 34px; font-size: 15px; }
  .avatar.big { width: 40px; height: 40px; font-size: 18px; }

  .tile { border-radius: 14px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--line); }
  .tile p:first-child, .tile > p { font-size: 13.5px; }
  .tile .big { font-size: 24px; }
  .tile.green .ico { background: rgba(255, 255, 255, .16); color: #fff; }
  .tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .foldergrid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .foldergrid[data-open] { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
  .folder { min-height: 58px; padding: 10px 12px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
  .folder:hover { box-shadow: 0 0 0 1px var(--who); }
  .folder[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--who); }
  .folder b { font-size: 15px; }
  .folder span.sub { font-size: 13px; }
  .chip { min-height: 34px; border-radius: 9px; font-size: 14px; padding: 0 12px; box-shadow: 0 0 0 1px var(--line); }
  .searchbox { flex: 0 1 340px; margin-left: auto; }

  .paper { border-radius: 14px; padding: 14px; gap: 14px; box-shadow: 0 0 0 1px var(--line); }
  .paper .date { font-size: 13.5px; }
  .paper h2 { font-size: 18px; }
  .paper .summary { font-size: 15px; }
  .paper .box { flex: 0 1 300px; padding: 10px; border-radius: 12px; }
  .paper .caption { font-size: 13.5px; }
  .paper .caption b { font-size: 14.5px; }
  .sheet { width: 74px; height: 98px; }
  .sheet.small { width: 58px; height: 76px; }

  .facts { border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
  .facts > div { min-height: 40px; }
  .choose button { min-height: 74px; font-size: 15px; border-width: 1.5px; border-radius: 12px; }

  .bar { grid-template-columns: 150px minmax(0, 1fr) 92px; min-height: 28px; font-size: 14.5px; }
  .li { min-height: 34px; font-size: 15px; }
  table { font-size: 14.5px; }
  td { padding: 6px 8px 6px 0; }
  .bubble { font-size: 15.5px; }
  .chatcard { border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
  .send { width: 40px; height: 40px; border-radius: 10px; }
  .send svg { width: 20px; height: 20px; }
  .steps { font-size: 15px; }
  .samples span { font-size: 14px; }
  .step { width: 30px; height: 30px; font-size: 14px; }
  .toast { font-size: 15px; bottom: 28px; }

  .tabbed { flex-direction: row; align-items: flex-start; gap: 20px; }
  .sublist { flex: 0 0 212px; flex-direction: column; gap: 3px; position: sticky; top: 0; }
  .sublist button { width: 100%; min-height: 42px; border-radius: 10px; background: none; font-size: 14.5px; font-weight: 700; padding: 3px 8px 3px 5px; }
  .sublist button:hover { background: var(--card); }
  .sublist button[aria-current] { background: var(--card); box-shadow: 0 0 0 1px var(--line); font-weight: 900; }
  .sublist .ico { width: 30px; height: 30px; border-radius: 9px; }
  .sublist .ico svg { width: 17px; height: 17px; }
  .tabbody { max-width: 760px; min-width: 0; }
  .lockbox { max-width: 440px; }
}
