/* Denji: a black & white phone app. Pure monochrome, hairline borders, big confident numbers.
   Light = paper white, dark = true black (OLED). "Accent" is simply the ink colour. */
:root {
  --bg: #ffffff;
  --card: #ffffff;
  --sunk: #f2f2f2;
  --line: #e4e4e4;
  --line-strong: #111111;
  --fg: #0a0a0a;
  --muted: #7a7a7a;
  --accent: #0a0a0a;
  --accent-ink: #ffffff;
  --brass: #0a0a0a;
  --out: #0a0a0a;
  --good: #0a0a0a;
  --warn: #0a0a0a;
  --shadow: none;
  --radius: 20px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --tabs-h: 62px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --card: #0c0c0c;
    --sunk: #161616;
    --line: #232323;
    --line-strong: #f5f5f5;
    --fg: #f5f5f5;
    --muted: #8a8a8a;
    --accent: #f5f5f5;
    --accent-ink: #000000;
    --brass: #f5f5f5;
    --out: #f5f5f5;
    --good: #f5f5f5;
    --warn: #f5f5f5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --card: #0c0c0c;
  --sunk: #161616;
  --line: #232323;
  --line-strong: #f5f5f5;
  --fg: #f5f5f5;
  --muted: #8a8a8a;
  --accent: #f5f5f5;
  --accent-ink: #000000;
  --brass: #f5f5f5;
  --out: #f5f5f5;
  --good: #f5f5f5;
  --warn: #f5f5f5;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
#view {
  max-width: 640px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 14px) max(16px, env(safe-area-inset-right, 0px)) calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 96px) max(16px, env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 6px 2px 2px; }
.head h1 { margin: 0; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 750; }
.head .sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: var(--card); box-shadow: var(--shadow);
  display: grid; place-items: center; flex: none;
}
.icon-btn svg { width: 20px; height: 20px; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.card h2 { margin: 0 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 650; }
.card h2 .link { float: right; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--accent); background: none; border: 0; padding: 0; font-weight: 600; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 4px; border: 0; text-align: left; }
.tile .label { font-size: 13px; color: var(--muted); font-weight: 600; }
.tile .big { font-size: 26px; font-weight: 750; letter-spacing: -0.02em; line-height: 1.1; }
.tile .small { font-size: 13px; color: var(--muted); }

.big-number { font-size: 40px; font-weight: 780; letter-spacing: -0.03em; line-height: 1; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row .grow { flex: 1; min-width: 0; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.bar { height: 10px; border-radius: 99px; background: var(--sunk); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.bar.over > i { background: var(--out); }

.month-switch { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.month-switch button { border: 0; background: var(--card); box-shadow: var(--shadow); width: 38px; height: 38px; border-radius: 50%; font-size: 20px; line-height: 1; }
.month-switch strong { font-size: 17px; }

/* ---------- lists ---------- */
.list { display: flex; flex-direction: column; }
.list .day { font-size: 13px; font-weight: 650; color: var(--muted); padding: 14px 2px 6px; display: flex; justify-content: space-between; }
.item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: 0; background: none; text-align: left; padding: 10px 2px;
  border-bottom: 1px solid var(--line); min-width: 0;
}
.item:last-child { border-bottom: 0; }
.item .ico { width: 38px; height: 38px; border-radius: 12px; background: var(--sunk); display: grid; place-items: center; font-size: 19px; flex: none; }
.item .t { font-weight: 600; }
.item .s { font-size: 13px; color: var(--muted); }
.item .amt { font-weight: 700; white-space: nowrap; }
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 99px; background: var(--sunk); color: var(--muted); vertical-align: 1px; }
.pill.card { background: color-mix(in srgb, var(--brass) 20%, transparent); color: var(--brass); }
.pill.fix { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.pill.donate { background: color-mix(in srgb, var(--out) 18%, transparent); color: var(--out); }

.cat-bars { display: flex; flex-direction: column; gap: 10px; }
.cat-bars .r { display: grid; grid-template-columns: 26px 1fr auto; gap: 4px 10px; align-items: center; }
.cat-bars .r .bar { grid-column: 2 / 4; height: 6px; }
.cat-bars .r .n { font-size: 14px; font-weight: 600; min-width: 0; }

.empty { text-align: center; color: var(--muted); padding: 22px 10px; font-size: 15px; }
.empty b { display: block; color: var(--fg); font-size: 17px; margin-bottom: 4px; }

/* ---------- gym ---------- */
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.week .d { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.week .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--sunk); display: grid; place-items: center; font-size: 14px; color: var(--accent-ink); font-weight: 750; }
.week .dot.on { background: var(--accent); }
.week .today .dot { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.spark { width: 100%; height: 56px; display: block; }
.pr { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.pr:last-child { border-bottom: 0; }
.pr .best { font-weight: 700; text-align: right; }
.pr .s { font-size: 13px; color: var(--muted); grid-column: 1 / 3; }

/* ---------- wardrobe ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--sunk); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: none; border-radius: 9px; padding: 8px 6px; font-weight: 650; font-size: 14px; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--fg); box-shadow: var(--shadow); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; border: 1px solid var(--line); background: var(--card); border-radius: 99px;
  padding: 7px 13px; font-size: 14px; font-weight: 600; white-space: nowrap;
}
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.wcard { border: 0; padding: 0; background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); text-align: left; display: flex; flex-direction: column; min-width: 0; }
.wcard .ph { aspect-ratio: 4 / 5; background: var(--sunk); display: grid; place-items: center; position: relative; overflow: hidden; }
.wcard .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wcard .ph .sw { width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--card); box-shadow: var(--shadow); }
.wcard .ph .pill { position: absolute; top: 8px; left: 8px; }
.wcard .meta { padding: 9px 11px 11px; min-width: 0; }
.wcard .meta .t { font-weight: 650; font-size: 15px; }
.wcard .meta .s { font-size: 12px; color: var(--muted); }
.collage { aspect-ratio: 4 / 5; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.collage > * { background: var(--sunk); overflow: hidden; display: grid; place-items: center; min-height: 0; }
.collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.collage .sw { width: 34px; height: 34px; border-radius: 50%; }

/* ---------- tab bar ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 6px) max(8px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--card) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(18px); backdrop-filter: saturate(1.6) blur(18px);
  border-top: 1px solid var(--line);
}
.tabs a {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0 2px;
  text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 650;
}
.tabs a svg { width: 24px; height: 24px; }
.tabs a[aria-current="page"] { color: var(--accent); }

.fab {
  position: fixed; z-index: 21;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 16px);
  height: 56px; min-width: 56px; padding: 0 20px; border-radius: 28px; border: 0;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px;
  box-shadow: 0 8px 24px rgb(20 60 45 / 0.28);
  display: flex; align-items: center; gap: 8px;
}
.fab svg { width: 22px; height: 22px; }

/* ---------- quick actions ---------- */
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.quick button {
  border: 0; background: var(--card); box-shadow: var(--shadow); border-radius: 16px;
  padding: 12px 4px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 650; color: var(--fg);
}
.quick .qi { font-size: 22px; line-height: 1; }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; background: rgb(0 0 0 / 0.35); opacity: 0; pointer-events: none; transition: opacity 0.2s; z-index: 40; }
.scrim.on { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 41;
  max-width: 640px; margin: 0 auto; max-height: calc(100% - env(safe-area-inset-top, 0px) - 24px);
  background: var(--bg); border-radius: 22px 22px 0 0;
  transform: translateY(105%); transition: transform 0.25s ease;
  display: flex; flex-direction: column;
}
.sheet.on { transform: none; }
.sheet .bar-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); }
.sheet .bar-top h3 { margin: 0; font-size: 18px; font-weight: 720; }
.sheet .bar-top button { border: 0; background: none; color: var(--accent); font-weight: 650; padding: 6px 2px; }
.sheet .body {
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 4px max(16px, env(safe-area-inset-right, 0px)) calc(env(safe-area-inset-bottom, 0px) + 20px) max(16px, env(safe-area-inset-left, 0px));
  display: flex; flex-direction: column; gap: 14px;
}
@media (prefers-reduced-motion: reduce) { .sheet, .scrim { transition: none; } }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 650; color: var(--muted); }
.input, .field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px;
  padding: 12px 13px; font-size: 16px; min-width: 0;
}
.field textarea { min-height: 70px; resize: vertical; }
.amount-in { display: flex; align-items: center; gap: 6px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 10px 16px; }
.amount-in span { font-size: 30px; font-weight: 700; color: var(--muted); }
.amount-in input { border: 0; background: none; font-size: 36px; font-weight: 760; width: 100%; padding: 4px 0; font-family: var(--font-num); outline: none; min-width: 0; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.opt {
  border: 1px solid var(--line); background: var(--card); border-radius: 14px; padding: 10px 6px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 600; text-align: center;
}
.opt .oi { font-size: 20px; line-height: 1; }
.opt[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); color: var(--fg); box-shadow: inset 0 0 0 1px var(--accent); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--line); padding: 0; }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.btn {
  border: 0; border-radius: 14px; padding: 14px 16px; font-weight: 700; font-size: 16px;
  background: var(--accent); color: var(--accent-ink); width: 100%;
}
.btn.ghost { background: var(--sunk); color: var(--fg); }
.btn.danger { background: none; color: var(--out); border: 1px solid color-mix(in srgb, var(--out) 40%, transparent); }
.btn-row { display: flex; gap: 10px; }
.btn-row > * { flex: 1; }
.btn:disabled { opacity: 0.55; }

.ex { background: var(--card); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); }
.ex .ex-head { display: flex; gap: 8px; align-items: center; }
.ex .ex-head input { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 6px 2px; font-weight: 650; background: none; font-size: 16px; }
.set { display: grid; grid-template-columns: 28px 1fr 1fr 32px; gap: 8px; align-items: center; }
.set .no { font-size: 13px; color: var(--muted); font-weight: 650; text-align: center; }
.set input { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; background: var(--bg); font-family: var(--font-num); font-size: 16px; }
.x { border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; padding: 4px; }
.small-btn { border: 0; background: var(--sunk); border-radius: 10px; padding: 8px 12px; font-weight: 650; font-size: 14px; }
.photo-pick { display: flex; gap: 12px; align-items: center; }
.photo-pick .ph { width: 92px; height: 115px; border-radius: 14px; background: var(--sunk); overflow: hidden; display: grid; place-items: center; flex: none; color: var(--muted); font-size: 13px; text-align: center; }
.photo-pick .ph img { width: 100%; height: 100%; object-fit: cover; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.pick-grid button { border: 2px solid transparent; border-radius: 12px; padding: 0; overflow: hidden; background: var(--card); text-align: left; }
.pick-grid button[aria-pressed="true"] { border-color: var(--accent); }
.pick-grid .ph { aspect-ratio: 1; background: var(--sunk); display: grid; place-items: center; }
.pick-grid .ph img { width: 100%; height: 100%; object-fit: cover; }
.pick-grid .ph .sw { width: 30px; height: 30px; border-radius: 50%; }
.pick-grid .n { font-size: 11px; padding: 4px 6px; font-weight: 600; }

/* ---------- login ---------- */
.login { min-height: 70vh; display: grid; place-items: center; }
.login form { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 14px; text-align: center; }
.login .logo { width: 72px; height: 72px; margin: 0 auto 4px; border-radius: 18px; }
.login h1 { margin: 0; font-size: 28px; }
.login p { margin: 0; color: var(--muted); }
.err { color: var(--out); font-size: 14px; min-height: 20px; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; z-index: 60; transform: translate(-50%, 20px);
  bottom: calc(var(--tabs-h) + env(safe-area-inset-bottom, 0px) + 86px);
  background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; max-width: calc(100% - 32px); text-align: center;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   Monochrome refinements (override the shared rules above)
   ========================================================= */
.card { border: 1px solid var(--line); box-shadow: none; }
.icon-btn { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.month-switch button { background: var(--card); border: 1px solid var(--line); box-shadow: none; }
.quick button { border: 1px solid var(--line); box-shadow: none; }
.wcard { border: 1px solid var(--line); box-shadow: none; }

/* Emoji become grayscale so the whole app stays black & white. */
.ico, .qi, .oi, .chip-i, .cat-bars .r > span:first-child { filter: grayscale(1) contrast(1.1); }

/* Type: tighter, heavier, more editorial. */
.head h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.035em; }
.big-number { font-size: 48px; font-weight: 800; letter-spacing: -0.045em; }
.tile .big { font-size: 28px; font-weight: 800; letter-spacing: -0.035em; }
.card h2 { font-size: 11px; letter-spacing: 0.14em; color: var(--muted); font-weight: 700; }
.card h2 .link { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; }

/* Bars: solid ink on a light track; over budget turns into diagonal stripes. */
.bar { height: 8px; background: var(--sunk); }
.bar > i { background: var(--fg); }
.bar.over > i { background: repeating-linear-gradient(45deg, var(--fg) 0 4px, transparent 4px 8px); box-shadow: inset 0 0 0 1px var(--fg); }

/* Pills: outlined for warnings, inverted for the card. */
.pill { background: none; border: 1px solid var(--line); color: var(--muted); letter-spacing: 0.04em; }
.pill.card { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.pill.fix, .pill.donate { background: var(--bg); border-color: var(--fg); color: var(--fg); }

/* Week dots. */
.week .dot { background: none; border: 1.5px solid var(--line); color: var(--accent-ink); }
.week .dot.on { background: var(--fg); border-color: var(--fg); }
.week .today .dot { box-shadow: none; border-color: var(--fg); border-style: dashed; }
.week .today .dot.on { border-style: solid; }

/* Tab bar: frosted, with a small bar over the active tab. */
.tabs { background: color-mix(in srgb, var(--bg) 82%, transparent); border-top: 1px solid var(--line); }
.tabs a { position: relative; color: var(--muted); }
.tabs a[aria-current="page"] { color: var(--fg); }
.tabs a[aria-current="page"]::before { content: ""; position: absolute; top: -7px; width: 22px; height: 3px; border-radius: 0 0 3px 3px; background: var(--fg); }

/* Floating button: solid ink pill. */
.fab { background: var(--fg); color: var(--bg); box-shadow: 0 10px 30px rgb(0 0 0 / 0.25); }

/* Chips, segments, options. */
.chip { background: var(--bg); border-color: var(--line); }
.chip[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.seg { background: var(--sunk); }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); box-shadow: none; }
.opt[aria-pressed="true"] { background: var(--fg); border-color: var(--fg); color: var(--bg); box-shadow: none; }
.opt[aria-pressed="true"] .oi { filter: grayscale(1) invert(1); }
.swatches button[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--fg); }
.pick-grid button[aria-pressed="true"] { border-color: var(--fg); }

/* Buttons. */
.btn { background: var(--fg); color: var(--bg); border-radius: 16px; }
.btn.ghost { background: var(--sunk); color: var(--fg); }
.btn.danger { color: var(--fg); border: 1px solid var(--fg); text-decoration: none; }
.small-btn { background: var(--sunk); border: 1px solid var(--line); }
.sheet .bar-top button { color: var(--fg); }
.sheet .bar-top button:last-child { font-weight: 800; }

/* Inputs. */
.input, .field input, .field select, .field textarea, .amount-in { background: var(--bg); }
.amount-in { border: 0; border-bottom: 2px solid var(--fg); border-radius: 0; padding: 6px 2px; }
.amount-in input { font-size: 46px; font-weight: 800; letter-spacing: -0.04em; }
.amount-in span { font-size: 34px; color: var(--fg); }

/* Compact category picker: two swipeable rows of small chips. */
.cat-rail {
  display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); gap: 8px;
  overflow-x: auto; scroll-snap-type: x proximity; padding: 2px 2px 6px; margin: 0 -2px;
  scrollbar-width: none;
}
.cat-rail::-webkit-scrollbar { display: none; }
.cat-rail .chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 10px; font-size: 13.5px; scroll-snap-align: start; }
.cat-rail .chip[aria-pressed="true"] .chip-i { filter: grayscale(1) invert(1); }

/* Sheet & toast. */
.sheet { background: var(--bg); border-top: 1px solid var(--line); }
.sheet .bar-top { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 6px; }
#toast { background: var(--fg); color: var(--bg); border-radius: 99px; }
.collage { background: var(--line); }
.week .d { font-weight: 700; }

/* List rows: text takes the space, amount sits on the right edge. */
.item .grow { flex: 1; min-width: 0; }
