/* Tummy Tracker: phone-first. One column under 640px; the report widens on larger screens and prints B/W. */
:root {
  --bg: #f6f4ef;
  --paper: #ffffff;
  --ink: #1f2a2e;
  --muted: #5d6b70;
  --line: #dcd8cf;
  --brand: #2f6f6a;
  --brand-ink: #ffffff;
  --brand-soft: #e2efed;
  --danger: #b3261e;
  --danger-soft: #fbe9e7;
  --p1: #dff1ea; --p2: #f6efc9; --p3: #fbd9a8; --p4: #f6b38d; --p5: #ec8b80;
  --p-ink: #1f2a2e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .05);
  --radius: 14px;
  --tap: 48px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121719; --paper: #1b2225; --ink: #e8eef0; --muted: #9aa9ae; --line: #2e383c;
    --brand: #5fb3aa; --brand-ink: #0d1b1a; --brand-soft: #1e3432; --danger: #ff8a80; --danger-soft: #3a1f1d;
    --p1: #24443d; --p2: #4a4628; --p3: #5c4426; --p4: #643a28; --p5: #6e2e2b; --p-ink: #f1f4f5;
    --shadow: none;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121719; --paper: #1b2225; --ink: #e8eef0; --muted: #9aa9ae; --line: #2e383c;
  --brand: #5fb3aa; --brand-ink: #0d1b1a; --brand-soft: #1e3432; --danger: #ff8a80; --danger-soft: #3a1f1d;
  --p1: #24443d; --p2: #4a4628; --p3: #5c4426; --p4: #643a28; --p5: #6e2e2b; --p-ink: #f1f4f5;
  --shadow: none;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
h1, h2 { line-height: 1.2; margin: 0 0 .4rem; }
h1 { font-size: 1.45rem; }
h2 { font-size: 1.08rem; }
p { margin: .3rem 0 .6rem; }
a { color: var(--brand); }
input, textarea, select, button { font: inherit; color: inherit; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="time"], input[type="datetime-local"], textarea {
  width: 100%; min-height: var(--tap); padding: .6rem .75rem; margin: .25rem 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--paper);
}
textarea { resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

.boot { padding: 2rem 16px; color: var(--muted); }
.muted, .hint { color: var(--muted); }
.hint { font-size: .88rem; margin: .1rem 0 .4rem; }
.lead { color: var(--muted); }
.error { color: var(--danger); font-weight: 600; }
.empty { color: var(--muted); font-style: italic; }
.center { text-align: center; flex: 1; }
.row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .4rem 0; }
.row-end { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1rem; }
.row-between { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 .75rem; }

/* ---------- layout ---------- */
.shell { min-height: 100dvh; }
.page { max-width: 640px; margin: 0 auto; padding: 12px 16px calc(96px + env(safe-area-inset-bottom)); }
.is-report .page { max-width: 900px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem 0 .75rem; }
.top .sub { margin: 0; color: var(--muted); }
.top > input[type="date"] { width: auto; flex: none; min-height: 42px; padding: .3rem .5rem; }
.top h1 { white-space: nowrap; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0 0 1rem; box-shadow: var(--shadow); }
section { margin-bottom: 1rem; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--paper); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0 .55rem; color: var(--muted); text-decoration: none; font-size: .78rem; min-height: 56px; }
.tabbar a .ti { font-size: 1.25rem; line-height: 1; }
.tabbar a.on { color: var(--brand); font-weight: 700; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: var(--tap); padding: .55rem 1.1rem; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn.big { min-height: 54px; font-size: 1.05rem; flex: 1; }
.btn.small { min-height: 38px; padding: .3rem .8rem; font-size: .9rem; }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }
.btn.danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.danger-text { color: var(--danger) !important; }
.btn:disabled { opacity: .6; }
.link { background: none; border: 0; color: var(--brand); padding: .6rem 0; cursor: pointer; text-decoration: underline; min-height: 44px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); font-size: 1.3rem; cursor: pointer; text-decoration: none; color: var(--ink); flex: none; }
.icon-btn-spacer { width: 44px; flex: none; }
.pill { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: .45rem .9rem; min-height: 40px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.pill.on { background: #f3d6e4; border-color: #d98bb0; color: #5a1d3a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.on { background: #4a2738; border-color: #8a4a68; color: #f6d9e7; } }

/* ---------- chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0 .5rem; }
.chip {
  min-height: 42px; padding: .4rem .85rem; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: .95rem;
}
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-weight: 600; }
.chips.seg { flex-wrap: nowrap; gap: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; width: fit-content; max-width: 100%; }
.chips.seg .chip { border: 0; border-radius: 0; border-right: 1px solid var(--line); }
.chips.seg .chip:last-child { border-right: 0; }
.chips.yn .chip { min-width: 64px; }
.field { display: block; margin: .6rem 0 .8rem; }
.field-label { display: block; font-weight: 600; margin-bottom: .15rem; }

/* ---------- pain scale ---------- */
.scale { display: grid; gap: .5rem; margin: .5rem 0; }
.scale-btn {
  display: grid; grid-template-columns: 2.6rem 1fr; grid-template-rows: auto auto; column-gap: .6rem; align-items: center;
  text-align: left; min-height: 60px; padding: .55rem .8rem; border-radius: 14px; border: 2px solid transparent;
  color: var(--p-ink); cursor: pointer;
}
.scale-btn .n { grid-row: span 2; font-size: 1.7rem; font-weight: 800; text-align: center; }
.scale-btn .l { font-weight: 700; }
.scale-btn .d { font-size: .85rem; opacity: .85; }
.scale-btn.p1 { background: var(--p1); } .scale-btn.p2 { background: var(--p2); } .scale-btn.p3 { background: var(--p3); }
.scale-btn.p4 { background: var(--p4); } .scale-btn.p5 { background: var(--p5); }
.scale-btn.on { border-color: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); }
.scale.compact { grid-template-columns: repeat(5, 1fr); gap: .35rem; }
.scale.compact .scale-btn { grid-template-columns: 1fr; grid-template-rows: auto auto; text-align: center; padding: .45rem .2rem; min-height: 68px; }
.scale.compact .scale-btn .n { grid-row: auto; font-size: 1.5rem; }
.scale.compact .scale-btn .l { font-size: .7rem; font-weight: 600; line-height: 1.15; }

.fine { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .4rem .5rem; margin: .5rem 0 .2rem; }
.fine .btn.small { min-height: 44px; min-width: 64px; font-size: 1rem; }
.fine input[type="range"] { grid-column: 1 / -1; width: 100%; height: 36px; accent-color: var(--brand); margin: 0; }
.pain-readout { text-align: center; font-weight: 800; font-size: 1.25rem; }
.fine.unset .pain-readout { font-weight: 600; font-size: 1rem; color: var(--muted); }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-bottom: 1rem; }
.quick-btn { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .7rem .2rem; min-height: 72px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; font-size: .85rem; font-weight: 600; }
.quick-btn .qi { font-size: 1.5rem; }

.nudge, .checkin-card { display: flex; align-items: center; justify-content: space-between; gap: .75rem; text-decoration: none; color: inherit; }
.nudge { flex-direction: column; align-items: flex-start; gap: .1rem; background: var(--brand-soft); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; }
.nudge span { color: var(--muted); font-size: .9rem; }
.checkin-card div { display: flex; flex-direction: column; }
.checkin-card span { color: var(--muted); font-size: .9rem; }
.checkin-card.due { border-color: var(--brand); border-width: 2px; }
.chev { font-size: 1.8rem; color: var(--muted); }

/* ---------- entries ---------- */
.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.entry {
  width: 100%; display: grid; grid-template-columns: 2.4rem 1fr auto; align-items: center; gap: .6rem;
  text-align: left; padding: .6rem .7rem; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer;
}
.entry-icon { width: 2.4rem; height: 2.4rem; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; background: var(--brand-soft); }
.entry.pain .entry-icon { color: var(--p-ink); }
.entry.p1 .entry-icon { background: var(--p1); } .entry.p2 .entry-icon { background: var(--p2); } .entry.p3 .entry-icon { background: var(--p3); }
.entry.p4 .entry-icon { background: var(--p4); } .entry.p5 .entry-icon { background: var(--p5); }
.entry-main { display: flex; flex-direction: column; min-width: 0; }
.entry-title { font-weight: 600; overflow-wrap: anywhere; }
.entry-extra { font-size: .85rem; color: var(--muted); overflow-wrap: anywhere; }
.entry-meta { display: flex; flex-direction: column; align-items: flex-end; font-size: .82rem; color: var(--muted); white-space: nowrap; }
.entry-meta .by { font-size: .75rem; }

/* ---------- sheets ---------- */
dialog.sheet {
  width: 100%; max-width: 640px; max-height: 92dvh; margin: auto auto 0; padding: 0;
  border: 0; border-radius: 20px 20px 0 0; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column;
}
dialog.sheet:not([open]) { display: none; }
dialog.sheet::backdrop { background: rgba(0, 0, 0, .45); }
@media (min-width: 700px) { dialog.sheet { margin: auto; border-radius: 20px; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 16px .5rem; border-bottom: 1px solid var(--line); }
.sheet-head h2 { margin: 0; }
.sheet-body { overflow-y: auto; padding: .6rem 16px 0; }
.sheet-foot { position: sticky; bottom: 0; display: flex; gap: .5rem; padding: .75rem 0 calc(.9rem + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line); margin-top: .6rem; }
.timing .counts-for { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; font-size: .9rem; color: var(--muted); }
.timing .counts-for input { width: auto; min-height: 40px; }
details.more, details.flags { border: 1px solid var(--line); border-radius: 12px; padding: .2rem .8rem; margin: .6rem 0; }
details > summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
details.flags summary { color: var(--danger); }
.warn { background: var(--danger-soft); color: var(--danger); padding: .6rem .7rem; border-radius: 10px; font-size: .9rem; }

.bristol { display: grid; gap: .35rem; margin: .4rem 0; }
.bristol-btn { display: grid; grid-template-columns: 2rem 7.5rem 1fr; gap: .5rem; align-items: center; text-align: left; padding: .5rem .7rem; min-height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.bristol-btn .n { font-weight: 800; font-size: 1.15rem; text-align: center; }
.bristol-btn .l { font-weight: 600; }
.bristol-btn .d { font-size: .82rem; color: var(--muted); }
.bristol-btn.hard { border-left: 5px solid #8d6e63; }
.bristol-btn.loose { border-left: 5px solid #d4a017; }
.bristol-btn.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.bristol-btn.on .d { color: inherit; }

.sticky-save { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); display: flex; padding: .5rem 0; background: linear-gradient(transparent, var(--bg) 30%); }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow { text-align: center; font-size: .8rem; color: var(--muted); font-weight: 600; padding-bottom: 2px; }
.cal-cell {
  position: relative; aspect-ratio: 1 / 1.15; border-radius: 10px; border: 1px solid var(--line); background: var(--paper);
  color: var(--ink); text-decoration: none; display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.cal-cell.empty { border: 0; background: transparent; }
.cal-cell.future { opacity: .45; }
.cal-cell.no_data { background: repeating-linear-gradient(135deg, var(--paper) 0 5px, var(--line) 5px 6px); }
.cal-cell.partial { border-style: dashed; }
.cal-cell.pain.l2 { background: var(--p2); } .cal-cell.pain.l3 { background: var(--p3); } .cal-cell.pain.l4 { background: var(--p4); } .cal-cell.pain.l5 { background: var(--p5); }
.cal-cell.pain.l1 { background: var(--p1); }
.cal-cell.bad { box-shadow: inset 0 0 0 2.5px var(--ink); }
.cal-cell.today { outline: 3px solid var(--brand); outline-offset: 1px; }
.cal-date { position: absolute; top: 3px; left: 5px; font-size: .7rem; color: var(--muted); }
.cal-cell.pain .cal-date { color: var(--p-ink); opacity: .8; }
.cal-pain { font-weight: 800; font-size: 1.05rem; color: var(--p-ink); }
.cal-cell.no_pain .cal-pain { color: var(--muted); }
.cal-glyphs { position: absolute; top: 3px; right: 4px; font-size: .6rem; font-weight: 800; letter-spacing: .5px; }
.cal-period { position: absolute; left: 0; right: 0; bottom: 0; background: #c2185b; color: #fff; font-size: .6rem; font-weight: 700; text-align: center; line-height: 1.35; }
.legend { display: flex; flex-wrap: wrap; gap: .3rem .9rem; font-size: .8rem; color: var(--muted); margin: .8rem 0; }
.legend span { display: inline-flex; align-items: center; gap: .3rem; }
.sw { display: inline-block; width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line); }
.sw.pain { background: var(--p4); } .sw.nopain { background: var(--paper); } .sw.partial { border-style: dashed; }
.sw.nodata { background: repeating-linear-gradient(135deg, var(--paper) 0 3px, var(--line) 3px 4px); }
.sw.bad { box-shadow: inset 0 0 0 2px var(--ink); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .9rem; margin: .3rem 0 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.people { list-style: none; padding: 0; margin: 0 0 .8rem; display: grid; gap: .6rem; }
.people li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .4rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }

/* ---------- auth ---------- */
.auth { max-width: 420px; margin: 0 auto; padding: 3rem 16px; }
.auth .brand { display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem; }
.auth .brand h1 { margin: 0; }
.auth-form { display: grid; gap: .2rem; margin-top: 1rem; }
.auth-form .btn { margin-top: .6rem; }

/* ---------- toast ---------- */
#toast {
  position: fixed; left: 50%; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  display: flex; align-items: center; gap: .8rem; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--bg); padding: .7rem 1rem; border-radius: 12px; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s; z-index: 1000;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast-action { background: none; border: 0; color: var(--brand); font-weight: 700; cursor: pointer; min-height: 40px; filter: brightness(1.4); }

/* ---------- report ---------- */
.report-controls .row input[type="date"] { width: auto; flex: 1 1 9rem; }
.report-controls .row input[type="text"] { flex: 1 1 12rem; width: auto; }
.report-controls .row input.age { flex: 0 0 5rem; }
.report { --r-ink: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; font-size: .9rem; }
.r-head h1 { font-size: 1.3rem; margin: 0; }
.r-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .3rem 1rem; }
.r-range { font-weight: 600; }
.r-scale, .r-coverage, .r-legend, .r-line, .caution, .r-foot { font-size: .82rem; }
.r-flags { border: 1.5px solid var(--line); border-radius: 8px; padding: .4rem .6rem; margin: .5rem 0; }
.r-flags.has { border: 2px solid var(--ink); font-weight: 600; }
.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: .4rem; margin: .5rem 0; }
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { border: 1px solid var(--line); border-radius: 8px; padding: .35rem .5rem; }
.tv { font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.tl { font-size: .74rem; color: var(--muted); }
.heat { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: .6rem; }
.heat-dow { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); }
.heat-cell { position: relative; height: 2.6rem; border: 1px solid #bbb; display: flex; align-items: center; justify-content: center; background: #fff; color: #111; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.heat-cell.out { border-color: transparent; background: transparent; }
.heat-cell.no_data { background: repeating-linear-gradient(135deg, #fff 0 4px, #c4c4c4 4px 5px); }
.heat-cell.partial { border-style: dashed; }
.heat-cell.pain.l1 { background: #f2f2f2; } .heat-cell.pain.l2 { background: #e2e2e2; } .heat-cell.pain.l3 { background: #c4c4c4; }
.heat-cell.pain.l4 { background: #9a9a9a; } .heat-cell.pain.l5 { background: #6b6b6b; color: #fff; }
.heat-cell.bad::after { content: ""; position: absolute; inset: 2px; border: 2.5px solid #000; border-radius: 10px; pointer-events: none; }
.heat-cell.pain.l5.bad::after { border-color: #fff; }
.heat-cell.future { opacity: .35; }
.hd { position: absolute; top: 1px; left: 3px; font-size: .6rem; }
.hp { font-weight: 800; font-size: .95rem; }
.hg { position: absolute; top: 1px; right: 3px; font-size: .58rem; font-weight: 800; }
.hper { position: absolute; left: 0; right: 0; bottom: 0; background: #000; color: #fff; font-size: .55rem; font-weight: 700; text-align: center; line-height: 1.3; }
.r-legend { color: var(--muted); }
.r-charts { display: grid; grid-template-columns: 1fr; gap: .6rem; margin: .5rem 0; }
@media (min-width: 640px) { .r-charts { grid-template-columns: 1fr 1fr; } }
.r-charts figure { margin: 0; }
.r-charts figcaption { font-weight: 700; font-size: .85rem; }
.chart { width: 100%; height: auto; color: var(--ink); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .threshold { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 4 3; }
.chart .tick, .chart .axis-label, .chart .band-label { font-size: 10px; fill: var(--muted); }
.chart .band { fill: var(--line); opacity: .55; }
.chart .mk { stroke: var(--ink); stroke-width: 1.5; }
.chart .mk.solid { fill: var(--ink); }
.chart .mk.hollow { fill: var(--paper); }
.r-cols { display: grid; grid-template-columns: 1fr; gap: .8rem; }
@media (min-width: 640px) { .r-cols { grid-template-columns: 3fr 2fr; } }
.report table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.report th, .report td { text-align: left; border-bottom: 1px solid var(--line); padding: .2rem .3rem; vertical-align: top; }
.report h2 { font-size: .95rem; margin: .6rem 0 .3rem; }
.r-notes ul { margin: .2rem 0; padding-left: 1.1rem; font-size: .85rem; }
.caution { color: var(--muted); font-style: italic; }
.r-raw { margin-top: 1.5rem; }
.r-raw table { font-size: .75rem; min-width: 560px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.report { overflow-wrap: anywhere; }

@media print {
  @page { size: letter; margin: 12mm; }
  :root { --bg: #fff; --paper: #fff; --ink: #000; --muted: #444; --line: #bbb; color-scheme: light; }
  body { background: #fff; font-size: 10pt; }
  .tabbar, .no-print, #toast, dialog { display: none !important; }
  .page { padding: 0; max-width: none; }
  .report { border: 0; padding: 0; font-size: 9pt; }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .r-charts { grid-template-columns: 1fr 1fr; }
  .r-cols { grid-template-columns: 3fr 2fr; }
  .heat-cell { height: 2.6rem; }
  .heat-cell .hp { margin-bottom: .35rem; }
  .page1 { break-after: page; }
  .r-raw { margin-top: 0; }
  .table-scroll { overflow: visible; }
  .r-raw table { min-width: 0; }
  .r-raw tr, .tile, figure { break-inside: avoid; }
}
