:root {
  --bg-1: #071117;
  --bg-2: #0e1822;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.11);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f4f7fb;
  --muted: #afbdd0;
  --purple: #7a39bb;
  --teal-1: #227f8b;
  --teal-2: #01696f;
  --danger: #ff7272;
  --success: #34d399;
  --warning: #fbbf24;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --gold: #e2b858;
  --commitment-glow: rgba(122, 57, 187, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background:
    radial-gradient(circle at top left, rgba(122, 57, 187, 0.22), transparent 25%),
    radial-gradient(circle at top right, rgba(34, 127, 139, 0.22), transparent 22%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2));
}

/* ── Focus mode ── */
body.focus-mode .top-frame,
body.focus-mode .section-today,
body.focus-mode .section-daily-win,
body.focus-mode .section-commitments,
body.focus-mode .section-signals,
body.focus-mode .section-wrapup,
body.focus-mode .section-recommit,
body.focus-mode .section-companion,
body.focus-mode .section-tomorrow,
body.focus-mode .suggestion-card,
body.focus-mode .filters-panel {
  opacity: 0.35;
  filter: grayscale(0.18);
}

body.focus-mode .task-entry,
body.focus-mode .board-column {
  transform: scale(1.005);
}

img {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
}

.hidden {
  display: none !important;
}

.app-shell {
  width: min(1400px, calc(100% - 32px));
  margin: 22px auto 32px;
}

.glass-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.09),
    rgba(255, 255, 255, 0.05)
  );
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* ── Topbar ── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  margin-bottom: 18px;
}

.brand-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.brand-logo {
  width: min(260px, 62vw);
  display: block;
  height: auto;
  object-fit: contain;
}

.brand-logo-fallback {
  display: none;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--text);
}

.brand-slogan {
  margin: 0;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.74rem;
  line-height: 1.2;
  font-style: italic;
  font-weight: 500;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Shared button transitions ── */
.icon-btn,
.primary-btn,
.secondary-btn,
.ghost-btn {
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, box-shadow 0.18s ease;
}

.icon-btn:hover,
.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 1rem;
}

/* ── Dashboard ── */
.dashboard {
  display: grid;
  gap: 18px;
}

/* ── Section headers (shared) ── */
.section-header {
  margin-bottom: 16px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.section-header-standalone {
  margin-bottom: 14px;
}

.section-subline {
  margin: -8px 0 18px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════════
   A. TOP FRAME
   ════════════════════════════════════════════════════════════════════ */
.top-frame {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.top-frame-left {
  grid-column: 1;
}

.top-frame-right {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: start;
}

.top-frame-personalise {
  grid-column: 1;
}

.top-frame-title {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
  line-height: 1.1;
}

.top-frame-subtitle {
  margin: 0 0 6px;
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.5;
  font-size: 0.92rem;
}

.daily-state-line {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.01em;
}

.momentum-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(175, 189, 208, 0.65);
  line-height: 1.45;
  font-style: italic;
}

.top-frame-stat {
  padding: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
}

.stat-label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.top-frame-stat strong {
  display: block;
  font-size: 1.05rem;
  line-height: 1.35;
}

/* ════════════════════════════════════════════════════════════════════
   B. TODAY
   ════════════════════════════════════════════════════════════════════ */
.section-today {
  padding: 22px;
  border-radius: var(--radius-xl);
}

.today-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.today-focus,
.today-next-move {
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.today-focus-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.today-focus strong {
  font-size: 1rem;
  line-height: 1.45;
}

.today-next-move span:not(.today-focus-label) {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════════
   C. DAILY WIN
   ════════════════════════════════════════════════════════════════════ */
.section-daily-win {
  padding: 22px;
  border-radius: var(--radius-xl);
  border-color: rgba(226, 184, 88, 0.2);
  background: linear-gradient(
    180deg,
    rgba(226, 184, 88, 0.06),
    rgba(255, 255, 255, 0.04)
  );
}

.section-daily-win .eyebrow {
  color: var(--gold);
}

.daily-win-body {
  min-height: 60px;
}

.daily-win-slot {
  padding: 18px;
  border: 1px dashed rgba(226, 184, 88, 0.25);
  border-radius: var(--radius-lg);
  background: rgba(226, 184, 88, 0.04);
}

.daily-win-slot.dw-locked {
  border-style: solid;
  border-color: rgba(226, 184, 88, 0.35);
  background: rgba(226, 184, 88, 0.08);
}

.daily-win-slot.dw-completed {
  border-style: solid;
  border-color: rgba(52, 211, 153, 0.3);
  background: rgba(52, 211, 153, 0.06);
}

.daily-win-prompt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.dw-support {
  margin: 0 0 12px;
  color: rgba(175, 189, 208, 0.5);
  font-size: 0.8rem;
  font-style: italic;
  line-height: 1.5;
}

.dw-support-locked {
  margin: 0 0 14px;
}

.dw-note {
  margin: 6px 0 0;
  color: rgba(52, 211, 153, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.dw-input-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.dw-input-row .text-input {
  flex: 1;
  min-height: 44px;
}

.dw-text {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
}

.dw-state-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.dw-state-label.state-set { color: var(--gold); }
.dw-state-label.state-locked { color: var(--gold); }
.dw-state-label.state-completed { color: var(--success); }

.dw-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dw-confirm-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin-top: 12px;
  border-radius: var(--radius-md);
  background: rgba(226, 184, 88, 0.08);
  border: 1px solid rgba(226, 184, 88, 0.2);
}

.dw-confirm-bar p {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--gold);
  flex: 1;
}

/* ════════════════════════════════════════════════════════════════════
   D. COMMITMENTS — strongest visual weight
   ════════════════════════════════════════════════════════════════════ */
.section-commitments {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 3px;
  background: linear-gradient(
    135deg,
    rgba(122, 57, 187, 0.45),
    rgba(34, 127, 139, 0.35),
    rgba(122, 57, 187, 0.25)
  );
}

.commitments-inner {
  padding: 22px;
  border-radius: calc(var(--radius-xl) - 2px);
  background: linear-gradient(
    180deg,
    rgba(122, 57, 187, 0.1),
    rgba(14, 24, 34, 0.95)
  );
  box-shadow:
    0 0 40px rgba(122, 57, 187, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.section-commitments .eyebrow {
  color: #c9a0ff;
  letter-spacing: 0.28em;
}

.section-commitments h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}

.commitments-body {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.commitment-slot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(122, 57, 187, 0.2);
  background: rgba(122, 57, 187, 0.06);
  min-height: 58px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.commitment-slot:hover {
  border-color: rgba(122, 57, 187, 0.35);
  background: rgba(122, 57, 187, 0.1);
}

.commitment-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(122, 57, 187, 0.2);
  border: 1px solid rgba(122, 57, 187, 0.35);
  font-weight: 800;
  font-size: 0.82rem;
  color: #d4b3ff;
  flex-shrink: 0;
}

.commitment-placeholder {
  color: var(--muted);
  font-size: 0.88rem;
}

.commitment-slot.filled-commitment {
  background: rgba(122, 57, 187, 0.1);
  border-color: rgba(122, 57, 187, 0.3);
}

.commitment-slot.completed-commitment {
  background: rgba(52, 211, 153, 0.06);
  border-color: rgba(52, 211, 153, 0.2);
}

.commitment-name {
  flex: 1;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.4;
  word-break: break-word;
}

.commitment-name.commitment-done {
  text-decoration: line-through;
  opacity: 0.7;
}

.commitment-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.commitment-actions .task-btn {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
}

.task-btn.commit-btn {
  background: rgba(122, 57, 187, 0.15);
  border-color: rgba(122, 57, 187, 0.3);
  color: #d4b3ff;
}

.task-btn.commit-btn:hover {
  background: rgba(122, 57, 187, 0.25);
}

.meta-commitment {
  background: rgba(122, 57, 187, 0.2);
  color: #d4b3ff;
  border-color: rgba(122, 57, 187, 0.35);
}

.commitments-progress {
  display: flex;
  align-items: center;
  gap: 12px;
}

.commitments-progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.commitments-progress-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple), var(--teal-1));
  transition: width 0.4s ease;
}

.commitments-progress-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

/* ════════════════════════════════════════════════════════════════════
   E. IN MOTION
   ════════════════════════════════════════════════════════════════════ */
.section-in-motion {
  display: grid;
  gap: 18px;
}

.section-in-motion .section-header-standalone .eyebrow {
  color: var(--muted);
  margin-bottom: 4px;
}

.section-in-motion .section-header-standalone h2 {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 600;
}

/* ── Reused card radii ── */
.task-entry,
.filters-panel,
.board-column,
.suggestion-card,
.modal-card {
  border-radius: var(--radius-xl);
}

.task-entry,
.filters-panel,
.suggestion-card {
  padding: 22px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #d7c4ef;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.inline-control {
  display: flex;
  gap: 10px;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading-row h2 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.tiny-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.form-grid,
.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-span-2 {
  grid-column: span 2;
}

.field-label {
  font-size: 0.88rem;
  color: #d7dfeb;
  font-weight: 600;
}

.text-input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(7, 16, 24, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-size: 0.92rem;
}

.text-input::placeholder {
  color: #7e91a8;
}

.text-input:focus {
  border-color: rgba(122, 57, 187, 0.85);
  box-shadow: 0 0 0 4px rgba(122, 57, 187, 0.14);
}

.compact-input {
  min-height: 44px;
}

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

.entry-actions,
.suggestion-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
}

.primary-btn {
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--teal-1));
  box-shadow: 0 12px 30px rgba(122, 57, 187, 0.28);
  letter-spacing: 0.01em;
}

.primary-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none;
}

.secondary-btn {
  color: white;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
}

.ghost-btn {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
}

.danger-btn {
  color: #ffd0d0;
  border-color: rgba(255, 114, 114, 0.32);
}

.suggestion-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
}

.suggestion-copy h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.suggestion-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Board grid ── */
.board-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.board-column {
  padding: 20px;
  min-height: 420px;
}

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

.board-header h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.count-pill {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(122, 57, 187, 0.16);
  border: 1px solid rgba(122, 57, 187, 0.26);
  font-weight: 800;
}

.success-pill {
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.26);
}

/* ── Task cards ── */
.task-list {
  display: grid;
  gap: 14px;
}

.task-card {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.task-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.14);
}

.task-card.completed {
  opacity: 0.86;
}

.task-card.editing {
  border-color: rgba(34, 127, 139, 0.65);
  box-shadow: 0 0 0 4px rgba(34, 127, 139, 0.12);
}

.task-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.task-title {
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  word-break: break-word;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.priority-high {
  background: rgba(255, 114, 114, 0.15);
  color: #ffc2c2;
  border-color: rgba(255, 114, 114, 0.25);
}

.priority-medium {
  background: rgba(251, 191, 36, 0.15);
  color: #ffe6a2;
  border-color: rgba(251, 191, 36, 0.22);
}

.priority-low {
  background: rgba(52, 211, 153, 0.15);
  color: #b9ffe4;
  border-color: rgba(52, 211, 153, 0.25);
}

.meta-neutral {
  background: rgba(255, 255, 255, 0.07);
  color: #dbe5f2;
  border-color: rgba(255, 255, 255, 0.12);
}

.meta-urgent {
  background: rgba(122, 57, 187, 0.18);
  color: #edd9ff;
  border-color: rgba(122, 57, 187, 0.22);
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.task-btn {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.task-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.task-edit-grid {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.task-edit-grid.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.empty-state {
  padding: 20px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════════
   F. SIGNALS
   ════════════════════════════════════════════════════════════════════ */
.section-signals {
  padding: 22px;
  border-radius: var(--radius-xl);
}

.section-signals .eyebrow {
  color: var(--teal-1);
}

.signals-body {
  display: grid;
  gap: 10px;
}

.signal-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.signal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.signal-friction {
  background: rgba(255, 114, 114, 0.15);
  color: #ffc2c2;
  border: 1px solid rgba(255, 114, 114, 0.25);
}

.signal-proof {
  background: rgba(52, 211, 153, 0.15);
  color: #b9ffe4;
  border: 1px solid rgba(52, 211, 153, 0.25);
}

.signal-protect {
  background: rgba(226, 184, 88, 0.15);
  color: #f5dfa0;
  border: 1px solid rgba(226, 184, 88, 0.25);
}

.signal-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.signal-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.signal-value {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ════════════════════════════════════════════════════════════════════
   G. RECOMMIT
   ════════════════════════════════════════════════════════════════════ */
.section-recommit {
  padding: 22px;
  border-radius: var(--radius-xl);
  border-color: rgba(255, 114, 114, 0.22);
  background: linear-gradient(
    180deg,
    rgba(255, 114, 114, 0.06),
    rgba(255, 255, 255, 0.04)
  );
}

.section-recommit .eyebrow {
  color: var(--danger);
}

.recommit-body {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.recommit-flow {
  animation: stepFadeIn 0.22s ease;
}

.recommit-title {
  margin: 4px 0 8px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.recommit-subline {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.recommit-task-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 6px;
}

.recommit-task-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 114, 114, 0.08);
  border: 1px solid rgba(255, 114, 114, 0.15);
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 500;
}

.recommit-task-focus {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 114, 114, 0.08);
  border: 1px solid rgba(255, 114, 114, 0.15);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.recommit-counter {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  margin-left: 6px;
}

.recommit-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}

.recommit-input-wrap {
  margin-bottom: 14px;
}

.recommit-fallback-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 18px;
}

.recommit-option {
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 500;
  font-size: 0.85rem;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.recommit-fallback-options:has(.recommit-option:nth-child(5)) .recommit-option:last-child {
  grid-column: span 2;
}

.recommit-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.recommit-option.selected {
  background: rgba(255, 114, 114, 0.12);
  border-color: rgba(255, 114, 114, 0.4);
  color: #ffb8b8;
}

.recommit-action-options {
  display: grid;
  gap: 8px;
  margin-bottom: 6px;
}

.recommit-action-btn {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.recommit-action-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.recommit-finish .recommit-title {
  color: var(--success);
}

.recommit-finish .recommit-subline {
  margin-bottom: 12px;
}

/* ════════════════════════════════════════════════════════════════════
   H. TOMORROW STARTS TODAY
   ════════════════════════════════════════════════════════════════════ */
.section-tomorrow {
  padding: 22px;
  border-radius: var(--radius-xl);
  border-color: rgba(34, 127, 139, 0.2);
  background: linear-gradient(
    180deg,
    rgba(34, 127, 139, 0.06),
    rgba(255, 255, 255, 0.04)
  );
}

.section-tomorrow .eyebrow {
  color: var(--teal-1);
}

.tomorrow-prompt {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.tomorrow-support {
  margin: 0 0 14px;
  color: rgba(175, 189, 208, 0.55);
  font-size: 0.8rem;
  line-height: 1.5;
  font-style: italic;
}

.tomorrow-body {
  animation: stepFadeIn 0.22s ease;
}

.tomorrow-input-row {
  display: flex;
  gap: 10px;
  max-width: 560px;
}

.tomorrow-input-row .text-input {
  flex: 1;
}

.tomorrow-state-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.state-set {
  background: rgba(34, 127, 139, 0.18);
  color: var(--teal-1);
  border: 1px solid rgba(34, 127, 139, 0.3);
}

.state-promoted {
  background: rgba(52, 211, 153, 0.14);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.28);
}

.tomorrow-set-card,
.tomorrow-promoted-card {
  max-width: 560px;
}

.tmr-text {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.tmr-text-muted {
  color: var(--muted);
  font-weight: 500;
}

.tmr-promoted-note {
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

.tmr-actions {
  display: flex;
  gap: 8px;
}

/* ════════════════════════════════════════════════════════════════════
   TOAST / CELEBRATION / MODALS (unchanged)
   ════════════════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(9, 18, 28, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: white;
  box-shadow: var(--shadow);
  z-index: 1200;
}

.celebration-burst {
  pointer-events: none;
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 1100;
}

.confetti-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  animation: burstFall 900ms ease forwards;
}

@keyframes burstFall {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(140px) scale(0.65);
    opacity: 0;
  }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 12, 0.72);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 1300;
}

.modal-card {
  width: min(520px, 100%);
  padding: 22px;
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.shortcut-list {
  display: grid;
  gap: 10px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

kbd {
  min-width: 40px;
  padding: 8px 10px;
  border-radius: 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: inherit;
  font-weight: 700;
  color: white;
}

/* ── Onboarding ── */
.onboarding-overlay {
  z-index: 1350;
}

.onboarding-trust {
  margin: 0 0 20px;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.onboarding-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}

.step-dot {
  height: 7px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
  transition: background 0.2s ease, width 0.2s ease;
  width: 7px;
}

.step-dot.step-active {
  width: 22px;
  background: var(--purple);
}

.onboarding-question {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.onboarding-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.onboarding-option {
  min-height: 54px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.onboarding-options:has(.onboarding-option:nth-child(5)) .onboarding-option:last-child {
  grid-column: span 2;
}

.onboarding-option:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.onboarding-option.selected {
  background: rgba(122, 57, 187, 0.18);
  border-color: rgba(122, 57, 187, 0.6);
  box-shadow: 0 0 0 3px rgba(122, 57, 187, 0.12);
  color: #e8d5ff;
}

.onboarding-actions {
  display: flex;
  justify-content: flex-end;
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Profile badge (re-entry) ── */
.profile-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 20px;
  background: rgba(122, 57, 187, 0.1);
  border: 1px solid rgba(122, 57, 187, 0.22);
  width: fit-content;
}

.profile-badge-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.profile-badge-name {
  font-size: 0.8rem;
  font-weight: 700;
  color: #c9aaff;
  letter-spacing: 0.02em;
}

/* ── Profile reveal (completion) ── */
.profile-reveal {
  text-align: center;
  padding: 20px 0 8px;
}

.profile-reveal-label {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.profile-reveal-name {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: #c9aaff;
  letter-spacing: -0.01em;
}

.profile-reveal-desc {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(175, 189, 208, 0.8);
  line-height: 1.5;
}

/* ── Confirm overlay ── */
.confirm-overlay {
  z-index: 1400;
}

.confirm-card {
  width: min(420px, 100%);
  padding: 24px;
  border-radius: var(--radius-xl);
  text-align: center;
}

.confirm-message {
  margin: 0 0 20px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
}

.confirm-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* ── History Mirror ── */
.section-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.mirror-open-btn {
  flex-shrink: 0;
  margin-top: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: rgba(34, 127, 139, 0.14);
  border: 1px solid rgba(34, 127, 139, 0.32);
  color: #5ecfdb;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.mirror-open-btn:hover {
  background: rgba(34, 127, 139, 0.24);
  border-color: rgba(34, 127, 139, 0.55);
  color: #8de8f0;
}

.history-modal-card {
  width: min(640px, 100%);
  padding: 26px 28px 22px;
}

.mirror-days {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.mirror-day {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background 0.12s ease;
}

.mirror-day:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mirror-day-today {
  background: rgba(122, 57, 187, 0.1);
  border-color: rgba(122, 57, 187, 0.22);
}

.mirror-day-today:hover {
  background: rgba(122, 57, 187, 0.15);
}

.mirror-day-label {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 80px;
  flex-shrink: 0;
}

.mirror-day-name {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.mirror-day-today .mirror-day-name {
  color: #c9aaff;
}

.mirror-day-date {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.2;
}

.mirror-day-stats {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mirror-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.mirror-chip-none {
  color: rgba(175, 189, 208, 0.35);
  font-size: 0.75rem;
}

.mirror-chip-tasks {
  background: rgba(34, 127, 139, 0.14);
  border: 1px solid rgba(34, 127, 139, 0.28);
  color: #7ee8f0;
}

.mirror-chip-commits-full {
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.3);
  color: #6edbb8;
}

.mirror-chip-commits-partial {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.28);
  color: #f5d06a;
}

.mirror-chip-commits-miss {
  background: rgba(255, 114, 114, 0.1);
  border: 1px solid rgba(255, 114, 114, 0.25);
  color: #ff9e9e;
}

.mirror-chip-recommit {
  background: rgba(122, 57, 187, 0.14);
  border: 1px solid rgba(122, 57, 187, 0.3);
  color: #c4a0ff;
}

.mirror-note {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

/* ════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .top-frame {
    grid-template-columns: 1fr;
  }

  .top-frame-right {
    grid-column: 1;
    grid-row: auto;
  }

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

  .today-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .app-shell {
    width: min(100% - 20px, 100%);
    margin: 10px auto 20px;
  }

  .topbar,
  .top-frame,
  .section-today,
  .section-daily-win,
  .commitments-inner,
  .task-entry,
  .filters-panel,
  .board-column,
  .suggestion-card,
  .section-signals,
  .section-recommit,
  .section-tomorrow {
    border-radius: 20px;
  }

  .section-commitments {
    border-radius: 22px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-grid,
  .filter-grid,
  .top-frame-right,
  .task-edit-grid.two-cols {
    grid-template-columns: 1fr;
  }

  .field-span-2 {
    grid-column: span 1;
  }

  .inline-control,
  .suggestion-card,
  .section-heading-row {
    flex-direction: column;
    align-items: stretch;
  }

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

  .task-top {
    flex-direction: column;
  }
}

/* ══════════════════════════════════════════════════════════════════
   COMPANION SECTION
   ══════════════════════════════════════════════════════════════════ */

.section-companion {
  padding: 28px 32px 24px;
}

.companion-body {
  margin: 0 0 20px;
}

.companion-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.companion-note-icon {
  font-size: 1.05rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
  line-height: 1.6;
}

.companion-note-text {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-primary);
  margin: 0;
}

.companion-upgrade-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.companion-upgrade-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.companion-upgrade-copy {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════════
   PREMIUM PILL + UPGRADE CTA BUTTON
   ══════════════════════════════════════════════════════════════════ */

.premium-pill {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  background: linear-gradient(135deg, #a78bfa, #818cf8);
  color: #fff;
  flex-shrink: 0;
  line-height: 1.5;
}

.upgrade-cta-btn {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  background: transparent;
  border: 1px solid rgba(99, 102, 241, 0.4);
  border-radius: 8px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  white-space: nowrap;
}

.upgrade-cta-btn:hover {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.7);
}

/* ══════════════════════════════════════════════════════════════════
   SIGNALS — PREMIUM TEASER ROW
   ══════════════════════════════════════════════════════════════════ */

.signal-row-premium {
  cursor: pointer;
  border-radius: 10px;
  border: 1px dashed rgba(167, 139, 250, 0.25);
  padding: 12px 14px;
  transition: background 0.2s, border-color 0.2s;
  outline: none;
}

.signal-row-premium:hover,
.signal-row-premium:focus-visible {
  background: rgba(167, 139, 250, 0.05);
  border-color: rgba(167, 139, 250, 0.45);
}

.signal-icon.signal-premium {
  background: linear-gradient(135deg, #a78bfa, #818cf8);
  color: #fff;
}

.signal-upgrade-btn {
  margin-left: auto;
  flex-shrink: 0;
  align-self: center;
}

/* ══════════════════════════════════════════════════════════════════
   PREMIUM MODAL
   ══════════════════════════════════════════════════════════════════ */

.premium-modal-card {
  max-width: 560px;
  width: 100%;
}

.premium-modal-subline {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 24px;
  line-height: 1.6;
}

.premium-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.premium-tier {
  padding: 20px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.premium-tier-paid {
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(167, 139, 250, 0.06);
}

.tier-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 14px;
}

.premium-tier-paid .tier-heading {
  color: #a78bfa;
}

.tier-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.tier-list li {
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.4;
}

.tier-list li::before {
  content: "\2013";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

.premium-tier-paid .tier-list li {
  color: var(--text-primary);
}

.premium-tier-paid .tier-list li::before {
  content: "\2713";
  color: #a78bfa;
  font-weight: 700;
}

/* ── Premium email capture ──────────────────────────────────────── */

.premium-capture {
  margin-top: 4px;
}

.premium-capture-lead {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0 0 14px;
  line-height: 1.55;
}

.premium-input-row {
  display: flex;
  gap: 10px;
}

.premium-email-input {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}

.premium-email-input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.premium-email-input:focus {
  border-color: rgba(167, 139, 250, 0.55);
}

.premium-notify-btn {
  padding: 12px 22px;
  background: linear-gradient(135deg, #a78bfa, #818cf8);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}

.premium-notify-btn:hover {
  opacity: 0.88;
}

.premium-capture-error {
  font-size: 0.78rem;
  color: #f87171;
  margin: 8px 0 0;
  line-height: 1.4;
}

.premium-capture-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: rgba(167, 139, 250, 0.08);
  border: 1px solid rgba(167, 139, 250, 0.25);
  border-radius: 10px;
}

.premium-success-icon {
  font-size: 1rem;
  color: #a78bfa;
  font-weight: 700;
  flex-shrink: 0;
}

.premium-success-text {
  font-size: 0.84rem;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.5;
}

.premium-privacy-note {
  font-size: 0.72rem;
  color: rgba(175, 189, 208, 0.45);
  text-align: center;
  margin: 12px 0 0;
  line-height: 1.5;
}

.premium-privacy-note a {
  color: rgba(167, 139, 250, 0.6);
  text-decoration: none;
  transition: color 0.15s;
}

.premium-privacy-note a:hover {
  color: rgba(167, 139, 250, 0.9);
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — new components ≤ 780px
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 780px) {
  .section-companion {
    padding: 22px 20px 20px;
    border-radius: 20px;
  }

  .companion-upgrade-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .premium-tiers {
    grid-template-columns: 1fr;
  }

  .signal-row-premium {
    flex-wrap: wrap;
    row-gap: 8px;
  }

  .premium-input-row {
    flex-direction: column;
  }

  .wrapup-metrics {
    grid-template-columns: 1fr !important;
  }

  .modal-header h2 {
    font-size: 1.35rem;
  }
}

/* ══════════════════════════════════════════════════════════════════
   WEEKLY MOMENTUM WRAP-UP
   ══════════════════════════════════════════════════════════════════ */

.section-wrapup {
  padding: 28px 32px 24px;
}

.wrapup-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.wrapup-metric {
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.wrapup-metric-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.wrapup-metric-value {
  display: block;
  font-size: 0.85rem;
  color: var(--text);
  line-height: 1.5;
}

.wrapup-actions {
  margin-bottom: 12px;
  text-align: right;
}

.wrapup-premium-teaser {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(167, 139, 250, 0.05);
  border: 1px dashed rgba(167, 139, 250, 0.25);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.wrapup-premium-teaser:hover,
.wrapup-premium-teaser:focus-visible {
  background: rgba(167, 139, 250, 0.1);
  outline: none;
}

.wrapup-teaser-copy {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.wrapup-restore-btn {
  width: 100%;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.2s;
}

.wrapup-restore-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ══════════════════════════════════════════════════════════════════
   SIGNALS MATURITY LINE
   ══════════════════════════════════════════════════════════════════ */

.signals-maturity-line {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.7;
  margin: 10px 0 4px;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════════
   COMPANION UPGRADES
   ══════════════════════════════════════════════════════════════════ */

.companion-note-content {
  flex: 1;
  min-width: 0;
}

.companion-guidance-text {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 4px 0 0;
  line-height: 1.55;
}

.companion-maturity-line {
  font-size: 0.72rem;
  color: var(--muted);
  opacity: 0.7;
  margin: 8px 0 0;
  line-height: 1.4;
}

/* ══════════════════════════════════════════════════════════════════
   RECOMMIT REASON GRID
   ══════════════════════════════════════════════════════════════════ */

.recommit-reason-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 16px 0;
}

@media (max-width: 780px) {
  .recommit-reason-grid {
    grid-template-columns: 1fr;
  }
}

.recommit-recovery-line {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
  margin: 12px 0 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.recommit-proof {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 12px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════════════
   SETTINGS / DATA SECTION IN SHORTCUTS MODAL
   ══════════════════════════════════════════════════════════════════ */

.settings-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 16px;
  padding-top: 4px;
}

.settings-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ══════════════════════════════════════════════════════════════════
   EOD BRIDGE
   ══════════════════════════════════════════════════════════════════ */

.tomorrow-eod-bridge {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.55;
}

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE — 320px hardening
   ══════════════════════════════════════════════════════════════════ */

@media (max-width: 380px) {
  .app-shell {
    width: calc(100% - 12px);
    margin: 6px auto 16px;
  }

  .topbar {
    padding: 10px 12px;
    gap: 8px;
  }

  .brand-logo {
    max-height: 22px;
  }

  .top-frame,
  .section-today,
  .section-daily-win,
  .section-signals,
  .section-companion,
  .section-wrapup,
  .section-recommit,
  .section-tomorrow,
  .commitments-inner,
  .task-entry,
  .filters-panel,
  .board-column,
  .suggestion-card {
    padding: 16px 14px;
    border-radius: 16px;
  }

  .section-commitments {
    border-radius: 18px;
  }

  .top-frame-title {
    font-size: 1.1rem;
  }

  .top-frame-subtitle,
  .daily-state-line,
  .section-subline {
    font-size: 0.78rem;
  }

  h2 {
    font-size: 1rem;
  }

  .eyebrow {
    font-size: 0.6rem;
  }

  .text-input {
    font-size: 0.82rem;
    padding: 8px 10px;
  }

  .primary-btn,
  .secondary-btn,
  .ghost-btn {
    font-size: 0.8rem;
    padding: 8px 12px;
  }

  .task-btn {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .commitment-slot {
    padding: 8px 10px;
  }

  .commitment-actions {
    flex-wrap: wrap;
  }

  .signal-row {
    gap: 8px;
    padding: 8px 0;
  }

  .signal-icon {
    width: 26px;
    height: 26px;
    font-size: 0.7rem;
  }

  .signal-value {
    font-size: 0.78rem;
  }

  .companion-note {
    padding: 12px 14px;
  }

  .companion-upgrade-strip {
    padding: 10px 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .premium-modal-card {
    max-width: 100%;
    margin: 10px;
  }

  .premium-tiers {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .premium-tier {
    padding: 14px;
  }

  .premium-input-row {
    flex-direction: column;
  }

  .wrapup-metrics {
    grid-template-columns: 1fr;
  }

  .modal-card {
    margin: 10px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
  }

  .recommit-action-options {
    flex-direction: column;
  }

  .recommit-action-btn {
    width: 100%;
    text-align: center;
  }

  .shortcut-list {
    font-size: 0.8rem;
  }

  .settings-actions {
    flex-direction: column;
  }

  .settings-actions button {
    width: 100%;
  }

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