/* =====================================================================
   Entity Lists — Today screen interaction flows.
   Low-fi wireframe storyboards. Schematic on purpose.
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --paper: #FAFAF6;
  --ink: #1A1A1A;
  --muted: #8B8B85;
  --line: #D8D6CF;
  --hl: #FFCC2E;
  --hl-soft: rgba(255, 204, 46, 0.28);
  --hl-faint: rgba(255, 204, 46, 0.12);
  --sheet-tint: #FFFEF8;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  background: var(--paper);
  color: var(--ink);
  padding: 56px 28px 100px;
  font-size: 12px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Page rail */
.page-rail {
  max-width: 1500px;
  margin: 0 auto 56px;
}

.eyebrow {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 14px;
}

h1 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  font-size: 40px;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin-bottom: 18px;
  max-width: 880px;
}

h1 em {
  font-style: italic;
  font-weight: 400;
  color: #B07A12;
}

.lede {
  font-size: 14px;
  color: var(--ink);
  max-width: 760px;
  line-height: 1.6;
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

.lede mark {
  background: var(--hl-soft);
  padding: 1px 5px;
  color: inherit;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 22px;
  font-size: 11px;
  color: var(--muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-swatch {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.legend-swatch.tap {
  border: 2px solid var(--hl);
  border-radius: 50%;
  background: var(--hl-soft);
}

.legend-swatch.sheet {
  border: 1.5px dashed var(--ink);
  border-radius: 3px;
  background: var(--sheet-tint);
}

.legend-swatch.toast {
  background: var(--ink);
  border-radius: 3px;
}

.legend-swatch.struck {
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
}

/* Flow */
.flow {
  max-width: 1500px;
  margin: 0 auto 88px;
  padding-top: 32px;
  border-top: 1.5px solid var(--ink);
}

.flow-head {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.flow-num {
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.flow-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.flow-desc {
  font-size: 12.5px;
  color: var(--ink);
  max-width: 620px;
  flex: 1;
  min-width: 280px;
  line-height: 1.55;
}

/* Storyboard */
.storyboard {
  display: flex;
  align-items: flex-start;
  gap: 4px;
  overflow-x: auto;
  padding: 8px 4px 28px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.frame-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 240px;
  flex-shrink: 0;
}

.frame-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}

.frame-label .step {
  background: var(--ink);
  color: var(--paper);
  width: 18px;
  height: 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0;
}

/* Phone wireframe */
.phone-lo {
  width: 240px;
  height: 480px;
  border: 1.5px solid var(--ink);
  border-radius: 28px;
  background: white;
  position: relative;
  overflow: hidden;
}

.phone-lo .notch {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 14px;
  background: var(--ink);
  border-radius: 8px;
  z-index: 5;
}

.screen-lo {
  position: absolute;
  top: 26px;
  left: 7px;
  right: 7px;
  bottom: 7px;
  border: 0.5px solid var(--line);
  border-radius: 22px;
  background: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Status bar */
.sb-lo {
  height: 14px;
  padding: 2px 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}

.sb-lo .ind {
  display: flex;
  gap: 2px;
  align-items: center;
}

.sb-lo .ind i {
  width: 8px;
  height: 4px;
  background: var(--ink);
  display: inline-block;
}

.sb-lo .ind i.bat {
  width: 12px;
  height: 5px;
  border: 0.5px solid var(--ink);
  background: white;
  position: relative;
}

.sb-lo .ind i.bat::after {
  content: '';
  position: absolute;
  inset: 1px 5px 1px 1px;
  background: var(--ink);
}

/* App header */
.app-h-lo {
  padding: 8px 12px 9px;
  border-bottom: 0.5px solid var(--line);
  flex-shrink: 0;
}

.app-eyebrow-lo {
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 3px;
  font-weight: 500;
}

.app-h-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.app-title-lo {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.app-h-toggle {
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: 1px solid var(--ink);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 500;
  background: white;
}

.app-h-toggle.active {
  background: var(--ink);
  color: white;
}

.app-stats-lo {
  font-size: 8.5px;
  color: var(--muted);
  margin-top: 4px;
}

/* List items */
.list-lo {
  flex: 1;
  overflow-y: hidden;
  padding-bottom: 6px;
}

.sec-h-lo {
  padding: 10px 12px 5px;
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 500;
}

.sec-h-lo .rule {
  flex: 1;
  border-top: 0.5px dashed var(--line);
}

.item-lo {
  padding: 7px 12px;
  border-bottom: 0.5px solid #F2F0EA;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.dot-lo {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  position: relative;
  background: white;
}

.dot-lo.done {
  background: var(--ink);
}

.dot-lo.done::after {
  content: '';
  position: absolute;
  width: 2.5px;
  height: 4.5px;
  border-bottom: 1px solid white;
  border-right: 1px solid white;
  transform: rotate(45deg);
  left: 2.6px;
  top: 0.5px;
}

.col-lo { min-width: 0; flex: 1; }

.item-lo .name {
  font-weight: 500;
  font-size: 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.item-lo .sub {
  font-size: 8.5px;
  color: var(--muted);
  margin-top: 1px;
}

.item-lo .reason {
  font-size: 8.5px;
  color: #B07A12;
  margin-top: 2px;
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-lo.done .name,
.item-lo.done .sub {
  text-decoration: line-through;
  color: #B5B3AB;
  text-decoration-color: #B5B3AB;
}

/* Bottom nav */
.bn-lo {
  position: absolute;
  bottom: 8px;
  left: 12px;
  right: 12px;
  height: 38px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 4;
  font-size: 8px;
}

.bn-lo .ic {
  width: 16px;
  height: 16px;
  border: 1px solid #999;
  border-radius: 3px;
}

.bn-lo .ic-mid {
  width: 36px;
  height: 36px;
  background: var(--ink);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: relative;
  top: -10px;
}

.bn-lo .ic-mid::after {
  content: '';
  width: 14px;
  height: 14px;
  background: white;
  border-radius: 50%;
}

/* Sheet (modal from bottom) */
.sheet-lo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 70%;
  background: var(--sheet-tint);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  border: 1.5px dashed var(--ink);
  border-bottom: 0;
  padding: 8px 12px 56px;
  z-index: 6;
  font-size: 9.5px;
}

.sheet-lo.deep { height: 88%; }

.sheet-handle {
  width: 36px;
  height: 3px;
  background: #B5B3AB;
  border-radius: 2px;
  margin: 4px auto 12px;
}

.sheet-eyebrow {
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 4px;
}

.sheet-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.018em;
  margin-bottom: 2px;
}

.sheet-sub {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 12px;
}

.sheet-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.sheet-action {
  border: 1px solid var(--ink);
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 9.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  font-weight: 500;
}

.sheet-action .glyph {
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  flex-shrink: 0;
  background: white;
}

.sheet-section-h {
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin: 10px 0 5px;
  font-weight: 500;
}

.sheet-row-lo {
  font-size: 8.5px;
  color: var(--ink);
  padding: 4px 0;
  border-bottom: 0.5px solid var(--line);
  display: flex;
  justify-content: space-between;
}

.sheet-row-lo .lab { color: var(--muted); }

/* Composer over sheet */
.composer-lo {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 60%;
  background: var(--sheet-tint);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  border: 1.5px dashed var(--ink);
  border-bottom: 0;
  padding: 8px 12px 12px;
  z-index: 7;
  display: flex;
  flex-direction: column;
}

.composer-area {
  border: 0.5px dashed #B5B3AB;
  border-radius: 6px;
  padding: 10px;
  font-size: 9.5px;
  color: var(--muted);
  height: 90px;
  margin-bottom: 12px;
  font-style: italic;
}

.composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.btn-lo {
  border: 1px solid var(--ink);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 10px;
  background: white;
  font-family: inherit;
  font-weight: 500;
}

.btn-lo.primary {
  background: var(--ink);
  color: white;
}

/* Toast */
.toast-lo {
  position: absolute;
  bottom: 56px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  font-size: 9px;
  padding: 7px 14px;
  border-radius: 6px;
  z-index: 5;
  display: flex;
  gap: 12px;
  align-items: center;
  letter-spacing: 0.04em;
  white-space: nowrap;
  font-weight: 500;
}

.toast-lo .undo {
  text-decoration: underline;
  font-weight: 600;
  color: var(--hl);
}

/* Tap target */
.tap {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 2px solid var(--hl);
  border-radius: 50%;
  background: var(--hl-soft);
  z-index: 8;
  pointer-events: none;
  margin-left: -15px;
  margin-top: -15px;
}

.tap::after {
  content: '';
  position: absolute;
  inset: -7px;
  border: 1px dashed var(--hl);
  border-radius: 50%;
  opacity: 0.7;
}

.tap.swipe {
  width: 40px;
  height: 16px;
  border-radius: 8px;
  margin-left: -20px;
  margin-top: -8px;
}

.tap.swipe::after {
  display: none;
}

.tap-arrow {
  position: absolute;
  z-index: 9;
  font-family: 'Bricolage Grotesque';
  font-size: 14px;
  font-weight: 700;
  color: #B07A12;
  pointer-events: none;
}

/* Recorder modal */
.recorder-lo {
  position: absolute;
  inset: 26px 7px 7px;
  border: 1.5px dashed var(--ink);
  background: var(--sheet-tint);
  border-radius: 22px;
  padding: 14px 14px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 7;
}

.rec-close-row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.rec-close {
  width: 18px;
  height: 18px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  background: white;
}

.rec-eyebrow {
  font-size: 8px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
}

.ctx-chip {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 5px 10px 5px 12px;
  font-size: 9.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hl-soft);
  font-weight: 500;
}

.ctx-chip .ctx-x {
  width: 14px;
  height: 14px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  background: white;
}

.rec-button {
  width: 76px;
  height: 76px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: white;
  margin: 24px 0 14px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rec-button.live {
  background: #C0392B;
  border-color: #C0392B;
}

.rec-button.live::after {
  content: '';
  width: 22px;
  height: 22px;
  background: white;
  border-radius: 4px;
}

.rec-button:not(.live)::after {
  content: '';
  width: 38px;
  height: 38px;
  background: #C0392B;
  border-radius: 50%;
}

.rec-state {
  font-size: 10px;
  color: var(--ink);
  margin-bottom: 6px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.rec-time {
  font-size: 26px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
}

.rec-wave {
  height: 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-bottom: 16px;
}

.rec-wave i {
  width: 2px;
  background: var(--ink);
  border-radius: 1px;
  display: inline-block;
}

.rec-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
  width: 100%;
  justify-content: center;
}

/* Map view */
.map-lo {
  flex: 1;
  position: relative;
  background: #F4F0E5;
  overflow: hidden;
}

.map-lo svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Gesture arrow between frames */
.gesture {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 230px 4px 0;
  flex-shrink: 0;
  width: 78px;
}

.gesture svg { display: block; }

.gesture-label {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  text-align: center;
  font-weight: 600;
  line-height: 1.3;
}

.gesture-label .lite {
  display: block;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
  letter-spacing: 0.1em;
  text-transform: none;
  font-size: 9.5px;
  font-style: italic;
}

/* Frame annotation */
.frame-anno {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink);
  padding: 8px 10px;
  border-left: 3px solid var(--hl);
  background: var(--hl-faint);
  max-width: 240px;
}

.frame-anno strong {
  font-weight: 600;
  background: var(--hl-soft);
  padding: 0 3px;
}

/* Notes block per flow */
.flow-notes {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 920px;
  border-top: 0.5px dashed var(--ink);
  padding-top: 18px;
}

.flow-notes h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: -0.005em;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 4px;
}

.flow-notes .note {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
  padding-left: 22px;
  position: relative;
}

.flow-notes .note::before {
  content: '!';
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  background: var(--hl);
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-family: 'Bricolage Grotesque', sans-serif;
}

.flow-notes .note strong { font-weight: 600; }

/* Footer */
.page-footer {
  max-width: 1500px;
  margin: 64px auto 0;
  padding-top: 32px;
  border-top: 1.5px solid var(--ink);
}

.page-footer h3 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.page-footer ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 14px 32px;
}

.page-footer li {
  font-size: 12.5px;
  line-height: 1.55;
  padding-left: 24px;
  position: relative;
  color: var(--ink);
}

.page-footer li::before {
  content: '?';
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
}

.page-footer li strong { font-weight: 600; }

/* Back link */
.back-link {
  font-size: 11px;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding-bottom: 1px;
  display: inline-block;
  margin-bottom: 28px;
}

.back-link:hover { opacity: 0.6; }

/* =====================================================================
   Additional flow primitives
   ===================================================================== */

/* Done-at-top variant — viewport line + motion arrows */
.viewport-line {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 1.5px dashed var(--hl);
  z-index: 3;
  pointer-events: none;
}

.viewport-line::after {
  content: 'default scroll lands here';
  position: absolute;
  right: 6px;
  top: -7px;
  background: var(--paper);
  color: #B07A12;
  font-size: 7px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0 5px;
  font-weight: 600;
}

.move-arrow {
  position: absolute;
  z-index: 6;
  color: #B07A12;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  pointer-events: none;
  text-shadow: 0 0 3px white, 0 0 6px white, 0 0 6px white;
}

.move-arrow.up::after { content: '↑'; }
.move-arrow.down::after { content: '↓'; }

.move-trail {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  border-left: 1.5px dashed #B07A12;
  opacity: 0.6;
}

/* Swipe variants */
.swipe-row {
  position: relative;
  overflow: hidden;
}

.swipe-row .item-lo {
  background: white;
  position: relative;
  z-index: 2;
}

.swipe-row.swiped-right .item-lo { transform: translateX(46px); }
.swipe-row.swiped-left .item-lo { transform: translateX(-110px); }

.swipe-bg-done {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 46px;
  background: #2D7D4F;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.swipe-bg-actions {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 110px;
  background: var(--ink);
  display: flex;
  align-items: stretch;
  z-index: 1;
}

.swipe-bg-actions span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 7.5px;
  color: white;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  border-right: 0.5px solid rgba(255,255,255,0.18);
  padding: 0 2px;
  text-align: center;
}

.swipe-bg-actions span:last-child { border-right: 0; }
.swipe-bg-actions span.hl { background: var(--hl); color: var(--ink); }

/* Carry-over end-of-day pill */
.eod-pill {
  position: absolute;
  bottom: 56px;
  left: 12px;
  right: 12px;
  background: var(--ink);
  color: white;
  border-radius: 10px;
  padding: 9px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 5;
}

.eod-pill .eod-lab {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.eod-pill .eod-lab strong {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: -0.01em;
}

.eod-pill .eod-lab span {
  font-size: 8px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.05em;
}

.eod-pill .eod-cta {
  background: var(--hl);
  color: var(--ink);
  border-radius: 5px;
  padding: 5px 9px;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Date picker (carry-over sheet) */
.date-picker-lo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}

.date-pick {
  padding: 8px 4px 6px;
  border: 0.5px solid var(--line);
  border-radius: 6px;
  background: white;
  text-align: center;
}

.date-pick.selected {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.date-pick .day {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 16px;
  font-weight: 500;
  display: block;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.date-pick .lab {
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  opacity: 0.7;
  margin-top: 2px;
  font-weight: 500;
}

/* Carried badge */
.carried-badge {
  display: inline-block;
  background: var(--hl-soft);
  color: #8A6512;
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
  font-weight: 600;
  vertical-align: middle;
}

/* Add to list — picker sheet rows */
.picker-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 2px;
  border-bottom: 0.5px solid var(--line);
}

.picker-row:last-child { border-bottom: 0; }

.picker-glyph {
  width: 18px;
  height: 18px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  flex-shrink: 0;
  background: white;
}

.picker-glyph.day { background: rgba(217, 120, 67, 0.18); border-color: #A14318; }
.picker-glyph.steady { background: rgba(31, 89, 89, 0.18); border-color: #154141; }
.picker-glyph.followups { background: rgba(123, 74, 110, 0.18); border-color: #5B3651; }

.picker-name {
  flex: 1;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: -0.012em;
  line-height: 1.2;
  min-width: 0;
}

.picker-name .picker-sub {
  display: block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8px;
  color: var(--muted);
  margin-top: 1px;
  font-weight: 400;
  letter-spacing: 0.04em;
}

.picker-count {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 8.5px;
  color: var(--muted);
  flex-shrink: 0;
}

.picker-row.create {
  margin-top: 6px;
  padding-top: 12px;
  border-top: 0.5px dashed var(--line);
  border-bottom: 0;
  color: var(--muted);
}

.picker-row.create .picker-glyph {
  border-style: dashed;
  background: white;
}

.picker-row.create .picker-name {
  color: var(--ink);
  font-style: italic;
}

/* Account detail mock screen */
.acct-h {
  padding: 10px 12px 12px;
  border-bottom: 0.5px solid var(--line);
}

.acct-name {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.05;
  margin-bottom: 3px;
}

.acct-sub {
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 10px;
}

.acct-actions-row {
  display: flex;
  gap: 5px;
}

.acct-action {
  border: 1px solid var(--ink);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 8.5px;
  font-weight: 500;
  background: white;
}

.acct-action.primary {
  background: var(--ink);
  color: white;
}

.acct-section-h {
  padding: 10px 12px 4px;
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-weight: 500;
}

.acct-row {
  padding: 7px 12px;
  border-bottom: 0.5px solid #F2F0EA;
  font-size: 9.5px;
  display: flex;
  justify-content: space-between;
}

.acct-row .lab { color: var(--muted); }

.on-list-chip {
  display: inline-block;
  background: var(--hl-soft);
  color: #8A6512;
  border: 0.5px solid #C9A055;
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  padding: 3px 7px;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 8px;
}

/* Reorder mode */
.reorder-mode-eyebrow {
  background: var(--hl);
  color: var(--ink);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
  display: inline-block;
}

.reorder-handle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5px;
  pointer-events: none;
}

.reorder-handle i {
  display: block;
  width: 14px;
  height: 1.4px;
  background: var(--muted);
  border-radius: 1px;
}

.reorder-row {
  position: relative;
  padding-right: 36px !important;
}

.reorder-row.dragging {
  background: var(--sheet-tint);
  box-shadow: 0 6px 14px rgba(0,0,0,0.16);
  z-index: 5;
  transform: translateY(-32px) scale(1.02);
  border-radius: 8px;
  border: 1px dashed var(--hl);
}

.reorder-done-btn {
  font-size: 9px;
  background: var(--ink);
  color: white;
  border: 0;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* Context menu overlay */
.ctx-scrim {
  position: absolute;
  inset: 0;
  background: rgba(20, 14, 5, 0.22);
  z-index: 9;
}

.ctx-menu {
  position: absolute;
  background: white;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  padding: 4px;
  z-index: 10;
  min-width: 160px;
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.ctx-menu-h {
  padding: 6px 10px 4px;
  font-size: 7.5px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  font-weight: 500;
}

.ctx-item {
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 10px;
  border-radius: 7px;
}

.ctx-item .ctx-glyph {
  width: 12px;
  height: 12px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  flex-shrink: 0;
}

.ctx-item.highlighted {
  background: var(--hl-soft);
}

.ctx-item.danger { color: #C0392B; }
.ctx-item.danger .ctx-glyph { border-color: #C0392B; }

/* Comparison side-by-side phones */
.compare-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 980px;
  padding: 8px 0 28px;
}

.compare-cell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.compare-cell .frame-anno { max-width: 260px; }

/* Larger phone for comparison */
.phone-lo.smaller {
  width: 220px;
  height: 440px;
  border-radius: 26px;
}

.phone-lo.smaller .notch { width: 56px; height: 12px; top: 6px; }

.phone-lo.smaller .screen-lo {
  top: 22px;
  border-radius: 20px;
}

/* Completed group footer */
.completed-group-h {
  padding: 14px 12px 4px;
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: flex;
  gap: 6px;
  align-items: center;
  font-weight: 500;
  border-top: 0.5px dashed var(--line);
  margin-top: 8px;
}

.completed-group-h .rule { flex: 1; border-top: 0.5px dashed var(--line); }
.completed-group-h .chev { font-size: 8px; color: var(--muted); }

/* Simple toast variant for confirmations */
.toast-lo.success {
  background: #2D7D4F;
}

.toast-lo.success .undo {
  color: var(--hl);
}

/* Removal indicator (follow-up dropped) */
.removed-row {
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 4px,
    var(--line) 4px,
    var(--line) 8px
  );
  margin: 2px 0;
  position: relative;
}

.removed-row::after {
  content: 'removed · activity closed';
  position: absolute;
  right: 8px;
  top: -9px;
  background: var(--paper);
  color: var(--muted);
  font-size: 7px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0 4px;
}
