:root {
  color-scheme: dark;
  --bg: #121514;
  --surface: #1a1e1c;
  --surface-hover: #222925;
  --line: #2b312d;
  --text: #f1f3ee;
  --muted: #a1aaa3;
  --dim: #77827a;
  --green: #b0ef84;
  --green-ink: #173018;
  --red: #f39c95;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  background: var(--bg);
  color: var(--text);
}

/* Compact action lists and progress extend the original visual system. */
.section-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:16px; }
.section-heading h1, .section-heading h2 { font-size:21px; font-weight:600; letter-spacing:-.45px; }
.section-heading > span { flex-shrink:0; color:var(--muted); font-size:15px; }
.home-screen { padding-top:calc(30px + var(--safe-top)); }
.active-list { border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.swipe-row { position:relative; overflow:hidden; background:var(--bg); touch-action:pan-y; }
.swipe-row + .swipe-row { border-top:1px solid var(--line); }
.active-row { position:relative; display:flex; align-items:center; gap:12px; padding:16px 13px; background:var(--bg); transition:transform .2s ease; }
.active-open { display:flex; align-items:center; text-align:left; gap:14px; padding:0; flex:1; min-width:0; }
.active-copy { display:flex; flex-direction:column; min-width:0; gap:4px; }
.active-copy > span { font-size:16px; line-height:1.35; overflow-wrap:anywhere; }
.active-copy small { font-size:13px; color:var(--muted); }
.complete-circle { display:inline-flex; flex:0 0 32px; width:32px; height:32px; border:1.6px solid var(--green); border-radius:50%; align-items:center; justify-content:center; padding:0; position:relative; }
button.complete-circle::after { content:''; position:absolute; inset:-7px; }
.complete-circle:active { background:var(--surface-hover); }
.swipe-cancel { position:absolute; inset:0 0 0 auto; width:106px; background:#b93c36; color:#fff; font-size:15px; }
.swiped .active-row { transform:translateX(-106px); }
.participants-section { margin-top:24px; padding-top:28px; border-top:1px solid var(--line); }
.participant { display:flex; align-items:center; gap:12px; width:100%; text-align:left; padding:10px 0; border-bottom:1px solid var(--line); }
.participant .avatar { width:40px; height:40px; font-size:20px; }
.participant-copy { display:flex; flex-direction:column; gap:2px; min-width:0; }
.participant-name { font-size:17px; }
.participant-stat { font-size:14px; color:var(--muted); line-height:1.4; }
.early { color:var(--green) !important; }
.late { color:var(--red) !important; }
.deadline-field { margin-top:26px; }
.deadline-field h2 { color:var(--muted); font-weight:400; font-size:15px; margin-bottom:12px; }
.deadline-options, .period-tabs { display:flex; gap:6px; }
.deadline-choice, .period-tabs button { flex:1; min-height:44px; padding:9px 5px; border:1px solid var(--line); border-radius:11px; background:var(--surface); font-size:14px; }
.deadline-choice.selected, .period-tabs [aria-pressed=true] { color:var(--green); border-color:#456334; background:#22301d; }
.deadline-caption { font-size:12px; color:var(--dim); margin-top:10px; }
.calendar-label { display:flex; flex-direction:column; gap:8px; margin-top:14px; color:var(--muted); }
.calendar-label input { width:100%; min-height:46px; border-radius:10px; padding:10px; border:1px solid var(--line); background:var(--surface); color:var(--text); }
.detail-author { display:flex; align-items:center; gap:12px; padding:0; color:var(--muted); margin-bottom:24px; }
.detail-status { margin:8px 0 26px; }
.complete-detail { display:flex; align-items:center; justify-content:center; gap:12px; color:var(--green); min-height:54px; padding:10px; }
.danger-link { color:var(--red); }
.danger-button { background:#ab3d36; color:#fff; }
.delete-link { color:var(--dim); font-size:12px; margin-top:20px; }
.confirmation-screen h1 { font-size:26px; }
.confirmation-screen .actions-stack { margin-top:36px; }
.celebration-speed { margin-top:18px; font-size:20px; }
.intro-fields { display:grid; gap:22px; margin:24px 0; }
.intro-fields h2 { font-size:13px; color:var(--muted); font-weight:400; margin-bottom:6px; }
.intro-fields p { font-size:16px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; }
.profile-screen .profile-name { font-size:29px; }
.profile-screen .avatar-large { width:90px; height:90px; font-size:38px; }
.profile-screen .profile-header { margin-bottom:18px; }
.result-row { display:flex; align-items:center; width:100%; gap:13px; text-align:left; border-bottom:1px solid var(--line); padding:16px 0; }
.result-mark { width:35px; height:35px; flex:0 0 35px; display:flex; align-items:center; justify-content:center; border:1px solid var(--line); border-radius:50%; font-size:28px; background:var(--surface); }
.result-copy { flex:1; min-width:0; display:flex; flex-direction:column; gap:5px; overflow-wrap:anywhere; }
.result-copy small { font-size:13px; color:var(--muted); }
.result-row > .icon { color:var(--muted); width:16px; }
.progress-screen > h1 { margin:8px 0 24px; }
.period-tabs { margin-bottom:18px; }
.metrics { border:1px solid var(--line); border-radius:14px; padding:22px; display:grid; grid-template-columns:1fr 1fr; gap:20px 16px; }
.metrics > div { display:flex; flex-direction:column; gap:5px; min-width:0; }
.metrics strong { font-weight:600; font-size:25px; line-height:1.15; overflow-wrap:anywhere; }
.metrics span { font-size:12px; color:var(--muted); }
.metrics .metric-main strong { font-size:58px; }
.metrics .metric-speed strong { font-size:36px; }
.metric-speed { justify-content:center; padding-left:16px; border-left:1px solid var(--line); }
.metrics .metric-speed > span:last-child { color:inherit; font-size:17px; }
.metric-pair, .metric-cancelled { padding-top:16px; border-top:1px solid var(--line); }
.metrics .metric-pair strong span { font-size:23px; }
.compact-metrics { margin:26px 0; padding:20px 0; border-width:1px 0; border-radius:0; }
.compact-metrics .metric-main strong, .compact-metrics .metric-speed strong { font-size:30px; }
.chart-hint { color:var(--dim); font-size:13px; line-height:1.5; margin:18px 0; }
.chart-card { margin-top:16px; border:1px solid var(--line); border-radius:14px; padding:18px 14px 8px; }
.chart-card h2 { font-size:18px; }
.chart-legend { font-size:11px; color:var(--muted); margin-top:8px; }
.expected-label { color:#e2bf71; }
.chart-scroll { width:100%; overflow-x:auto; }
.chart-scroll svg { display:block; max-width:none; }
.chart-axis { stroke:var(--line); stroke-width:1; }
.chart-label { fill:var(--muted); font-size:11px; text-anchor:middle; }
.chart-value { fill:var(--text); font-size:12px; text-anchor:middle; }
svg rect.early { fill:var(--green); }
svg rect.late { fill:var(--red); }
.line-expected { stroke:#e2bf71; fill:#e2bf71; stroke-width:2; }
.line-actual { stroke:var(--green); fill:var(--green); stroke-width:2; }
polyline.line-expected, polyline.line-actual { fill:none; }
.weeks-title { font-size:22px; margin:28px 0 14px; }
.week-card { display:flex; justify-content:space-between; align-items:center; gap:12px; width:100%; text-align:left; padding:17px; margin-bottom:10px; border:1px solid var(--line); border-radius:13px; }
.week-card > span { display:flex; flex-direction:column; gap:6px; }
.week-card strong { font-size:16px; font-weight:600; }
.week-card span span, .week-card small { font-size:13px; color:var(--muted); }
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
button, input, textarea { font: inherit; }
button, a, input, textarea { touch-action: manipulation; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
button { border: 0; background: none; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green); outline-offset: 4px;
}
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
h1 { font-size: 29px; font-weight: 570; letter-spacing: -.95px; line-height: 1.2; }
h2 { font-size: 16px; font-weight: 550; letter-spacing: -.15px; }
svg { display: block; flex: 0 0 auto; }
.app { width: 100%; max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
.screen { padding: calc(16px + var(--safe-top)) 22px calc(108px + var(--safe-bottom)); }
.screen-inner { min-height: calc(100vh - 180px); min-height: calc(100dvh - 180px); }
.screen.flush-bottom { padding-bottom: calc(30px + var(--safe-bottom)); }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.small { font-size: 12px; }
.eyebrow { font-size: 12px; color: var(--muted); letter-spacing: .02em; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.icon { width: 19px; height: 19px; stroke-width: 1.7; }
.icon.small-icon { width: 15px; height: 15px; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; color: var(--muted); flex: 0 0 auto; }
.icon-button:active { background: var(--surface-hover); }
.icon-button:disabled { opacity: .4; }
.text-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px 4px; font-size: 14px; color: var(--muted); }
.text-button:disabled { opacity: .45; }
.button { width: 100%; min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 16px; border-radius: 15px; font-size: 15px; font-weight: 550; line-height: 1.35; transition: background-color .15s, opacity .15s; }
.button.primary { background: var(--green); color: var(--green-ink); }
.button.primary:active { background: #9ed970; }
.button.secondary { background: var(--surface); color: var(--text); }
.button.secondary:active { background: var(--surface-hover); }
.button:disabled { opacity: .36; }
.button.sent { background: #223122; color: var(--green); opacity: 1; font-size: 13px; }
.button.is-loading { opacity: .55; }
.button-row { display: flex; gap: 10px; }
.button-row > * { flex: 1; }
.actions-stack { display: grid; gap: 8px; }
.center-link { display: flex; margin: 3px auto 0; }
.toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; margin: -2px -10px 29px; }
.toolbar .eyebrow { padding-right: 10px; }
.page-title { margin-bottom: 28px; }
.compact-title { font-size: 25px; letter-spacing: -.7px; }
.brand-switch { width: 34px; height: 21px; border-radius: 20px; background: var(--green); display: inline-flex; justify-content: flex-end; align-items: center; padding: 3px; flex: 0 0 auto; }
.brand-switch::after { content: ""; width: 15px; height: 15px; border-radius: 50%; background: var(--green-ink); }
.button .brand-switch { width: 26px; height: 16px; padding: 2px; background: var(--green-ink); }
.button .brand-switch::after { width: 12px; height: 12px; background: var(--green); }
.boot { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; text-align: center; padding-bottom: var(--safe-top); }
.boot-label { color: var(--muted); font-size: 14px; }
.boot-fallback { margin-top: 12px; font-size: 12px; opacity: .6; }
.loading-switch { justify-content:flex-start; animation:loading-switch-turn 2.4s cubic-bezier(.65,0,.35,1) infinite; }
.loading-switch::after { animation:loading-switch-knob 2.4s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes loading-switch-turn { 0%,32% { transform:rotate(0); } 50%,82% { transform:rotate(180deg); } 100% { transform:rotate(360deg); } }
@keyframes loading-switch-knob { 0%,8% { transform:translateX(0); } 27%,58% { transform:translateX(13px); } 77%,100% { transform:translateX(0); } }
.gate { display: flex; flex-direction: column; justify-content: center; min-height: 100vh; min-height: 100dvh; padding-top: 35px; padding-bottom: 50px; }
.gate .brand-switch { margin-bottom: 31px; }
.gate h1 { max-width: 340px; }
.gate p { margin-top: 16px; max-width: 325px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.gate .button { margin-top: 32px; }
.focus { padding-top: 8px; margin-bottom: 25px; }
.focus-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; min-height: 40px; }
.focus-top .icon-button { margin-right: -10px; }
.focus-meta { display: flex; gap: 9px; align-items: center; color: var(--muted); font-size: 12px; }
.focus h1 { max-width: 100%; overflow-wrap: anywhere; margin: 0 0 25px; }
.focus .button { min-height: 51px; }
.focus-empty { padding: 16px 0 5px; }
.focus-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; margin: -10px 0 24px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 9px; min-height: 37px; }
.section-head span { font-size: 12px; color: var(--muted); }
.section-rule { border-top: 1px solid var(--line); padding-top: 20px; }
.section-head h2 { font-size: 14px; font-weight: 500; }
.rows { width: 100%; }
.person-row, .action-row, .history-row { width: 100%; min-height: 48px; height: 48px; display: grid; align-items: center; gap: 8px; text-align: left; padding: 0; border-bottom: 1px solid #242a26; font-size: 13px; border-radius: 0; }
.person-row { grid-template-columns: 27px minmax(39px, .63fr) minmax(0, 1.7fr) 53px 14px; gap: 6px; }
.action-row { position: relative; grid-template-columns: 27px minmax(42px, .6fr) minmax(0, 1.85fr) 53px; gap: 7px; overflow: hidden; }
.history-row { grid-template-columns: 35px minmax(0, 1fr) 53px; gap: 9px; }
.person-row:active, .action-row:active, .history-row:active { background: var(--surface); }
.row-name { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; font-size: 13px; }
.avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; flex: 0 0 auto; border-radius: 50%; overflow: hidden; background: #34433c; color: #d0dfd2; font-size: 11px; font-weight: 550; }
.avatar.has-photo::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: inherit; background: linear-gradient(105deg, #27322d 18%, #405149 46%, #27322d 74%); background-size: 220% 100%; animation: avatar-loading 1.35s ease-in-out infinite; transition: opacity .2s ease; }
.avatar img { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease; }
.avatar.is-loaded::after { opacity: 0; animation: none; }
.avatar.is-loaded img { opacity: 1; }
@keyframes avatar-loading { 0%, 100% { background-position: 100% 0; opacity: .58; } 50% { background-position: 0 0; opacity: .92; } }
@media (prefers-reduced-motion: reduce) { .avatar.has-photo::after { animation: none; opacity: .72; } }
.avatar-large { width: 40px; height: 40px; font-size: 16px; }
.row-date { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.row-respect { color: var(--muted); display: inline-flex; gap: 3px; justify-content: flex-end; align-items: center; font-size: 11px; font-variant-numeric: tabular-nums; }
.row-respect.received { color: var(--green); }
.row-respect .icon { width: 12px; height: 12px; }
.status { width: 14px; height: 18px; display: flex; align-items: center; justify-content: center; color: var(--dim); }
.status .icon { width: 14px; height: 14px; }
.status.done { color: var(--green); }
.status.in-progress { color: #e5c17b; }
.score { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; flex: 0 0 auto; font-size: 11px; font-weight: 550; line-height: 1; color: #dec687; background: #3a3425; font-variant-numeric: tabular-nums; }
.score[data-score="0"], .score[data-score="1"], .score[data-score="2"] { background: #25392c; color: #9be3b0; }
.score[data-score="3"] { background: #303b2a; color: #bfdc9a; }
.score[data-score="4"] { background: #383b27; color: #d8d893; }
.score[data-score="5"] { background: #3d3727; color: #e4cd87; }
.score[data-score="6"] { background: #413729; color: #e9c48c; }
.score[data-score="7"] { background: #45332a; color: #edb392; }
.score[data-score="8"] { background: #442e29; color: #f1a48f; }
.score[data-score="9"] { background: #452b29; color: #f49b92; }
.score[data-score="10"] { background: #492a2a; color: #ff918b; }
.score.unselected { background: var(--surface); color: var(--dim); }
.score.large { width: 34px; height: 34px; font-size: 14px; }
.score-pair { display: flex; align-items: center; gap: 3px; color: var(--dim); font-size: 10px; }
.score-pair .score { width: 21px; height: 21px; font-size: 10px; }
.score-single { display: flex; justify-content: flex-end; }
.bottom-nav { position: fixed; z-index: 5; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-template-columns: 1.45fr 1fr; padding: 7px 16px calc(8px + var(--safe-bottom)); border-top: 1px solid var(--line); background: #121514f5; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.bottom-nav button { min-height: 51px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 500; border-radius: 12px; }
.bottom-nav button[aria-current="page"] { color: var(--green); }
.bottom-nav .icon { width: 18px; height: 18px; }
.empty { padding: 35px 2px; color: var(--muted); font-size: 14px; line-height: 1.55; max-width: 310px; }
.empty strong { display: block; color: var(--text); font-weight: 500; margin-bottom: 6px; }
.history-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 28px 0 23px; }
.history-heading h1 { font-size: 25px; letter-spacing: -.7px; }
.history-heading span { font-size: 13px; color: var(--muted); }
.month-label { padding: 20px 0 8px; font-size: 12px; color: var(--muted); font-weight: 400; }
.welcome { padding-top: calc(33px + var(--safe-top)); padding-bottom: calc(104px + var(--safe-bottom)); }
.welcome-heading { margin: 0 0 25px; }
.welcome-heading h1 { font-size: 27px; letter-spacing: -.8px; }
.welcome-heading p { margin-top: 9px; color: var(--muted); font-size: 13px; }
.action-row.is-respected { background: #b0ef840d; border-color: #354230; }
.action-row.is-respected .row-name { color: #b8c5b2; }
.row-sparkles { pointer-events: none; position: absolute; inset: 0; opacity: 0; color: var(--green); }
.row-sparkles .icon { position: absolute; width: 16px; height: 16px; top: 16px; left: 31%; }
.row-sparkles .icon:nth-child(2) { top: 5px; left: 57%; width: 11px; height: 11px; }
.row-sparkles .icon:nth-child(3) { top: 30px; left: 75%; width: 9px; height: 9px; }
.respect-celebrate { animation: respect-wash .85s ease-out both; }
.respect-celebrate .row-sparkles { animation: respect-sparks .85s ease-out both; }
@keyframes respect-wash { 0% { background-color: #b0ef8426; } 40% { background-color: #b0ef843d; } 100% { background-color: #b0ef840d; } }
@keyframes respect-sparks { 0% { opacity: 0; transform: translateY(7px) scale(.94); } 25% { opacity: .9; } 100% { opacity: 0; transform: translateY(-7px) scale(1.02); } }
.sticky-actions { position: fixed; z-index: 5; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; padding: 15px 22px calc(18px + var(--safe-bottom)); background: #121514f5; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); }
.sticky-actions .button-row { gap: 8px; }
.sticky-actions .button { padding: 13px 9px; font-size: 13px; min-height: 48px; border-radius: 13px; }
.sticky-actions .button.sent { font-size: 11px; gap: 5px; }
.sticky-actions .button.sent .icon { width: 15px; height: 15px; }
.action-form h1 { margin-bottom: 24px; }
.action-input { width: 100%; display: block; min-height: 90px; resize: vertical; max-height: 260px; padding: 16px; border: 1px solid #343d36; border-radius: 16px; background: var(--surface); color: var(--text); font-size: 18px; line-height: 1.45; letter-spacing: -.2px; }
.action-input::placeholder { color: var(--dim); }
.note-label { display: block; color: var(--muted); font-size: 12px; margin: 20px 0 9px; }
.note-input { min-height: 126px; font-size: 16px; border-radius: 13px; padding: 13px 15px; }
.add-note { justify-content: flex-start; margin-top: 5px; }
.add-note .icon { width: 15px; height: 15px; }
.scale { margin-top: 28px; }
.scale-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); margin-bottom: 7px; }
.scale input[type="range"] { display: block; width: 100%; height: 44px; padding: 0; margin: 0; cursor: pointer; -webkit-appearance: none; appearance: none; background: transparent; border: none; }
.scale input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 20px; background: linear-gradient(90deg, #84ce9f 0%, #d3c074 50%, #e4857b 100%); }
.scale input[type="range"]::-moz-range-track { height: 5px; border-radius: 20px; background: linear-gradient(90deg, #84ce9f 0%, #d3c074 50%, #e4857b 100%); }
.scale input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 26px; height: 26px; background: #eef1e9; border: 4px solid #202820; border-radius: 50%; margin-top: -10.5px; box-shadow: 0 0 0 1px #828e7b; }
.scale input[type="range"]::-moz-range-thumb { width: 19px; height: 19px; background: #eef1e9; border: 4px solid #202820; border-radius: 50%; box-shadow: 0 0 0 1px #828e7b; }
.scale input[type="range"][data-selected="false"]::-webkit-slider-thumb { background: #536053; }
.scale input[type="range"][data-selected="false"]::-moz-range-thumb { background: #536053; }
.scale-ends { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 1px; }
.scale-hint { min-height:60px; font-size: 13px; line-height: 1.5; color: #e8ba9c; margin: 20px 0 0; }
.scale-hint[data-category="easy"] { color: var(--muted); }
.scale-hint[data-category="optimal"] { color: #b9d79a; }
.form-footer { margin-top: 34px; }
.detail-title { overflow-wrap: anywhere; margin: 0 0 24px; }
.detail-heading { display:flex; align-items:flex-start; gap:16px; }
.detail-heading .detail-title { flex:1; min-width:0; }
.detail-heading > .score { flex-shrink:0; margin-top:4px; }
.active-detail .detail-title { margin-bottom:16px; }
.active-detail .detail-countdown { margin:0 0 20px; padding:0; background:none; color:var(--muted); font-size:15px; font-weight:400; line-height:1.45; letter-spacing:0; }
.active-detail .detail-note { margin:0 0 22px; font-size:15px; }
.active-detail .actions-stack { margin-top:8px; }
.detail-note { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--muted); font-size: 14px; line-height: 1.6; margin: -8px 0 25px; }
.detail-meta { display: flex; gap: 22px; align-items: center; margin: 0 0 28px; }
.detail-metric { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.detail-date { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; margin-bottom: 26px; }
.detail-date .icon { width: 15px; height: 15px; color: var(--green); }
.respect-total { display:flex; align-items:center; gap:7px; color:var(--green); font-size:14px; min-height:36px; margin:12px 0 20px; }
.respect-total span { color:var(--muted); }
.respect-total .icon, .author-totals .icon { width:18px; height:18px; }
.author-totals { display:flex; flex-wrap:wrap; gap:8px 20px; min-height:38px; margin:12px 0 22px; font-size:13px; color:var(--muted); }
.author-totals > span { display:inline-flex; align-items:center; gap:6px; }
.author-totals strong, .author-totals .icon { color:var(--green); }
.totals-loading { opacity:.5; }
.full-action { position:relative; }
.sticky-actions .button-row { flex-direction:column; }
.welcome { padding-bottom:190px; }
.profile-header { margin-bottom: 30px; }
.profile-identity { display: flex; align-items: center; gap: 11px; }
.profile-name { font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.profile-handle { margin-top: 2px; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.profile-section { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); }
.section-label { color: var(--muted); font-size: 12px; font-weight: 450; margin-bottom: 15px; }
.profile-section .month-label:first-child { padding-top: 0; }
.full-action { border-radius: 10px; }
.secondary-action .detail-title { font-size: 22px; letter-spacing: -.4px; }
.secondary-action .detail-meta { margin-bottom: 15px; }
.profile-contact { margin-top: 26px; }
.actual-screen h1 { margin-bottom: 36px; }
.help-screen h1 { margin-bottom: 26px; }
.draft-text { min-height: 170px; margin: 23px 0 20px; font-size: 16px; }
.contact-caption { margin: 13px 0 0; font-size: 12px; color: var(--muted); line-height: 1.55; }
.celebration { display: flex; flex-direction: column; justify-content: space-between; gap: 35px; min-height: 100vh; min-height: 100dvh; padding-top: calc(45px + var(--safe-top)); padding-bottom: calc(26px + var(--safe-bottom)); background: radial-gradient(ellipse at 50% 21%, #b0ef8412, transparent 65%); }
.celebration-content { margin: auto 0; text-align: center; }
.celebration-symbol { position: relative; width: 170px; height: 90px; display: flex; align-items: center; justify-content: center; margin: 0 auto 24px; }
.celebration-symbol > .brand-switch { width: 90px; height: 54px; padding: 7px; box-shadow: 0 0 70px #b0ef8426; }
.celebration-symbol > .brand-switch::after { width: 40px; height: 40px; }
.celebration-stars { position: absolute; inset: 0; color: var(--green); }
.celebration-stars .icon { position: absolute; width: 23px; height: 23px; left: 6px; top: 8px; }
.celebration-stars .icon:nth-child(2) { width: 14px; height: 14px; right: 5px; top: 41px; left: auto; }
.celebration-stars .icon:nth-child(3) { width: 9px; height: 9px; right: 32px; top: 0; left: auto; }
.celebration h1 { color: var(--green); font-size: 30px; line-height: 1.17; }
.celebration-title { color: var(--muted); font-size: 14px; line-height: 1.5; max-width: 310px; margin: 16px auto 0; overflow-wrap: anywhere; }
.celebration-scores { display: flex; justify-content: center; align-items: center; gap: 28px; margin: 31px 0 21px; }
.celebration-scores > div { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-size: 12px; }
.celebration-number { font-size: 70px; line-height: 1; letter-spacing: -3px; font-weight: 550; color: var(--text); font-variant-numeric: tabular-nums; }
.celebration-arrow { font-size: 26px; color: var(--dim); padding-bottom: 20px; }
.celebration-caption { margin: 0 auto; max-width: 265px; font-size: 14px; line-height: 1.6; color: var(--muted); }
.celebration-enter .celebration-content { animation: celebration-reveal .65s ease-out both; }
.celebration-enter .celebration-symbol > .brand-switch::after { animation: switch-on .65s cubic-bezier(.2,.7,.3,1) both; }
.celebration-enter .celebration-stars { animation: star-arrival .85s ease-out both; }
@keyframes celebration-reveal { from { opacity: .3; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes switch-on { from { transform: translateX(-36px); } to { transform: translateX(0); } }
@keyframes star-arrival { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
.notice { position: fixed; z-index: 20; left: 50%; bottom: calc(86px + var(--safe-bottom)); transform: translateX(-50%); width: max-content; max-width: min(390px, calc(100% - 32px)); background: #e2ecda; color: #1c2b1c; box-shadow: 0 5px 30px #0004; padding: 12px 16px; border-radius: 13px; font-size: 13px; line-height: 1.45; text-align: center; pointer-events: none; }
.notice.error { background: #e8c0b8; color: #392521; }
.network-strip { margin-bottom: 10px; min-height: 44px; display: flex; gap: 10px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.network-strip .text-button { color: var(--green); font-size: 12px; }
@media (max-width: 350px) {
  .screen { padding-left: 16px; padding-right: 16px; }
  .sticky-actions, .bottom-nav { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 27px; }
  .person-row { grid-template-columns: 25px 40px minmax(0, 1fr) 53px 12px; gap: 5px; }
  .action-row { grid-template-columns: 25px 40px minmax(0, 1fr) 53px; gap: 6px; }
  .avatar { width: 25px; height: 25px; }
  .avatar-large { width: 40px; height: 40px; }
  .row-title { font-size: 12px; }
  .row-name { font-size: 11px; }
  .history-row { gap: 6px; grid-template-columns: 33px minmax(0, 1fr) 53px; }
  .bottom-nav button { font-size: 12px; gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .respect-celebrate { background-color: #b0ef8426; }
}

.bottom-nav { display:grid; grid-template-columns:minmax(0,1fr) 56px minmax(0,1fr); align-items:center; gap:12px; padding:14px 18px calc(18px + var(--safe-bottom)); }
.bottom-nav button { display:flex; flex-direction:column; justify-content:center; align-items:center; gap:6px; min-height:48px; font-size:11px; font-weight:450; line-height:1.2; }
.bottom-nav button > .icon { width:24px; height:24px; }
.bottom-nav .nav-add { border-radius:50%; background:var(--green); color:var(--green-ink); width:52px; height:52px; min-height:52px; padding:0; }
.bottom-nav .nav-add .icon { width:34px; height:34px; stroke-width:1.8; }
.action-form h1 { margin-bottom:25px; }
.action-form .note-label { display:block; margin:20px 0 9px; }
.action-form .scale { margin-top:26px; }
.active-open .score.large { width:36px; height:36px; font-size:18px; flex-basis:36px; }
.welcome-heading h1 { font-size:27px; line-height:1.24; }
.welcome .action-row { grid-template-columns:34px minmax(0,1fr) auto; column-gap:12px; }
.welcome .row-name { grid-column:2; grid-row:1; font-size:13px; padding-top:5px; }
.welcome .row-title { grid-column:2; grid-row:2; font-size:15px; white-space:normal; padding-bottom:5px; }
.welcome .avatar { grid-row:1 / 3; }
.welcome .score-pair { grid-column:3; grid-row:1 / 3; }
.welcome .row-sparkles { grid-column:3; grid-row:1 / 3; pointer-events:none; }
@media (max-width:360px) {
  .section-heading h1,.section-heading h2 { font-size:18px; }
  .section-heading > span { font-size:13px; }
  .active-row { padding:14px 10px; gap:9px; }
  .active-open { gap:10px; }
  .active-copy > span { font-size:15px; }
  .participant-stat { font-size:13px; }
  .metrics { padding:17px; gap:16px 10px; }
  .metrics .metric-main strong { font-size:48px; }
  .metrics .metric-speed strong { font-size:30px; }
  .metrics .metric-pair strong { font-size:20px; }
  .bottom-nav { gap:6px; padding-left:10px; padding-right:10px; }
  .bottom-nav button { font-size:10px; }
}

/* Seven-day picker, always kept on one line. */
.deadline-quick { display:grid; grid-template-columns:1fr 1fr 1.3fr; gap:6px; margin-bottom:10px; }
.deadline-quick .deadline-choice { min-height:44px; font-size:13px; }
.deadline-options { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:4px; }
.deadline-choice { min-width:0; min-height:58px; padding:7px 1px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:2px; border-radius:10px; }
.deadline-choice span { color:var(--muted); font-size:10px; line-height:1; text-transform:uppercase; }
.deadline-choice strong { font-size:16px; font-weight:550; line-height:1.2; }
.deadline-choice.selected span { color:var(--green); }

/* The three slots remain visible even before the user has filled them. */
.action-slot-empty { display:flex; width:100%; min-height:58px; align-items:center; justify-content:center; color:#89968d88; background:var(--bg); font-size:13px; font-weight:400; }
.swipe-row + .action-slot-empty, .action-slot-empty + .action-slot-empty { border-top:1px solid var(--line); }
.action-slot-empty span { font-size:24px; font-weight:300; }
.action-slot-empty:active { background:var(--surface); color:var(--green); }
.action-menu-trigger { width:30px; min-height:38px; padding:0; flex:0 0 30px; color:var(--dim); font-size:17px; letter-spacing:1px; border-radius:9px; }
.action-menu-trigger:hover, .action-menu-trigger:focus-visible { color:var(--text); background:var(--surface); }
.action-context-menu { position:fixed; z-index:40; width:210px; padding:6px; border:1px solid #3b433e; border-radius:13px; background:#202421fa; box-shadow:0 14px 45px #0009; backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
.action-context-menu button { display:block; width:100%; min-height:43px; padding:10px 12px; border-radius:9px; text-align:left; font-size:14px; }
.action-context-menu button:hover, .action-context-menu button:focus-visible { background:var(--surface-hover); }
.action-context-menu .danger, .danger-outline { color:var(--red); }
.danger-outline { border:1px solid #754945; background:#321f1d; }

/* Participants have independent profile and action targets. */
.participant { display:grid; grid-template-columns:minmax(0,62fr) minmax(0,38fr); gap:0; padding:0; }
.participant.no-current-action { grid-template-columns:minmax(0,1fr); }
.participant-profile { display:flex; align-items:center; gap:12px; width:100%; min-width:0; min-height:64px; padding:10px 0; text-align:left; }
.participant-avatar { width:40px; height:44px; flex-shrink:0; display:flex; align-items:center; padding:0; border-radius:50%; }
.participant-copy { width:100%; }
.participant-name { width:max-content; max-width:100%; padding:0; text-align:left; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.participant-line { display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; }
.participant-stat { flex:0 0 auto; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.participant-current { display:flex; align-items:flex-end; justify-content:flex-end; width:100%; min-width:0; max-width:none; padding:10px 0 10px 8px; color:var(--muted); font-size:13px; text-align:right; }
.participant-current span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.participant-current:hover, .participant-current:focus-visible { color:var(--green); }
.week-range { font-family:ui-rounded,"SF Pro Rounded",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; color:var(--muted); font-size:.78em; font-weight:400; letter-spacing:0; white-space:nowrap; }

/* Compact profile previews expand in place. */
.action-tools { display:flex; gap:10px; margin-top:10px; }
.action-tools .button { flex:1; min-width:0; padding:12px 8px; min-height:46px; font-size:13px; font-weight:450; }
.action-tools .action-help { background:#203326; color:var(--green); }
.action-destructive { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:24px; padding-top:14px; border-top:1px solid var(--line); }
.action-destructive .button { width:auto; min-height:44px; padding:8px 2px; font-size:12px; font-weight:400; border-radius:6px; }
.action-cancel { color:#d5a77a; }
.action-delete { color:var(--red); margin-left:auto; }
.confirmation-screen .detail-note { margin-top:18px; }
.full-action .detail-status.late { color:var(--red); }
.action-form #action-title { min-height:86px; }
.profile-copy { display:block; width:100%; padding:0; color:var(--text); text-align:left; font-size:16px; line-height:1.5; }
.profile-copy span { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:2; white-space:pre-wrap; overflow-wrap:anywhere; }
.profile-expand { color:var(--green); margin:8px 0 18px; }
.profile-dialog-open { overflow:hidden; }
.profile-dialog { box-sizing:border-box; width:calc(100% - 32px); max-width:520px; max-height:80dvh; margin:auto; padding:22px; border:1px solid var(--line); border-radius:22px; background:var(--surface); color:var(--text); box-shadow:0 20px 80px #0008; overflow:auto; }
.profile-dialog::backdrop { background:rgb(0 0 0 / 75%); backdrop-filter:blur(3px); }
.profile-dialog header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.profile-dialog header h2 { font-size:24px; overflow-wrap:anywhere; }
.profile-dialog header button { display:grid; place-items:center; width:44px; height:44px; flex-shrink:0; border-radius:50%; color:var(--muted); background:var(--bg); }
.profile-dialog-copy section { margin-top:24px; }
.profile-dialog-copy h3 { color:var(--muted); font-size:14px; font-weight:400; margin-bottom:6px; }
.profile-dialog-copy p { white-space:pre-wrap; overflow-wrap:anywhere; font-size:16px; line-height:1.55; }

/* Expected and actual difficulty use the same scale colours everywhere. */
.rating-value.rating-tone-0,.rating-value.rating-tone-1,.rating-value.rating-tone-2,.celebration-number.rating-tone-0,.celebration-number.rating-tone-1,.celebration-number.rating-tone-2 { color:#9be3b0; }
.rating-value.rating-tone-3,.celebration-number.rating-tone-3 { color:#bfdc9a; }
.rating-value.rating-tone-4,.celebration-number.rating-tone-4 { color:#d8d893; }
.rating-value.rating-tone-5,.celebration-number.rating-tone-5 { color:#e4cd87; }
.rating-value.rating-tone-6,.celebration-number.rating-tone-6 { color:#e9c48c; }
.rating-value.rating-tone-7,.celebration-number.rating-tone-7 { color:#edb392; }
.rating-value.rating-tone-8,.celebration-number.rating-tone-8 { color:#f1a48f; }
.rating-value.rating-tone-9,.celebration-number.rating-tone-9 { color:#f49b92; }
.rating-value.rating-tone-10,.celebration-number.rating-tone-10 { color:#ff918b; }

/* Progress placeholder mirrors the final blocks while their data arrives. */
.progress-skeleton { display:grid; gap:16px; }
.skeleton-card { position:relative; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:#171b19; }
.skeleton-card::after,.skeleton-title::after { content:''; position:absolute; inset:0; background:linear-gradient(100deg,transparent 15%,#a7b1aa0d 45%,#a7b1aa1a 52%,transparent 80%); transform:translateX(-110%); animation:skeleton-shimmer 1.8s ease-in-out infinite; }
.skeleton-card i { display:block; border-radius:8px; background:#242a26; }
.skeleton-metrics { height:198px; display:grid; grid-template-columns:1fr 1fr; gap:18px; padding:22px; }
.skeleton-metrics i:nth-child(1),.skeleton-metrics i:nth-child(2) { height:66px; }
.skeleton-metrics i:nth-child(3),.skeleton-metrics i:nth-child(4) { height:38px; align-self:end; }
.skeleton-chart { height:235px; display:flex; align-items:flex-end; justify-content:space-around; padding:30px 25px 22px; }
.skeleton-chart i { width:18%; height:30%; }
.skeleton-chart i:nth-child(2) { height:49%; }.skeleton-chart i:nth-child(3) { height:64%; }.skeleton-chart i:nth-child(4) { height:78%; }
.skeleton-title { position:relative; overflow:hidden; width:42%; height:25px; margin-top:8px; border-radius:8px; background:#242a26; }
.skeleton-week { height:102px; padding:17px; display:grid; gap:8px; }
.skeleton-week i { height:14px; }.skeleton-week i:nth-child(1) { width:58%; }.skeleton-week i:nth-child(2) { width:44%; }.skeleton-week i:nth-child(3) { width:68%; }
@keyframes skeleton-shimmer { 0%,15% { transform:translateX(-110%); opacity:.5; } 70%,100% { transform:translateX(110%); opacity:1; } }

@media (pointer:coarse) {
  .action-menu-trigger { display:none; }
}
@media (max-width:360px) {
  .deadline-options { gap:3px; }
  .deadline-choice { min-height:54px; font-size:14px; }
  .participant { gap:0; }
  .participant-line { gap:6px; }
  .participant-current { max-width:none; font-size:12px; }
}
