/* ============================================================
   SBD — a piece of gym equipment, not a fitness app.
   Read at arm's length, bright overhead light, chalky hands.
   ============================================================ */

:root {
  /* Ground: near-black, not charcoal. Charcoal is what dies under
     bright overhead light once the glass starts reflecting it. */
  --ground:      #0A0C0E;
  --surface:     #14181C;
  --surface-2:   #1C2228;
  --hairline:    #2A333B;
  --hairline-hi: #3C4954;

  --ink:         #F5F7FA;  /* 17.4:1 on ground */
  --ink-2:       #AEBAC4;  /*  8.6:1 on ground */
  --ink-3:       #7E8B96;  /*  4.9:1 on ground — lowest we go */

  /* One accent: the working number. */
  --accent:      #F2C14E;
  --accent-ink:  #0A0C0E;

  /* Semantics are single-purpose. Red is only ever
     "harder than planned". Blue is only ever "easier". */
  --over:        #FF6B5A;
  --under:       #7FB2FF;

  --radius:   10px;
  --radius-s:  6px;
  --tap:      48px;

  --pad:      16px;
  --gap:      12px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;

  --topbar-h: 56px;
  --tabbar-h: 60px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}

/* Numbers are the interface: never let them wobble. */
.num, input[type="number"], .weight-readout, table { font-variant-numeric: tabular-nums; }

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.2; }

button, input, select, textarea { font: inherit; color: inherit; }

a { color: var(--accent); }

/* ---------- focus: visible, always, everywhere ---------- */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: var(--accent-ink);
  padding: 12px 16px; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- shell ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top);
  background: var(--ground);
  border-bottom: 1px solid var(--hairline);
}
.topbar__title { font-size: 18px; letter-spacing: -0.01em; }
.topbar__meta  { font-size: 13px; color: var(--ink-3); text-align: right; }

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--pad);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 28px);
  min-height: calc(100vh - var(--topbar-h));
}

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--ground);
  border-top: 1px solid var(--hairline);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  min-height: var(--tabbar-h);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  text-decoration: none;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.02em;
  border-top: 2px solid transparent;
  margin-top: -1px;
}
.tab[aria-current="page"] { color: var(--ink); border-top-color: var(--accent); }

/* ---------- primitives ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: var(--pad);
  margin-bottom: var(--gap);
}

.label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.muted { color: var(--ink-2); }
.small { font-size: 13px; }

.stack > * + * { margin-top: var(--gap); }
.row { display: flex; align-items: center; gap: var(--gap); }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

.btn {
  min-height: var(--tap);
  padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--hairline-hi);
  border-radius: var(--radius-s);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn:active { background: var(--hairline); }
.btn--primary {
  background: var(--accent); color: var(--accent-ink);
  border-color: var(--accent); font-weight: 700;
}
.btn--primary:active { background: #DCAE3E; }
.btn--block { width: 100%; min-height: 56px; font-size: 17px; }
.btn--quiet { background: transparent; border-color: var(--hairline); color: var(--ink-2); }
.btn[disabled] { opacity: 0.4; cursor: default; }

.input, select.input {
  min-height: var(--tap);
  width: 100%;
  padding: 0 12px;
  background: var(--ground);
  border: 1px solid var(--hairline-hi);
  border-radius: var(--radius-s);
  color: var(--ink);
}
textarea.input { padding: 10px 12px; min-height: 84px; resize: vertical; line-height: 1.5; }

/* ---------- empty states: what to do, not how it feels ---------- */
.empty {
  border: 1px dashed var(--hairline-hi);
  border-radius: var(--radius);
  padding: 24px var(--pad);
  color: var(--ink-2);
}
.empty h2 { font-size: 16px; margin-bottom: 6px; color: var(--ink); }

/* ---------- toast: the one thing that moves ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  transform: translateX(-50%) translateY(8px);
  z-index: 40;
  background: var(--surface-2);
  border: 1px solid var(--hairline-hi);
  color: var(--ink);
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  /* No transition: §12 allows motion only to confirm a logged set, and
     this appears for every action. It shows and hides outright. */
  transform: translateX(-50%);
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.toast.is-on { opacity: 1; visibility: visible; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .toast { transform: translateX(-50%); }
}

/* ---------- segmented control (lift switcher) ---------- */
.segmented {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  padding: 2px;
  margin-bottom: var(--gap);
}
.segmented__item {
  min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}
.segmented__item[aria-selected="true"] { background: var(--surface-2); color: var(--ink); }

/* ---------- forms ---------- */
.field { margin-bottom: 12px; }
.field .label { display: block; margin-bottom: 5px; }
.field--wide { grid-column: 1 / -1; }
.field--tight { margin-bottom: 8px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 380px) { .grid2 { grid-template-columns: 1fr; } }

.pill {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--hairline-hi);
  white-space: nowrap;
}
.pill--quiet { background: transparent; color: var(--ink-3); font-weight: 600; }

.toggle {
  min-height: var(--tap); min-width: 84px;
  background: var(--surface-2); border: 1px solid var(--hairline-hi);
  border-radius: var(--radius-s); font-weight: 600; cursor: pointer;
}
.toggle[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: var(--tap); padding: 0 14px;
  background: var(--surface-2); color: var(--ink-2);
  border: 1px solid var(--hairline-hi); border-radius: var(--radius-s);
  font-weight: 600; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip--sm { min-height: var(--tap); padding: 0 14px; font-size: 14px; }

/* ---------- template picker ---------- */
.tpl {
  display: block; width: 100%; text-align: left;
  padding: 14px; margin-top: 8px;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--hairline-hi); border-radius: var(--radius-s);
  cursor: pointer;
}
.tpl b { display: block; margin-bottom: 4px; }
.tpl[aria-pressed="true"] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }

/* ---------- line pickers ---------- */
.linegroup { margin-top: 14px; }
.linegroup .label { margin-bottom: 6px; }

.pick {
  display: flex; align-items: center; gap: 12px;
  width: 100%; min-height: var(--tap); padding: 8px 12px; margin-bottom: 6px;
  background: var(--surface-2); color: var(--ink); text-align: left;
  border: 1px solid var(--hairline-hi); border-radius: var(--radius-s);
  cursor: pointer;
}
.pick__box {
  width: 22px; height: 22px; flex: none;
  border: 2px solid var(--hairline-hi); border-radius: 4px;
}
.pick[aria-pressed="true"] .pick__box { background: var(--accent); border-color: var(--accent); }
.pick[aria-pressed="true"] { border-color: var(--accent); }

.linecard {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  padding: 12px; margin-bottom: 10px;
  background: var(--ground);
}

/* ---------- phase editor ---------- */
.phase { border: 1px solid var(--hairline); border-radius: var(--radius-s); padding: 12px; margin-top: 10px; }
.phase__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; gap: 8px; }
.phase__grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 10px; }
@media (max-width: 400px) { .phase__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- week 1 preview ---------- */
.preview { list-style: none; margin: 0; padding: 0; }
.preview__day { padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.preview__day:last-child { border-bottom: 0; }
.preview__head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.preview__n { font-size: 11px; font-weight: 700; letter-spacing: .08em;
              text-transform: uppercase; color: var(--ink-3); }
.preview__line { font-weight: 600; }
.preview__sets { color: var(--ink-2); font-size: 14px; margin-top: 3px; }

/* ---------- week x day grid ---------- */
.grid {
  display: grid;
  grid-template-columns: 30px repeat(var(--cols), 1fr);
  gap: 4px;
}
.grid__corner { }
.grid__head, .grid__week {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; letter-spacing: .06em;
  color: var(--ink-3);
  min-height: 22px;
}
.grid__week { justify-content: flex-start; }

.cell {
  min-height: 52px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px;
  background: var(--ground);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  color: var(--ink-3);
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
  cursor: pointer;
  padding: 2px;
}
.cell__state { font-size: 11px; line-height: 1; }
.cell--full    { background: var(--surface-2); border-color: var(--hairline-hi); color: var(--ink); }
.cell--short   { background: var(--surface); border-color: var(--hairline-hi); color: var(--ink-2); }
.cell--skipped { opacity: .45; }
.cell--today   { border-color: var(--accent); }
.cell--sel     { outline: 2px solid var(--accent); outline-offset: 1px; }
.cell--deload  { border-style: dashed; }
.cell--none    { background: transparent; border: 0; cursor: default; }

.legend { margin-top: 10px; }
.card--sel { border-color: var(--accent); }

/* ---------- RPE <-> RIR table ---------- */
.rir { width: 100%; border-collapse: collapse; margin-top: 6px; }
.rir th, .rir td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--hairline); }
.rir th { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.rir td { color: var(--ink-2); }

details.card > summary {
  cursor: pointer;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 28px;
}
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after { content: '+'; font-size: 18px; color: var(--ink-3); }
details.card[open] > summary::after { content: '−'; }

/* ============================================================
   TODAY — the only screen that matters in the gym.
   ============================================================ */

.linehead {
  font-size: 20px; font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.15;
}

.intentline {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px; font-weight: 600;
}

.flag {
  margin: 10px 0 0;
  padding: 10px 12px;
  background: var(--surface-2);
  border-radius: var(--radius-s);
  font-size: 14px;
  color: var(--ink);
  line-height: 1.4;
}
.flag--corridor, .flag--stale { color: var(--ink-2); }

/* Reads as a small text link, but the hit area is a full tap target. */
.linkbtn {
  background: none; border: 0; padding: 0 8px;
  color: var(--accent); font-weight: 600; font-size: 14px;
  cursor: pointer; text-decoration: underline;
  min-height: var(--tap);
  display: inline-flex; align-items: center;
}

/* ---------- the number that matters ---------- */
.active { border-color: var(--hairline-hi); }

.weight-readout {
  font-size: clamp(56px, 20vw, 108px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 8px 0 2px;
}
.weight-readout__u {
  font-size: 0.28em; font-weight: 600; letter-spacing: 0;
  color: var(--ink-3); margin-left: 6px;
}
.weight-readout--none { color: var(--ink-3); }

.prescript { font-size: 16px; color: var(--ink-2); margin-bottom: 16px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 4px; }
/* Grid items default to min-width:auto, and a number input's intrinsic
   width is enormous — without this the steppers push past the card. */
.fields > * { min-width: 0; }

.stepper { display: flex; align-items: stretch; gap: 6px; }
.stepper__b {
  width: 48px; min-height: var(--tap);
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--hairline-hi); border-radius: var(--radius-s);
  font-size: 22px; font-weight: 600; cursor: pointer;
  flex: none;
}
.stepper__in {
  flex: 1; min-width: 0; min-height: var(--tap);
  text-align: center;
  background: var(--ground); color: var(--ink);
  border: 1px solid var(--hairline-hi); border-radius: var(--radius-s);
  font-size: 20px; font-weight: 700;
  padding: 0 2px;
  -moz-appearance: textfield;
}
.stepper__in::-webkit-outer-spin-button,
.stepper__in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* RPE: the most-used control in the app. Nine values land as a 3x3
   keypad — no orphan row at any width, targets far bigger than 48px, and
   the values you reach for most sit nearest the thumb. */
.rpes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rpe {
  min-height: 56px;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--hairline-hi); border-radius: var(--radius-s);
  font-size: 18px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
}
.rpe[aria-pressed="true"] {
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
}

.intent {
  min-height: 34px; padding: 0 10px;
  background: transparent; color: var(--ink-3);
  border: 1px solid var(--hairline); border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .03em;
  cursor: pointer;
}
.intent[aria-pressed="true"] { color: var(--ink); border-color: var(--hairline-hi); }

/* ---------- logged rows ---------- */
.logged {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.logged:last-child { border-bottom: 0; }
.logged__role { flex: none; width: 62px; }
.logged__body { font-size: 16px; font-weight: 600; }
.logged__d { font-size: 13px; font-weight: 700; color: var(--ink-3); }
.logged__d.is-over  { color: var(--over); }
.logged__d.is-under { color: var(--under); }
.logged .linkbtn { margin-left: auto; }

/* The one animation in the app: a logged set confirming itself. */
@keyframes justlogged {
  from { background: rgba(242, 193, 78, 0.18); }
  to   { background: transparent; }
}
.just-logged { animation: justlogged 400ms ease-out; }

.upcoming {
  padding: 8px 0; color: var(--ink-2); font-size: 15px;
  border-bottom: 1px solid var(--hairline);
}
.upcoming:last-child { border-bottom: 0; }

/* ---------- stall picker: position carries it ---------- */
.card--stall { border-color: var(--hairline-hi); }
.stalls { display: flex; gap: 8px; margin-top: 10px; }
.stalls--other { margin-top: 8px; }

.stall {
  flex: 1;
  min-height: 96px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 8px 4px;
  background: var(--surface-2); color: var(--ink);
  border: 1px solid var(--hairline-hi); border-radius: var(--radius-s);
  cursor: pointer; text-align: center;
}
.stall__rom { width: 18px; height: 40px; flex: none; color: var(--ink-3); }
.stall__track { fill: var(--hairline-hi); }
.stall__mark  { fill: var(--accent); }
.stall__text { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.stall__text b { font-size: 13px; }
.stall__text .small { font-size: 11px; }

/* ---------- readiness ---------- */
.ready__row { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.ready__row .label { width: 56px; flex: none; }

/* ---------- why this weight ---------- */
.why { margin: 10px 0 0; display: grid; grid-template-columns: auto; gap: 0; }
.why dt {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3);
  margin-top: 10px;
}
.why dd { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.45; }

/* ---------- rest timer ---------- */
.restbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 10px);
  z-index: 30;
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px 8px 16px;
  background: var(--surface-2);
  border: 1px solid var(--hairline-hi);
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(0,0,0,.45);
}
.restbar__t { font-size: 20px; font-weight: 700; }

/* ============================================================
   CHARTS — hand-rolled SVG. Boldness is spent on the stall map.
   ============================================================ */
.chart { width: 100%; margin: 10px 0 6px; }
.chart__svg { display: block; max-width: 100%; }

.c-grid  { stroke: var(--hairline); stroke-width: 1; }
.c-zero  { stroke: var(--hairline-hi); stroke-width: 1.5; }
.c-tick  { fill: var(--ink-3); font-size: 11px; font-family: var(--font);
           font-variant-numeric: tabular-nums; }
.c-empty { fill: var(--ink-3); font-size: 13px; font-family: var(--font); }

.c-line  { fill: none; stroke: var(--accent); stroke-width: 2.5;
           stroke-linejoin: round; stroke-linecap: round; }
.c-dot   { fill: var(--accent); }
.c-dot--hollow { fill: var(--ground); stroke: var(--accent); stroke-width: 2; }

.c-mark  { stroke: var(--hairline-hi); stroke-width: 1; stroke-dasharray: 3 3; }
.c-mark--switch { stroke: var(--ink-3); stroke-dasharray: 1 3; }

.c-bar--over  { fill: var(--over); }
.c-bar--under { fill: var(--under); }
.c-bar--zero  { fill: var(--hairline-hi); }
.c-ready--poor { fill: rgba(255, 107, 90, 0.09); }

.c-day        { fill: var(--surface); }
.c-day--trained { fill: var(--hairline-hi); }
.c-day--gap   { fill: var(--over); opacity: .55; }

.legend { display: flex; flex-wrap: wrap; gap: 10px 14px; font-size: 12px; color: var(--ink-3); }
.legend--stall { margin: 4px 0 8px; }
.legend__i { display: inline-flex; align-items: center; gap: 6px; }
.legend__sw { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }

/* ---------- weak-point card ---------- */
.wp { border-color: var(--hairline-hi); }
.wp__head { margin: 10px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.wp__list { list-style: none; margin: 12px 0 10px; padding: 0; }
.wp__item { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--hairline); }
.wp__item b { font-size: 15px; }
.wp__item p { margin: 4px 0 0; }
.wp__n {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* ---------- history table ---------- */
.hist { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hist td { padding: 9px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.hist tr:last-child td { border-bottom: 0; }
.hist__d { width: 62px; color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.hist__m { font-size: 15px; }
.hist__e { width: 56px; text-align: right; color: var(--ink-2); font-size: 14px; }

/* ---------- block summary ---------- */
.pastblock { border-bottom: 1px solid var(--hairline); }
.pastblock:last-child { border-bottom: 0; }
.pastblock > summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  min-height: 46px; padding: 6px 0;
}
.pastblock > summary::-webkit-details-marker { display: none; }
.pastblock > summary::after { content: '+'; color: var(--ink-3); font-size: 18px; }
.pastblock[open] > summary::after { content: '−'; }
.summary-card { padding: 4px 0 12px; }

/* ---------- video angle reminder (§10) ---------- */
.videohint {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px dashed var(--hairline-hi);
  border-radius: var(--radius-s);
  color: var(--ink-2);
  font-size: 14px;
}

/* ---------- experiments ---------- */
.protocol { margin: 8px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.protocol li { margin-bottom: 5px; }

.arm {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-s);
  padding: 12px; margin-top: 10px;
}
.arm__list { list-style: none; margin: 8px 0 0; padding: 0; }
.arm__list li {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 0; border-bottom: 1px solid var(--hairline); font-size: 14px;
}
.arm__list li:last-child { border-bottom: 0; }
.arm__list .linkbtn { margin-left: auto; }
.arm__add { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.arm__add input[type="text"], .arm__add .btn { grid-column: 1 / -1; }

input[type="file"].input { padding: 10px 12px; height: auto; }
details > summary { cursor: pointer; }
