:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f6f8fb;
  --soft-green: #ecf8f4;
  --soft-orange: #fff3e5;
  --ink: #101828;
  --muted: #617089;
  --line: #e4eaf2;
  --line-strong: #d4deec;
  --green: #00866f;
  --green-dark: #006b5d;
  --green-soft: #dff4ed;
  --orange: #ff7500;
  --orange-dark: #d85e00;
  --blue: #1769e8;
  --blue-soft: #eef5ff;
  --pink: #ef4a83;
  --pink-soft: #fff0f5;
  --purple: #6f5ce8;
  --purple-soft: #f3f0ff;
  --gray: #808aa0;
  --shadow: 0 18px 54px rgba(16, 24, 40, 0.08);
  --shadow-small: 0 10px 28px rgba(16, 24, 40, 0.07);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* V54: clock-aligned mobile execution and editable planner */
.route-sheet-action {
  display: none;
}

@media (max-width: 760px) {
  .revolut-balance-row small,
  .revolut-current-asset small {
    letter-spacing: 0;
  }

  .mobile-flow-segment.current {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--flow-color);
  }

  .mobile-flow-now {
    margin: 9px 0 0;
    color: #53647f;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
  }

  .mobile-task,
  .mobile-bullet {
    min-height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    grid-template-columns: 22px minmax(0, 1fr);
    align-items: center;
    padding: 2px;
  }

  .mobile-task button,
  .mobile-bullet button {
    width: 20px;
    height: 20px;
    border: 1px solid #cbd5e3;
    border-radius: 6px;
    background: #ffffff;
    color: var(--task-color, #52627a);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 950;
  }

  .mobile-task.done button {
    border-color: var(--green);
    background: var(--green);
    color: #ffffff;
  }

  .mobile-task input,
  .mobile-bullet input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #172033;
    font: inherit;
    font-size: 12px;
    font-weight: 790;
    line-height: 1.25;
    outline: none;
  }

  .mobile-task.done input {
    text-decoration: line-through;
    color: #667792;
  }

  .mobile-bullet::before {
    display: none;
  }

  .mobile-inline-add {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 6px;
    margin-top: 10px;
  }

  .mobile-inline-add input {
    min-width: 0;
    min-height: 34px;
    border: 1px solid #e1e8f1;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 760;
  }

  .mobile-inline-add button {
    border: 0;
    border-radius: 8px;
    background: #eef8f5;
    color: var(--green-dark);
    font-size: 17px;
    font-weight: 950;
  }

  .full-map-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .full-map-layout .panel {
    padding: 12px;
  }

  .builder-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
  }

  .builder-actions button {
    min-height: 40px;
  }

  .builder-route-board {
    gap: 8px;
  }

  .builder-route-row {
    grid-template-columns: minmax(0, 1fr) 38px;
    padding: 8px;
    gap: 6px 8px;
  }

  .route-select {
    min-height: 58px;
    grid-template-columns: 56px 34px minmax(0, 1fr);
    gap: 8px;
  }

  .route-time {
    min-height: 46px;
    font-size: 12px;
  }

  .route-time small {
    font-size: 10px;
  }

  .route-icon {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .route-copy strong {
    font-size: 13px;
    line-height: 1.15;
  }

  .route-copy small {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .route-select em,
  .route-actions {
    display: none;
  }

  .route-sheet-action {
    width: 36px;
    height: 36px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #ffffff;
    display: inline-grid;
    place-items: center;
    grid-template-columns: repeat(3, 4px);
    justify-content: center;
    gap: 4px;
  }

  .route-sheet-action span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--block-color);
  }

  .route-link {
    grid-column: 1 / -1;
    padding-left: 0;
    font-size: 10px;
  }
}

.mobile-plan-coach-card {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(222, 230, 241, 0.95);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.97), rgba(247, 252, 250, 0.96)),
    #ffffff;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.07);
  padding: 16px;
}

.plan-coach-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
}

.plan-coach-hero small {
  color: #00866f;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.plan-coach-hero h3 {
  margin: 4px 0 5px;
  color: #121a2b;
  font-size: 22px;
  line-height: 1.08;
}

.plan-coach-hero p {
  max-width: 560px;
  margin: 0;
  color: #66758e;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.plan-coach-hero > span {
  min-width: 64px;
  min-height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, #00a98f, #007a6a);
  color: #ffffff;
  display: grid;
  place-items: center;
  padding: 0 12px;
  font-size: 18px;
  font-weight: 950;
  box-shadow: 0 12px 24px rgba(0, 134, 111, 0.18);
}

.plan-readiness-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.plan-readiness-item {
  min-width: 0;
  border: 1px solid #e6edf5;
  border-radius: 14px;
  background: #ffffff;
  padding: 11px;
}

.plan-readiness-item small,
.plan-readiness-item span {
  display: block;
  color: #7a879b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
}

.plan-readiness-item strong {
  display: block;
  margin: 4px 0 3px;
  color: #172033;
  font-size: 18px;
  font-weight: 950;
  line-height: 1;
}

.plan-readiness-item.ready {
  border-color: rgba(0, 134, 111, 0.2);
  background: rgba(236, 248, 244, 0.72);
}

.plan-readiness-item.warn {
  border-color: rgba(255, 117, 0, 0.24);
  background: rgba(255, 248, 232, 0.78);
}

.plan-readiness-item.risk {
  border-color: rgba(239, 74, 131, 0.24);
  background: rgba(255, 240, 245, 0.72);
}

.plan-coach-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 10px;
}

.plan-coach-actions button {
  min-height: 46px;
  border-radius: 14px;
}

@media (max-width: 900px) {
  #todayView .mobile-planner-grid {
    grid-template-columns: 1fr !important;
  }

  #todayView .mobile-planner-panel {
    min-height: auto;
  }

  #todayView .mobile-task input,
  #todayView .mobile-bullet input {
    font-size: 13px;
  }
}

@media (max-width: 900px) {
  .mobile-planner-grid {
    grid-template-columns: 1fr;
  }

  .mobile-planner-panel {
    min-height: auto;
  }

  .mobile-task input,
  .mobile-bullet input {
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .mobile-planner-grid {
    grid-template-columns: 1fr;
  }

  .mobile-planner-panel {
    min-height: auto;
  }

  .mobile-task input,
  .mobile-bullet input {
    font-size: 13px;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  letter-spacing: 0;
}

body {
  overflow-x: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}

.side-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  border-right: 1px solid #f1d8bf;
  background:
    radial-gradient(circle at 0 0, rgba(255, 117, 0, 0.08), transparent 34%),
    linear-gradient(180deg, #fffaf6 0%, #fff6ee 100%);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.brand,
.profile-card,
.section-head,
.topbar,
.mission-state,
.mission-meta,
.coach-tool,
.capture-row,
.coach-actions,
.focus-buttons {
  display: flex;
  align-items: center;
}

.brand {
  gap: 11px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ff8a18, #ff6500);
  color: #ffffff;
  font-size: 27px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(255, 117, 0, 0.22);
}

.brand h1,
.brand p,
.profile-card p,
blockquote,
.topbar h2,
.topbar p,
.mission-card h3,
.truth-box p,
.coach-rail h3,
.coach-tool small,
.section-head h3,
.section-head p,
.mini-panel h3,
.mini-panel p,
.audio-card p,
.focus-room p {
  margin: 0;
}

.brand h1 {
  font-size: 19px;
  line-height: 1.1;
}

.brand p {
  margin-top: 4px;
  color: #73543c;
  font-size: 12px;
  font-weight: 650;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-item {
  min-height: 52px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #152033;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  text-align: left;
  font-size: 15px;
}

.nav-item span {
  color: #192438;
  font-size: 19px;
  text-align: center;
}

.nav-item strong {
  font-weight: 820;
}

.nav-item.active,
.nav-item:hover {
  border-color: #ffd1a0;
  background: #fff2e4;
  color: var(--orange-dark);
  box-shadow: 0 12px 28px rgba(255, 117, 0, 0.12);
}

.nav-item.active span,
.nav-item:hover span {
  color: var(--orange);
}

.profile-card {
  margin-top: auto;
  gap: 10px;
  border: 1px solid #f1d8bf;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  padding: 12px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ff9d2e, #ff7200);
  color: white;
  font-weight: 900;
}

.profile-card strong {
  display: block;
  font-size: 13px;
}

.profile-card p {
  color: var(--muted);
  font-size: 12px;
}

blockquote {
  border: 1px solid #f3d3b2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  padding: 22px 16px;
  color: #172033;
  font-size: 16px;
  line-height: 1.45;
}

blockquote::before {
  content: "“";
  display: block;
  color: var(--orange);
  font-size: 34px;
  line-height: 0.7;
  font-weight: 900;
}

.side-actions {
  display: grid;
  gap: 6px;
}

.side-actions button {
  border: 0;
  background: transparent;
  color: #4e5b70;
  min-height: 36px;
  text-align: left;
  font-weight: 760;
}

.main {
  min-width: 0;
  padding: 26px 28px 96px;
  background:
    linear-gradient(180deg, rgba(249, 251, 253, 0.86), #ffffff 270px),
    #ffffff;
}

.topbar {
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.topbar h2 {
  font-size: 30px;
  line-height: 1.05;
}

.topbar p {
  margin-top: 8px;
  color: #53647f;
  font-size: 14px;
}

.top-metrics {
  min-width: 620px;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr)) 166px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-small);
  overflow: hidden;
}

.top-metrics div {
  min-height: 72px;
  padding: 16px 22px;
  border-right: 1px solid var(--line);
}

.top-metrics span,
.mission-state,
.mission-meta,
.truth-box strong,
.section-head p,
.coach-tool small,
.metric-list,
.legend,
.block-card small,
.inspector small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.top-metrics strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}

.top-metrics div:first-child strong {
  color: var(--green);
  font-size: 22px;
}

.outline-button,
.primary-button,
.text-button,
.play-button,
.coach-tool,
.quick-dock button {
  border-radius: 8px;
  border: 0;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 850;
}

.outline-button {
  border: 1px solid var(--line-strong);
  background: #ffffff;
  color: #172033;
  padding: 0 15px;
}

.outline-button:hover,
.coach-tool:hover {
  border-color: rgba(0, 134, 111, 0.38);
  box-shadow: 0 10px 28px rgba(0, 134, 111, 0.1);
}

.primary-button {
  background: linear-gradient(145deg, #008d77, #006b5d);
  color: #ffffff;
  padding: 0 18px;
  box-shadow: 0 18px 42px rgba(0, 107, 93, 0.18);
}

.text-button {
  background: transparent;
  color: var(--green-dark);
  min-height: 28px;
  padding: 0;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.today-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 16px;
}

.mission-card,
.coach-rail,
.day-map-card,
.mini-panel,
.panel,
.quick-dock,
.focus-pill {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow-small);
}

.mission-card {
  grid-column: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 20px;
  min-height: 262px;
  border-color: rgba(0, 134, 111, 0.24);
  box-shadow: 0 18px 52px rgba(0, 134, 111, 0.1);
  padding: 20px;
}

.mission-left {
  display: grid;
  align-content: start;
  gap: 14px;
}

.mission-state {
  gap: 12px;
}

.mission-state span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--green);
  color: white;
  font-size: 12px;
  font-weight: 950;
}

.mission-state strong {
  color: #54627c;
  font-size: 15px;
}

.mission-card h3 {
  font-size: clamp(34px, 4.1vw, 56px);
  line-height: 1;
}

.mission-meta {
  gap: 9px;
  flex-wrap: wrap;
}

.mission-meta span {
  min-height: 28px;
  border-radius: 8px;
  background: var(--soft);
  color: #41516b;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
}

#missionCategory {
  background: var(--blue-soft);
  color: var(--blue);
}

.truth-box {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.truth-box strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
}

.truth-box p {
  margin-top: 6px;
  color: #38465e;
  line-height: 1.45;
}

.mission-actions {
  display: grid;
  grid-template-columns: minmax(0, 360px) 190px;
  gap: 12px;
  margin-top: 12px;
}

.mission-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 16px;
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.mission-proof div {
  min-height: 116px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: #fbfcff;
  padding: 16px;
}

.mini-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 20px;
}

.mission-proof strong {
  display: block;
  margin-top: 12px;
  font-size: 14px;
}

.mission-proof p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.coach-rail {
  grid-column: 2;
  grid-row: span 2;
  padding: 20px;
}

.coach-rail h3 {
  margin-bottom: 18px;
  font-size: 20px;
}

.coach-tool {
  width: 100%;
  min-height: 138px;
  border: 1px solid #bde5da;
  background: linear-gradient(145deg, #ffffff, #f4fbf8);
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: center;
  gap: 10px 12px;
  text-align: left;
  padding: 18px;
  margin-bottom: 14px;
}

.coach-tool > span {
  grid-row: span 2;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 21px;
}

.coach-tool strong {
  align-self: end;
  font-size: 15px;
}

.coach-tool small {
  align-self: start;
  line-height: 1.35;
}

.coach-tool.warm {
  border-color: #ffd2a1;
  background: linear-gradient(145deg, #ffffff, #fff8ef);
}

.coach-tool.warm > span {
  background: var(--soft-orange);
  color: var(--orange);
}

.coach-tool.pink {
  border-color: #ffd0df;
  background: linear-gradient(145deg, #ffffff, #fff6f9);
}

.coach-tool.pink > span {
  background: var(--pink-soft);
  color: var(--pink);
}

.planner-spread {
  grid-column: 1;
  border: 1px solid #eadfd2;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 117, 0, 0.045) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #ffffff, #fffdfb);
  background-size: 28px 100%, auto;
  box-shadow: var(--shadow-small);
  padding: 18px;
}

.planner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1.15fr);
  gap: 14px;
}

.planner-card {
  min-height: 224px;
  border: 1px solid #eadfd2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  padding: 14px;
  box-shadow: 0 12px 26px rgba(16, 24, 40, 0.045);
}

.top-card {
  background:
    linear-gradient(145deg, rgba(0, 134, 111, 0.08), rgba(255, 255, 255, 0.9) 42%),
    #ffffff;
}

.dump-card {
  background:
    linear-gradient(145deg, rgba(255, 117, 0, 0.08), rgba(255, 255, 255, 0.9) 44%),
    #ffffff;
}

.ritual-card {
  background:
    linear-gradient(145deg, rgba(111, 92, 232, 0.08), rgba(255, 255, 255, 0.92) 42%),
    #ffffff;
}

.planner-card-head,
.planner-row,
.mini-add,
.task-actions,
.dump-actions {
  display: flex;
  align-items: center;
}

.planner-card-head {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.planner-card-head span {
  color: #243149;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.planner-card-head strong {
  min-height: 26px;
  border-radius: 999px;
  background: var(--soft);
  color: #3b485f;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.planner-list {
  display: grid;
  gap: 8px;
}

.planner-row {
  min-height: 46px;
  gap: 9px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.8);
  padding: 9px;
}

.planner-row.done {
  opacity: 0.66;
}

.planner-row.done .task-title {
  text-decoration: line-through;
}

.planner-check {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #ffffff;
  color: transparent;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 950;
}

.planner-row.done .planner-check {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.task-body {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.task-title {
  color: #1b273a;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
}

.task-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  color: #66758e;
  font-size: 11px;
  font-weight: 760;
}

.task-pill {
  min-height: 21px;
  border-radius: 999px;
  background: var(--soft);
  color: #52627a;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
}

.task-pill.planned {
  background: var(--green-soft);
  color: var(--green-dark);
}

.task-pill.top {
  background: var(--soft-orange);
  color: var(--orange-dark);
}

.task-actions,
.dump-actions {
  margin-left: auto;
  gap: 5px;
}

.task-action,
.dump-action {
  min-height: 30px;
  border: 0;
  border-radius: 8px;
  background: #eef8f5;
  color: var(--green-dark);
  padding: 0 9px;
  font-size: 11px;
  font-weight: 900;
}

.task-action.strong {
  background: var(--green);
  color: #ffffff;
}

.task-action.warm,
.dump-action.warm {
  background: var(--soft-orange);
  color: var(--orange-dark);
}

.mini-add {
  gap: 7px;
  margin-top: 11px;
}

.mini-add input {
  min-height: 38px;
  padding: 9px 10px;
  font-size: 12px;
}

.mini-add button {
  min-height: 38px;
  border: 0;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
}

.ritual-card label {
  margin: 10px 0 5px;
  color: #40516b;
  font-size: 11px;
  text-transform: uppercase;
}

.ritual-card textarea {
  min-height: 46px;
  resize: vertical;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.35;
}

.empty-row {
  min-height: 46px;
  border: 1px dashed #dce4ef;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #7b8798;
  font-size: 12px;
  font-weight: 760;
}

.day-map-card {
  grid-column: 1;
  padding: 18px;
}

.section-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-actions,
.mobile-section-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  flex-wrap: wrap;
}

.section-head.compact {
  align-items: start;
  margin-bottom: 12px;
}

.section-head h3 {
  font-size: 18px;
}

.time-ruler {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 8px 2px 10px;
  color: #586983;
  font-size: 12px;
  font-weight: 850;
}

.day-map,
.builder-map {
  position: relative;
  min-height: 128px;
  border-radius: 8px;
  background:
    repeating-linear-gradient(90deg, transparent 0, transparent calc(16.66% - 1px), #edf1f6 calc(16.66% - 1px), #edf1f6 16.66%),
    linear-gradient(180deg, #ffffff, #fbfcff);
  overflow: hidden;
}

.builder-map {
  min-height: 620px;
  background:
    repeating-linear-gradient(180deg, transparent 0, transparent 74px, #edf1f6 75px),
    #fbfcff;
}

.block-card {
  position: absolute;
  top: 16px;
  left: var(--start);
  width: var(--width);
  min-width: 92px;
  height: 94px;
  border: 1px solid var(--line);
  border-top: 3px solid var(--block-color);
  border-radius: 8px;
  background: var(--block-bg);
  color: var(--ink);
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 12px;
  text-align: left;
  box-shadow: 0 12px 28px rgba(16, 24, 40, 0.06);
}

.builder-map .block-card {
  left: 76px;
  right: 18px;
  width: auto;
  height: var(--height);
  top: var(--top);
}

.block-card:hover,
.block-card.selected {
  outline: 2px solid rgba(23, 105, 232, 0.45);
  box-shadow: 0 18px 38px rgba(23, 105, 232, 0.12);
}

.block-card.live {
  outline: 2px solid var(--blue);
}

.block-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.15;
}

.block-card small {
  display: block;
}

.now-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--now);
  z-index: 3;
  width: 2px;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(23, 105, 232, 0.09);
}

.now-marker::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--blue);
}

.map-hour {
  position: absolute;
  left: 18px;
  top: var(--top);
  transform: translateY(-50%);
  color: #63738b;
  font-size: 12px;
  font-weight: 850;
}

.mvd-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcff;
  padding: 10px 12px;
}

.mvd-row strong {
  font-size: 12px;
  text-transform: uppercase;
}

#minimumDay {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.mvd-chip,
.legend-chip {
  border-radius: 8px;
  background: var(--soft);
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  color: #334258;
  font-size: 12px;
  font-weight: 760;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.legend-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
}

.mini-panel {
  padding: 16px;
  min-height: 214px;
}

.evidence-card,
.switch-card,
.recovery-card,
.audio-card {
  grid-column: auto;
}

.section-head.compact span,
#evidenceCount {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--soft);
  color: #2c3950;
  font-size: 12px;
  font-weight: 900;
}

.evidence-list {
  display: grid;
  gap: 9px;
}

.evidence-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 38px;
  color: #26354d;
  font-size: 13px;
}

.evidence-item span:first-child {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
}

.evidence-item small {
  color: var(--muted);
}

.metric-list {
  display: grid;
  gap: 7px;
}

.metric-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.metric-row i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot);
}

.switch-card strong,
.recovery-card strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 32px;
}

.switch-bars {
  display: flex;
  gap: 5px;
  align-items: end;
  height: 54px;
  margin-top: 14px;
}

.switch-bars span {
  width: 9px;
  height: var(--bar);
  border-radius: 5px;
  background: var(--bar-color);
}

.play-button {
  width: 54px;
  height: 54px;
  margin: 14px auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green);
  color: white;
  font-size: 22px;
}

.full-map-layout,
.focus-layout,
.review-grid,
.coach-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.panel {
  padding: 20px;
}

.inspector {
  position: sticky;
  top: 20px;
}

.inspector h3 {
  margin: 0 0 6px;
  font-size: 24px;
}

.inspector-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.inspector-actions .primary-button {
  grid-column: 1 / -1;
}

.focus-room {
  min-height: 600px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 117, 0, 0.12), transparent 30%),
    linear-gradient(145deg, #08251f, #0b141f);
  color: white;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px;
}

.focus-room h3 {
  margin: 8px 0 0;
  font-size: 46px;
}

.focus-room span {
  color: #a7cfc3;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.focus-timer {
  margin: 20px 0;
  width: 230px;
  height: 230px;
  border: 12px solid rgba(255, 255, 255, 0.13);
  border-top-color: #20bf9e;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 54px;
  font-weight: 900;
}

.focus-buttons {
  gap: 10px;
  margin-top: 16px;
}

.focus-buttons .outline-button {
  background: transparent;
  color: white;
  border-color: rgba(255, 255, 255, 0.26);
}

.capture-row {
  gap: 10px;
  margin: 16px 0;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 13px;
  outline: 0;
}

input:focus,
textarea:focus,
select:focus {
  border-color: rgba(0, 134, 111, 0.45);
  box-shadow: 0 0 0 4px rgba(0, 134, 111, 0.08);
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.goal-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--goal-color);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow-small);
  padding: 18px;
}

.goal-card h3 {
  margin: 0;
}

.goal-card p {
  color: var(--muted);
  line-height: 1.45;
}

.progress-track {
  height: 9px;
  border-radius: 999px;
  background: #edf1f6;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: var(--progress);
  background: var(--goal-color);
}

label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 850;
}

.coach-output {
  min-height: 260px;
}

.coach-output h3 {
  margin-top: 0;
}

.coach-answer {
  border-left: 4px solid var(--green);
  background: var(--soft-green);
  border-radius: 8px;
  padding: 14px;
  line-height: 1.5;
}

.builder-actions,
.editor-two {
  display: grid;
  gap: 8px;
}

.builder-actions {
  grid-template-columns: auto auto;
  align-items: center;
}

.sync-note {
  display: grid;
  gap: 4px;
  border: 1px solid #cfe8e1;
  border-radius: 8px;
  background: #f3fbf8;
  padding: 12px;
  margin: 12px 0;
}

.sync-note strong {
  color: var(--green-dark);
  font-size: 13px;
}

.sync-note span {
  color: #506077;
  font-size: 12px;
  line-height: 1.35;
}

.block-editor {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.block-editor label {
  margin: 0;
  color: #33435a;
  font-size: 12px;
}

.block-editor input,
.block-editor textarea,
.block-editor select {
  margin-top: 6px;
  min-height: 40px;
  padding: 9px 10px;
  font-size: 13px;
}

.block-editor textarea {
  resize: vertical;
  line-height: 1.35;
}

.editor-two {
  grid-template-columns: 1fr 1fr;
}

.quick-dock {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  width: min(620px, calc(100vw - 40px));
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px 112px;
  gap: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
}

.quick-dock input {
  border: 0;
  background: var(--soft);
}

.quick-dock button:first-of-type {
  min-height: 54px;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  font-size: 26px;
}

.quick-dock button:last-child {
  background: var(--green);
  color: white;
  padding: 0 12px;
}

.focus-pill {
  position: fixed;
  right: 22px;
  bottom: 24px;
  z-index: 21;
  min-width: 260px;
  min-height: 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  background: var(--green);
  color: white;
  padding: 8px 12px;
}

.focus-pill.hidden {
  display: none;
}

.focus-pill span {
  font-size: 13px;
}

.focus-pill strong {
  font-size: 12px;
  opacity: 0.84;
}

.focus-pill button {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: white;
}

.toast {
  position: fixed;
  right: 22px;
  top: 22px;
  z-index: 50;
  border-radius: 8px;
  background: #101828;
  color: white;
  padding: 12px 15px;
  box-shadow: var(--shadow);
}

/* V42 concept match: planner-first Today page */
.app-shell {
  grid-template-columns: 254px minmax(0, 1fr);
}

.brand p {
  color: #26354d;
}

.nav {
  gap: 10px;
}

.nav-item {
  min-height: 52px;
  font-size: 15px;
}

.nav-item.active,
.nav-item:hover {
  border-color: #ff8b21;
  background: linear-gradient(145deg, #ff8d1c, #ff7000);
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(255, 117, 0, 0.22);
}

.nav-item.active span,
.nav-item:hover span {
  color: #ffffff;
}

.main {
  padding: 18px 18px 86px;
  background: #ffffff;
}

.topbar {
  min-height: 72px;
  display: grid;
  grid-template-columns: 210px minmax(320px, 1fr) 130px 130px 136px;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-small);
  margin-bottom: 14px;
  overflow: hidden;
}

.top-cell {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
}

.top-cell.compact-cell {
  grid-template-columns: 1fr;
  gap: 2px;
}

.top-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #667792;
  font-size: 21px;
}

.top-cell small {
  display: block;
  color: #667792;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
  text-transform: uppercase;
}

.top-cell strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}

.compact-cell:first-of-type strong,
#daysLeft {
  color: var(--orange);
  font-size: 17px;
}

#dayScore {
  color: var(--green);
  font-size: 17px;
}

.top-caret {
  color: #8090a8;
  font-weight: 900;
}

.top-plan-button {
  width: calc(100% - 22px);
  justify-self: center;
  min-height: 42px;
  padding: 0 14px;
}

.today-layout {
  grid-template-columns: minmax(0, 1fr) 256px;
  gap: 14px;
}

.mission-card,
.planner-spread,
.day-map-card {
  border-color: #dce6e2;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.055);
}

.mission-card {
  min-height: 146px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.mission-main {
  min-height: 104px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 210px;
  align-items: center;
  gap: 18px;
  padding: 20px 26px;
}

.mission-symbol {
  width: 64px;
  height: 64px;
  border: 1px solid #cfe8e1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #edf8f4;
  color: var(--green-dark);
  font-size: 47px;
  font-weight: 900;
}

.mission-kicker {
  display: block;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.mission-card h3 {
  margin-top: 8px;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.02;
}

.mission-meta {
  margin-top: 8px;
  gap: 8px;
  color: #54627c;
}

.mission-meta span {
  min-height: 0;
  background: transparent;
  padding: 0;
  color: inherit;
}

#missionLeft {
  color: var(--green-dark);
}

.mission-start {
  min-height: 50px;
  font-size: 18px;
}

.mission-why {
  min-height: 42px;
  display: grid;
  grid-template-columns: 22px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding: 0 26px;
  color: #3a4860;
  font-size: 12px;
}

.mission-why span {
  color: var(--green);
  font-size: 18px;
}

.mission-why strong {
  color: var(--green-dark);
  white-space: nowrap;
}

.mission-why p {
  margin: 0;
  min-width: 0;
}

.coach-rail {
  grid-column: 2;
  grid-row: span 3;
  display: grid;
  gap: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.coach-tool {
  min-height: 136px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-small);
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px 14px;
  align-content: center;
  padding: 18px;
}

.coach-tool > span {
  grid-row: span 2;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 25px;
}

.coach-tool strong {
  display: block;
  font-size: 17px;
}

.coach-tool small {
  display: block;
  margin-top: 7px;
  color: #3f4f69;
  font-size: 12px;
  line-height: 1.35;
}

.coach-tool em {
  grid-column: 1 / -1;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--green-dark);
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.coach-tool.purple {
  border-color: #ded8ff;
  background: #ffffff;
}

.coach-tool.purple > span {
  background: var(--purple-soft);
  color: var(--purple);
}

.coach-tool.purple em {
  display: none;
}

.audio-line {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.audio-line b {
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--green) 0 58%, #e7ecf2 58%);
}

.audio-line small {
  margin: 0;
  font-size: 12px;
}

.planner-spread {
  padding: 14px;
  background: #ffffff;
}

.planner-spread .section-head {
  margin: 0 0 10px;
}

.planner-spread .section-head h3,
.day-map-card .section-head h3 {
  font-size: 19px;
}

.planner-spread .section-head .outline-button,
.day-map-card .section-head .outline-button {
  min-height: 30px;
  padding: 0 14px;
  font-size: 12px;
}

.planner-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.planner-card {
  min-height: 216px;
  border-color: #f0d8bf;
  padding: 0;
  overflow: hidden;
  box-shadow: none;
}

.planner-card-head {
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid #f0d8bf;
  background: #fff9f1;
  margin: 0;
}

.planner-card-head span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #1f2d43;
  font-size: 12px;
  text-transform: none;
}

.planner-card-head span i {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d8842d;
  color: #ffffff;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.planner-card-head strong {
  display: none;
}

.planner-list {
  padding: 12px 12px 0;
  gap: 7px;
}

.planner-row {
  min-height: 34px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  align-items: start;
}

.planner-check {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  margin-top: 2px;
  font-size: 11px;
}

.task-title {
  font-size: 12px;
  font-weight: 720;
  line-height: 1.42;
}

.task-meta {
  margin-top: 3px;
}

.task-pill {
  min-height: 20px;
  padding: 0 6px;
  font-size: 10px;
}

.task-actions,
.dump-actions {
  opacity: 0;
  transition: opacity 160ms ease;
}

.planner-row:hover .task-actions,
.planner-row:hover .dump-actions,
.planner-row:focus-within .task-actions,
.planner-row:focus-within .dump-actions {
  opacity: 1;
}

.task-action,
.dump-action {
  min-height: 24px;
  padding: 0 7px;
  font-size: 10px;
}

.mini-add {
  margin: 12px;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 1fr 32px;
  overflow: hidden;
}

.mini-add input {
  min-height: 34px;
  border: 0;
  padding: 0 10px;
}

.mini-add button {
  min-height: 34px;
  border-radius: 0;
  background: transparent;
  color: var(--green-dark);
  font-size: 0;
}

.mini-add button::before {
  content: "+";
  font-size: 18px;
}

.ritual-card {
  min-height: 216px;
}

.ritual-card label {
  margin: 12px 14px 4px;
  color: #304057;
  font-size: 11px;
  text-transform: none;
}

.ritual-card textarea {
  min-height: 34px;
  border: 0;
  border-radius: 0;
  resize: none;
  padding: 0 14px;
  color: #4b5a72;
  font-size: 11px;
  line-height: 1.35;
  box-shadow: none;
}

.ritual-card .text-button {
  margin: 4px 14px 0;
}

.day-map-card {
  padding: 14px;
}

.day-map-card .section-head {
  margin-bottom: 8px;
}

.time-ruler {
  margin: 0 4px 8px;
  font-size: 11px;
}

.day-map {
  min-height: 112px;
  background: #ffffff;
  overflow: visible;
}

.day-map::before {
  content: "";
  position: absolute;
  left: 36px;
  right: 36px;
  top: 56px;
  border-top: 3px dotted #d8dde6;
}

.block-card {
  top: 18px;
  min-width: 116px;
  height: 76px;
  border: 1px solid #dfe7f0;
  border-top: 0;
  background: var(--block-bg);
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: 10px;
}

.block-card strong {
  font-size: 11px;
}

.block-card small {
  color: #43536a;
  font-size: 10px;
}

.block-card.live,
.block-card.selected {
  outline: 1px solid var(--green);
  box-shadow: 0 14px 28px rgba(0, 134, 111, 0.1);
}

.now-marker {
  top: 4px;
  bottom: auto;
  height: 98px;
  background: #1f2d43;
}

.mvd-row {
  display: none;
}

.legend {
  align-items: center;
  gap: 18px;
  margin-top: 8px;
}

.legend-chip {
  min-height: 24px;
  background: transparent;
  padding: 0;
}

.day-map-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.day-map-actions .outline-button {
  min-height: 34px;
  padding: 0 16px;
  font-size: 12px;
}

.day-map-actions .danger {
  color: var(--pink);
}

.score-note {
  grid-column: 1 / -1;
  min-height: 48px;
  border: 1px solid #f2d7b8;
  border-radius: 8px;
  background: #fffdf9;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0 14px;
}

.score-note span {
  color: var(--green);
  font-size: 18px;
}

.score-note p {
  margin: 0;
  color: #516178;
  font-size: 12px;
}

/* V43: planner ritual product layer */
.mission-card {
  min-height: 206px;
}

.mission-main {
  min-height: 110px;
}

.mission-proof-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #fbfffd);
}

.mission-proof-strip div {
  min-height: 62px;
  padding: 12px 26px;
}

.mission-proof-strip div + div {
  border-left: 1px solid var(--line);
}

.mission-proof-strip small {
  display: block;
  color: #667792;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.mission-proof-strip strong {
  display: block;
  margin-top: 7px;
  color: #172033;
  font-size: 13px;
  line-height: 1.35;
}

.day-map.flow-map {
  min-height: 128px;
  display: grid;
  grid-template-columns: repeat(7, minmax(112px, 1fr));
  gap: 18px;
  padding: 4px 0 2px;
  background: #ffffff;
  overflow: visible;
}

.day-map.flow-map::before {
  left: 28px;
  right: 28px;
  top: 58px;
  z-index: 0;
}

.day-step-card {
  position: relative;
  z-index: 1;
  min-height: 104px;
  border: 1px solid #dfe7f0;
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.94)),
    var(--block-bg);
  color: #172033;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  padding: 10px 8px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(16, 24, 40, 0.045);
}

.day-step-card:hover,
.day-step-card.selected,
.day-step-card.live {
  border-color: var(--block-color);
  box-shadow: 0 16px 32px rgba(0, 134, 111, 0.1);
}

.day-step-card.live {
  outline: 2px solid rgba(0, 134, 111, 0.2);
}

.day-step-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--block-bg);
  color: var(--block-color);
  font-size: 25px;
  font-weight: 950;
}

.day-step-card small {
  color: #475872;
  font-size: 10px;
  font-weight: 850;
}

.day-step-card strong {
  color: #101828;
  font-size: 11px;
  line-height: 1.18;
}

.day-step-card em {
  min-height: 24px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--block-color);
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.day-map.command-board {
  min-height: 0;
  display: grid;
  gap: 14px;
  background: transparent;
  overflow: visible;
}

.day-map.command-board::before {
  display: none;
}

.board-now {
  display: grid;
  grid-template-columns: 54px minmax(170px, 1fr) minmax(190px, 0.8fr) minmax(190px, 0.8fr) 136px;
  gap: 14px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--block-color), white 62%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.96)),
    var(--block-bg);
  padding: 16px;
}

.board-now-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--block-bg);
  color: var(--block-color);
  font-size: 24px;
  font-weight: 950;
}

.board-now-copy span,
.board-proof small,
.board-subhead span {
  color: #667792;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.board-now-copy h4 {
  margin: 4px 0;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.board-now-copy p {
  margin: 0;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.board-proof {
  min-height: 66px;
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.board-proof strong {
  display: block;
  margin-top: 6px;
  color: #1d2a3f;
  font-size: 13px;
  line-height: 1.3;
}

.board-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 14px;
}

.schedule-stack,
.unscheduled-lane {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 12px;
}

.board-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.board-subhead strong {
  color: var(--ink);
  font-size: 14px;
}

.schedule-row {
  width: 100%;
  min-height: 58px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  display: grid;
  grid-template-columns: 72px 14px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-align: left;
}

.schedule-row + .schedule-row {
  margin-top: 6px;
}

.schedule-row:hover,
.schedule-row.selected,
.schedule-row.live {
  border-color: color-mix(in srgb, var(--block-color), white 56%);
  background: var(--block-bg);
}

.schedule-time {
  color: #1c2b42;
  font-size: 13px;
  font-weight: 900;
}

.schedule-time small {
  display: block;
  margin-top: 2px;
  color: #728096;
  font-size: 11px;
}

.schedule-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--block-color);
}

.schedule-main {
  min-width: 0;
}

.schedule-main strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.schedule-main small {
  display: block;
  margin-top: 4px;
  color: #5d6c83;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.schedule-row em {
  min-height: 26px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--block-color);
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.unscheduled-lane {
  background: #fffdf9;
}

.unscheduled-task {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 1px solid #eef1f5;
  border-radius: 8px;
  background: #ffffff;
  padding: 8px;
}

.unscheduled-task + .unscheduled-task {
  margin-top: 8px;
}

.unscheduled-task span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--block-color);
}

.unscheduled-task strong {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.25;
}

.unscheduled-task button {
  min-height: 28px;
  border: 0;
  border-radius: 8px;
  background: var(--block-bg);
  color: var(--block-color);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.empty-board-state {
  min-height: 96px;
  border: 1px dashed #dce4ef;
  border-radius: 8px;
  display: grid;
  place-items: center;
  padding: 16px;
  color: #69778d;
  text-align: center;
  font-size: 13px;
  line-height: 1.35;
}

.quick-dock {
  display: none;
}

.show-dock .quick-dock {
  display: grid;
}

.today-layout > .mini-panel {
  display: none;
}

@media (max-width: 1280px) {
  .today-layout,
  .full-map-layout,
  .focus-layout,
  .review-grid,
  .coach-page {
    grid-template-columns: 1fr;
  }

  .coach-rail {
    grid-column: 1;
    grid-row: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .coach-rail h3 {
    grid-column: 1 / -1;
  }

  .coach-tool {
    margin: 0;
    min-height: 118px;
  }

  .day-map.flow-map {
    grid-template-columns: repeat(4, minmax(120px, 1fr));
  }

  .board-now,
  .board-columns {
    grid-template-columns: 1fr;
  }

  .board-proof {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 12px 0 0;
  }
}

@media (max-width: 1020px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-rail {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 30;
    height: auto;
    padding: 8px;
    border-top: 1px solid #f1d8bf;
    border-right: 0;
  }

  .brand,
  .profile-card,
  blockquote,
  .side-actions {
    display: none;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(6, minmax(52px, 1fr));
  }

  .nav-item {
    min-height: 48px;
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 0;
  }

  .nav-item strong {
    display: none;
  }

  .main {
    padding: 18px 16px 116px;
  }

  .topbar,
  .mission-card,
  .mission-proof,
  .mission-actions,
  .mvd-row,
  .capture-row,
  .focus-buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .top-metrics {
    min-width: 0;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .top-metrics div:nth-child(2) {
    border-right: 0;
  }

  .top-metrics .outline-button {
    grid-column: 1 / -1;
    margin: 10px;
  }

  .mission-proof {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }

  .coach-rail {
    grid-template-columns: 1fr;
  }

  .planner-grid {
    grid-template-columns: 1fr;
  }

  .mission-proof-strip {
    grid-template-columns: 1fr;
  }

  .mission-proof-strip div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .planner-row {
    align-items: start;
  }

  .task-actions,
  .dump-actions {
    align-self: stretch;
    display: grid;
  }

  .mini-add {
    display: grid;
    grid-template-columns: 1fr;
  }

  #minimumDay {
    grid-template-columns: 1fr;
  }

  .day-map {
    min-height: 460px;
  }

  .day-map.flow-map {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .day-map.flow-map::before {
    display: none;
  }

  .day-step-card {
    min-height: 72px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    justify-items: start;
    align-content: center;
    text-align: left;
    padding: 10px 12px;
  }

  .day-step-icon {
    grid-row: 1 / 3;
  }

  .day-step-card em {
    grid-row: 1 / 3;
    grid-column: 3;
    align-self: center;
  }

  .day-map .block-card {
    left: 14px;
    right: 14px;
    width: auto;
    top: var(--mobile-top);
    height: 62px;
  }

  .time-ruler {
    display: none;
  }

  .goals-grid {
    grid-template-columns: 1fr;
  }

  .quick-dock {
    left: 16px;
    right: 16px;
    bottom: 68px;
    width: auto;
    transform: none;
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .quick-dock button:last-child {
    display: none;
  }

  .focus-pill {
    right: 16px;
    left: 16px;
    bottom: 132px;
  }
}

@media (max-width: 620px) {
  .topbar h2 {
    font-size: 25px;
  }

  .mission-card h3 {
    font-size: 36px;
  }

  .mini-panel {
    min-height: 0;
  }
}

/* V48: mobile-first My Day planner model */
.planner-grid {
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  align-items: stretch;
}

.planner-card {
  min-height: 268px;
}

.planner-ritual-hidden {
  display: none !important;
}

.blocks-card,
.recovery-lane-card {
  display: block;
}

.blocks-card .planner-list,
.recovery-lane-card .planner-list,
.task-card .planner-list {
  grid-template-columns: 1fr;
}

.subtle-list {
  padding-top: 8px;
  border-top: 1px solid #f0e2d0;
  margin-top: 8px;
}

.planner-row {
  position: relative;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.planner-row.selected {
  border-color: color-mix(in srgb, var(--task-color, var(--green)), white 35%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--task-color, var(--green)), transparent 88%);
}

.planner-row.live {
  border-color: var(--green);
  background: #f4fbf8;
}

.block-plan-row {
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: inherit;
  text-align: left;
}

.planner-block-time {
  border-radius: 8px;
  background: #f6f8fb;
  color: #1c2b42;
  display: grid;
  place-items: center;
  min-height: 42px;
  font-size: 12px;
  font-weight: 950;
}

.planner-block-time small {
  display: block;
  color: #687891;
  font-size: 10px;
}

.recovery-row {
  grid-template-columns: 12px minmax(0, 1fr) auto;
}

.recovery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--task-color, var(--orange));
}

.task-pill.todo {
  background: #f6f8fb;
  color: #52627a;
}

.task-pill.doing {
  background: var(--blue-soft);
  color: var(--blue);
}

.task-pill.missed {
  background: #fff0f5;
  color: var(--pink);
}

.task-pill.done {
  background: var(--green-soft);
  color: var(--green-dark);
}

.planner-row .task-actions,
.planner-row .dump-actions {
  display: flex;
  opacity: 0;
}

.planner-row:hover .task-actions,
.planner-row:hover .dump-actions,
.planner-row:focus-within .task-actions,
.planner-row:focus-within .dump-actions,
.recovery-row .task-actions {
  opacity: 1;
}

.board-actions {
  display: grid;
  gap: 8px;
}

.board-actions .outline-button {
  min-height: 36px;
  padding: 0 12px;
}

.builder-map {
  min-height: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.builder-route-board {
  display: grid;
  gap: 10px;
}

.builder-route-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  padding: 10px;
}

.builder-route-row.selected,
.builder-route-row:hover {
  border-color: color-mix(in srgb, var(--block-color), white 42%);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.98)),
    var(--block-bg);
}

.builder-route-row.live {
  border-color: var(--green);
  box-shadow: 0 12px 28px rgba(0, 134, 111, 0.08);
}

.route-select {
  width: 100%;
  min-height: 70px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: grid;
  grid-template-columns: 74px 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0;
  text-align: left;
  color: inherit;
}

.route-time {
  border-radius: 8px;
  background: #f6f8fb;
  color: #1d2a3f;
  display: grid;
  place-items: center;
  min-height: 54px;
  font-size: 13px;
  font-weight: 950;
}

.route-time small {
  display: block;
  color: #728096;
  font-size: 11px;
}

.route-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--block-bg);
  color: var(--block-color);
  font-size: 20px;
  font-weight: 950;
}

.route-copy {
  min-width: 0;
}

.route-copy strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.route-copy small {
  display: block;
  margin-top: 4px;
  color: #5d6c83;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-select em {
  min-height: 28px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--block-color);
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.route-actions button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: #eef8f5;
  color: var(--green-dark);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.route-actions button:last-child {
  background: #fff0f5;
  color: var(--pink);
}

.route-link {
  grid-column: 1 / -1;
  color: #65758d;
  font-size: 11px;
  padding-left: 86px;
}

@media (max-width: 1500px) {
  .planner-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 1020px) {
  .planner-grid,
  .task-card .planner-list,
  .blocks-card .planner-list,
  .recovery-lane-card .planner-list {
    grid-template-columns: 1fr;
  }

  .planner-row .task-actions,
  .planner-row .dump-actions {
    opacity: 1;
  }

  .builder-route-row,
  .route-select {
    grid-template-columns: 1fr;
  }

  .route-actions {
    justify-content: stretch;
  }

  .route-actions button {
    flex: 1 1 88px;
  }

  .route-link {
    padding-left: 0;
  }
}

/* V49: GrowthDay-inspired Daily Practice OS */
.topbar {
  grid-template-columns: minmax(180px, 1fr) 130px 130px 130px 130px;
}

.identity-cell {
  display: none;
}

.streak-cell strong {
  color: var(--orange);
}

.today-layout {
  grid-template-columns: minmax(0, 1fr) 272px;
  align-items: start;
}

.mission-card {
  grid-column: 1;
  background:
    linear-gradient(135deg, rgba(0, 134, 111, 0.065), rgba(255, 255, 255, 0.94) 42%),
    #ffffff;
}

.mission-main {
  grid-template-columns: 72px minmax(0, 1fr) minmax(160px, 200px);
}

.mission-symbol {
  width: 58px;
  height: 58px;
  font-size: 40px;
}

.mission-card h3 {
  font-size: clamp(30px, 2.5vw, 42px);
}

.mission-why {
  grid-template-columns: 28px auto minmax(0, 1fr) auto;
  background: linear-gradient(180deg, #ffffff, #fbfffd);
}

.mission-why strong {
  color: #243149;
}

.mission-why p {
  color: #465773;
}

.daily-practice-card {
  grid-column: 1;
  order: 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.045);
  padding: 14px 16px 16px;
}

.daily-practice-card .section-head {
  margin-bottom: 12px;
}

.practice-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.practice-item {
  min-height: 72px;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 24px;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.practice-item span {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 950;
}

.practice-item:nth-child(2) span,
.practice-item:nth-child(4) span {
  background: var(--soft-orange);
  color: var(--orange-dark);
}

.practice-item strong,
.rail-head strong {
  display: block;
  color: #243149;
  font-size: 13px;
}

.practice-item small {
  display: block;
  margin-top: 3px;
  color: #667792;
  font-size: 11px;
  line-height: 1.25;
}

.practice-item em {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  border: 1px solid #cfd8e6;
  display: grid;
  place-items: center;
  color: #98a5b8;
  font-size: 12px;
  font-style: normal;
  font-weight: 950;
}

.practice-item.done em {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.practice-item.doing em {
  border-color: var(--orange);
  background: var(--orange);
  color: #ffffff;
}

.planner-spread {
  order: 3;
  grid-column: 1;
}

.planner-grid {
  grid-template-columns: minmax(270px, 1.02fr) minmax(280px, 1fr) minmax(280px, 1fr);
  align-items: stretch;
}

.blocks-card {
  grid-column: 1;
  grid-row: 1 / span 2;
  order: 1;
}

.top-card {
  grid-column: 2;
  grid-row: 1;
  order: 2;
}

.task-card {
  grid-column: 2;
  grid-row: 2;
  order: 3;
}

.recovery-lane-card {
  grid-column: 3;
  grid-row: 1 / span 2;
  order: 4;
}

.planner-card {
  min-height: 236px;
}

.blocks-card .planner-list {
  position: relative;
  padding-left: 18px;
}

.blocks-card .planner-list::before {
  content: "";
  position: absolute;
  left: 33px;
  top: 16px;
  bottom: 18px;
  width: 2px;
  background: linear-gradient(180deg, #d5dde9 60%, transparent);
}

.block-plan-row {
  position: relative;
  grid-template-columns: 62px minmax(0, 1fr);
  border: 0;
  border-left: 3px solid transparent;
  box-shadow: none;
}

.block-plan-row.live,
.block-plan-row.selected {
  border-left-color: var(--orange);
  background: #fff8ef;
}

.planner-block-time {
  background: transparent;
  place-items: start;
  align-content: center;
  min-height: 44px;
}

.coach-rail {
  grid-column: 2;
  grid-row: span 4;
  order: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.coach-tool,
.life-scores-card {
  min-height: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.045);
  padding: 16px;
}

.coach-tool {
  grid-template-columns: 48px minmax(0, 1fr);
}

.coach-tool.purple {
  min-height: 182px;
}

.coach-tool.purple .audio-line {
  display: grid;
  grid-column: 1 / -1;
  margin-top: 12px;
}

.coach-tool.purple > span {
  background: var(--purple-soft);
  color: var(--purple);
}

.life-scores-card {
  display: grid;
  gap: 13px;
}

.rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.life-score-row {
  display: grid;
  grid-template-columns: minmax(86px, 1fr) minmax(72px, 1.1fr) 38px;
  align-items: center;
  gap: 10px;
  color: #31415a;
  font-size: 12px;
  font-weight: 800;
}

.life-score-row b {
  height: 6px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, var(--score-color) 0 var(--score), #edf1f6 var(--score) 100%);
}

.life-score-row strong {
  color: #40516b;
  font-size: 12px;
  text-align: right;
}

.evening-review-card ul {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  list-style: none;
  color: #53647f;
  font-size: 11px;
}

.evening-review-card li::before {
  content: "□";
  margin-right: 7px;
  color: #9aa7ba;
}

.day-map-card {
  order: 4;
  grid-column: 1;
}

@media (max-width: 1280px) {
  .today-layout {
    grid-template-columns: 1fr;
  }

  .coach-rail {
    grid-column: 1;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    order: 5;
  }

  .planner-grid {
    grid-template-columns: 1fr;
  }

  .blocks-card,
  .recovery-lane-card {
    grid-column: auto;
    grid-row: auto;
  }

  .top-card,
  .task-card {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 1020px) {
  .topbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .top-plan-button {
    grid-column: 1 / -1;
    width: calc(100% - 20px);
    margin: 8px 0;
  }

  .mission-main {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .practice-grid,
  .coach-rail {
    grid-template-columns: 1fr;
  }
}

/* V45: make Today feel like a simple planner, not a dashboard */
.today-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.mission-card {
  order: 1;
}

.planner-spread {
  order: 2;
  padding: 18px;
}

.day-map-card {
  order: 3;
}

.coach-rail {
  order: 4;
  grid-column: 1;
  grid-row: auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.coach-tool {
  min-height: 82px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px 10px;
  padding: 12px;
  box-shadow: none;
}

.coach-tool > span {
  width: 36px;
  height: 36px;
  font-size: 18px;
}

.coach-tool strong {
  font-size: 14px;
  line-height: 1.1;
}

.coach-tool small {
  margin-top: 4px;
  font-size: 11px;
}

.coach-tool em,
.audio-line {
  display: none;
}

.planner-grid {
  grid-template-columns: minmax(260px, 0.9fr) minmax(360px, 1.35fr);
  gap: 14px;
}

.planner-card {
  min-height: 238px;
  border-color: #efd8bd;
}

.dump-card,
.ritual-card {
  display: none;
}

.planner-card-head {
  min-height: 48px;
}

.planner-card-head span {
  font-size: 13px;
}

.planner-list {
  padding: 14px;
  gap: 10px;
}

.task-card .planner-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.planner-row {
  min-height: 54px;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  align-items: start;
}

.task-card .planner-row {
  min-height: 48px;
}

.task-title {
  font-size: 14px;
  line-height: 1.28;
}

.task-card .task-title {
  font-size: 13px;
}

.task-card .task-meta {
  display: none;
}

.task-actions,
.dump-actions {
  display: none;
}

.top-card .task-pill:first-child {
  display: none;
}

.top-card .task-pill.top {
  display: none;
}

.mini-add {
  margin: 0 14px 14px;
  grid-template-columns: 1fr 42px;
}

.mini-add input {
  min-height: 40px;
  font-size: 13px;
}

.mini-add button::before {
  font-size: 22px;
}

.day-map.flow-map {
  grid-template-columns: repeat(7, minmax(104px, 1fr));
  gap: 10px;
}

.day-step-card {
  min-height: 86px;
  padding: 8px;
}

.day-step-icon {
  width: 34px;
  height: 34px;
  font-size: 18px;
}

.day-map-actions {
  justify-content: flex-start;
}

@media (max-width: 1280px) {
  .coach-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1020px) {
  .planner-grid,
  .task-card .planner-list,
  .coach-rail {
    grid-template-columns: 1fr;
  }

  .dump-card,
  .ritual-card {
    display: block;
  }
}

/* V48 final layer: connected My Day planner */
.planner-grid {
  grid-template-columns: repeat(4, minmax(210px, 1fr));
  align-items: stretch;
}

.planner-card {
  min-height: 268px;
}

.planner-ritual-hidden {
  display: none !important;
}

.blocks-card,
.recovery-lane-card {
  display: block !important;
}

.blocks-card .planner-list,
.recovery-lane-card .planner-list,
.task-card .planner-list {
  grid-template-columns: 1fr;
}

.task-card .task-meta {
  display: flex;
}

.planner-row {
  position: relative;
  border: 1px solid #edf0f4;
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
}

.planner-row.selected {
  border-color: color-mix(in srgb, var(--task-color, var(--green)), white 35%);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--task-color, var(--green)), transparent 88%);
}

.planner-row.live {
  border-color: var(--green);
  background: #f4fbf8;
}

.planner-row .task-actions,
.planner-row .dump-actions {
  display: flex;
  opacity: 0;
}

.planner-row:hover .task-actions,
.planner-row:hover .dump-actions,
.planner-row:focus-within .task-actions,
.planner-row:focus-within .dump-actions,
.recovery-row .task-actions {
  opacity: 1;
}

.block-plan-row {
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: inherit;
  text-align: left;
}

.planner-block-time {
  border-radius: 8px;
  background: #f6f8fb;
  color: #1c2b42;
  display: grid;
  place-items: center;
  min-height: 42px;
  font-size: 12px;
  font-weight: 950;
}

.planner-block-time small {
  display: block;
  color: #687891;
  font-size: 10px;
}

.recovery-row {
  grid-template-columns: 12px minmax(0, 1fr) auto;
}

.recovery-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  background: var(--task-color, var(--orange));
}

.subtle-list {
  padding-top: 8px;
  border-top: 1px solid #f0e2d0;
  margin-top: 8px;
}

.task-pill.todo {
  background: #f6f8fb;
  color: #52627a;
}

.task-pill.doing {
  background: var(--blue-soft);
  color: var(--blue);
}

.task-pill.missed {
  background: #fff0f5;
  color: var(--pink);
}

.task-pill.done {
  background: var(--green-soft);
  color: var(--green-dark);
}

.board-actions {
  display: grid;
  gap: 8px;
}

.board-actions .outline-button {
  min-height: 36px;
  padding: 0 12px;
}

.builder-map {
  min-height: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.builder-route-board {
  display: grid;
  gap: 10px;
}

.builder-route-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 12px;
  align-items: center;
  padding: 10px;
}

.builder-route-row.selected,
.builder-route-row:hover {
  border-color: color-mix(in srgb, var(--block-color), white 42%);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.98)),
    var(--block-bg);
}

.builder-route-row.live {
  border-color: var(--green);
  box-shadow: 0 12px 28px rgba(0, 134, 111, 0.08);
}

.route-select {
  width: 100%;
  min-height: 70px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  display: grid;
  grid-template-columns: 74px 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 0;
  text-align: left;
  color: inherit;
}

.route-time {
  border-radius: 8px;
  background: #f6f8fb;
  color: #1d2a3f;
  display: grid;
  place-items: center;
  min-height: 54px;
  font-size: 13px;
  font-weight: 950;
}

.route-time small {
  display: block;
  color: #728096;
  font-size: 11px;
}

.route-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--block-bg);
  color: var(--block-color);
  font-size: 20px;
  font-weight: 950;
}

.route-copy {
  min-width: 0;
}

.route-copy strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.route-copy small {
  display: block;
  margin-top: 4px;
  color: #5d6c83;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-select em {
  min-height: 28px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--block-color);
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.route-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.route-actions button {
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: #eef8f5;
  color: var(--green-dark);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 900;
}

.route-actions button:last-child {
  background: #fff0f5;
  color: var(--pink);
}

.route-link {
  grid-column: 1 / -1;
  color: #65758d;
  font-size: 11px;
  padding-left: 86px;
}

@media (max-width: 1500px) {
  .planner-grid {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 1020px) {
  .planner-grid,
  .task-card .planner-list,
  .blocks-card .planner-list,
  .recovery-lane-card .planner-list,
  .coach-rail {
    grid-template-columns: 1fr;
  }

  .planner-row .task-actions,
  .planner-row .dump-actions {
    opacity: 1;
  }

  .builder-route-row,
  .route-select {
    grid-template-columns: 1fr;
  }

  .route-actions {
    justify-content: stretch;
  }

  .route-actions button {
    flex: 1 1 88px;
  }

  .route-link {
    padding-left: 0;
  }
}

/* V50: mobile-first execution coach */
.mobile-app-header,
.revolut-command-card,
.mobile-pocket-card,
.mobile-couple-card,
.mobile-flow-card,
.mobile-planner-card,
.mobile-timeline-card,
.mobile-coach-card,
.mission-fast-actions,
.mobile-action-backdrop,
.mobile-action-sheet {
  display: none;
}

/* V76: shared couple planning workspace */
.couple-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.couple-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 20px;
  align-items: center;
  border-color: rgba(239, 74, 131, 0.22);
  background:
    radial-gradient(circle at 8% 12%, rgba(239, 74, 131, 0.1), transparent 34%),
    linear-gradient(145deg, #ffffff, #fffafd);
}

.couple-hero-copy small {
  color: var(--pink);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.couple-hero-copy h3 {
  margin: 6px 0 8px;
  color: #101828;
  font-size: 34px;
  line-height: 1.05;
}

.couple-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #5d6b82;
  font-size: 14px;
  font-weight: 730;
  line-height: 1.5;
}

.couple-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.couple-hero-stats span,
.couple-sync-row span {
  min-width: 0;
  min-height: 74px;
  border: 1px solid #f2d6e2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
}

.couple-hero-stats strong,
.couple-sync-row strong {
  color: #101828;
  font-size: 22px;
  line-height: 1;
}

.couple-hero-stats small,
.couple-sync-row small {
  color: #68778f;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.couple-plan-panel {
  min-width: 0;
}

.share-day-panel {
  min-width: 0;
  border-color: rgba(0, 134, 111, 0.22);
  background:
    radial-gradient(circle at 100% 0, rgba(0, 134, 111, 0.08), transparent 30%),
    linear-gradient(145deg, #ffffff, #f8fffc);
}

.share-day-preview {
  display: grid;
  gap: 12px;
}

.share-day-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.share-day-preview-grid span {
  min-height: 72px;
  border: 1px solid #d8eee7;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
}

.share-day-preview-grid strong {
  color: var(--green-dark);
  font-size: 22px;
  line-height: 1;
}

.share-day-preview-grid small {
  color: #617089;
  font-size: 11px;
  font-weight: 850;
  text-align: center;
}

.share-day-preview p {
  margin: 0;
  color: #586980;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.4;
}

.share-day-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.share-day-actions button {
  min-width: 0;
  min-height: 44px;
}

.couple-shared-timeline,
.couple-request-list,
.couple-rules {
  display: grid;
  gap: 10px;
}

.couple-shared-block {
  border: 1px solid color-mix(in srgb, var(--block-color), white 70%);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.98)),
    var(--block-bg);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  align-items: center;
  gap: 8px;
  padding: 8px;
}

.couple-shared-block.live {
  box-shadow: 0 14px 30px rgba(0, 134, 111, 0.12);
}

.couple-block-main {
  min-width: 0;
  min-height: 62px;
  border: 0;
  background: transparent;
  color: #172033;
  display: grid;
  grid-template-columns: 62px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0;
  text-align: left;
}

.couple-block-time {
  min-height: 48px;
  border-radius: 8px;
  background: #ffffff;
  color: #2d3b53;
  display: grid;
  place-items: center;
  align-content: center;
  font-size: 14px;
  font-weight: 950;
  line-height: 1;
}

.couple-block-time small {
  margin-top: 4px;
  color: #718098;
  font-size: 10px;
  font-weight: 850;
}

.couple-block-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--block-bg);
  color: var(--block-color);
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 950;
}

.couple-block-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.couple-block-copy strong {
  color: #152033;
  font-size: 14px;
  line-height: 1.18;
}

.couple-block-copy small {
  color: #62718a;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.25;
}

.couple-block-main em {
  min-height: 26px;
  border-radius: 999px;
  background: #ffffff;
  color: var(--block-color);
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.couple-block-actions {
  width: 38px;
  height: 38px;
  border: 1px solid #e3eaf3;
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(3, 4px);
  place-content: center;
  gap: 4px;
}

.couple-block-actions span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--block-color);
}

.couple-add-form {
  display: grid;
  gap: 12px;
}

.couple-side {
  display: grid;
  gap: 16px;
}

.couple-request {
  min-height: 62px;
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px;
}

.couple-request button {
  width: 28px;
  height: 28px;
  border: 1px solid #d9e2ee;
  border-radius: 8px;
  background: #ffffff;
  color: transparent;
  font-size: 13px;
  font-weight: 950;
}

.couple-request.done {
  opacity: 0.68;
}

.couple-request.done button {
  border-color: var(--green);
  background: var(--green);
  color: #ffffff;
}

.couple-request.done strong {
  text-decoration: line-through;
}

.couple-request strong {
  display: block;
  color: #18243a;
  font-size: 14px;
  line-height: 1.2;
}

.couple-request small {
  display: block;
  margin-top: 4px;
  color: #65758d;
  font-size: 12px;
  line-height: 1.35;
}

.couple-rule {
  border: 1px solid #e8edf5;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.couple-rule strong {
  display: block;
  color: #18243a;
  font-size: 13px;
}

.couple-rule span {
  display: block;
  margin-top: 5px;
  color: #65758d;
  font-size: 12px;
  line-height: 1.4;
}

.couple-empty {
  min-height: 148px;
  border: 1px dashed #f0c7d8;
  border-radius: 8px;
  background: #fff9fc;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 20px;
  text-align: center;
}

.couple-empty.small {
  min-height: 72px;
}

.couple-empty strong {
  color: #172033;
  font-size: 16px;
}

.couple-empty p {
  max-width: 440px;
  margin: 0;
  color: #65758d;
  font-size: 13px;
  line-height: 1.4;
}

.mobile-couple-card {
  display: none;
}

@media (max-width: 960px) {
  .couple-layout {
    grid-template-columns: 1fr;
  }

  .couple-side {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .nav-item {
    font-size: 10px;
  }

  .nav-item span {
    font-size: 20px;
  }

  .nav-item strong {
    font-size: 10px;
  }

  .mobile-couple-card {
    display: block;
    border: 1px solid #f0d2de;
    border-radius: 8px;
    background:
      radial-gradient(circle at 90% 0%, rgba(239, 74, 131, 0.12), transparent 30%),
      linear-gradient(180deg, #ffffff, #fffafd);
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.055);
    padding: 14px;
  }

  .mobile-couple-card .section-head.compact p {
    margin: 4px 0 0;
    color: #68778f;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.25;
  }

  .mobile-couple-sync {
    display: grid;
    gap: 10px;
  }

  .couple-sync-hero {
    min-height: 82px;
    border: 1px solid rgba(239, 74, 131, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.8);
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
  }

  .couple-sync-hero > span {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--pink-soft);
    color: var(--pink);
    display: grid;
    place-items: center;
    font-size: 21px;
    font-weight: 950;
  }

  .couple-sync-hero small {
    display: block;
    color: var(--pink);
    font-size: 11px;
    font-weight: 900;
  }

  .couple-sync-hero strong {
    display: block;
    margin-top: 4px;
    color: #121a2b;
    font-size: 16px;
    line-height: 1.14;
  }

  .couple-sync-hero p {
    margin: 4px 0 0;
    color: #66758e;
    font-size: 12px;
    font-weight: 760;
    line-height: 1.25;
  }

  .couple-sync-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .couple-sync-row span {
    min-height: 56px;
    border-color: #f0d2de;
  }

  .couple-sync-row strong {
    font-size: 17px;
  }

  .couple-sync-actions {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 8px;
  }

  .couple-sync-actions button {
    min-height: 42px;
    border: 0;
    border-radius: 13px;
    background: #fff0f6;
    color: #c42d69;
    font-size: 13px;
    font-weight: 950;
  }

  .couple-sync-actions button:first-child {
    background: linear-gradient(145deg, #00866f, #006b5d);
    color: #ffffff;
  }

  .couple-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .couple-hero {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .couple-hero-copy h3 {
    font-size: 28px;
  }

  .couple-hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .couple-hero-stats span {
    min-height: 58px;
  }

  .couple-hero-stats strong {
    font-size: 18px;
  }

  .couple-block-main {
    grid-template-columns: 58px 34px minmax(0, 1fr);
  }

  .couple-block-main em {
    grid-column: 3;
    justify-self: start;
  }

  .couple-block-actions {
    align-self: start;
  }

  .couple-add-panel,
  .couple-rules-panel {
    display: block;
  }

  .section-actions,
  .mobile-section-actions {
    gap: 10px;
  }

  .share-day-actions,
  .share-day-preview-grid {
    grid-template-columns: 1fr;
  }

  .share-day-preview-grid span {
    min-height: 58px;
  }
}

.mobile-mantra,
.mission-poetic-line {
  display: none;
}

.mobile-action-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 24, 40, 0.22);
  opacity: 0;
  transition: opacity 180ms ease;
}

.mobile-action-sheet {
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 90;
  border: 1px solid #e2e9f2;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(16, 24, 40, 0.22);
  transform: translateY(112%);
  transition: transform 220ms ease;
  backdrop-filter: blur(20px);
}

@media (max-width: 760px) {
  html,
  body {
    background: #ffffff;
  }

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

  .app-shell {
    display: block;
    min-height: 100vh;
    background: #ffffff;
  }

  .main {
    padding: 18px 12px 104px;
    background: #ffffff;
  }

  .topbar {
    display: none !important;
  }

  .mobile-app-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 64px 68px;
    align-items: center;
    gap: 8px;
    margin: -18px -12px 12px;
    padding: 12px 12px 10px;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid #eef1f5;
    backdrop-filter: blur(18px);
  }

  .mobile-brand {
    min-width: 0;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
  }

  .mobile-brand .brand-mark {
    width: 38px;
    height: 38px;
    font-size: 25px;
    box-shadow: 0 10px 26px rgba(255, 117, 0, 0.18);
  }

  .mobile-brand strong {
    display: block;
    color: #101828;
    font-size: 18px;
    line-height: 1.05;
  }

  .mobile-brand small {
    display: block;
    margin-top: 3px;
    color: #667792;
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-mantra {
    display: block;
    margin-top: 5px;
    color: var(--green-dark);
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    line-height: 1;
  }

  .mobile-stat {
    min-height: 42px;
    border-left: 1px solid #e6ecf3;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 2px;
  }

  .mobile-stat strong {
    color: var(--green-dark);
    font-size: 17px;
    line-height: 1;
  }

  .mobile-stat:last-child strong {
    color: var(--orange);
  }

  .mobile-stat small {
    color: #667792;
    font-size: 10px;
    font-weight: 850;
  }

  .side-rail {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    top: auto;
    z-index: 50;
    height: 78px;
    display: block;
    padding: 8px;
    border: 1px solid #e7edf4;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 48px rgba(16, 24, 40, 0.14);
    backdrop-filter: blur(18px);
  }

  .side-rail .brand,
  .side-rail .profile-card,
  .side-rail blockquote,
  .side-rail .side-actions,
  .desktop-nav-only {
    display: none !important;
  }

  .nav {
    height: 100%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
  }

  .nav-item {
    min-height: 60px;
    border: 0;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 27px 18px;
    align-items: center;
    justify-items: center;
    gap: 1px;
    padding: 5px 2px;
    color: #5b677b;
    background: transparent;
    font-size: 11px;
  }

  .nav-item span {
    color: inherit;
    font-size: 22px;
    line-height: 1;
  }

  .nav-item strong {
    display: block;
    color: inherit;
    font-size: 11px;
    font-weight: 850;
    line-height: 1;
  }

  .nav-item.active,
  .nav-item:hover {
    border: 0;
    background: #eef8f5;
    color: var(--green-dark);
    box-shadow: none;
  }

  .nav-item.active span,
  .nav-item:hover span {
    color: var(--green-dark);
  }

  .today-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .revolut-command-card,
  .mobile-pocket-card,
  .mobile-flow-card,
  .mobile-planner-card,
  .mobile-timeline-card,
  .mobile-coach-card {
    display: block;
    border: 1px solid #dfe7f0;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.055);
  }

  .revolut-command-card {
    border-color: #121a2a;
    background:
      radial-gradient(circle at 84% 0%, rgba(0, 193, 167, 0.24), transparent 32%),
      linear-gradient(145deg, #101827, #172238 56%, #07130f);
    color: #ffffff;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(16, 24, 40, 0.2);
  }

  .revolut-balance-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
    padding: 18px 16px 14px;
  }

  .revolut-balance-row small,
  .revolut-current-asset small {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .revolut-balance-row strong {
    display: block;
    margin-top: 4px;
    color: #ffffff;
    font-size: 42px;
    line-height: 0.95;
    letter-spacing: 0;
  }

  .revolut-balance-row p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    font-weight: 750;
  }

  .revolut-coach-button {
    min-height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.11);
    color: #ffffff;
    padding: 0 12px;
    font-size: 12px;
    font-weight: 900;
  }

  .revolut-current-asset {
    margin: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 12px;
  }

  .revolut-current-asset > span {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--asset-bg, rgba(255, 255, 255, 0.12));
    color: var(--asset-color, #00a88f);
    font-size: 22px;
    font-weight: 950;
  }

  .revolut-current-asset strong {
    display: block;
    margin-top: 3px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.08;
  }

  .revolut-current-asset p {
    margin: 5px 0 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 11px;
    font-weight: 760;
    line-height: 1.25;
  }

  .revolut-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.08);
  }

  .revolut-quick-actions button {
    min-height: 68px;
    border: 0;
    background: rgba(255, 255, 255, 0.02);
    color: #ffffff;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
  }

  .revolut-quick-actions span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    font-size: 12px;
    font-weight: 950;
  }

  .revolut-quick-actions strong {
    font-size: 11px;
    line-height: 1;
  }

  .mobile-pocket-card,
  .mobile-flow-card {
    padding: 14px;
  }

  .mobile-pocket-list {
    display: grid;
    gap: 8px;
  }

  .mobile-pocket {
    width: 100%;
    min-height: 74px;
    border: 1px solid color-mix(in srgb, var(--pocket-color), white 72%);
    border-radius: 8px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.98)),
      var(--pocket-bg);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    grid-template-rows: auto auto;
    gap: 2px 10px;
    align-items: center;
    padding: 10px;
    color: #172033;
    text-align: left;
  }

  .mobile-pocket > span {
    grid-row: span 2;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--pocket-bg);
    color: var(--pocket-color);
    font-size: 20px;
    font-weight: 950;
  }

  .mobile-pocket strong {
    display: block;
    color: #172033;
    font-size: 14px;
    line-height: 1.05;
  }

  .mobile-pocket small {
    color: #667792;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
  }

  .mobile-pocket > small {
    grid-column: 2 / 4;
  }

  .mobile-pocket em {
    justify-self: end;
    color: var(--pocket-color);
    font-size: 13px;
    font-style: normal;
    font-weight: 950;
  }

  .mobile-pocket b {
    display: block;
    height: 5px;
    margin-top: 7px;
    border-radius: 999px;
    background: #e8eef5;
    overflow: hidden;
  }

  .mobile-pocket b i {
    display: block;
    width: var(--pocket-progress);
    height: 100%;
    border-radius: inherit;
    background: var(--pocket-color);
  }

  .mobile-time-flow {
    min-height: 44px;
    display: flex;
    align-items: stretch;
    gap: 4px;
  }

  .mobile-flow-segment {
    flex: var(--flow-width) 1 0;
    min-width: 18px;
    border: 0;
    border-radius: 8px;
    background: var(--flow-bg);
    padding: 0;
    overflow: hidden;
  }

  .mobile-flow-segment span {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--flow-color);
    opacity: 0.88;
  }

  .mobile-flow-segment.done span {
    opacity: 1;
  }

  .mobile-flow-segment.missed span {
    background: var(--pink);
  }

  .mobile-flow-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 10px;
  }

  .mobile-flow-stats span {
    min-height: 46px;
    border: 1px solid #edf1f6;
    border-radius: 8px;
    display: grid;
    place-items: center;
    align-content: center;
    background: #fbfcff;
  }

  .mobile-flow-stats strong {
    color: #172033;
    font-size: 12px;
    line-height: 1;
  }

  .mobile-flow-stats small {
    margin-top: 4px;
    color: #667792;
    font-size: 9px;
    font-weight: 850;
  }

  #todayView .mission-card {
    display: none;
  }

  .mission-card {
    overflow: hidden;
    border-color: rgba(0, 134, 111, 0.34);
    background:
      linear-gradient(145deg, rgba(0, 134, 111, 0.07), rgba(255, 255, 255, 0.98) 36%),
      #ffffff;
  }

  .mission-main {
    min-height: 0;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 16px 12px;
    text-align: left;
  }

  .mission-symbol {
    width: 48px;
    height: 48px;
    font-size: 34px;
  }

  .mission-kicker {
    font-size: 11px;
  }

  .mission-card h3 {
    margin-top: 6px;
    font-size: 30px;
    line-height: 1.02;
  }

  .mission-meta {
    margin-top: 8px;
    font-size: 13px;
  }

  .mission-poetic-line {
    display: block;
    max-width: 260px;
    margin: 9px 0 0;
    color: #006b5d;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.25;
  }

  .mission-start {
    display: none;
  }

  .mission-proof-strip {
    grid-template-columns: 1fr 1fr;
  }

  .mission-proof-strip div {
    min-height: 72px;
    padding: 13px 14px;
  }

  .mission-proof-strip small {
    font-size: 10px;
  }

  .mission-proof-strip strong {
    font-size: 13px;
  }

  .mission-fast-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    gap: 10px;
    padding: 12px 14px 14px;
    border-top: 1px solid #eef1f5;
  }

  .mission-primary-action {
    min-height: 58px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(145deg, #007a68, #006256);
    color: #ffffff;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    text-align: left;
    box-shadow: 0 16px 32px rgba(0, 107, 93, 0.18);
  }

  .mission-primary-action span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 14px;
  }

  .mission-primary-action strong {
    display: block;
    font-size: 15px;
    line-height: 1.1;
  }

  .mission-primary-action small {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 11px;
    font-weight: 760;
  }

  .mission-action-orb,
  .mobile-row-action {
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #ffffff;
    display: inline-grid;
    place-items: center;
    grid-template-columns: repeat(3, 4px);
    justify-content: center;
    gap: 4px;
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.065);
  }

  .mission-action-orb {
    width: 54px;
    min-width: 54px;
    min-height: 58px;
  }

  .mission-action-orb span,
  .mobile-row-action span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #52627a;
  }

  .mission-why {
    min-height: 0;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 7px 10px;
    padding: 13px 14px 15px;
    background: #fbfffd;
  }

  .mission-why span {
    grid-row: span 2;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green-soft);
  }

  .mission-why strong,
  .mission-why p {
    grid-column: 2;
  }

  .mission-why strong {
    font-size: 12px;
  }

  .mission-why p {
    color: #516178;
    font-size: 13px;
    line-height: 1.35;
  }

  .mission-why .text-button {
    display: none;
  }

  .daily-practice-card,
  #todayView .planner-spread,
  #todayView .day-map-card,
  #todayView .coach-rail,
  #todayView > .mini-panel {
    display: none !important;
  }

  .mobile-planner-card,
  .mobile-timeline-card,
  .mobile-coach-card {
    padding: 14px;
  }

  .section-head.compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
  }

  .section-head.compact h3,
  .mobile-coach-card h3 {
    margin: 0;
    color: #1f2d43;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0;
  }

  .section-head.compact .text-button {
    color: var(--orange);
    font-size: 13px;
  }

  .mobile-planner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-planner-panel {
    min-height: 154px;
    border: 1px solid #edf0f4;
    border-radius: 8px;
    background: #ffffff;
    padding: 12px;
  }

  .mobile-planner-panel:nth-child(1) {
    border-color: #ffd6aa;
    background: #fffaf5;
  }

  .mobile-planner-panel:nth-child(2) {
    border-color: #cfe0ff;
    background: #f8fbff;
  }

  .mobile-planner-panel:nth-child(3) {
    border-color: #ffd4e3;
    background: #fff9fb;
  }

  .mobile-planner-panel:nth-child(4) {
    border-color: #dfd8ff;
    background: #fbfaff;
  }

  .mobile-planner-panel h4 {
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #23324a;
    font-size: 11px;
    line-height: 1.15;
    text-transform: uppercase;
  }

  .mobile-planner-panel h4 span {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--orange);
    color: #ffffff;
    font-size: 11px;
    font-weight: 950;
  }

  .todo-panel h4 span {
    background: var(--blue);
  }

  .brain-panel h4 span {
    background: var(--pink);
  }

  .ritual-panel h4 span {
    background: var(--purple);
  }

  .mobile-planner-list {
    display: grid;
    gap: 8px;
  }

  .mobile-task,
  .mobile-bullet {
    min-height: 30px;
    border: 0;
    background: transparent;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 8px;
    padding: 0;
    color: #172033;
    text-align: left;
  }

  .mobile-task span {
    width: 18px;
    height: 18px;
    border: 1px solid #cbd5e3;
    border-radius: 5px;
    display: grid;
    place-items: center;
    background: #ffffff;
    color: transparent;
    font-size: 11px;
    font-weight: 950;
  }

  .mobile-task.done span {
    border-color: var(--green);
    background: var(--green);
    color: #ffffff;
  }

  .mobile-task strong,
  .mobile-bullet {
    color: #1d2a3f;
    font-size: 13px;
    font-weight: 740;
    line-height: 1.25;
  }

  .mobile-task.done strong {
    text-decoration: line-through;
    color: #667792;
  }

  .mobile-bullet::before {
    content: "•";
    color: #40516b;
    font-size: 18px;
    line-height: 14px;
  }

  .mobile-ritual-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 6px;
    align-items: start;
  }

  .mobile-ritual-row strong {
    color: var(--purple);
    font-size: 11px;
  }

  .mobile-ritual-row span,
  .mobile-empty {
    margin: 0;
    color: #53647f;
    font-size: 12px;
    line-height: 1.3;
  }

  .mobile-timeline-list {
    position: relative;
    display: grid;
  }

  .mobile-timeline-list::before {
    content: "";
    position: absolute;
    left: 94px;
    top: 18px;
    bottom: 18px;
    width: 1px;
    background: #dfe7f0;
  }

  .mobile-timeline-row {
    position: relative;
    border-radius: 8px;
  }

  .mobile-timeline-row + .mobile-timeline-row {
    border-top: 1px solid #eef1f5;
  }

  .mobile-timeline-main {
    width: 100%;
    min-height: 58px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    display: grid;
    grid-template-columns: 54px 16px 38px minmax(0, 1fr) auto 34px;
    align-items: center;
    gap: 8px;
    padding: 8px 8px;
    color: inherit;
    text-align: left;
  }

  .mobile-timeline-row.live .mobile-timeline-main,
  .mobile-timeline-row.selected .mobile-timeline-main {
    border-color: color-mix(in srgb, var(--block-color), white 20%);
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.96)),
      var(--block-bg);
  }

  .mobile-timeline-main time {
    color: #20304a;
    font-size: 16px;
    font-weight: 920;
  }

  .mobile-time-dot {
    position: relative;
    z-index: 1;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--block-color);
    box-shadow: 0 0 0 4px #ffffff;
  }

  .mobile-time-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--block-bg);
    color: var(--block-color);
    font-size: 18px;
    font-weight: 950;
  }

  .mobile-time-copy {
    min-width: 0;
  }

  .mobile-time-copy strong {
    display: block;
    color: #172033;
    font-size: 15px;
    line-height: 1.15;
  }

  .mobile-time-copy small {
    display: block;
    margin-top: 3px;
    color: #60718a;
    font-size: 11px;
    line-height: 1.2;
  }

  .mobile-timeline-main em {
    min-height: 25px;
    border-radius: 999px;
    background: var(--block-bg);
    color: var(--block-color);
    display: inline-flex;
    align-items: center;
    padding: 0 8px;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-row-action {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    opacity: 0.88;
  }

  .mobile-timeline-row.live .mobile-row-action,
  .mobile-timeline-row.selected .mobile-row-action {
    border-color: color-mix(in srgb, var(--block-color), white 42%);
    background: #ffffff;
  }

  .mobile-timeline-row.live .mobile-row-action span,
  .mobile-timeline-row.selected .mobile-row-action span {
    background: var(--block-color);
  }

  .mobile-action-backdrop.open,
  .mobile-action-sheet.open {
    display: block;
  }

  .mobile-action-backdrop.open {
    opacity: 1;
  }

  .mobile-action-sheet.open {
    transform: translateY(0);
  }

  .sheet-handle {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #d5dde8;
    margin: 10px auto 8px;
  }

  #sheetContent {
    padding: 0 12px 12px;
  }

  .sheet-title {
    min-height: 72px;
    border: 1px solid color-mix(in srgb, var(--block-color), white 62%);
    border-radius: 8px;
    background:
      linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.98)),
      var(--block-bg);
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 12px;
  }

  .sheet-title > span {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--block-bg);
    color: var(--block-color);
    font-size: 20px;
    font-weight: 950;
  }

  .sheet-title small {
    display: block;
    color: var(--block-color);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .sheet-title strong {
    display: block;
    margin-top: 3px;
    color: #101828;
    font-size: 18px;
    line-height: 1.08;
  }

  .sheet-title p,
  .sheet-proof span {
    margin: 4px 0 0;
    color: #667792;
    font-size: 12px;
    font-weight: 750;
  }

  .sheet-proof {
    margin-top: 10px;
    border: 1px solid #e7edf4;
    border-radius: 8px;
    background: #fbfcff;
    padding: 10px 12px;
  }

  .sheet-proof small {
    color: #667792;
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
  }

  .sheet-proof strong {
    display: block;
    margin-top: 3px;
    color: #1f2d43;
    font-size: 13px;
    line-height: 1.25;
  }

  .sheet-proof span {
    display: block;
  }

  .sheet-actions {
    display: grid;
    gap: 7px;
    margin-top: 10px;
  }

  .sheet-actions button {
    min-height: 58px;
    border: 1px solid #e7edf4;
    border-radius: 8px;
    background: #ffffff;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    color: #172033;
    text-align: left;
  }

  .sheet-actions button:active {
    transform: translateY(1px);
    background: #f8fbff;
  }

  .sheet-actions button > span {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #eef8f5;
    color: var(--green-dark);
    font-size: 17px;
    font-weight: 950;
  }

  .sheet-actions button strong {
    display: block;
    font-size: 14px;
    line-height: 1.1;
  }

  .sheet-actions button small {
    display: block;
    margin-top: 3px;
    color: #667792;
    font-size: 11px;
    line-height: 1.2;
  }

  .sheet-actions button.danger > span {
    background: var(--pink-soft);
    color: var(--pink);
  }

  .mobile-coach-card h3 {
    margin-bottom: 12px;
  }

  .mobile-coach-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-coach-tile {
    min-height: 102px;
    border: 1px solid #dcebe6;
    border-radius: 8px;
    background: #f7fcfa;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-content: center;
    gap: 4px 8px;
    padding: 12px;
    color: #172033;
    text-align: left;
  }

  .mobile-coach-tile span {
    grid-row: span 2;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 18px;
    font-weight: 950;
  }

  .mobile-coach-tile strong {
    font-size: 13px;
    line-height: 1.15;
  }

  .mobile-coach-tile small {
    color: #53647f;
    font-size: 11px;
    line-height: 1.25;
  }

  .mobile-coach-tile.purple {
    border-color: #dcd6ff;
    background: #faf8ff;
  }

  .mobile-coach-tile.purple span {
    background: var(--purple-soft);
    color: var(--purple);
  }

  .mobile-coach-tile.warm {
    border-color: #ffd7ae;
    background: #fff9f1;
  }

  .mobile-coach-tile.warm span {
    background: var(--soft-orange);
    color: var(--orange);
  }

  .mobile-coach-tile.pink {
    border-color: #ffd4e3;
    background: #fff8fb;
  }

  .mobile-coach-tile.pink span {
    background: var(--pink-soft);
    color: var(--pink);
  }

  .full-map-layout,
  .focus-layout,
  .review-grid,
  .coach-page {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .panel,
  .focus-room {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(16, 24, 40, 0.055);
  }

  .builder-route-row,
  .route-select {
    grid-template-columns: 1fr;
  }

  .route-actions {
    justify-content: stretch;
  }

  .route-actions button {
    flex: 1 1 78px;
  }

  .quick-dock,
  .focus-pill {
    display: none !important;
  }
}

@media (max-width: 420px) {
  .main {
    padding-left: 10px;
    padding-right: 10px;
  }

  .mobile-app-header {
    margin-left: -10px;
    margin-right: -10px;
    grid-template-columns: minmax(0, 1fr) 58px 62px;
  }

  .mobile-brand strong {
    font-size: 17px;
  }

  .mission-card h3 {
    font-size: 28px;
  }

  .mission-fast-actions {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .mission-primary-action,
  .mission-action-orb {
    min-height: 54px;
  }

  .mission-action-orb {
    width: 52px;
    min-width: 52px;
  }

  .mobile-planner-card,
  .mobile-timeline-card,
  .mobile-coach-card {
    padding: 12px;
  }

  .mobile-planner-grid,
  .mobile-coach-grid {
    gap: 8px;
  }

  .mobile-planner-panel {
    min-height: 148px;
    padding: 10px;
  }

  .mobile-timeline-main {
    grid-template-columns: 47px 14px 34px minmax(0, 1fr) 34px;
    padding-right: 48px;
  }

  .mobile-timeline-main em {
    grid-column: 4;
    justify-self: start;
    margin-top: 4px;
  }
}

/* V54 final mobile override: editable planner + clean route builder */
@media (max-width: 760px) {
  .mobile-flow-segment.current {
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--flow-color);
  }

  .mobile-flow-now {
    margin: 9px 0 0;
    color: #53647f;
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
  }

  .mobile-task,
  .mobile-bullet {
    min-height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.72);
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr) 26px;
    align-items: center;
    gap: 4px;
    padding: 2px;
    position: relative;
  }

  .mobile-bullet {
    grid-template-columns: 22px minmax(0, 1fr);
  }

  .mobile-task .mobile-task-check,
  .mobile-bullet button {
    width: 20px;
    height: 20px;
    border: 1px solid #cbd5e3;
    border-radius: 6px;
    background: #ffffff;
    color: var(--task-color, #52627a);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 950;
  }

  .mobile-task .mobile-task-more {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7a879a;
    font-size: 11px;
    letter-spacing: -1px;
  }

  .mobile-task.menu-open {
    background: #ffffff;
    box-shadow: 0 10px 22px rgba(16, 24, 40, 0.08);
  }

  .mobile-task-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 4px 0 2px;
  }

  .mobile-task-actions button {
    min-height: 28px;
    border: 1px solid #e1e8f1;
    border-radius: 8px;
    background: #f8fafc;
    color: #26344a;
    font-size: 10px;
    font-weight: 850;
  }

  .mobile-task-actions button:last-child {
    color: #c53f4d;
    background: #fff6f7;
    border-color: #f5cbd1;
  }

  .mobile-task input,
  .mobile-bullet input {
    width: 100%;
    min-width: 0;
    border: 0;
    background: transparent;
    color: #172033;
    font: inherit;
    font-size: 12px;
    font-weight: 790;
    line-height: 1.25;
    outline: none;
  }

  .mobile-task.done input {
    color: #667792;
    text-decoration: line-through;
  }

  .mobile-bullet::before {
    display: none;
  }

  .mobile-inline-add {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 6px;
    margin-top: 10px;
  }

  .mobile-inline-add input {
    min-width: 0;
    min-height: 34px;
    border: 1px solid #e1e8f1;
    border-radius: 8px;
    background: #ffffff;
    color: #172033;
    padding: 0 9px;
    font-size: 12px;
    font-weight: 760;
  }

  .mobile-inline-add button {
    border: 0;
    border-radius: 8px;
    background: #eef8f5;
    color: var(--green-dark);
    font-size: 17px;
    font-weight: 950;
  }

  .builder-route-row {
    grid-template-columns: minmax(0, 1fr) 38px;
    padding: 8px;
    gap: 6px 8px;
  }

  .route-select {
    min-height: 58px;
    grid-template-columns: 56px 34px minmax(0, 1fr);
    gap: 8px;
  }

  .route-select em,
  .route-actions {
    display: none !important;
  }

  .route-copy small {
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .route-sheet-action {
    width: 36px;
    height: 36px;
    border: 1px solid #dce5ef;
    border-radius: 8px;
    background: #ffffff;
    display: inline-grid;
    place-items: center;
    grid-template-columns: repeat(3, 4px);
    justify-content: center;
    gap: 4px;
  }

  .route-sheet-action span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--block-color);
  }

  .route-link {
    grid-column: 1 / -1;
    padding-left: 0;
    font-size: 10px;
  }
}

/* V76 terminal mobile nav override: keep all six tabs on one row. */
@media (max-width: 760px) {
  .nav {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  }

  .nav-item {
    min-width: 0;
  }

  .nav-item span {
    font-size: 19px;
  }

  .nav-item strong {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
  }
}

/* V78: account, workspace, and beta sync foundation */
.topbar {
  grid-template-columns: minmax(180px, 1fr) 112px 112px 118px 128px 132px;
}

.profile-card {
  width: 100%;
  border: 1px solid #f1d8bf;
  text-align: left;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.account-status-cell {
  border-top: 0;
  border-bottom: 0;
  border-left: 0;
  background: #ffffff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.account-status-cell.signed-in strong {
  color: var(--green-dark);
}

.mobile-account-button {
  display: none;
}

.account-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: start;
}

.account-hero {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 18px;
  align-items: center;
  border-color: rgba(255, 117, 0, 0.24);
  background:
    radial-gradient(circle at 6% 14%, rgba(255, 117, 0, 0.12), transparent 34%),
    linear-gradient(145deg, #ffffff, #fffaf5);
}

.account-hero-copy small {
  color: var(--orange-dark);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.account-hero-copy h3 {
  margin: 7px 0 8px;
  color: #101828;
  font-size: 34px;
  line-height: 1.05;
}

.account-hero-copy p {
  max-width: 760px;
  margin: 0;
  color: #5d6b82;
  font-size: 14px;
  font-weight: 730;
  line-height: 1.5;
}

.account-hero-card,
.workspace-card {
  border: 1px solid #f2d7bd;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 34px rgba(255, 117, 0, 0.08);
}

.account-hero-card {
  min-height: 112px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 16px;
}

.account-hero-card > span {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, #ff922b, #ff6500);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 950;
}

.account-hero-card strong {
  display: block;
  color: #101828;
  font-size: 17px;
}

.account-hero-card small {
  display: block;
  margin-top: 5px;
  color: #65758d;
  font-size: 12px;
  font-weight: 780;
}

.account-hero-card em,
.workspace-card span,
.sync-status-row em {
  min-height: 28px;
  border-radius: 999px;
  background: #fff1e4;
  color: var(--orange-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  white-space: nowrap;
}

.account-signin-panel,
.sync-panel {
  min-width: 0;
}

.workspace-panel,
.account-roadmap-panel {
  min-width: 0;
}

.account-form {
  display: grid;
  gap: 11px;
}

.account-form label {
  display: grid;
  gap: 6px;
  color: #5e6d83;
  font-size: 12px;
  font-weight: 850;
}

.account-form input {
  min-width: 0;
  min-height: 44px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #ffffff;
  color: #152033;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
}

.account-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 2px;
}

.workspace-card {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  margin-bottom: 12px;
}

.workspace-card small {
  color: #65758d;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.workspace-card strong {
  display: block;
  margin-top: 5px;
  color: #101828;
  font-size: 18px;
}

.invite-preview {
  margin-top: 12px;
  border: 1px solid #d9eee8;
  border-radius: 8px;
  background: #f7fffc;
  padding: 12px;
}

.invite-preview div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
}

.invite-preview small,
.invite-preview span {
  color: #62718a;
  font-size: 11px;
  font-weight: 800;
}

.invite-preview strong {
  grid-column: 1;
  color: var(--green-dark);
  font-size: 17px;
}

.invite-preview span {
  grid-column: 1 / -1;
}

.invite-preview p {
  margin: 9px 0 0;
  color: #5c6c84;
  font-size: 12px;
  font-weight: 730;
  line-height: 1.4;
}

.sync-status-list {
  display: grid;
  gap: 10px;
}

.sync-status-row {
  min-height: 72px;
  border: 1px solid #e4ebf4;
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
}

.sync-status-row > span {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eef8f5;
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 950;
}

.sync-status-row.needed > span {
  background: #fff1e4;
  color: var(--orange-dark);
}

.sync-status-row.next > span {
  background: var(--blue-soft);
  color: var(--blue);
}

.sync-status-row strong {
  display: block;
  color: #172033;
  font-size: 14px;
}

.sync-status-row small {
  display: block;
  margin-top: 4px;
  color: #65758d;
  font-size: 12px;
  font-weight: 720;
  line-height: 1.35;
}

.sync-status-row.ready em {
  background: #e8f8f3;
  color: var(--green-dark);
}

.sync-status-row.next em {
  background: var(--blue-soft);
  color: var(--blue);
}

.account-stack-grid {
  display: grid;
  gap: 10px;
}

.account-stack-grid div {
  min-height: 70px;
  border: 1px solid #e6edf5;
  border-radius: 8px;
  background: #fbfcff;
  padding: 12px;
}

.account-stack-grid strong {
  display: block;
  color: #172033;
  font-size: 13px;
}

.account-stack-grid span {
  display: block;
  margin-top: 6px;
  color: #65758d;
  font-size: 12px;
  line-height: 1.4;
}

.launch-panel {
  min-width: 0;
  border-color: rgba(23, 105, 232, 0.2);
  background:
    radial-gradient(circle at 100% 0, rgba(23, 105, 232, 0.08), transparent 34%),
    linear-gradient(145deg, #ffffff, #fbfdff);
}

.launch-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-bottom: 12px;
}

.launch-links a {
  min-width: 0;
  min-height: 54px;
  border: 1px solid #dce7f6;
  border-radius: 8px;
  background: #ffffff;
  color: var(--blue);
  display: grid;
  place-items: center;
  padding: 8px;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.launch-checklist {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.launch-check {
  min-height: 58px;
  border: 1px solid #e5ecf5;
  border-radius: 8px;
  background: #ffffff;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 10px;
}

.launch-check > span {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #eef8f5;
  color: var(--green-dark);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 950;
}

.launch-check.next > span {
  background: var(--blue-soft);
  color: var(--blue);
}

.launch-check strong {
  display: block;
  color: #172033;
  font-size: 13px;
}

.launch-check small {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
  font-weight: 730;
  line-height: 1.35;
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: minmax(170px, 1fr) 108px 108px 118px 118px 124px;
  }

  .account-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .mobile-app-header {
    grid-template-columns: minmax(0, 1fr) 56px 60px 38px !important;
  }

  .mobile-account-button {
    min-width: 0;
    width: 38px;
    height: 38px;
    border: 1px solid #ffd6ad;
    border-radius: 12px;
    background: #fff4e8;
    color: var(--orange-dark);
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 950;
  }

  .mobile-account-button.signed-in {
    border-color: #c8ece1;
    background: #eef8f5;
    color: var(--green-dark);
  }

  .account-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .account-hero {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
  }

  .account-hero-copy h3 {
    font-size: 25px;
  }

  .account-hero-copy p {
    font-size: 13px;
  }

  .account-hero-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .account-hero-card > span {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .account-hero-card em {
    grid-column: 2;
    justify-self: start;
  }

  .account-actions,
  .share-day-actions,
  .launch-links {
    grid-template-columns: 1fr;
  }

  .workspace-card,
  .sync-status-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sync-status-row {
    position: relative;
    padding-left: 52px;
  }

  .sync-status-row > span {
    position: absolute;
    left: 12px;
    top: 12px;
  }

  .sync-status-row em {
    justify-self: start;
  }
}
/* Focus Mode v95 final daily-planner composition */
.main-content {
  background: #fffaf4;
}

.content,
.topbar {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}

.topbar .identity-cell,
.topbar .streak-cell {
  display: none;
}

#todayView .today-layout {
  display: block;
  width: min(100%, 1240px);
  margin: 0 auto;
}

#todayView .today-layout > :not(.mission-card):not(.final-today-grid) {
  display: none !important;
}

#todayView .mission-card {
  width: 100%;
  margin: 0 0 20px;
  border: 1px solid #b9dbd1;
  border-radius: 8px;
  background: linear-gradient(135deg, #f2fbf7 0%, #ffffff 68%);
  box-shadow: 0 8px 24px rgba(7, 73, 61, 0.07);
}

#todayView .mission-main {
  min-height: 176px;
}

#todayView .mission-kicker {
  color: #087763;
  font-weight: 800;
  text-transform: uppercase;
}

#todayView .mission-proof-strip {
  border-top: 1px solid #d8ebe5;
  background: rgba(255, 255, 255, 0.62);
}

#todayView .mission-proof-strip small {
  font-size: 0;
}

#todayView .mission-proof-strip > div:first-child small::after {
  content: "Intended outcome";
  font-size: 11px;
}

#todayView .mission-proof-strip > div:last-child small::after {
  content: "First step";
  font-size: 11px;
}

.final-today-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.final-today-main,
.final-today-side {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.clarity-card,
.today-timeline-card,
.top-three-final,
.today-goal-card,
.ideas-collapsed,
.plan-clarity-card,
.plan-timeline-panel {
  border: 1px solid #e3e7e5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(20, 31, 45, 0.045);
}

.clarity-card,
.today-timeline-card,
.top-three-final,
.plan-clarity-card,
.plan-timeline-panel {
  padding: 20px;
}

.clarity-card {
  border-color: #f2d4ad;
  background: #fffdf9;
}

.clarity-card textarea,
.plan-clarity-card textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid #dfe4e2;
  border-radius: 8px;
  padding: 14px 16px;
  color: #142033;
  background: #fff;
  font: inherit;
  line-height: 1.5;
}

.clarity-card textarea:focus,
.plan-clarity-card textarea:focus {
  border-color: #e7902c;
  outline: 3px solid rgba(231, 144, 44, 0.12);
}

.clarity-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.clarity-actions [role="status"],
#planBuildResult {
  color: #60706b;
  font-size: 13px;
}

.final-top-three-list {
  display: grid;
  gap: 6px;
}

.final-top-row {
  display: grid;
  grid-template-columns: 30px 28px minmax(0, 1fr) 30px;
  gap: 8px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid #edf0ef;
}

.final-top-rank {
  color: #e47e14;
  font-weight: 800;
  text-align: center;
}

.final-top-check {
  width: 26px;
  height: 26px;
  border: 1px solid #cfd8d5;
  border-radius: 6px;
  background: #fff;
  color: #087763;
}

.final-top-copy {
  min-width: 0;
}

.final-top-copy strong,
.final-top-copy small {
  display: block;
}

.final-top-copy strong {
  overflow-wrap: anywhere;
  color: #142033;
}

.final-top-copy small {
  margin-top: 4px;
  color: #6c7773;
}

.final-top-more {
  border: 0;
  background: transparent;
  color: #6b7572;
  font-size: 18px;
}

.final-top-add {
  display: grid;
  grid-template-columns: 1fr 40px;
  gap: 8px;
  margin-top: 14px;
}

.final-top-add input {
  min-width: 0;
  border: 1px solid #dfe4e2;
  border-radius: 7px;
  padding: 10px 12px;
}

.final-top-add button {
  border: 0;
  border-radius: 7px;
  background: #fff0df;
  color: #d56f08;
  font-size: 20px;
}

.top-three-view-all {
  margin-top: 10px;
}

.today-goal-card {
  display: grid;
  width: 100%;
  gap: 7px;
  padding: 18px;
  border-color: #b9dbd1;
  text-align: left;
}

.today-goal-card small {
  color: #087763;
  font-weight: 800;
  text-transform: uppercase;
}

.today-goal-card strong {
  color: #142033;
  font-size: 18px;
}

.today-goal-card span {
  color: #64716d;
}

.today-goal-card span b {
  color: #e47e14;
}

.today-goal-card span em {
  font-style: normal;
}

.today-goal-card > i {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eeeb;
}

.today-goal-card > i b {
  display: block;
  width: var(--goal-progress, 0%);
  height: 100%;
  background: #0b8a72;
}

.final-timeline {
  position: relative;
}

.final-timeline-row {
  display: grid;
  grid-template-columns: 88px 12px minmax(0, 1fr) auto 32px;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  border-bottom: 1px solid #edf0ef;
}

.final-timeline-row.past:not(.done) {
  opacity: 0.58;
}

.final-timeline-row.current {
  margin-inline: -10px;
  padding-inline: 10px;
  border-radius: 7px;
  background: #eef9f5;
  box-shadow: inset 3px 0 #07836d;
}

.final-timeline-row.done .final-timeline-copy strong {
  color: #78817e;
  text-decoration: line-through;
}

.final-timeline-time {
  color: #43516a;
  font-weight: 750;
}

.final-timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--timeline-color, #8792a6);
}

.final-timeline-copy {
  min-width: 0;
}

.final-timeline-copy strong,
.final-timeline-copy small {
  display: block;
  overflow-wrap: anywhere;
}

.final-timeline-copy small {
  margin-top: 3px;
  color: #6a7571;
}

.shared-label {
  color: #b53b70;
  font-weight: 700;
}

.final-timeline-state {
  color: #65716d;
  font-size: 12px;
  font-style: normal;
}

.final-timeline-menu {
  border: 0;
  background: transparent;
  color: #69736f;
  font-size: 18px;
}

.ideas-collapsed {
  padding: 0 18px;
}

.ideas-collapsed summary {
  padding: 16px 0;
  cursor: pointer;
  color: #35423f;
  font-weight: 750;
}

.ideas-collapsed summary span {
  float: right;
  color: #e47e14;
}

.final-ideas-list {
  padding-bottom: 14px;
}

.final-idea-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #edf0ef;
}

.final-idea-row input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
}

.final-plan-layout {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.final-plan-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.final-plan-header h2 {
  margin: 4px 0 0;
  color: #142033;
  font-size: 28px;
}

.plan-date-nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.plan-date-nav > button:not(.primary-button),
.plan-date-nav input {
  min-height: 40px;
  border: 1px solid #dfe4e2;
  border-radius: 7px;
  background: #fff;
  color: #26343f;
}

.plan-date-nav > button:not(.primary-button) {
  padding-inline: 12px;
}

.plan-clarity-card {
  margin-bottom: 18px;
  border-color: #f2d4ad;
  background: #fffdf9;
}

.plan-clarity-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.plan-timeline-panel .builder-route-board {
  border: 0;
  box-shadow: none;
}

#mapView .board-subhead:first-child {
  display: none;
}

#mapView .builder-route-row {
  grid-template-columns: minmax(0, 1fr) 36px;
  border: 0;
  border-bottom: 1px solid #edf0ef;
  border-radius: 0;
  box-shadow: none;
}

#mapView .route-actions,
#mapView .route-link {
  display: none;
}

#mapView .plan-backlog {
  margin-top: 22px;
}

.plan-editor-backdrop,
.plan-editor-sheet {
  position: fixed;
  z-index: 120;
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.plan-editor-backdrop {
  inset: 0;
  background: rgba(12, 22, 31, 0.32);
}

.plan-editor-sheet {
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  overflow-y: auto;
  border-radius: 0;
  transform: translateX(100%);
}

body.plan-editor-open .plan-editor-backdrop,
body.plan-editor-open .plan-editor-sheet {
  opacity: 1;
  pointer-events: auto;
}

body.plan-editor-open .plan-editor-sheet {
  transform: translateX(0);
}

/* v98: one quiet planning surface */
.plan-clarity-card > div:first-child p {
  margin: 5px 0 0;
  color: #6e7975;
  font-size: 14px;
}

.plan-clarity-card textarea::placeholder {
  color: #a6afac;
  opacity: 1;
}

#mapView .builder-route-row {
  min-height: 72px;
  padding: 6px 0;
}

#mapView .route-select {
  grid-template-columns: 68px 38px minmax(0, 1fr) auto;
  min-height: 60px;
}

#mapView .route-copy small {
  margin-top: 3px;
  color: #7a8581;
}

#mapView .plan-backlog {
  padding-top: 18px;
  border-top: 1px solid #e7ebe9;
}

#mapView .plan-backlog .board-subhead {
  display: flex;
  margin-bottom: 5px;
}

#mapView .plan-backlog .board-subhead strong {
  color: #142033;
  font-size: 15px;
}

#mapView .plan-backlog .board-subhead span {
  color: #7a8581;
  font-size: 13px;
}

#mapView .unscheduled-task {
  grid-template-columns: 9px minmax(0, 1fr) auto;
  min-height: 58px;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid #edf0ef;
  border-radius: 0;
  background: #fff;
}

#mapView .unscheduled-copy {
  display: block;
  min-width: 0;
}

#mapView .unscheduled-copy strong,
#mapView .unscheduled-copy small {
  display: block;
}

#mapView .unscheduled-copy strong {
  overflow: hidden;
  color: #142033;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#mapView .unscheduled-copy small {
  margin-top: 3px;
  color: #7a8581;
  font-size: 12px;
}

#mapView .unscheduled-task button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #cfe4de;
  border-radius: 7px;
  background: #f3faf7;
  color: #087763;
  font-weight: 750;
}

.sheet-close-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f4f3;
  color: #47534f;
  font-size: 24px;
  line-height: 1;
}

.plan-editor-close {
  float: right;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f1f4f3;
  color: #26343f;
  font-size: 20px;
}

@media (max-width: 1040px) {
  .final-today-grid {
    grid-template-columns: 1fr;
  }

  .final-today-side {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  }
}
