:root {
  color-scheme: light;
  --bg: #efefed;
  --surface: rgba(250, 250, 248, 0.88);
  --surface-strong: #fafaf8;
  --ink: #151515;
  --muted: #7c7c78;
  --subtle: #aaa9a4;
  --line: rgba(21, 21, 21, 0.10);
  --accent: #e9ff57;
  --accent-deep: #cfe82f;
  --dark: #111210;
  --radius-lg: 32px;
  --radius-md: 24px;
  --shadow: 0 24px 70px rgba(18, 19, 17, 0.10);
  --time-cyan: #79d6df;
}

/* Time V2 extends the existing surface, typography and sheet system. */
.nav-group-label { margin: 20px 12px 6px; color: var(--muted); font-size: .8rem; letter-spacing: .14em; }
.menu-list .menu-item { min-height: 66px; }
.menu-list .menu-item b { display: none; }
.time-panel, .time-details { margin: 12px 0; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.time-panel h3 { margin: 0 0 8px; font-size: 1.1rem; overflow-wrap: anywhere; }
.time-panel p, .time-session-row p { margin-bottom: 10px; font-size: .875rem; line-height: 1.5; overflow-wrap: anywhere; }
.time-note { margin: 14px 0; color: #64645f; font-size: .875rem; line-height: 1.55; }
.time-control-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.time-control-row button { flex: 1 1 100px; min-height: 44px; padding: 12px 14px; font-size: .875rem; }
.time-empty-start { width: 100%; margin: 8px 0; min-height: 48px; }
.time-live-clock { display: block; margin: 16px 0; font-size: clamp(1.8rem, 8vw, 2.6rem); font-variant-numeric: tabular-nums; letter-spacing: -.04em; }
.background-panel { background: #e2efed; }
.mini-timer { padding: 16px; }
.mini-timer .time-live-clock { font-size: 1.7rem; margin: 10px 0; }
.time-reminder { margin: 12px 0 0; padding: 14px; border-radius: 16px; background: #f0f6c3; font-size: .875rem; line-height: 1.5; }
.time-details summary { cursor: pointer; min-height: 44px; font-weight: 600; font-size: .95rem; line-height: 1.5; overflow-wrap: anywhere; }
.time-details summary small { display: block; color: #65655f; font-size: .875rem; font-weight: 400; }
.time-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0; }
.time-stat-grid div { min-width: 0; }
.time-stat-grid span, .time-stat-grid small { display: block; font-size: .875rem; color: #62635d; line-height: 1.4; }
.time-stat-grid strong { display: block; margin-top: 6px; font-size: 1.15rem; overflow-wrap: anywhere; }
.forecast-stat { padding-left: 12px; border-left: 2px solid #79d6df; }
.time-session-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(90px,auto); gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.time-session-row h3 { margin: 0 0 6px; font-size: 1rem; overflow-wrap: anywhere; }
.time-session-row > div:last-child { text-align: right; }
.time-session-row .text-button { display: block; margin-left: auto; min-height: 44px; }
.time-session-row .time-control-row { display: grid; }
.time-trend { display: flex; overflow-x: auto; gap: 12px; padding: 10px 0; }
.time-trend div { min-width: 64px; font-size: .875rem; }
.time-trend span, .time-trend strong { display: block; margin: 6px 0; }
.backup-import { display: grid; gap: 12px; margin: 24px 0; }
.backup-import input { width: 100%; font-size: .875rem; }
.backup-download-link { display: block; padding: 14px; border-radius: 18px; color: var(--ink); background: var(--accent); text-align: center; text-decoration: none; min-height: 48px; }
.restore-ack { display: flex; align-items: center; gap: 10px; padding: 14px 0; font-size: .9rem; line-height: 1.5; }
.restore-ack input { width: 24px; height: 24px; }
.deliverable-row { flex-wrap: wrap; }
.timer-budget-mini { color: #656660; font-size: .875rem; }
#homeBackgroundTimer { margin-top: 18px; }
#homeBackgroundTimer .time-panel { background: rgba(121,214,223,.12); }
#sessionEditSheet, #timerStartSheet, #smartStopSheet { max-height: 90dvh; overflow-y: auto; }
#manualSessionFields label { display: grid; gap: 8px; margin-bottom: 18px; }
.time-panel > .primary-button, .time-panel > .secondary-button { width: 100%; margin-bottom: 12px; }
.time-panel button, .time-details button, #homeTimerCard button { min-height: 44px; }
@media (max-width: 360px) { .time-stat-grid { grid-template-columns: 1fr; } .time-session-row { grid-template-columns: 1fr; } .time-session-row > div:last-child { text-align: left; } }

* { box-sizing: border-box; }

html { background: #d9dcda; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 10%, rgba(255,255,255,.92), transparent 34%),
    linear-gradient(145deg, #d9dcda 0%, #cfd2cf 45%, #e7e8e5 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang HK", "Noto Sans TC", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: .42;
}

.ambient-a { width: 300px; height: 300px; background: rgba(233,255,87,.35); top: -120px; right: -140px; }
.ambient-b { width: 260px; height: 260px; background: rgba(184,206,209,.5); bottom: -120px; left: -130px; }

.app-shell {
  position: relative;
  width: min(100%, 460px);
  min-height: 100vh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 20px calc(40px + env(safe-area-inset-bottom));
  background: rgba(239,239,237,.84);
  box-shadow: 0 0 80px rgba(25,25,24,.12);
  backdrop-filter: blur(22px);
  overflow-x: hidden;
}

.view { display: none; animation: viewIn .35s cubic-bezier(.22,.8,.25,1); }
.view.active { display: block; }

@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.topbar { display: flex; align-items: flex-start; justify-content: space-between; margin: 8px 2px 26px; }
.topbar-leading { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.menu-trigger { flex: 0 0 auto; width: 44px; height: 44px; }
.menu-trigger span { font-size: 1.45rem; font-weight: 400; line-height: 1; transform: translateY(-2px); }
.eyebrow, .section-label { margin: 0 0 7px; color: var(--muted); font-size: .72rem; font-weight: 650; letter-spacing: .13em; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(2.2rem, 9vw, 3rem); line-height: .92; letter-spacing: -.065em; }
h2 { margin-bottom: 0; font-size: 1.35rem; line-height: 1.05; letter-spacing: -.04em; }

.round-button, .close-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(250,250,248,.72);
  cursor: pointer;
}
.round-button span { font-size: 1.7rem; font-weight: 300; transform: translateY(-1px); }
.round-button:active, .close-button:active { transform: scale(.95); }

.progress-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.progress-card::after {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -70px;
  top: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,255,87,.46), rgba(233,255,87,0) 68%);
  pointer-events: none;
}

.overview-card { padding: 22px; }
.overview-card::after { width: 145px; height: 145px; top: 74px; opacity: .72; }
.overview-kpis { position:relative; z-index:1; display:grid; grid-template-columns:1fr 1.12fr; margin-top:23px; }
.overview-kpi { min-width:0; }
.overview-kpi + .overview-kpi { padding-left:20px; border-left:1px solid var(--line); }
.overview-kpi-label { display:block; margin-bottom:9px; color:var(--muted); font-size:.66rem; font-weight:700; letter-spacing:.16em; }
.overview-kpi .progress-number { font-size:clamp(3rem, 15vw, 4rem); line-height:.82; }
.overview-kpi .progress-unit { font-size:1rem; }
.overview-kpi strong { display:block; overflow:hidden; font-size:clamp(2rem, 9.5vw, 2.75rem); line-height:.88; letter-spacing:-.07em; white-space:nowrap; }
.overview-kpi p { margin:8px 0 0; color:var(--muted); font-size:.78rem; }
.dual-chart { height:112px; margin:24px 0 0; }
.chart-line-work, .chart-line-money { fill:none; stroke-linecap:round; stroke-width:2.4; }
.chart-line-work { stroke:var(--ink); }
.chart-line-money { stroke:#79d6df; }
.chart-dot-work { fill:var(--ink); stroke:var(--accent); stroke-width:8; }
.chart-dot-money { fill:#159aa7; stroke:rgba(121,214,223,.38); stroke-width:8; }
.chart-axis-label { fill:var(--muted); font-size:9px; letter-spacing:.06em; }
.chart-axis-end { text-anchor:end; }
.chart-legend { display:flex; justify-content:center; gap:22px; margin:4px 0 16px; color:var(--muted); font-size:.7rem; }
.chart-legend span { display:flex; align-items:center; gap:7px; }
.chart-legend i { width:9px; height:9px; border-radius:50%; }
.chart-legend .work i { background:var(--accent); box-shadow:inset 0 0 0 2px var(--ink); }
.chart-legend .money i { background:#79d6df; }
.chart-empty-note { margin:-8px 0 13px; color:var(--subtle); font-size:.64rem; text-align:center; }

.revenue-card { margin-top:16px; padding:22px; border:1px solid rgba(255,255,255,.7); border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--shadow); }
.revenue-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; }
.revenue-card-head h2 { font-size:1.55rem; }
.target-edit-button { min-height:42px; padding:0 15px; border:1px solid var(--line); border-radius:999px; background:rgba(239,239,237,.7); color:var(--muted); cursor:pointer; font-size:.72rem; white-space:nowrap; }
.revenue-total { display:flex; align-items:baseline; gap:6px; margin-top:20px; }
.revenue-total strong { font-size:clamp(2rem, 10vw, 2.8rem); line-height:.9; letter-spacing:-.065em; }
.revenue-total span { color:var(--muted); font-size:1rem; }
.revenue-progress { height:11px; margin:20px 0 18px; overflow:hidden; border-radius:999px; background:rgba(21,21,21,.07); }
.revenue-progress span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg, #52c7d3, #79d6df); transition:width .35s ease; }
.revenue-breakdown { display:grid; gap:0; }
.revenue-breakdown > div { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:38px; }
.revenue-breakdown > div > span { display:flex; align-items:center; color:#4d4e4a; font-size:.78rem; }
.revenue-breakdown strong { font-size:.86rem; letter-spacing:-.025em; }
.revenue-breakdown b { font-weight:500; }
.revenue-separator { margin-top:5px; padding-top:8px; border-top:1px solid var(--line); }
.revenue-dot { display:inline-block; width:9px; height:9px; margin-right:9px; border-radius:50%; background:#b9bab6; }
.revenue-dot.confirmed { background:#79d6df; }
.revenue-dot.paid { background:#257e87; }
.revenue-dot.unpaid { background:#a8e5ea; }
.revenue-dot.potential { border:1px dashed #7c7c78; background:transparent; }

.progress-card-head, .section-heading, .sheet-header, .deliverable-row, .project-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.period-pill {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: .62rem;
  letter-spacing: .08em;
}

.progress-display { position: relative; z-index: 1; margin-top: 26px; }
.progress-number { font-size: clamp(5.5rem, 26vw, 7.4rem); font-weight: 440; line-height: .78; letter-spacing: -.095em; }
.progress-unit { margin-left: 4px; font-size: 1.35rem; color: var(--muted); }
.progress-caption { margin: 15px 0 0 4px; color: var(--muted); font-size: .82rem; }

.progress-chart { display: block; width: 100%; height: 90px; margin: 12px 0 6px; overflow: visible; }
.grid-line { fill: none; stroke: rgba(21,21,21,.08); stroke-dasharray: 2 5; }
.chart-ghost { fill: none; stroke: rgba(21,21,21,.08); stroke-width: 1.5; }
.chart-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; }
.chart-dot { fill: var(--ink); stroke: var(--accent); stroke-width: 8; }

.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 17px; }
.metric { display: grid; gap: 5px; }
.metric + .metric { padding-left: 15px; border-left: 1px solid var(--line); }
.metric-value { font-size: 1.45rem; line-height: 1; letter-spacing: -.04em; }
.metric-label { color: var(--muted); font-size: .72rem; }

.focus-timer-card {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 21px;
  border-radius: var(--radius-md);
  background: var(--dark);
  color: #f7f7f2;
  box-shadow: 0 18px 42px rgba(10,10,10,.18);
}
.timer-home-placement { margin-top: 30px; margin-bottom: 8px; }
.focus-timer-card::after {
  content: "";
  position: absolute;
  width: 145px;
  height: 145px;
  right: -60px;
  top: -60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(233,255,87,.22), transparent 68%);
  pointer-events: none;
}
.timer-card-head { position: relative; z-index: 1; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.timer-card-head .section-label { color: #8f918a; }
.timer-project { margin: 0; color: #b1b2ac; font-size: .76rem; }
.timer-status { padding: 7px 9px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .61rem; font-weight: 750; letter-spacing: .08em; }
.timer-status.paused { background: #343631; color: #b2b4ad; }
.timer-item { position: relative; z-index: 1; margin-top: 23px; max-width: 86%; color: #f7f7f2; font-size: 1.15rem; }
.timer-clock { position: relative; z-index: 1; display: block; margin: 22px 0 24px; }
.dot-clock {
  --timer-dot: clamp(4px, 1.42vw, 6px);
  --timer-gap: clamp(3px, .95vw, 5px);
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 7px);
  width: 100%;
  min-height: calc(var(--timer-dot) * 5 + var(--timer-gap) * 4);
}
.dot-digit {
  display: grid;
  grid-template-columns: repeat(3, var(--timer-dot));
  grid-template-rows: repeat(5, var(--timer-dot));
  gap: var(--timer-gap);
  flex: 0 0 auto;
}
.dot-separator {
  display: grid;
  grid-template-rows: repeat(5, var(--timer-dot));
  gap: var(--timer-gap);
  width: var(--timer-dot);
  flex: 0 0 auto;
}
.timer-dot {
  width: var(--timer-dot);
  height: var(--timer-dot);
  border-radius: 50%;
  background: rgba(121, 214, 223, .11);
  transition: background .22s ease, box-shadow .22s ease, transform .22s ease;
}
.timer-dot.is-on {
  background: #79d6df;
  box-shadow: 0 0 10px rgba(121, 214, 223, .28);
}
.focus-timer-card.is-idle .timer-dot.is-on { background: rgba(121, 214, 223, .48); box-shadow: none; }
.focus-timer-card.is-paused .timer-dot.is-on { background: #71898a; box-shadow: none; }
.timer-actions { position: relative; z-index: 1; display: grid; grid-template-columns: .75fr 1.5fr; gap: 8px; }
.timer-actions button { min-height: 48px; border-radius: 15px; cursor: pointer; font-size: .78rem; font-weight: 650; }
.timer-secondary { border: 1px solid rgba(255,255,255,.16); background: transparent; color: #f7f7f2; }
.timer-primary { border: 0; background: var(--accent); color: var(--ink); }
.timer-history-link { position: relative; z-index: 1; margin: 15px 0 -5px; padding: 7px 0; border: 0; background: transparent; color: #979991; cursor: pointer; font-size: .7rem; }

.section-block { margin-top: 30px; }
.compact-bottom { margin-bottom: 8px; }
.section-heading { align-items: end; margin: 0 2px 15px; }
.text-button { border: 0; padding: 8px 0; background: transparent; color: var(--muted); font-size: .78rem; cursor: pointer; }

.next-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius-md);
  color: #f8f8f3;
  background: var(--dark);
  box-shadow: 0 18px 40px rgba(10,10,10,.18);
  cursor: pointer;
}
.next-card::before { content:""; position:absolute; right:20px; top:20px; width:9px; height:9px; border-radius:50%; background:var(--accent); box-shadow: 0 0 0 7px rgba(233,255,87,.1); }
.next-client { color: #9c9d97; font-size: .72rem; letter-spacing: .1em; }
.next-card h3 { margin: 17px 0 7px; font-size: 1.55rem; line-height: 1.05; letter-spacing: -.04em; }
.next-meta { color: #9c9d97; font-size: .82rem; }
.next-action { display:flex; align-items:center; justify-content:space-between; margin-top:22px; padding-top:16px; border-top:1px solid rgba(255,255,255,.13); font-size:.8rem; }
.next-action strong { color: var(--accent); font-weight: 600; }

.mini-project-list, .project-list, .activity-list, .deliverable-list { display: grid; gap: 10px; }
.mini-project, .activity-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 20px;
  background: rgba(250,250,248,.65);
  cursor: pointer;
}
.mini-project h3, .activity-item h3 { margin: 0 0 5px; font-size: .95rem; letter-spacing: -.02em; }
.mini-project p, .activity-item p { margin: 0; color: var(--muted); font-size: .72rem; }
.mini-project-progress { min-width: 52px; font-size: 1.35rem; text-align: right; letter-spacing: -.05em; }
.mini-project:focus-visible, .project-card:focus-visible, .next-card:focus-visible, .deliverable-row:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 3px; }

.quick-todo-form {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 22px;
  background: rgba(250,250,248,.72);
  box-shadow: 0 14px 36px rgba(18,19,17,.06);
}
.quick-todo-form > input:first-child,
.new-list-input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 0;
  border-bottom: 1px solid var(--line);
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
}
.quick-todo-form > input:first-child::placeholder, .new-list-input::placeholder { color: #a2a39e; }
.quick-todo-options { display: grid; grid-template-columns: 1fr 1fr 46px; gap: 8px; align-items: end; }
.quick-todo-options label { display: grid; gap: 5px; color: var(--muted); font-size: .66rem; }
.quick-todo-options select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ecece8;
  color: var(--ink);
  font-size: .78rem;
}
.quick-add-button {
  width: 46px;
  height: 42px;
  border: 0;
  border-radius: 13px;
  background: var(--dark);
  color: var(--accent);
  font-size: 1.25rem;
  cursor: pointer;
}
.home-todo-list { display: grid; gap: 8px; margin-top: 10px; }
.home-todo-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 11px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 17px;
  background: rgba(250,250,248,.53);
  cursor: pointer;
}
.home-todo-item:focus-visible, .todo-item:focus-visible { outline: 3px solid var(--accent-deep); outline-offset: 2px; }
.home-todo-item h3, .todo-item h3 { margin: 0 0 4px; font-size: .91rem; line-height: 1.25; letter-spacing: -.015em; }
.home-todo-item p, .todo-item p { margin: 0; color: var(--muted); font-size: .69rem; }
.todo-empty-mini { display: flex; align-items: center; gap: 11px; padding: 13px 15px; color: var(--muted); }
.todo-empty-mini span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #ddded8; color: #777971; }
.todo-empty-mini p { margin: 0; font-size: .75rem; line-height: 1.45; }

.todo-overview {
  display: grid;
  grid-template-columns: 1fr 1fr 1.25fr;
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 22px;
  background: rgba(250,250,248,.72);
  box-shadow: 0 14px 36px rgba(18,19,17,.06);
}
.todo-overview > div { display: grid; gap: 5px; padding: 17px; }
.todo-overview > div + div { border-left: 1px solid var(--line); }
.todo-overview strong { font-size: 1.6rem; line-height: 1; }
.todo-overview span { color: var(--muted); font-size: .68rem; }
.todo-overview button { border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; font-size: .76rem; }
.todo-overview button span { color: var(--ink); font-size: 1rem; }
.todo-filter-row { padding-bottom: 2px; }
.todo-groups { display: grid; gap: 22px; }
.todo-group { padding: 19px; border: 1px solid rgba(255,255,255,.72); border-radius: 24px; background: rgba(250,250,248,.68); }
.todo-group-head { display: flex; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 8px; }
.todo-group-head > span { color: var(--muted); font-size: .7rem; }
.todo-list { display: grid; }
.todo-item { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 61px; border-top: 1px solid var(--line); cursor: pointer; }
.todo-item.completed { opacity: .44; }
.todo-item.completed h3 { text-decoration: line-through; }
.todo-check {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1.5px solid #8a8b85;
  border-radius: 50%;
  background: transparent;
  color: transparent;
  cursor: pointer;
}
.todo-item.completed .todo-check { border-color: var(--dark); background: var(--dark); color: var(--accent); }
.todo-check span { font-size: .72rem; font-weight: 700; }
.urgency-badge { padding: 6px 9px; border-radius: 999px; background: #e7e7e2; color: #62635e; font-size: .63rem; white-space: nowrap; }
.urgency-badge.urgent { background: var(--accent); color: var(--ink); font-weight: 700; }
.urgency-badge.custom { background: #bfe8e9; color: #163c3e; font-weight: 700; }
.urgency-badge.someday { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.todo-empty-state { padding: 48px 22px; border: 1px dashed rgba(21,21,21,.16); border-radius: 28px; text-align: center; }
.todo-empty-state > span { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 auto 17px; border-radius: 50%; background: var(--accent); }
.todo-empty-state h2 { margin-bottom: 8px; }
.todo-empty-state p { margin: 0; color: var(--muted); font-size: .78rem; }

.time-summary {
  display: grid;
  grid-template-columns: 1.3fr 1fr .72fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 25px;
  background: rgba(250,250,248,.72);
  box-shadow: 0 14px 36px rgba(18,19,17,.06);
}
.time-summary > div { display: grid; align-content: space-between; gap: 18px; min-height: 112px; padding: 18px 15px; }
.time-summary > div + div { border-left: 1px solid var(--line); }
.time-summary span { color: var(--muted); font-size: .68rem; }
.time-summary strong { font-size: 1.28rem; line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.time-summary-main { background: var(--dark); color: white; }
.time-summary-main span { color: #999b94; }
.time-project-list, .time-entry-list { display: grid; gap: 9px; }
.time-project-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 15px;
  align-items: center;
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 19px;
  background: rgba(250,250,248,.65);
}
.time-project-row h3, .time-entry h3 { margin: 0 0 5px; font-size: .92rem; }
.time-project-row p, .time-entry p { margin: 0; color: var(--muted); font-size: .69rem; }
.time-project-row > strong { font-size: 1.15rem; letter-spacing: -.04em; }
.time-entry {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 74px;
  padding: 11px 13px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 19px;
  background: rgba(250,250,248,.65);
}
.time-entry-date { display: grid; place-items: center; align-content: center; width: 44px; height: 48px; border-radius: 14px; background: #e5e5e0; }
.time-entry-date strong { font-size: 1.05rem; line-height: 1; }
.time-entry-date span { margin-top: 4px; color: var(--muted); font-size: .58rem; }
.time-entry-value { display: grid; justify-items: end; gap: 5px; }
.time-entry-value > strong { font-size: .86rem; white-space: nowrap; }
.time-entry-value button { width: 25px; height: 25px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--subtle); cursor: pointer; font-size: 1rem; }
.time-empty { margin: 0; padding: 17px 2px; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.time-empty-state { margin-top: 2px; }

.filter-row { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.filter-chip { flex: 0 0 auto; min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(250,250,248,.55); color: var(--muted); cursor: pointer; white-space: nowrap; }
.filter-chip.active { background: var(--dark); color: #fff; }

.project-card {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: var(--radius-md);
  background: rgba(250,250,248,.78);
  cursor: pointer;
}
.project-card h2 { font-size: 1.25rem; }
.project-count { color: var(--muted); font-size: .72rem; }
.project-percent { font-size: 2.3rem; line-height: 1; letter-spacing: -.07em; }
.thin-progress { height: 4px; margin: 22px 0 12px; overflow: hidden; border-radius: 4px; background: rgba(21,21,21,.08); }
.thin-progress span { display: block; height: 100%; border-radius: inherit; background: var(--ink); transition: width .45s ease; }
.project-meta-row { display: flex; gap: 16px; color: var(--muted); font-size: .72rem; }

.history-summary {
  padding: 25px;
  margin-bottom: 24px;
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: white;
}
.history-total { display:flex; align-items:baseline; gap:9px; margin:22px 0 12px; }
.history-total span { font-size: 5rem; line-height: .75; letter-spacing: -.08em; }
.history-total small, .history-summary p:last-child { color:#9b9c97; }
.history-summary p:last-child { margin: 22px 0 0; max-width: 280px; font-size: .82rem; line-height: 1.5; }
.activity-time { color: var(--muted); font-size: .68rem; text-align: right; }

.scrim { position: fixed; inset:0; z-index:30; background:rgba(14,15,13,.30); backdrop-filter:blur(7px); }
.bottom-sheet {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 0;
  width: min(100%, 460px);
  max-height: 86vh;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  border-radius: 32px 32px 0 0;
  background: #f7f7f4;
  box-shadow: 0 -24px 70px rgba(0,0,0,.15);
  transform: translateX(-50%);
  animation: sheetIn .32s cubic-bezier(.22,.8,.25,1);
}
@keyframes sheetIn { from { transform:translate(-50%, 105%); } to { transform:translate(-50%, 0); } }
.sheet-handle { width:42px; height:4px; margin:0 auto 20px; border-radius:4px; background:#d1d1cd; }
.sheet-header { align-items:flex-start; margin-bottom:20px; }
.close-button { width:42px; height:42px; font-size:1.45rem; }
.project-sheet-summary { display:grid; grid-template-columns:repeat(4,1fr); gap:1px; overflow:hidden; margin-bottom:18px; border-radius:18px; background:var(--line); }
.project-finance-summary { margin-bottom:18px; padding:17px; border:1px solid var(--line); border-radius:20px; background:#f2f2ef; }
.project-finance-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.project-finance-head h3 { margin:0; font-size:1.45rem; letter-spacing:-.045em; }
.project-finance-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1px; margin-top:16px; overflow:hidden; border-radius:14px; background:var(--line); }
.project-finance-grid > div { display:grid; gap:7px; padding:11px 8px; background:#fafaf8; }
.project-finance-grid span { color:var(--muted); font-size:.59rem; }
.project-finance-grid strong { font-size:.75rem; letter-spacing:-.02em; }
.project-detail-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:1px; margin-top:16px; overflow:hidden; border-radius:14px; background:var(--line); }
.project-detail-grid > div { display:grid; gap:6px; min-height:61px; padding:11px; background:#fafaf8; }
.project-detail-grid span { color:var(--muted); font-size:.6rem; }
.project-detail-grid strong { font-size:.75rem; line-height:1.25; }
.finance-status-line { margin:13px 0 0; color:var(--muted); font-size:.68rem; text-transform:capitalize; }
.finance-status-line strong { color:var(--ink); font-weight:700; }
.project-manage-actions { display:grid; grid-template-columns:1fr auto; gap:9px; margin:-4px 0 18px; }
.project-manage-actions button { min-height:46px; border-radius:15px; cursor:pointer; font-size:.76rem; font-weight:650; }
.project-edit-button { border:1px solid var(--line); background:#f7f7f4; }
.project-delete-button { padding:0 16px; border:1px solid rgba(177,56,48,.18); background:rgba(177,56,48,.06); color:#a33b35; }
.delete-project-message { padding:19px; border:1px solid rgba(177,56,48,.14); border-radius:20px; background:rgba(177,56,48,.05); }
.delete-project-message strong { display:block; margin-bottom:11px; font-size:1.25rem; letter-spacing:-.035em; }
.delete-project-message p { margin:5px 0 0; color:var(--muted); font-size:.76rem; line-height:1.5; }
.delete-project-actions { display:grid; grid-template-columns:.8fr 1.2fr; gap:9px; margin-top:18px; }
.delete-project-actions button { min-height:52px; border-radius:17px; cursor:pointer; font-size:.8rem; font-weight:700; }
.secondary-button { border:1px solid var(--line); background:#f3f3f0; }
.danger-button { border:0; background:#a33b35; color:white; }
.summary-cell { padding:14px 12px; background:#ecece8; }
.summary-cell strong, .summary-cell span { display:block; }
.summary-cell strong { margin-bottom:4px; font-size:1.15rem; }
.summary-cell span { color:var(--muted); font-size:.65rem; }
.deliverable-row { padding:15px 3px; border-bottom:1px solid var(--line); cursor:pointer; }
.deliverable-row h3 { margin:0 0 4px; font-size:.92rem; }
.deliverable-row p { margin:0; color:var(--muted); font-size:.7rem; }
.stage-badge { flex:0 0 auto; padding:7px 10px; border-radius:999px; background:#e8e8e4; color:#575852; font-size:.65rem; }
.stage-badge.waiting { background:#f1f2df; color:#686d2a; }
.stage-badge.done { background:#171815; color:#f4f4ef; }

.stage-options { display:grid; gap:8px; }
.stage-option { display:flex; align-items:center; gap:13px; min-height:54px; padding:0 14px; border:1px solid var(--line); border-radius:17px; background:rgba(255,255,255,.6); cursor:pointer; text-align:left; }
.stage-option.active { border-color:var(--ink); background:var(--dark); color:white; }
.stage-radio { width:18px; height:18px; border:1px solid currentColor; border-radius:50%; }
.stage-option.active .stage-radio { border:5px solid var(--accent); }
.stage-option small { margin-left:auto; color:var(--muted); }
.stage-option.active small { color:#a8aaa2; }

.hierarchy-sheet { max-height:min(90vh, 860px); }
.hierarchy-back { margin:-7px 0 11px; padding:6px 0; border:0; background:transparent; color:var(--muted); cursor:pointer; font-size:.76rem; }
.hierarchy-section-head { display:flex; align-items:end; justify-content:space-between; gap:12px; margin:5px 1px 12px; }
.hierarchy-section-head h3 { margin:3px 0 0; font-size:1rem; }
.client-finance-summary { display:grid; grid-template-columns:repeat(2,1fr); gap:1px; overflow:hidden; margin-bottom:22px; border:1px solid var(--line); border-radius:20px; background:var(--line); }
.client-finance-summary > div { display:grid; gap:7px; min-height:72px; padding:14px; background:#f1f1ee; }
.client-finance-summary > div:last-child { grid-column:1 / -1; }
.client-finance-summary span { color:var(--muted); font-size:.63rem; }
.client-finance-summary strong { font-size:1rem; letter-spacing:-.035em; }
.client-project-list { display:grid; gap:10px; }
.client-project-card { padding:17px; border:1px solid rgba(255,255,255,.78); border-radius:20px; background:rgba(250,250,248,.72); cursor:pointer; }
.client-project-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.client-project-head h3 { margin:0 0 5px; font-size:1rem; }
.client-project-head p, .client-project-package, .client-project-foot { margin:0; color:var(--muted); font-size:.68rem; }
.client-project-head > strong { white-space:nowrap; font-size:.95rem; }
.client-project-package { margin-top:13px; }
.client-project-card .thin-progress { margin:14px 0 9px; }
.client-project-foot { display:flex; justify-content:space-between; gap:10px; }
.work-item-details { display:grid; gap:11px; margin-bottom:14px; padding:15px; border:1px solid var(--line); border-radius:20px; background:#efefeb; }
.work-item-details label { display:grid; gap:6px; color:var(--muted); font-size:.68rem; }
.work-item-details input, .work-item-details select, .work-item-details textarea, .add-form textarea { width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--line); border-radius:13px; outline:0; resize:vertical; background:#fafaf8; color:var(--ink); font:inherit; }
.work-item-field-row { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.work-item-save { min-height:43px; border-radius:13px; cursor:pointer; }
.work-item-data { display:grid; gap:9px; margin-bottom:18px; }
.work-item-data > div { padding:13px 15px; border:1px solid var(--line); border-radius:16px; background:#f6f6f3; }
.work-item-data span { display:block; margin-bottom:7px; color:var(--muted); font-size:.6rem; letter-spacing:.09em; }
.work-item-data strong { font-size:.84rem; }
.work-item-data p { display:flex; justify-content:space-between; gap:9px; margin:6px 0 0; color:var(--muted); font-size:.65rem; }
.work-item-data time { white-space:nowrap; }
.stage-section-label { margin:0 2px 9px; }

.money-view h1 { font-size:clamp(2.5rem, 11vw, 3.35rem); }
.money-target-card, .money-section, .money-move-card { margin-top:16px; border:1px solid rgba(255,255,255,.72); border-radius:var(--radius-lg); background:var(--surface); box-shadow:var(--shadow); }
.money-target-card { position:relative; overflow:hidden; padding:22px; }
.money-target-card::after { content:""; position:absolute; width:165px; height:165px; top:35px; right:-72px; border-radius:50%; background:radial-gradient(circle, rgba(121,214,223,.3), transparent 68%); pointer-events:none; }
.money-card-head { position:relative; z-index:1; display:flex; align-items:flex-start; justify-content:space-between; gap:13px; }
.money-card-head h2 { font-size:1.45rem; }
.money-month-picker { max-width:126px; min-height:39px; padding:0 9px; border:1px solid var(--line); border-radius:13px; background:rgba(239,239,237,.72); color:var(--muted); font-size:.68rem; }
.money-target-total { position:relative; z-index:1; display:flex; align-items:baseline; gap:6px; margin-top:26px; }
.money-target-total strong { font-size:clamp(2.5rem, 12vw, 3.35rem); line-height:.84; letter-spacing:-.075em; }
.money-target-total span { color:var(--muted); font-size:.85rem; }
.money-target-track { height:10px; margin:20px 0 17px; overflow:hidden; border-radius:999px; background:rgba(21,21,21,.07); }
.money-target-track span { display:block; width:0; height:100%; border-radius:inherit; background:linear-gradient(90deg,#79d6df,var(--accent)); transition:width .35s ease; }
.money-target-grid { position:relative; z-index:1; display:grid; grid-template-columns:repeat(3,1fr); padding-top:15px; border-top:1px solid var(--line); }
.money-target-grid > div { display:grid; gap:6px; min-width:0; }
.money-target-grid > div + div { padding-left:12px; border-left:1px solid var(--line); }
.money-target-grid span { color:var(--muted); font-size:.58rem; letter-spacing:.08em; }
.money-target-grid strong { overflow:hidden; font-size:.85rem; letter-spacing:-.035em; white-space:nowrap; }
.money-inline-action { margin-top:17px; padding:0; border:0; background:transparent; color:var(--muted); cursor:pointer; font-size:.7rem; text-decoration:underline; text-underline-offset:4px; }
.money-section { padding:21px; }
.money-section > .section-heading { margin-bottom:17px; }
.revenue-engine { display:grid; gap:7px; }
.engine-stage { position:relative; display:grid; grid-template-columns:28px 1fr auto; align-items:center; gap:11px; width:100%; min-height:63px; padding:10px 13px; border:1px solid var(--line); border-radius:17px; background:#f4f4f1; text-align:left; cursor:pointer; }
.engine-stage::after { content:""; position:absolute; left:26px; bottom:-8px; width:1px; height:8px; background:var(--line); }
.engine-stage:last-child::after { display:none; }
.engine-index { display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:var(--dark); color:white; font-size:.61rem; }
.engine-stage.won .engine-index, .engine-stage.paid .engine-index { background:var(--accent); color:var(--ink); }
.engine-copy { display:grid; gap:4px; }
.engine-copy strong { font-size:.77rem; letter-spacing:.04em; }
.engine-copy small { color:var(--muted); font-size:.63rem; }
.engine-value { font-size:.76rem; white-space:nowrap; }
.money-move-card { padding:22px; background:var(--dark); color:#f8f8f3; }
.money-move-card .section-label { color:#8f918a; }
.money-move-card h2 { max-width:245px; font-size:1.25rem; }
.money-move-score { padding:8px 10px; border-radius:999px; background:var(--accent); color:var(--ink); font-size:.68rem; font-weight:750; white-space:nowrap; }
.money-move-form { display:grid; grid-template-columns:1fr 48px; gap:8px; margin-top:19px; }
.money-move-form input { min-width:0; height:50px; padding:0 14px; border:1px solid #343630; border-radius:15px; outline:0; background:#22231f; color:white; }
.money-move-form button { border:0; border-radius:15px; background:var(--accent); color:var(--ink); cursor:pointer; font-size:1.4rem; }
.money-move-list { display:grid; gap:8px; margin-top:13px; }
.money-move-item { display:grid; grid-template-columns:34px 1fr; align-items:center; gap:10px; min-height:48px; padding:7px 10px; border:1px solid #33352f; border-radius:14px; background:#1a1b18; }
.money-move-item button { display:grid; place-items:center; width:28px; height:28px; border:1px solid #65675f; border-radius:50%; background:transparent; color:transparent; cursor:pointer; }
.money-move-item.completed button { border-color:var(--accent); background:var(--accent); color:var(--ink); }
.money-move-item span { font-size:.75rem; line-height:1.35; }
.money-move-item.completed span { color:#85877f; text-decoration:line-through; }
.money-move-empty { margin:12px 0 0; color:#92948c; font-size:.72rem; line-height:1.5; }
.money-move-week { display:flex; justify-content:space-between; margin-top:16px; padding-top:14px; border-top:1px solid #33352f; color:#999b93; font-size:.68rem; }
.money-move-week strong { color:white; }
.mission-card { overflow:hidden; border:1px solid var(--line); border-radius:22px; background:#f4f4f1; }
.mission-top { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:17px; }
.mission-top p { margin:0 0 5px; color:var(--muted); font-size:.59rem; letter-spacing:.11em; }
.mission-top h3 { margin:0; font-size:1.2rem; letter-spacing:-.035em; }
.mission-top strong { font-size:1.4rem; letter-spacing:-.05em; }
.mission-progress { height:7px; margin:0 17px 13px; overflow:hidden; border-radius:999px; background:#deded9; }
.mission-progress span { display:block; height:100%; border-radius:inherit; background:var(--accent-deep); }
.mission-steps { display:grid; }
.mission-step { display:grid; grid-template-columns:30px 1fr; align-items:center; gap:9px; min-height:49px; padding:8px 14px; border:0; border-top:1px solid var(--line); background:transparent; text-align:left; cursor:pointer; }
.mission-step i { display:grid; place-items:center; width:24px; height:24px; border:1px solid #b8b9b4; border-radius:50%; color:transparent; font-style:normal; }
.mission-step.completed i { border-color:var(--dark); background:var(--dark); color:white; }
.mission-step span { font-size:.72rem; }
.mission-step.completed span { color:var(--muted); }
.mission-next { margin-top:10px; padding:14px 16px; border:1px dashed #b8b9b4; border-radius:18px; color:var(--muted); font-size:.68rem; line-height:1.5; }
.cash-flow-card { overflow:hidden; border:1px solid var(--line); border-radius:21px; background:#f4f4f1; }
.cash-flow-grid { display:grid; grid-template-columns:repeat(3,1fr); }
.cash-flow-grid > div { display:grid; gap:7px; min-height:82px; padding:14px 10px; }
.cash-flow-grid > div + div { border-left:1px solid var(--line); }
.cash-flow-grid span, .next-payment span { color:var(--muted); font-size:.56rem; letter-spacing:.07em; }
.cash-flow-grid strong { font-size:.77rem; letter-spacing:-.03em; }
.next-payment { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px; border-top:1px solid var(--line); }
.next-payment strong { font-size:.74rem; text-align:right; }
.runway-card { display:flex; align-items:flex-end; justify-content:space-between; gap:20px; margin-top:10px; padding:18px; border-radius:21px; background:#79d6df; }
.runway-card .section-label { margin-bottom:8px; color:#28676d; }
.runway-card strong { font-size:2.8rem; line-height:.75; letter-spacing:-.075em; }
.runway-card span { margin-left:5px; font-size:.7rem; }
.runway-card > p { max-width:145px; margin:0; color:#28676d; font-size:.65rem; line-height:1.45; text-align:right; }
.allocation-basis { display:flex; justify-content:space-between; gap:12px; margin-bottom:11px; padding:13px 14px; border-radius:15px; background:#efefeb; color:var(--muted); font-size:.68rem; }
.allocation-basis strong { color:var(--ink); }
.allocation-list { display:grid; gap:7px; }
.allocation-row { display:grid; grid-template-columns:1fr auto; gap:12px; padding:14px; border:1px solid var(--line); border-radius:16px; background:#f7f7f4; }
.allocation-row span { font-size:.72rem; }
.allocation-row small { display:block; margin-top:5px; color:var(--muted); font-size:.6rem; }
.allocation-row strong { font-size:.78rem; }
.emergency-card { margin-top:12px; padding:17px; border-radius:20px; background:#ecece8; }
.emergency-head { display:flex; justify-content:space-between; gap:12px; }
.emergency-head span { display:block; margin-bottom:6px; color:var(--muted); font-size:.58rem; letter-spacing:.08em; }
.emergency-head strong { font-size:.8rem; }
.emergency-head b { font-size:1.2rem; }
.emergency-card .money-target-track { margin:15px 0 12px; }
.emergency-milestones { display:flex; flex-wrap:wrap; gap:7px; }
.emergency-milestones span { padding:6px 8px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:.59rem; }
.emergency-milestones span.reached { border-color:var(--dark); background:var(--dark); color:white; }
.money-sheet-add { width:100%; margin:0 0 13px; }
.lead-sheet-list { display:grid; gap:9px; }
.lead-card { display:grid; grid-template-columns:1fr auto; gap:12px; width:100%; padding:15px; border:1px solid var(--line); border-radius:17px; background:#f4f4f1; text-align:left; cursor:pointer; }
.lead-card h3 { margin:0 0 5px; font-size:.9rem; }
.lead-card p { margin:0; color:var(--muted); font-size:.65rem; }
.lead-card strong { font-size:.8rem; white-space:nowrap; }
.lead-empty { padding:24px 14px; border:1px dashed #b8b9b4; border-radius:18px; color:var(--muted); font-size:.72rem; line-height:1.5; text-align:center; }
.form-two-column { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px !important; }
.form-three-column { grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px !important; }
.form-three-column input { padding:0 8px; text-align:center; }
.form-group-title { margin:5px 0 -5px; color:var(--ink); font-size:.7rem; font-weight:700; letter-spacing:.08em; }

/* Content Engine — an editorial lab inside the existing Rhys system. */
.content-view h1 { font-size:clamp(2.5rem, 11vw, 3.35rem); }
.content-topbar { margin-bottom:20px; }
.content-capture-card {
  position:relative;
  overflow:hidden;
  padding:22px;
  border:1px solid rgba(255,255,255,.72);
  border-radius:var(--radius-lg);
  background:var(--dark);
  color:#f8f8f3;
  box-shadow:0 22px 54px rgba(12,12,11,.2);
}
.content-capture-card::after { content:""; position:absolute; width:180px; height:180px; top:-90px; right:-60px; border-radius:50%; background:radial-gradient(circle,rgba(121,214,223,.28),transparent 68%); pointer-events:none; }
.content-capture-head { position:relative; z-index:1; display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.content-capture-head .section-label { color:#92948c; }
.content-capture-head h2 { max-width:245px; color:white; font-size:1.55rem; }
.content-capture-head > span { padding:7px 10px; border-radius:999px; background:var(--accent); color:var(--ink); font-size:.62rem; font-weight:750; letter-spacing:.08em; }
.content-quick-form { position:relative; z-index:1; margin-top:20px; }
.content-quick-form textarea { width:100%; min-height:108px; padding:16px; border:1px solid #343630; border-radius:18px; outline:0; resize:vertical; background:#20211e; color:white; font:inherit; font-size:1rem; line-height:1.5; }
.content-quick-form textarea::placeholder { color:#71736d; }
.content-quick-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:9px; }
.content-quick-options select { min-width:0; height:46px; padding:0 10px; border:1px solid #343630; border-radius:14px; outline:0; background:#20211e; color:#b3b5ae; font-size:.7rem; }
.content-quick-options button { grid-column:1/-1; min-height:48px; border:0; border-radius:15px; background:var(--accent); color:var(--ink); cursor:pointer; font-size:.78rem; font-weight:750; }

.content-section { margin-top:28px; }
.content-section > .section-heading { align-items:center; }
.content-count { display:grid; place-items:center; min-width:38px; height:38px; padding:0 10px; border:1px solid var(--line); border-radius:999px; background:rgba(250,250,248,.55); color:var(--muted); font-size:.72rem; }
.content-card-list,.content-posted-list,.content-sheet-list { display:grid; gap:10px; }
.content-idea-card { position:relative; overflow:hidden; padding:16px; border:1px solid var(--line); border-radius:21px; background:var(--surface); box-shadow:0 12px 34px rgba(18,19,17,.07); }
.content-idea-card::before { content:""; position:absolute; inset:0 auto 0 0; width:4px; background:var(--content-status-color,#b8b9b4); }
.content-idea-top { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.content-idea-top h3 { margin:0; font-size:1rem; line-height:1.25; letter-spacing:-.025em; }
.content-status-pill { flex:0 0 auto; padding:6px 8px; border-radius:999px; background:#ecece8; color:#61625e; font-size:.56rem; font-weight:700; letter-spacing:.05em; white-space:nowrap; }
.content-idea-meta { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }
.content-idea-meta span { padding:6px 8px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:.61rem; }
.content-card-actions { display:grid; grid-template-columns:1.15fr .85fr .85fr; gap:7px; margin-top:14px; padding-top:12px; border-top:1px solid var(--line); }
.content-card-actions button { min-height:40px; border:1px solid var(--line); border-radius:12px; background:#f1f1ed; cursor:pointer; font-size:.68rem; }
.content-card-actions button:first-child { border-color:var(--dark); background:var(--dark); color:white; }
.content-empty { padding:24px 18px; border:1px dashed #b8b9b4; border-radius:20px; color:var(--muted); font-size:.75rem; line-height:1.55; text-align:center; }

.content-pipeline { display:flex; gap:9px; margin:0 -20px; padding:0 20px 5px; overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.content-pipeline::-webkit-scrollbar { display:none; }
.content-stage-card { --content-status-color:#b8b9b4; flex:0 0 142px; min-height:130px; padding:15px; border:1px solid var(--line); border-radius:20px; background:rgba(250,250,248,.78); text-align:left; cursor:pointer; scroll-snap-align:start; }
.content-stage-card i { display:block; width:22px; height:5px; margin-bottom:25px; border-radius:999px; background:var(--content-status-color); }
.content-stage-card strong { display:block; min-height:32px; font-size:.72rem; line-height:1.25; letter-spacing:.035em; }
.content-stage-card span { display:block; margin-top:13px; font-size:1.65rem; letter-spacing:-.06em; }
.content-stage-card small { display:block; margin-top:4px; color:var(--muted); font-size:.6rem; }

.content-ready-section { position:relative; overflow:hidden; margin-top:30px; padding:22px; border-radius:var(--radius-lg); background:#79d6df; box-shadow:var(--shadow); }
.content-ready-section::after { content:""; position:absolute; width:150px; height:150px; right:-70px; bottom:-80px; border-radius:50%; background:rgba(233,255,87,.48); filter:blur(12px); pointer-events:none; }
.content-ready-head { position:relative; z-index:1; display:flex; align-items:flex-start; justify-content:space-between; gap:14px; }
.content-ready-head .section-label { color:#28676d; }
.content-ready-head h2 { font-size:1.45rem; }
.content-ready-head > strong { font-size:2.4rem; line-height:.8; letter-spacing:-.07em; }
.content-ready-list { position:relative; z-index:1; display:grid; gap:8px; margin-top:18px; }
.content-ready-card { display:grid; grid-template-columns:1fr auto; align-items:center; gap:12px; width:100%; min-height:70px; padding:13px 14px; border:1px solid rgba(21,21,21,.12); border-radius:17px; background:rgba(250,250,248,.78); text-align:left; cursor:pointer; }
.content-ready-card h3 { margin:0 0 5px; font-size:.9rem; line-height:1.25; }
.content-ready-card p { margin:0; color:#397177; font-size:.64rem; }
.content-ready-card b { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:var(--dark); color:white; font-size:.85rem; }
.content-ready-empty { margin:0; padding:14px; border:1px dashed rgba(21,21,21,.2); border-radius:16px; color:#326b70; font-size:.72rem; line-height:1.5; }

.content-post-card { display:grid; grid-template-columns:1fr auto; gap:14px; padding:16px; border:1px solid var(--line); border-radius:20px; background:var(--surface); cursor:pointer; text-align:left; }
.content-post-card h3 { margin:0 0 7px; font-size:.92rem; line-height:1.25; }
.content-post-card p { margin:0; color:var(--muted); font-size:.64rem; }
.content-post-card strong { font-size:.82rem; white-space:nowrap; }
.content-archive-panel { margin-top:12px; border:1px solid var(--line); border-radius:18px; background:rgba(250,250,248,.56); }
.content-archive-panel summary { display:flex; justify-content:space-between; gap:12px; padding:15px; cursor:pointer; list-style:none; color:var(--muted); font-size:.64rem; letter-spacing:.08em; }
.content-archive-panel summary::-webkit-details-marker { display:none; }
.content-archive-list { display:grid; gap:7px; padding:0 12px 12px; }
.content-archive-item { display:grid; grid-template-columns:1fr auto; align-items:center; gap:10px; padding:11px 12px; border-radius:13px; background:#ecece8; }
.content-archive-item span { font-size:.72rem; }
.content-archive-item button { min-height:34px; border:1px solid var(--line); border-radius:10px; background:#f8f8f5; cursor:pointer; font-size:.62rem; }

.content-sheet-add { width:100%; margin-bottom:13px; }
.content-pipeline-sheet .content-idea-card { box-shadow:none; }
.content-brief-sheet { max-height:94vh; }
.content-brief-form { display:grid; gap:11px; }
.content-form-hero { display:grid; gap:12px; padding:16px; border-radius:21px; background:var(--dark); }
.content-form-hero label,.content-form-body label { display:grid; gap:7px; color:#a7a9a2; font-size:.7rem; }
.content-form-hero textarea,.content-form-hero select,.content-form-body input,.content-form-body textarea,.content-form-body select,.repeatable-card input,.repeatable-card textarea { width:100%; min-height:46px; padding:11px 12px; border:1px solid var(--line); border-radius:13px; outline:0; resize:vertical; background:#fafaf8; color:var(--ink); font:inherit; font-size:.84rem; line-height:1.45; }
.content-form-hero textarea { min-height:86px; border-color:#383a35; background:#20211e; color:white; font-size:1rem; }
.content-form-hero select { min-height:46px; padding:0 10px; border:1px solid #383a35; border-radius:13px; background:#20211e; color:#d7d8d2; }
.content-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.content-form-section { overflow:hidden; border:1px solid var(--line); border-radius:19px; background:#f4f4f1; }
.content-form-section > summary { display:grid; grid-template-columns:1fr auto; align-items:center; gap:12px; min-height:58px; padding:13px 15px; cursor:pointer; list-style:none; }
.content-form-section > summary::-webkit-details-marker { display:none; }
.content-form-section > summary span { font-size:.7rem; font-weight:750; letter-spacing:.07em; }
.content-form-section > summary small { color:var(--muted); font-size:.62rem; text-align:right; }
.content-form-section[open] > summary { border-bottom:1px solid var(--line); }
.content-form-body { display:grid; gap:13px; padding:15px; }
.content-form-body label { color:var(--muted); }
.repeatable-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:2px; }
.repeatable-heading span { color:var(--ink); font-size:.68rem; font-weight:750; letter-spacing:.08em; }
.repeatable-heading button,.repeatable-add { min-height:38px; padding:0 12px; border:1px solid var(--line); border-radius:11px; background:#e9e9e4; cursor:pointer; font-size:.65rem; }
.repeatable-list { display:grid; gap:9px; }
.repeatable-card { position:relative; display:grid; gap:8px; padding:12px; border:1px solid var(--line); border-radius:15px; background:#fafaf8; }
.repeatable-card label { color:var(--muted); font-size:.62rem; }
.repeatable-card input,.repeatable-card textarea { background:#f2f2ee; font-size:.75rem; }
.repeatable-remove { position:absolute; top:7px; right:7px; z-index:1; display:grid; place-items:center; width:30px; height:30px; border:0; border-radius:50%; background:#e5e5e0; color:#777873; cursor:pointer; font-size:1rem; }
.repeatable-card > label:first-of-type { padding-right:30px; }
.broll-ready-label { display:flex !important; grid-template-columns:22px 1fr; align-items:center; color:var(--ink) !important; }
.broll-ready-label input { width:20px; min-height:20px; }
.content-metrics-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
.content-next-idea-button { min-height:44px; border-radius:13px; cursor:pointer; }
.content-form-actions { position:sticky; bottom:-1px; z-index:3; display:grid; grid-template-columns:.7fr 1.3fr; gap:8px; padding:12px 0 calc(4px + env(safe-area-inset-bottom)); background:linear-gradient(transparent,#fafaf8 18%); }
.content-form-actions button { min-height:49px; border-radius:15px; cursor:pointer; }
.content-status-spark { --content-status-color:#e9ff57; }
.content-status-developing { --content-status-color:#79d6df; }
.content-status-researching { --content-status-color:#6f9da1; }
.content-status-script_ready { --content-status-color:#111210; }
.content-status-ready_to_shoot { --content-status-color:#e9ff57; }
.content-status-editing { --content-status-color:#8b8d86; }
.content-status-scheduled { --content-status-color:#cfe82f; }
.content-status-posted { --content-status-color:#257e87; }

@media (min-width: 560px) {
  .content-quick-options { grid-template-columns:1fr 1fr auto; }
  .content-quick-options button { grid-column:auto; min-width:100px; }
}

.menu-sheet { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.menu-list { display: grid; gap: 8px; }
.menu-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 13px;
  align-items: center;
  width: 100%;
  min-height: 70px;
  padding: 10px 15px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255,255,255,.5);
  text-align: left;
  cursor: pointer;
}
.menu-item.active { border-color: var(--dark); background: var(--dark); color: white; }
.menu-item-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #e5e5e0; color: var(--ink); font-size: 1.05rem; }
.menu-item > span:nth-child(2) { display: grid; gap: 4px; }
.menu-item strong { font-size: .92rem; }
.menu-item small, .menu-item b { color: var(--muted); font-size: .66rem; font-weight: 500; }
.menu-item.active small, .menu-item.active b { color: #9d9f98; }

.add-form { display:grid; gap:16px; }
.add-form label { display:grid; gap:8px; color:var(--muted); font-size:.75rem; }
.add-form input, .add-form select { width:100%; min-height:52px; padding:0 15px; border:1px solid var(--line); border-radius:16px; outline:0; background:#ededE9; color:var(--ink); font-size:1rem; }
.add-form input:focus, .add-form select:focus { border-color:#777; box-shadow:0 0 0 3px rgba(21,21,21,.06); }
.add-form > div { display:grid; gap:16px; }
.form-note { margin:-4px 2px 0; color:var(--muted); font-size:.7rem; line-height:1.5; }
.finance-sheet { max-height:min(88vh, 820px); }
.primary-button { min-height:55px; margin-top:5px; border:0; border-radius:18px; background:var(--dark); color:white; cursor:pointer; }

.toast { position:fixed; z-index:60; left:50%; bottom:max(24px, calc(env(safe-area-inset-bottom) + 16px)); padding:12px 17px; border-radius:999px; background:var(--accent); color:var(--ink); box-shadow:0 12px 30px rgba(0,0,0,.16); transform:translateX(-50%); font-size:.8rem; animation:toastIn .25s ease; }
@keyframes toastIn { from { opacity:0; transform:translate(-50%, 8px); } }

[hidden] { display:none !important; }

@media (min-width: 700px) {
  body { padding: 24px 0; }
  .app-shell { min-height: calc(100vh - 48px); border-radius: 38px; }
  .bottom-sheet { bottom:24px; max-height:calc(100vh - 48px); border-radius:32px; }
}

@media (max-width: 360px) {
  .app-shell { padding-left: 15px; padding-right: 15px; }
  .quick-todo-options { grid-template-columns: 1fr 1fr 42px; gap: 6px; }
  .todo-overview { grid-template-columns: 1fr 1fr; }
  .todo-overview button { grid-column: 1 / -1; min-height: 44px; border-top: 1px solid var(--line); border-left: 0; }
  .timer-actions { grid-template-columns: 1fr; }
  .time-summary { grid-template-columns: 1fr 1fr; }
  .time-summary > div:last-child { grid-column: 1 / -1; min-height: 70px; border-top: 1px solid var(--line); border-left: 0; }
  .money-target-card, .money-section, .money-move-card { border-radius:25px; }
  .money-target-grid strong { font-size:.75rem; }
  .form-two-column { grid-template-columns:1fr; }
}

/* Time presentation only: extends the existing Money / Content card language. */
#timeView .time-panel, #timeView .time-details, .time-chart-card, .time-distribution-card, #timeView .time-project-list {
  padding: 24px; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.72);
  background: var(--surface); box-shadow: var(--shadow); margin: 16px 0;
}
#timeView .section-label, #homeTimerCard .section-label { font-size: .8rem; }
#timeView h2 { font-size: 1.4rem; }
#timeView .active-panel, #taskTimerControls .active-panel {
  background: radial-gradient(circle at 100% 0, rgba(121,214,223,.24), transparent 42%), var(--dark);
  color: var(--surface-strong); border: 1px solid rgba(255,255,255,.18);
}
.time-panel-heading { display: flex; align-items: start; justify-content: space-between; gap: 10px; }
.time-panel-heading .section-label { line-height: 1.5; }
.time-status-pill { padding: 8px 10px; border-radius: 999px; background: var(--accent); color: var(--ink); font-size: .75rem; font-weight: 750; letter-spacing: .04em; }
.active-panel > p, .active-panel .section-label { color: #b4b6b0; }
#timeView .active-panel h3 { font-size: 1.7rem; letter-spacing: -.04em; margin-top: 16px; }
.time-panel .dot-clock { margin: 26px 0; }
.time-control-row button, .time-empty-start, #timeView .secondary-button, #taskTimerControls .secondary-button,
#timerStartSheet .secondary-button, #sessionEditSheet .secondary-button, #smartStopSheet .secondary-button {
  border-radius: 999px; min-height: 48px; font-weight: 650; cursor: pointer;
}
#timeView .primary-button, #taskTimerControls .primary-button { background: var(--accent); color: var(--ink); border-radius: 999px; margin-top: 0; }
.active-panel .secondary-button { border: 1px solid rgba(255,255,255,.35); background: transparent; color: var(--surface-strong); }
.active-panel .text-button { color: #c6c8c0; }
#timeView .background-panel, #homeBackgroundTimer .time-panel { background: var(--surface); color: var(--ink); }
#homeBackgroundTimer .time-panel { border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.72); box-shadow: var(--shadow); padding: 22px; }
#homeBackgroundTimer button { border-radius: 999px; }
#homeBackgroundTimer > .time-empty-start { background: transparent; border: 1px dashed rgba(21,21,21,.22); color: var(--muted); }
#homeBackgroundTimer .primary-button { background: var(--dark); color: white; }
#timeView .time-empty-start { border: 1px dashed rgba(21,21,21,.22); background: transparent; color: var(--muted); }
#timeView .time-summary { margin-bottom: 20px; }
#timeView .time-summary span { font-size: .875rem; }
#timeView .time-session-row { padding: 20px 0; }
#timeView .time-details summary { font-size: 1rem; }
#timeView .time-details summary small { margin-top: 6px; }
.time-chart-heading { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: start; }
.time-chart-heading > div:last-child { text-align: right; }
.time-chart-heading strong { display: block; font-size: 1.8rem; letter-spacing: -.05em; }
.time-chart-heading span { color: var(--muted); font-size: .875rem; }
.time-week-plot { display: flex; gap: 8px; margin: 28px 0 10px; }
.time-y-labels { flex: 0 0 32px; height: 136px; display: flex; flex-direction: column; justify-content: space-between; color: var(--muted); font-size: .75rem; }
.time-week-bars { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: 7px; flex: 1; min-width: 0; }
.time-day { min-width: 0; text-align: center; color: var(--muted); font-size: .8rem; }
.time-day > span { display: block; margin-top: 8px; }
.time-bar-pair { height: 136px; display: flex; align-items: end; justify-content: center; gap: 3px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(to bottom, transparent 49.5%, rgba(21,21,21,.07) 49.5%, rgba(21,21,21,.07) 50.5%, transparent 50.5%); }
.time-column { width: 45%; border-radius: 5px 5px 0 0; }
.active-column { background: var(--time-cyan); }
.background-column { background: #cacbc8; }
.time-chart-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .875rem; color: var(--muted); margin: 20px 0 0; }
.time-chart-legend span { display: inline-flex; align-items: center; gap: 8px; }
.time-chart-legend i { width: 10px; height: 10px; border-radius: 50%; background: var(--time-cyan); }
.time-chart-legend span:last-child i { background: #cacbc8; }
.time-chart-values { margin-top: 12px; color: var(--muted); font-size: .875rem; line-height: 1.6; }
.time-chart-values summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.time-progress-track { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(21,21,21,.08); }
.time-progress-track > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--time-cyan),var(--accent)); }
.budget-visual { margin-top: 22px; }
.budget-preview { display:block; margin-top:16px; }
.budget-panel[open] .budget-preview { display:none; }
.budget-value { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.budget-value strong { font-size: 1.9rem; letter-spacing: -.055em; }
.budget-value span, .budget-value small { font-size: .875rem; color: var(--muted); }
.budget-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: .875rem; color: var(--muted); }
.budget-over .time-progress-track { outline: 1px solid #797b60; }
.time-distribution-row { padding: 15px 0; }
.time-distribution-row > div:first-child { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.time-distribution-row h3 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.time-distribution-row span { color: var(--muted); font-size: .875rem; }
.distribution-track > span { background: var(--time-cyan); }
.distribution-track.tone-1 > span { background: #719ea2; }
.distribution-track.tone-2 > span { background: var(--accent); }
#homeTimerCard { border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.3); }
#homeTimerCard::after { background: radial-gradient(circle, rgba(121,214,223,.38), transparent 70%); width: 230px; height: 230px; }
#homeTimerCard .timer-project { font-size: .875rem; }
#homeTimerCard .timer-status { font-size: .75rem; padding: 9px 12px; }
#homeTimerCard .timer-item { max-width: 100%; font-size: 1.6rem; }
.timer-session-label { color: #92958e; font-size: .75rem; letter-spacing: .12em; margin: -6px 0 22px; }
#homeBudgetMini:empty { display: none; }
#homeBudgetMini:not(:empty) { border-top: 1px solid rgba(255,255,255,.18); padding-top: 20px; margin-bottom: 24px; }
#homeBudgetMini .budget-visual { margin: 0; }
#homeBudgetMini .section-label { display: block; margin-bottom: 14px; }
#homeBudgetMini .budget-value strong { color: var(--surface-strong); font-size: 1.6rem; }
#homeBudgetMini .budget-value span, #homeBudgetMini small, #homeBudgetMini .budget-caption { color: #b4b6af; }
#homeBudgetMini .time-progress-track { background: rgba(255,255,255,.18); }
#homeTimerCard > .secondary-button { border-radius: 999px; padding: 12px 16px; background: transparent; border-color: rgba(255,255,255,.25); color: #d2d4cd; width: 100%; margin-bottom: 16px; }
#homeTimerCard .timer-actions { grid-template-columns: 1fr 1.4fr; }
#homeTimerCard .timer-actions button { border-radius: 999px; font-size: .875rem; min-height: 50px; }
#homeTimerCard .timer-history-link { font-size: .875rem; min-height: 44px; text-decoration: underline; }
@media (max-width:360px) { #timeView .time-panel, #timeView .time-details, .time-chart-card, .time-distribution-card, #timeView .time-project-list { padding:20px; } .time-week-bars { gap:4px; } .time-bar-pair { gap:2px; } #homeTimerCard .timer-actions { grid-template-columns:1fr; } }

/* V2.2: sections within the same Time page; shared cards / cyan-lime tokens. */
.time-section-nav { position:sticky; top:max(8px,env(safe-area-inset-top)); z-index:15; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:3px; padding:5px; margin:0 0 22px; border:1px solid var(--line); border-radius:999px; background:rgba(250,250,248,.95); backdrop-filter:blur(16px); }
.time-section-nav button, .time-context-filter button { min-height:44px; border:0; border-radius:999px; background:transparent; font-size:.875rem; cursor:pointer; padding:8px 5px; }
.time-section-nav [aria-pressed="true"], .time-context-filter [aria-pressed="true"] { background:var(--dark); color:white; }
.time-context-filter { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); padding:4px; border:1px solid var(--line); border-radius:999px; background:var(--surface); }
.time-filter-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:20px 0; }
.time-filter-grid label { display:grid; gap:8px; font-size:.875rem; color:var(--muted); min-width:0; }
.time-filter-grid input, .time-filter-grid select { width:100%; min-width:0; min-height:48px; border:1px solid var(--line); border-radius:18px; background:var(--surface); color:var(--ink); padding:10px; font-size:1rem; }
.time-client-group { margin:16px 0; padding:20px; background:var(--surface); border:1px solid rgba(255,255,255,.7); border-radius:var(--radius-lg); box-shadow:var(--shadow); }
.time-client-group > summary { cursor:pointer; min-height:44px; line-height:1.4; }
.time-client-group > summary strong { font-size:1.2rem; }
.time-client-group > summary > span { float:right; font-size:.875rem; color:var(--muted); }
#timeView .time-client-group .budget-panel { margin:14px 0 0; padding:18px; border:1px solid var(--line); box-shadow:none; border-radius:var(--radius-md); }
.budget-panel summary strong { display:block; font-size:1.15rem; line-height:1.35; letter-spacing:-.025em; margin-top:6px; }
.budget-panel summary .section-label { display:block; margin-bottom:0; }
.time-client-group .time-stat-grid strong { font-size:1.05rem; line-height:1.4; }
.time-total-hours { font-size:2.7rem !important; letter-spacing:-.05em; margin-top:18px; }
#timeView .time-session-row { padding:20px; background:var(--surface); border:1px solid var(--line); border-left:4px solid var(--time-cyan); border-radius:var(--radius-md); margin-bottom:12px; grid-template-columns:minmax(0,1fr) minmax(70px,auto); }
#timeView .time-session-row.business-session { border-left-color:var(--accent); }
#timeView .time-session-row .section-label { font-size:.75rem; letter-spacing:.08em; }
#timeView .time-session-row p { margin-bottom:8px; }
#timeView .time-session-row > div:last-child strong { font-size:1.3rem; letter-spacing:-.035em; }
.time-session-filters { box-shadow:none !important; }
.business-time-fields, #startClientFields, #sessionClientFields { padding:0; margin:0; border:0; min-width:0; display:grid; gap:18px; }
.business-time-fields details { border:1px solid var(--line); padding:16px; border-radius:var(--radius-md); }
.business-time-fields details summary { min-height:44px; font-size:.875rem; color:var(--muted); cursor:pointer; }
.business-time-fields details label { margin-top:14px; }
#startCustomActivityFields button { min-height:48px; width:100%; border-radius:999px; margin-top:12px; }
#timerStartSheet .primary-button, #sessionEditSheet .primary-button { background:var(--accent); color:var(--ink); border-radius:999px; font-weight:650; }
#homeBudgetMini [data-business-home-time] { color:white; font-size:1.7rem; }
#homeBudgetMini .time-note { color:#b4b6af; }
.mission-step-row { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:10px; align-items:center; }
.business-mission-start { min-height:44px; font-size:.875rem; white-space:nowrap; color:var(--ink); }
.money-move-item > span { min-width:0; overflow-wrap:anywhere; }
.money-move-item .business-mission-start, .money-move-item.completed .business-mission-start { grid-column:2; width:auto; height:auto; min-height:44px; justify-items:start; border:0; border-radius:0; background:transparent; color:#d4d6ce; text-decoration:underline; }
.mission-step-row { border-top:1px solid var(--line); }
.mission-step-row .mission-step { border-top:0; }
@media (max-width:360px) { .time-section-nav button { font-size:.8rem; } #timeView .time-session-row { grid-template-columns:1fr; } #timeView .time-session-row > div:last-child { text-align:left; } .time-client-group { padding:16px; } .time-filter-grid { gap:10px; } .mission-step-row { grid-template-columns:1fr; gap:0; } .business-mission-start { text-align:left; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; }
}
