/* Cruxbook "Lochraster": product look on top of base.css and tokens.css. Ported from the approved
   design kit (breakfinder-design: mockups/web-public/sport-kit-bouldern/bouldern.css).
   Colours only from token variables. Hold colours are data of a gym's colour system and only
   appear as dots, holds or tape stripes with an ink outline, never behind text. */

@font-face {
  /* bin/new-sport asked Fontsource for weight 700, which Permanent Marker does not have. */
  font-family: "Permanent Marker";
  src: url("/assets/permanent-marker-400-243826b7.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.hand { font-family: var(--f-hand); font-weight: 400; }
.small { font-size: var(--fs-sm); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wordmark { letter-spacing: .005em; }
.page-title.wordmark { font-size: clamp(30px, 6vw, 44px); line-height: 1; }
.section-title { font-size: var(--fs-xl); margin: var(--space-5) 0 var(--space-3); }
.mt { margin-top: var(--space-4); }

/* Scene: both phases are drawn, the theme picks one. */
.scene { display: block; width: 100%; border-radius: var(--radius-md); overflow: hidden; border: 1.5px solid var(--line); background: var(--sunk); }
.scene svg { display: block; width: 100%; height: 100%; }
.scene.banner { aspect-ratio: 358 / 150; }
.scene.banner.wide { aspect-ratio: 900 / 260; margin: var(--space-4) 0; }
.scene-night { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .scene-day { display: none; }
  :root:not([data-theme="light"]) .scene-night { display: inline; }
}
:root[data-theme="dark"] .scene-day { display: none; }
:root[data-theme="dark"] .scene-night { display: inline; }

/* T-nut grid as the texture of logbook surfaces */
.tnut, .wl { background-image: radial-gradient(circle, color-mix(in srgb, var(--ink) 14%, transparent) 1.3px, transparent 1.6px); background-size: 22px 22px; background-position: 11px 11px; }
.tapes { vertical-align: middle; flex: none; max-width: 100%; height: auto; }
.hold-icon { flex: none; display: block; }

/* Dots, numbers, chips */
.dots { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.dot { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; padding: 0; }
.dot.lg { width: 30px; height: 30px; }
button.dot { cursor: pointer; }
.numgrade { font: 600 11px/18px var(--f-mono); padding: 0 6px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.chip.soon { opacity: .85; border-style: dashed; }
.filter { margin: var(--space-3) 0; }
.proj { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 2px 8px; margin-top: 4px; border-radius: var(--radius-pill); border: 1.5px solid var(--line); background: var(--tape); color: var(--on-tape); white-space: nowrap; }
.bolt { display: inline-block; width: 14px; height: 14px; flex: none; background: var(--flash); border: 1.5px solid var(--line); border-radius: 3px; clip-path: polygon(60% 0, 10% 58%, 48% 55%, 30% 100%, 92% 38%, 54% 42%); }

/* Session live: the phone at the wall */
.live-wrap { max-width: 560px; margin: 0 auto; display: grid; gap: 12px; }
.live-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.live-head h1 { margin: 0; font-size: clamp(26px, 7vw, 34px); line-height: 1; }
.live-head form { margin: 0; }
.live { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: var(--radius-md); background: var(--watch-bg); color: var(--watch-ink); }
.live .num { font-size: 26px; }
.live .totals { font-size: 16px; font-weight: 700; line-height: 1.25; }
.live small { display: block; font-size: 13px; color: var(--watch-muted); }
.live .right { text-align: right; margin-left: auto; }
.live-tapes { min-height: 26px; overflow-x: auto; }
.no-tops { font-size: 13px; }
.holds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.holdbtn { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: var(--radius-md);
  border: 1.5px solid var(--line2); background: var(--surface); color: var(--ink); font: 600 13px/1.2 var(--f-ui); text-decoration: none; min-width: 0; min-height: 96px; }
.holdbtn b { font-size: 14px; }
.holdbtn small { color: var(--muted); font-size: 11px; font-family: var(--f-mono); }
.holdbtn .cnt { font-size: 11px; color: var(--muted); text-align: center; }
.holdbtn[aria-pressed="true"] { border: 2.5px solid var(--line); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.sheet { border-radius: 22px 22px 14px 14px; border: 1.5px solid var(--line); background: var(--surface); padding: 12px 14px 14px; box-shadow: 0 -8px 24px rgba(0, 0, 0, .12); }
.sheet[hidden] { display: none; }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line2); margin: 0 auto 10px; }
.sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.sheet-head b { font-size: 16px; }
.sheet-head span { font-size: 12px; }
.sheet .target { border: 0; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.sheet .target[hidden] { display: none; }
.sheet .acts { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 10px; }
.bigbtn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 72px; border-radius: 16px; font: 800 22px/1 var(--f-display); letter-spacing: .02em; border: 2px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.bigbtn small { font: 600 11px/1.2 var(--f-ui); letter-spacing: 0; opacity: .85; }
.bigbtn.top { background: var(--event); color: var(--on-event); border-color: var(--event); font-size: 28px; }
.flash-note { display: flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.sheet-empty { text-align: center; font-size: 14px; margin: 0; }
.live-tools { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.live-tools form { margin: 0; }
.btn[disabled] { opacity: .5; cursor: default; }

/* Start + onboarding */
.start-gyms { display: grid; gap: 10px; max-width: 560px; }
.start-gyms form { margin: 0; }
.start-gym { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; text-align: left; padding: 14px; border-radius: var(--radius-md);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; box-shadow: 0 4px 14px rgb(0 0 0 / .25); }
.start-gym .gym-name { font: 800 22px/1.05 var(--f-display); }
.start-gym .dots { grid-column: 1; }
.start-gym .go { grid-row: 1 / span 2; grid-column: 2; font-weight: 700; color: var(--accent); }
.onboarding { max-width: 560px; display: grid; gap: 10px; }

/* Gyms and colour systems */
.halls { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-bottom: var(--space-5); }
.hall { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: center; padding: 12px; border: 1.5px solid var(--line2); border-radius: var(--radius-md); background: var(--surface); }
.hall b { font-size: 15px; }
.hall .dots, .hall .meta, .hall .hall-actions { grid-column: 1 / -1; }
.hall .meta { font-size: 12px; color: var(--muted); }
.hall-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.systems { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.form-page { max-width: 720px; }
.scale-kind { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.scale-kind legend { font-weight: 600; font-size: var(--fs-sm); margin-bottom: 4px; }
.scale-kind .kind { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; font-size: 14px; }
.field .label { font-weight: 600; font-size: var(--fs-sm); }
.palette { gap: 8px; }
.seq { display: grid; gap: 4px; }
.seq-row { display: grid; grid-template-columns: 22px minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .8fr) auto; gap: 8px; align-items: center; font-size: 13px; padding: 4px 0; border-bottom: 1px dashed var(--line2); }
.seq-row.head { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.seq-row.removed { opacity: .45; text-decoration: line-through; }
.seq-row .grip { color: var(--muted); text-align: center; }
.swatch-cell { display: flex; align-items: center; gap: 6px; min-width: 0; }
.swatch-cell select { min-width: 0; }
.remove { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; color: var(--muted); white-space: nowrap; }
.kind-numbers .swatch-cell, .kind-numbers .palette, .kind-numbers .field:has(.palette) { display: none; }
.kind-numbers .seq-row { grid-template-columns: 22px minmax(0, 1fr) minmax(0, .8fr) auto; }
.kind-numbers .seq-row.head span:nth-child(2) { display: none; }
@media (max-width: 560px) {
  .seq-row { grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr); }
  .seq-row .fb { grid-column: 2; }
  .seq-row .remove { grid-column: 3; }
  .seq-row.head { display: none; }
  .kind-numbers .seq-row { grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr); }
}
.liftsync { max-width: 560px; }

/* Logbook */
.wl { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "top" "main" "data"; gap: 18px; padding: var(--space-4); margin: 0 calc(-1 * var(--space-4)); border-radius: var(--radius-md); }
@media (min-width: 900px) { .wl { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "head top" "main top" "main data"; grid-template-rows: auto auto 1fr; padding: var(--space-5); margin: 0; } }
.wl-head { grid-area: head; min-width: 0; }
.wl-main { grid-area: main; min-width: 0; }
.wl-top, .wl-data { display: grid; gap: 14px; align-content: start; min-width: 0; }
.wl-top { grid-area: top; }
.wl-data { grid-area: data; }
.tape-rows { display: grid; gap: 2px; justify-items: start; }
.hardest { display: inline-flex; align-items: center; gap: 5px; color: var(--ink); }
.entries { padding: 4px 14px; }
.entry { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line2); min-width: 0; color: inherit; text-decoration: none; }
.entry:last-child { border-bottom: 0; }
.entry:hover b { text-decoration: underline; }
.entry .date { font-family: var(--f-display); font-weight: 800; font-size: 26px; line-height: 1; text-align: center; min-width: 42px; }
.entry .date small { display: block; font: 700 10px/1.4 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.entry .what { min-width: 0; display: grid; gap: 3px; }
.entry .what b { font-size: 15px; }
.entry .meta, .visit-meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 10px; }
.visit-meta { font-size: 13px; }
.month-tops { margin: 4px 0; }
.month-tops .hand { font-size: 36px; line-height: 1; }
.project-card { color: inherit; text-decoration: none; display: grid; gap: 4px; }
.project-line { display: flex; gap: 10px; align-items: center; font-size: 14px; }

/* Session detail and projects */
.visit-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .visit-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.probs { display: grid; gap: 8px; align-content: start; }
.prob { display: grid; grid-template-columns: 34px 1fr auto; gap: 4px 10px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line2); border-radius: var(--radius-md); background: var(--surface); color: inherit; text-decoration: none; }
.prob.group .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.prob.group .chips .res { font-size: 13px; padding: 4px 8px; border: 1px solid var(--line2); border-radius: 6px; }
.prob.group .chips .res-flash, .prob.group .chips .res-top { border-color: transparent; }
.prob.project { border-style: dashed; border-color: var(--line); }
.prob-body { min-width: 0; display: grid; gap: 2px; }
.prob .res { font: 800 15px/1 var(--f-display); letter-spacing: .03em; text-transform: uppercase; }
.res-flash { background: var(--flash); color: var(--on-flash); padding: 4px 8px; border-radius: 6px; }
.res-top { background: var(--event); color: var(--on-event); padding: 4px 8px; border-radius: 6px; }
.res-open { color: var(--muted); }
.tries { display: flex; gap: 3px; flex-wrap: wrap; margin-top: 3px; }
.tries i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.tries i.t { background: var(--event); }
.visit-side { display: grid; gap: 12px; align-content: start; }
.buy { border: 2px solid var(--accent); border-radius: var(--radius-md); padding: 12px 14px; background: var(--surface); }
.buy h3 { font-size: 24px; margin: 2px 0 6px; line-height: 1.05; }
.buy p { margin: 0 0 8px; font-size: 14px; }
.buy .row, .locked .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.buy.lapse { margin-bottom: var(--space-4); max-width: 720px; }
.project-head { display: flex; gap: 14px; align-items: center; margin: var(--space-2) 0 var(--space-4); }
.project-head .page-title { margin: 0; }
.project-head p { margin: 4px 0 0; }
.facts-cards { margin-bottom: var(--space-3); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.facts-cards .card { padding: 10px 12px; }
.big-num { font-size: 44px; line-height: 1; margin: 6px 0 0; }
.facts-cards .big-num { font-size: 32px; margin-top: 2px; }
.history { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.history li { display: grid; grid-template-columns: 90px 1fr auto; gap: 10px; align-items: center; border-bottom: 1px dashed var(--line2); padding-bottom: 6px; }
.plain-list { margin: 6px 0 0; padding-left: 18px; }

/* Stats */
.stats-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 96px; padding-top: 4px; }
.bars.tall { height: 120px; }
.bars i { flex: 1; background: var(--line2); border-radius: 3px 3px 0 0; min-width: 4px; }
.bars i.hi { background: var(--accent); }
.axis { display: flex; justify-content: space-between; gap: 4px; font: 11px var(--f-mono); color: var(--muted); margin-top: 4px; }
.flash-rate { margin: 2px 0 4px; font-size: 15px; }
.flash-rate b { font-size: 30px; }
.pyr { display: grid; gap: 5px; }
.pyr-row { display: grid; grid-template-columns: 64px 1fr 30px; gap: 8px; align-items: center; font: 12px var(--f-mono); color: var(--muted); }
.pyr-row .bar { height: 16px; display: flex; justify-content: center; }
.pyr-row .bar i { display: block; height: 100%; border: 1.5px solid var(--line); border-radius: 3px; }
.locked .blur { filter: blur(3px); opacity: .55; pointer-events: none; margin: 6px 0; }
.locked .gate-text { font-size: 14px; margin: 6px 0 10px; }

/* Landing */
.landing { width: 100%; }
.hero { position: relative; min-height: 520px; display: flex; align-items: flex-start; border-bottom: 1.5px solid var(--line); }
.hero .art { position: absolute; inset: 0; overflow: hidden; }
.hero .art svg { width: 100%; height: 100%; display: block; }
.hero .copy { position: relative; padding: 40px max(24px, calc((100% - 1180px) / 2)); max-width: 700px; box-sizing: content-box; }
.hero h1 { font-size: clamp(40px, 7vw, 72px); line-height: .95; margin: 8px 0 12px; text-transform: uppercase; }
.hero p { font-size: 17px; margin: 0 0 14px; max-width: 46ch; }
.hero .paper { background: color-mix(in srgb, var(--bg) 90%, transparent); border: 1.5px solid var(--line); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: 6px 6px 0 var(--line); }
.web-sec { padding: 36px 16px; border-bottom: 1px solid var(--line2); }
.web-sec .inner { max-width: 1180px; margin: 0 auto; }
.web-sec .big { font-size: clamp(28px, 4.4vw, 42px); margin: 4px 0 16px; line-height: 1; text-transform: uppercase; }
.step { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; }
.step .k { font-family: var(--f-hand); font-size: 34px; line-height: 1; color: var(--accent); }
.step p { margin: 4px 0 0; }
.price { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); margin-bottom: var(--space-4); }
.price .card ul { margin: 8px 0 0; padding-left: 18px; font-size: 14px; }
.price .card.premium { border: 2px solid var(--accent); }
.price .card ul.prices { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; font-size: 16px; font-weight: 600; }
.colors-fold > summary { cursor: pointer; font-weight: 700; padding: 6px 0; margin-bottom: 8px; }
.price .prices li { padding-bottom: 6px; border-bottom: 1px dashed var(--line2); }
.watch-shots { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 24px 16px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.watch-shots li { text-align: center; }
.watch-shots img { width: 100%; max-width: 240px; height: auto; border-radius: 50%; box-shadow: 0 4px 14px rgb(0 0 0 / .25); }
.watch-shots p { margin: 10px auto 0; max-width: 24ch; font-size: 14px; }
@media (max-width: 640px) {
  .hero { flex-direction: column; min-height: 0; }
  .hero .art { position: relative; inset: auto; height: 220px; width: 100%; }
  .hero .copy { padding: 18px 16px 24px; }
  .hero .paper { background: transparent; border: 0; box-shadow: none; padding: 0; }
}

/* Phone: five tabs fixed to the bottom, like the app (cruxbook#46). The header shrinks to the wordmark. */
.tabbar { display: none; }
@media (max-width: 700px) {
  .signed-in .site-nav { display: none; }
  .has-tabbar { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: block;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    border-top: 1px solid var(--line2); background: color-mix(in srgb, var(--surface) 96%, transparent); backdrop-filter: blur(10px); }
  .tabbar ul { list-style: none; margin: 0 auto; padding: 0; max-width: 480px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
  .tabbar a { display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--muted);
    text-decoration: none; border-radius: var(--radius-sm); }
  .tabbar a[aria-current="page"] { color: var(--ink); background: var(--sunk); }
  .signed-in .site-footer { display: none; }
}
.site-nav .nav-main { display: contents; }
.site-footer .priv { white-space: normal; }

/* Language switch in the footer */
.locale-switch { display: inline-flex; gap: .75rem; }
.locale-switch a[aria-current="true"] { font-weight: 700; text-decoration: none; }

/* Legal pages (LegalController) and the links to them in footer, account and paywall. */
.legal { max-width: 70ch; }
.legal section { margin-top: var(--space-6); }
.legal h2 { font-size: var(--fs-xl); margin: 0 0 var(--space-2); }
.legal p, .legal li { line-height: 1.6; }
.legal ul { padding-left: 1.2em; }
.legal a { color: inherit; text-underline-offset: 3px; }
.legal mark.todo { background: var(--c-flash); color: var(--c-marker); padding: 0 .2em; border-radius: 3px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: var(--fs-sm); }
.legal-links a { color: inherit; }

/* Blog (ActivityPlatform::BlogController): list cards and the article text. */
.blog-list { display: grid; gap: var(--space-4); margin-top: var(--space-5); }
.blog-card h2 { margin: 0 0 var(--space-2); }
.blog-card h2 a { color: inherit; text-decoration: none; }
.blog-pagination { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-5); }
.blog-post { max-width: 70ch; }
.blog-body { margin-top: var(--space-5); }
.blog-body h2 { font-size: var(--fs-xl); margin: var(--space-6) 0 var(--space-2); }
.blog-body h3 { margin: var(--space-5) 0 var(--space-2); }
.blog-body p, .blog-body li { line-height: 1.65; }
.blog-body a { color: inherit; text-underline-offset: 3px; }
.blog-body table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.blog-body th, .blog-body td { text-align: left; padding: var(--space-2); border-bottom: 1px solid var(--line2); }
.blog-body img { max-width: 100%; height: auto; }
.blog-disclosure { margin: var(--space-4) 0; }
.watch-shots + .note .chip { height: auto; white-space: normal; }

/* Notice at the wall: floats above the tab bar, never takes room in the flow (cruxbook#39). */
.toast-region { position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; justify-content: center; padding: 0 16px; pointer-events: none; }
.toast-region:empty { display: none; }
.toast { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 528px; padding: 10px 14px; border-radius: var(--radius-md);
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.toast-alert { border-color: var(--warn); }
.toast-form { margin: 0; }
/* Taps waiting for signal, or just sent (cruxbook#40). */
.sync-status { margin: 0 0 8px; padding: 6px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--warn); font: 600 13px/1.3 var(--f-ui); }
.sync-status[hidden] { display: none; }
.sync-status[data-state=synced] { border-color: var(--line); }
.toast-undo { min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: transparent; color: var(--ink); font: 700 14px/1 var(--f-ui); cursor: pointer; white-space: nowrap; }
@media (min-width: 701px) { .toast-region { bottom: 16px; } }

/* Session nachtragen and editing boulders (cruxbook#38) */
.times { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--space-3); }
.times > div { display: grid; gap: 4px; min-width: 0; }
.counts { display: grid; gap: 6px; }
.count-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) repeat(3, 62px); gap: 6px; align-items: center; }
.count-row.head { font-size: 12px; color: var(--muted); text-align: center; }
.count-row input { width: 100%; min-height: 44px; text-align: center; }
.holds .holdbtn { cursor: pointer; }
.holds .holdbtn:has(input:checked) { border: 2.5px solid var(--line); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.holds .holdbtn:has(input:focus-visible) { outline: 2px solid var(--line); outline-offset: 2px; }
.results { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.results legend { width: 100%; }
.result-chip { min-height: 44px; cursor: pointer; }
.result-chip:has(input:checked) { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.visit-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: var(--space-3) 0 0; }
.delete-form { margin-top: var(--space-4); }
.btn.danger { border-color: var(--event); }

/* Session recap (cruxbook#42) */
.recap-hero { text-align: center; padding: var(--space-5) var(--space-4); margin-top: var(--space-3); }
.recap-main { font-size: clamp(26px, 8vw, 34px); line-height: 1.1; margin: 10px 0 0; }
.recap-line { margin: 4px 0 0; }
.recap-gold { color: var(--event); font-weight: 700; }
.recap-tapes { display: flex; justify-content: center; margin-top: var(--space-4); }
.recap-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.recap-grid .recap-wide { grid-column: 1 / -1; }
.recap-hardest { display: flex; align-items: center; gap: 8px; font-size: 20px; }
.recap-big { font-size: 30px; }
.recap-delta.up { color: var(--ok); font-weight: 700; }
.recap-delta.down { color: var(--muted); font-weight: 700; }
.recap-record { margin-top: 10px; background: var(--sunk); border-style: dashed; }
.recap-record ul { margin: 6px 0 0; padding-left: 18px; }
.recap-actions { display: flex; gap: 8px; margin: var(--space-4) 0 var(--space-2); }
.recap-actions .btn { flex: 1; }
.recap-edit { text-align: center; }

/* Progress (cruxbook#44) */
.progress .big { font-size: var(--fs-lg); margin: 4px 0; }
.progress .big .num { font-size: 32px; }
.goal-dots { display: flex; gap: 6px; margin: 8px 0; }
.goal-dots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line2); }
.goal-dots i.hi { background: var(--accent); border-color: var(--accent); }
.goal-form { gap: 8px; align-items: center; margin-top: 8px; }
.hardest-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.hardest-list li { display: flex; align-items: center; gap: 8px; }
.hardest-list li > span:first-child { min-width: 36px; color: var(--muted); }
a.progress-card { display: block; margin: var(--space-4) 0; color: inherit; text-decoration: none; }
a.progress-card p { margin: 4px 0 0; }
.empty-state { text-align: left; }

/* Gym templates (cruxbook#43) */
.template-picker { max-width: 560px; }
.template-search { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: var(--space-3) 0; }
.template-list { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: 10px; }
.template-list form { margin: 0; }
.start-gym.template { grid-template-columns: 1fr auto; }
.start-gym.template .muted { grid-column: 1; font-size: var(--fs-sm); }
.own-gym { margin: var(--space-3) 0 0; }
.own-gym .btn { display: block; text-align: center; }

/* Password with eye (sign-up) */
.password-field { position: relative; }
.password-field input { padding-right: 48px; }
.password-field .reveal { position: absolute; top: 0; right: 0; bottom: 0; width: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--muted); cursor: pointer; }
.password-field .reveal[aria-pressed="true"] { color: var(--accent); }
.password-field .reveal[hidden] { display: none; }
.template-search .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Watches: /devices and /w (cruxbook#45) */
.watches { max-width: 640px; }
.watch-img { display: block; margin: 0 auto var(--space-4); border-radius: var(--radius-lg); }
.steps { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-3); }
.step { display: grid; grid-template-columns: 36px 1fr; gap: var(--space-3); align-items: start; }
.step p { margin: 0 0 var(--space-2); }
.step-no { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: var(--fs-lg); }
.code-form { margin-top: var(--space-3); }
.code-input { font-size: var(--fs-2xl); letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.paired { list-style: none; padding: 0; margin: 0 0 var(--space-4); display: grid; gap: var(--space-3); }
.paired-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); }
.paired-item p { margin: 4px 0 0; }
.paired-item .status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.paired-item form { margin: 0; }
.test-session { margin-bottom: var(--space-4); }
.add-watch summary { cursor: pointer; font-weight: 600; }
.add-watch .steps { margin-top: var(--space-3); }
.code-card { display: grid; gap: var(--space-4); justify-items: center; text-align: center; }
.code-card .code { font-size: var(--fs-3xl); letter-spacing: .2em; margin: 0; }
.code-card form { margin: 0; }
.step .chip { white-space: normal; border-radius: var(--radius-md); }

/* Heute (cruxbook#61) */
.today-date { margin: 6px 0 0; }
.today-gym { display: grid; gap: var(--space-3); }
.today-gym .eyebrow { margin: 0; }
.today-gym-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.today-gym h2 { margin: 0; font-size: 30px; overflow-wrap: anywhere; }
.today-gym form { margin: 0; }
.today-start { display: block; width: 100%; padding: 16px; font-size: 18px; text-align: center; }
.today-others { margin: var(--space-3) 0; }
.today-others summary { cursor: pointer; font-weight: 700; color: var(--accent); padding: 6px 0; }
.today-project { display: flex; align-items: center; gap: 12px; margin: var(--space-4) 0; color: inherit; text-decoration: none; border-style: dashed; }
.today-project .today-body { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.today-project .eyebrow { margin: 0; }
.today-project .res { font: 800 15px/1 var(--f-display); letter-spacing: .03em; text-transform: uppercase; }
a.today-last { display: block; margin: var(--space-4) 0; color: inherit; text-decoration: none; }
.today-last .eyebrow { margin: 0 0 4px; }
.today-last > div:first-of-type { display: flex; justify-content: space-between; gap: 8px; }
.today-tapes { margin-top: 8px; overflow: hidden; }
.today-last .num { white-space: nowrap; }

/* Sectors and notes per boulder (cruxbook#50) */
.sector-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.sector-row input[type=text] { flex: 1; min-width: 0; }
.sector-row.removed { opacity: .45; text-decoration: line-through; }
.climb-note { margin: 2px 0 0; overflow-wrap: anywhere; }
.climb-note .chip { margin-right: 4px; }
.note-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.note-list li { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.note-target { display: flex; gap: 8px; align-items: center; }
.note-form textarea { width: 100%; box-sizing: border-box; }
.renewal .actions { display: grid; gap: 10px; }
.renewal .actions form, .renewal .actions .btn { width: 100%; box-sizing: border-box; text-align: center; }
