/* Tokens and widget styles for the whole web UI. Pages add no styles of their own: every class here
   belongs to one widget in src/web/widgets, and /storyboard shows each of them. */

:root {
  /* Surfaces and text */
  --page: #D5D5D0;
  --shell: #F3F3F1;
  --panel: #FFFFFF;
  --fill: #F3F3F0;
  --line: #ECECE9;
  --ink: #19191C;
  --text: #3A3A3E;
  --muted: #8B8B87;
  --soft: #B9B9B4;

  /* Tones: the only accent colours, picked through Tone in tones.ts */
  --yellow: #F2BE45;
  --violet: #8C6CEF;
  --teal: #4FC4A2;
  --blue: #5BB5EE;
  --orange: #EE7B3C;
  --pink: #E2678B;
  --green: #3FA46A;
  --red: #E5484D;
  --gray: #A3A39E;

  --radius-shell: 30px;
  --radius-panel: 22px;
  --radius-card: 18px;
  --radius-control: 12px;
  --gap: 12px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body { min-height: 100vh; padding: 36px; background: var(--page); color: var(--ink); font: 400 14px/1.45 'Onest', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; }
.icon { flex: none; }

/* appShell */
.shell { display: grid; grid-template-columns: 76px minmax(0, 1fr); max-width: 1480px; margin: 0 auto; padding: 14px 14px 14px 0; background: var(--shell); border-radius: var(--radius-shell); }
.shell-columns { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.shell-columns.has-side { --side-width: 340px; grid-template-columns: minmax(0, 1fr) var(--side-width); }
.shell-columns.wide-side { --side-width: 440px; }
.panel { background: var(--panel); border-radius: var(--radius-panel); }
.panel-main { display: grid; align-content: start; gap: 30px; padding: 14px 22px 26px; }
.panel-side { display: flex; flex-direction: column; gap: 16px; padding: 14px; }

/* rail */
.rail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 6px; }
.rail-logo { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 30px; border-radius: var(--radius-control); background: var(--ink); color: #fff; }
.rail-title { margin: 18px 0 6px; font-size: 12px; color: var(--muted); }
.rail-item { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-control); color: var(--text); }
.rail-item:hover { background: rgb(0 0 0 / .04); }
.rail-item[aria-current="page"] { background: var(--panel); box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.rail-fill { flex: 1; }

/* tabs */
/* Tabs start past the panel's rounded corner, so the active one sits on its straight edge. */
.tabs { display: flex; gap: 6px; height: 34px; padding: 0 var(--radius-panel); align-items: flex-end; }
.tab { display: flex; align-items: center; gap: 7px; height: 30px; padding: 0 14px; border-radius: 10px 10px 0 0; font-size: 13px; color: var(--muted); }
.tab:hover { color: var(--ink); }
.tab[aria-current="page"] { background: var(--panel); color: var(--ink); font-weight: 500; }

/* topBar */
.topbar { display: flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 8px 0 14px; border: 1px solid var(--line); border-radius: 16px; font-size: 13px; }
.topbar-crumb { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.topbar-crumb:last-of-type { color: var(--ink); font-weight: 500; }
.topbar-sep { color: var(--soft); }
.topbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

/* grid */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(max(var(--min), calc((100% - (var(--columns) - 1) * var(--gap)) / var(--columns))), 1fr)); align-items: start; }

/* button */
.button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap; }
.button:hover { background: #303036; }
.button-form { display: contents; }

/* iconBadge */
.icon-badge { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--tone); color: #fff; }

/* progressBar */
.progress { display: flex; gap: 5px; height: 6px; }
.progress-fill { display: block; min-width: 6px; border-radius: 6px; background: var(--tone); }
.progress-rest { flex: 1; min-width: 6px; border-radius: 6px; background: #ECECEA; }

/* shareBar */
.share { display: flex; gap: 3px; height: 8px; }
.share-part { min-width: 3px; border-radius: 4px; }

/* badge */
.badge { flex: none; padding: 3px 8px; border-radius: 7px; background: var(--fill); font-size: 11px; font-weight: 500; white-space: nowrap; }
.badge.toned { background: color-mix(in srgb, var(--tone) 13%, white); color: color-mix(in srgb, var(--tone) 75%, black); }

/* chip */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; color: var(--text); white-space: nowrap; }
.chip .icon { color: var(--tone, var(--muted)); }
.chip b { font-weight: 500; color: var(--muted); }

/* avatar */
.avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #C9C1F6, #F6D9A8); font-weight: 600; }

/* section */
.section h2 { margin: 0 4px 12px; font-size: 16px; font-weight: 500; }

/* pageIntro */
.intro { padding: 16px 4px 0; }
.intro h1 { font-size: 26px; font-weight: 500; letter-spacing: -0.01em; }
.intro p { max-width: 62ch; margin-top: 8px; color: #55555A; }

/* emptyState, footnote */
.empty { padding: 18px; border: 1px dashed var(--line); border-radius: var(--radius-card); color: var(--muted); }
.footnote { padding: 0 8px; font-size: 11px; color: var(--soft); }

/* statCard, paymentCard: label and value on one line */
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--text); }
.row b { font-weight: 500; white-space: nowrap; color: var(--ink); }
.row + .progress { margin-top: 12px; }

/* statCard */
.stat { padding: 18px 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-card); }
.stat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; }
.stat-head h3 { font-size: 14px; font-weight: 500; }
.stat-action { margin-left: auto; font-size: 12px; color: var(--soft); }
.stat-action:hover { color: var(--ink); }

/* categoryTile */
.tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius-card); background: color-mix(in srgb, var(--color) 10%, white); }
.tile-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-control); background: #fff; color: var(--color); box-shadow: 0 1px 2px rgb(0 0 0 / .05); }
.tile-text { display: grid; min-width: 0; }
.tile-text b { font-size: 16px; font-weight: 500; white-space: nowrap; }
.tile-text small { overflow: hidden; font-size: 12px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.tile-go { margin-left: auto; color: #55555A; }

/* paymentCard */
.payment { padding: 16px 18px 18px; border: 1px solid var(--line); border-radius: var(--radius-card); }
.payment-head { display: flex; align-items: center; gap: 8px; }
.payment-ring { flex: none; width: 10px; height: 10px; border: 1.5px solid var(--tone); border-radius: 50%; }
.payment-head h3 { min-width: 0; overflow: hidden; font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.payment-head .badge { margin-left: auto; }
.payment-date { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 16px; }
.payment-date b { font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.payment-date span { color: var(--soft); }

/* monthCalendar */
.calendar { padding: 18px 16px 16px; border: 1px solid var(--line); border-radius: var(--radius-card); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px 4px; justify-items: center; }
.calendar-weekday { padding-bottom: 6px; font-size: 12px; font-weight: 500; }
.calendar-day { position: relative; display: grid; place-items: center; width: 100%; max-width: 38px; aspect-ratio: 1; border-radius: 50%; font-size: 13px; font-variant-numeric: tabular-nums; }
.calendar-day.marked { background: var(--fill); font-weight: 500; }
.calendar-day.outside, .calendar-day.future { color: var(--soft); }
.calendar-day.today { background: var(--ink); color: #fff; }
.calendar-dots { position: absolute; bottom: 5px; display: flex; gap: 2px; }
.calendar-dots i { width: 4px; height: 4px; border-radius: 50%; }
.calendar-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.calendar-legend span { display: flex; align-items: center; gap: 6px; }
.calendar-legend i { width: 6px; height: 6px; border-radius: 50%; }

/* balanceTotal */
.total { padding: 34px 8px 6px; text-align: center; }
.total-amount { font-size: 38px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.total-amount span { color: var(--soft); }
.total-note { max-width: 28ch; margin: 6px auto 0; font-size: 12px; color: var(--muted); }
.total-footer { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }

/* accountList */
.accounts { display: grid; gap: 2px; list-style: none; }
.accounts-box { padding: 12px 6px 6px; border: 1px solid var(--line); border-radius: 16px; }
.accounts-box h3 { padding: 0 8px 4px; font-size: 12px; font-weight: 400; color: var(--muted); }
.account { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-radius: var(--radius-control); }
.account:hover { background: var(--fill); }
.account-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.account-name { display: grid; min-width: 0; margin-right: auto; }
.account-name b { overflow: hidden; font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.account-name small, .account-amount small { font-size: 11px; color: var(--muted); }
.account-amount { display: grid; justify-items: end; font-variant-numeric: tabular-nums; }
.account-amount b { font-size: 13px; font-weight: 500; white-space: nowrap; }
.account-amount .negative { color: #C2453B; }

/* stack */
.stack { display: grid; gap: var(--stack-gap); }

/* toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }

/* segmentedLinks */
.segmented { display: inline-flex; justify-self: start; gap: 2px; padding: 3px; border-radius: var(--radius-control); background: var(--fill); }
.segment { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 9px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.segment:hover { color: var(--ink); }
.segment span { font-size: 12px; color: var(--soft); }
.segment[aria-current="page"] { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }

/* searchField */
.search { display: flex; align-items: center; gap: 8px; width: min(280px, 100%); height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-control); color: var(--soft); }
.search:focus-within { border-color: var(--soft); }
.search input { width: 100%; border: 0; outline: none; background: none; font: inherit; color: var(--ink); }

/* filterTag */
.filter-tag { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; white-space: nowrap; }
.filter-tag i { width: 7px; height: 7px; border-radius: 50%; }
.filter-tag .icon { opacity: .7; }
.filter-tag:hover .icon { opacity: 1; }

/* dayGroup */
.day-head { display: flex; align-items: baseline; gap: 10px; padding: 0 12px 6px; }
.day-head h3 { font-size: 15px; font-weight: 500; }
.day-head span { font-size: 13px; color: var(--muted); }
.day-head b { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }

/* operationRow */
.operations { display: grid; gap: 2px; list-style: none; container-type: inline-size; }
.operation-item { display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; }
.operation-item > .operation { flex: 1 1 240px; min-width: 0; }
.operation-item.open { margin: 6px 0; padding-bottom: 14px; border: 1px solid var(--line); border-radius: 16px; }
.operation-item.muted .operation-text b, .operation-item.muted .operation-amount b { font-weight: 400; color: var(--muted); }
.operation-item.muted .operation-icon { opacity: .5; }
.operation { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; }
.operation:hover { background: var(--fill); }
.operation-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; margin-left: auto; }
.operation-action { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; color: var(--muted); }
.operation-action:hover { background: var(--fill); color: var(--ink); }
.operation-panel { display: grid; gap: 14px; flex: 1 1 100%; min-width: 0; padding: 2px 12px 0 62px; }
@container (max-width: 520px) { .operation-panel { padding-left: 12px; } }
.operation-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: var(--radius-control); background: color-mix(in srgb, var(--color) 12%, white); color: var(--color); }
.operation-text { display: grid; min-width: 0; margin-right: auto; }
.operation-text b { overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.operation-text small { overflow: hidden; font-size: 12px; color: var(--muted); white-space: nowrap; text-overflow: ellipsis; }
.operation-comment { display: flex; align-items: center; gap: 5px; }
.operation-amount { display: grid; justify-items: end; flex: none; font-variant-numeric: tabular-nums; }
.operation-amount b { font-weight: 500; white-space: nowrap; }
.operation-amount small { font-size: 11px; color: var(--muted); }
.operation-amount.income b { color: var(--green); }
.operation-amount.transfer b { color: var(--muted); }

/* categoryList */
.categories { display: grid; gap: 2px; list-style: none; }
.category { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: var(--radius-control); }
.category:hover { background: var(--fill); }
.category[aria-current="true"] { background: color-mix(in srgb, var(--color) 12%, white); }
.category-icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 10px; background: color-mix(in srgb, var(--color) 12%, white); color: var(--color); }
.category[aria-current="true"] .category-icon { background: #fff; }
.category-text { display: grid; gap: 6px; flex: 1; min-width: 0; }
.category-line { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.category-line b { overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.category-line span { flex: none; font-variant-numeric: tabular-nums; color: var(--text); }
.category-bar { height: 4px; border-radius: 2px; background: #ECECEA; }
.category-bar i { display: block; height: 100%; min-width: 4px; border-radius: 2px; background: var(--color); }

/* field */
.field { display: grid; align-content: start; gap: 5px; flex: 1 1 200px; min-width: 0; }
.field.fixed { flex: 0 0 var(--field-width); }
.field-label { padding-left: 2px; font-size: 12px; color: var(--muted); }
.field-input { width: 100%; height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-control); outline: none; background: var(--panel); font: inherit; color: var(--ink); }
.field-input::placeholder { color: var(--soft); }
.field-input:focus { border-color: var(--soft); }
.field-input[aria-invalid="true"] { border-color: var(--red); }
.field-input[type="number"] { appearance: textfield; }
.field-input::-webkit-inner-spin-button, .field-input::-webkit-outer-spin-button { appearance: none; margin: 0; }
.field-error { padding-left: 2px; font-size: 12px; color: var(--red); }

/* selectField: an input-like box with a chevron instead of the native arrow */
.field-select { appearance: none; padding-right: 34px; background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B8B87' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; cursor: pointer; text-overflow: ellipsis; }
.field-select:invalid { color: var(--soft); }

/* iconPicker */
.icon-picker { display: grid; gap: 5px; flex: 1 1 100%; min-width: 0; border: 0; }
.icon-choices { display: flex; flex-wrap: wrap; gap: 4px; }
.icon-choice { position: relative; cursor: pointer; }
.icon-choice input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.icon-choice span { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); }
.icon-choice.wide span { padding: 0 10px; font-size: 13px; }
.icon-choice:hover span { color: var(--ink); }
.icon-choice input:checked + span { border-color: transparent; background: color-mix(in srgb, var(--color, var(--violet)) 12%, white); color: var(--color, var(--violet)); }
.icon-choice input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }

/* factList */
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.fact { display: grid; gap: 2px; min-width: 0; }
.fact dt { padding-left: 2px; font-size: 12px; color: var(--muted); }
.fact dd { padding-left: 2px; font-size: 13px; color: var(--ink); overflow-wrap: anywhere; }

/* choiceGroup */
.choices { display: grid; gap: 7px; }
.choices-label { padding-left: 2px; font-size: 12px; color: var(--muted); }
.choices-list { display: flex; flex-wrap: wrap; gap: 6px; }
.choices-list form { display: contents; }
.choice { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; line-height: 1.3; text-align: left; color: var(--text); }
button.choice:hover { border-color: var(--soft); color: var(--ink); }
.choice i { flex: none; width: 7px; height: 7px; border-radius: 50%; }
.choice small { font-size: 11px; color: var(--muted); }
.choice.suggested { border-color: color-mix(in srgb, var(--violet) 45%, white); background: color-mix(in srgb, var(--violet) 7%, white); }
.choice.suggested .icon { color: var(--violet); }
.choice.current { border-color: var(--ink); background: var(--ink); color: #fff; }
.choice.current small { color: rgb(255 255 255 / .65); }
.choices-empty { padding: 6px 2px; font-size: 12px; color: var(--muted); }
.choices-other { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; }
.choices-other .button { margin-bottom: 3px; }

/* entryList, entryRow, entryForm */
.entries { display: grid; gap: 2px; list-style: none; container-type: inline-size; }
.entry { display: flex; flex-wrap: wrap; align-items: center; column-gap: 4px; }
.entry > .entry-row { flex: 1 1 240px; min-width: 0; }
.entry-row { position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; }
.entry-row:has(> .entry-link):hover { background: var(--fill); }
.entry-link { position: absolute; inset: 0; border-radius: inherit; }
.entry-inline { position: relative; display: flex; margin: -4px 0; }
.entry-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 2px; margin-left: auto; }
.entry-icon { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: var(--radius-control); background: color-mix(in srgb, var(--color) 12%, white); color: var(--color); }
.entry-text { display: grid; min-width: 0; margin-right: auto; }
.entry-text b { display: -webkit-box; overflow: hidden; font-weight: 500; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.entry-text small { font-size: 12px; color: var(--muted); }
.entry-amount { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.entry-mark, .operation-mark { position: relative; flex: none; width: 8px; height: 8px; margin-right: -6px; border-radius: 50%; background: var(--tone); }
.entry-mark.ring, .operation-mark.ring { background: none; box-shadow: inset 0 0 0 1.5px var(--gray); }
.entry-edit { color: var(--soft); }
.entry.muted .entry-text b, .entry.muted .entry-amount { font-weight: 400; color: var(--muted); }
.entry-divider { display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 0 12px; font-size: 12px; font-weight: 500; }
.entry-divider span { padding: 3px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.entry-divider::after { content: ''; flex: 1; height: 1px; background: var(--ink); }
.entry-row:hover .entry-edit { color: var(--ink); }
.entry.open { margin: 6px 0; padding-bottom: 14px; border: 1px solid var(--line); border-radius: 16px; }
.entry-panel { display: grid; gap: 14px; flex: 1 1 100%; min-width: 0; padding: 2px 12px 0 62px; }
@container (max-width: 520px) { .entry-panel { padding-left: 12px; } }
.entry-form { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; margin: 6px 0; padding: 12px; border: 1px solid var(--line); border-radius: 16px; }
.entry-form .entry-icon { margin-top: 19px; }
.entry-fields { display: flex; flex-wrap: wrap; gap: 10px; flex: 1 1 360px; min-width: 0; }
.entry-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 22px; }
.entry-quiet { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; color: var(--muted); }
.entry-quiet:hover { background: var(--fill); color: var(--ink); }
.entry-icon-action { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; color: var(--soft); }
.entry-icon-action:hover { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .08); }
@media (hover: hover) {
  .entry-icon-action { opacity: 0; }
  .entry-row:hover .entry-icon-action, .entry-icon-action:focus-visible { opacity: 1; }
}
@media (hover: none) {
  .entry-inline { display: none; }
}
.entry-quiet.danger:hover { color: var(--red); }
.entry-more { flex: 1 1 100%; }
.entry-more > summary { gap: 4px; width: fit-content; margin-left: -10px; list-style: none; cursor: pointer; }
.entry-more > summary::-webkit-details-marker { display: none; }
.entry-more[open] > summary .icon { transform: rotate(180deg); }
.entry-more-fields { display: flex; flex-wrap: wrap; gap: 10px; padding: 6px 0 4px; }

@media (max-width: 1240px) {
  .shell-columns.has-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 820px) {
  body { padding: 12px; }
  .shell { grid-template-columns: minmax(0, 1fr); padding: 10px; }
  .rail { display: none; }
  .panel-main { padding: 12px 14px 22px; }
  .intro h1 { font-size: 22px; }
  .search { width: 100%; }
}
