:root {
  color-scheme: light;
  --paper: #f5f6f2;
  --surface: #fbfaf6;
  --surface-strong: #ffffff;
  --ink: #141b19;
  --muted: #69716d;
  --line: #e0e3dc;
  --green: #1f7a5a;
  --green-soft: #edf6f1;
  --purple: #6b5aa5;
  --purple-soft: #f2eff8;
  --gold: #b9841c;
  --coral: #bd654f;
  --blue: #36698d;
  --shadow: 0 8px 24px rgba(20, 27, 25, 0.07);
  --radius: 7px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--paper);
}

body {
  min-height: 100%;
  margin: 0;
  background: #f5f6f2;
  color: var(--ink);
}

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

button {
  -webkit-tap-highlight-color: transparent;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  font-size: 23px;
  line-height: 1.17;
  letter-spacing: 0;
}

h3 {
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100svh;
  margin: 0 auto;
  padding: max(12px, env(safe-area-inset-top)) 14px calc(92px + env(safe-area-inset-bottom));
}

.topbar,
.brand-lockup,
.page-title,
.section-row,
.dialog-top,
.routine-card-head,
.calendar-toolbar,
.calendar-legend,
.player-actions,
.edit-actions {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.brand-lockup {
  min-width: 0;
  gap: 10px;
}

.brand-mark {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(35, 122, 91, 0.16);
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.icon-button,
.small-button,
.primary-button,
.secondary-button,
.danger-button,
.finish-button,
.nav-item,
.segmented button,
.calendar-day {
  border: 0;
  cursor: pointer;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--surface-strong);
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(20, 33, 31, 0.08);
}

.icon-button svg,
.small-button svg,
.primary-button svg,
.secondary-button svg {
  width: 19px;
  height: 19px;
}

main {
  display: grid;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.page-title {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.view[data-view="home"] .page-title {
  display: none;
}

.small-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.celebration {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(214, 154, 33, 0.38);
  border-radius: var(--radius);
  background: #fff7df;
  color: #5a3f00;
  box-shadow: 0 8px 20px rgba(214, 154, 33, 0.12);
}

.celebration strong {
  font-size: 18px;
}

.celebration span {
  font-size: 14px;
  font-weight: 700;
}

.routine-start-grid {
  display: grid;
  gap: 12px;
}

.start-card,
.today-overview,
.condition-panel,
.quick-routine-panel,
.weekly-report-panel,
.insight-panel,
.today-panel,
.routine-summary,
.step-card,
.stat-tile,
.settings-form,
.plain-section,
.calendar-summary,
.calendar-day,
.date-session-card {
  border: 1px solid rgba(20, 33, 31, 0.09);
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: 0 10px 26px rgba(20, 33, 31, 0.08);
}

.start-card {
  display: grid;
  gap: 11px;
  padding: 14px;
}

.today-overview {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 15px;
  background:
    linear-gradient(135deg, rgba(35, 122, 91, 0.1), rgba(49, 95, 143, 0.08)),
    var(--surface-strong);
}

.today-overview-copy {
  display: grid;
  gap: 7px;
}

.today-overview-copy h2 {
  font-size: 22px;
}

.today-overview-copy p {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
}

.condition-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 14px;
}

.condition-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.condition-head h3 {
  margin-top: 3px;
}

.condition-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.condition-options button,
.light-toggle,
.pain-options button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f8f4;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.condition-options button.active,
.light-toggle.active,
.pain-options button.active {
  border-color: rgba(20, 27, 25, 0.16);
  background: var(--ink);
  color: #fff;
}

.light-toggle {
  min-width: 82px;
  padding: 0 10px;
}

.condition-panel p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.42;
}

.quick-routine-panel,
.weekly-report-panel,
.insight-panel {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding: 12px;
}

.weekly-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.weekly-report-grid div {
  display: grid;
  min-height: 64px;
  place-items: center;
  gap: 4px;
  border-radius: var(--radius);
  background: rgba(20, 33, 31, 0.04);
}

.weekly-report-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.weekly-report-grid strong {
  font-size: 20px;
}

.weekly-report-note {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(20, 33, 31, 0.08);
  border-radius: var(--radius);
  background: var(--surface);
}

.weekly-report-note strong {
  font-size: 13px;
  line-height: 1.35;
}

.weekly-report-note span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.quick-routine-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-routine-card {
  display: grid;
  min-height: 92px;
  align-content: center;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-align: left;
}

.quick-routine-card.morning {
  background: linear-gradient(180deg, #ffffff 0%, var(--green-soft) 100%);
}

.quick-routine-card.night {
  background: linear-gradient(180deg, #ffffff 0%, var(--purple-soft) 100%);
}

.quick-routine-card.done {
  box-shadow: inset 0 0 0 2px rgba(35, 122, 91, 0.24);
}

.quick-routine-card strong {
  font-size: 15px;
  line-height: 1.18;
}

.quick-routine-card span,
.quick-routine-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.insight-row {
  display: grid;
  gap: 4px;
  min-height: 58px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.insight-row.skip {
  border-color: rgba(215, 95, 68, 0.18);
  background: #fff5f1;
}

.insight-row.pain {
  border-color: rgba(158, 47, 26, 0.24);
  background: #fff0ea;
}

.insight-row strong {
  font-size: 14px;
}

.insight-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.today-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.today-mini-stats span {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(20, 33, 31, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.today-mini-stats span.done {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.start-card.morning {
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--green-soft) 100%);
}

.start-card.night {
  background: linear-gradient(180deg, var(--surface-strong) 0%, var(--purple-soft) 100%);
}

.start-card p {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.start-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.routine-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(20, 33, 31, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.pill.morning {
  background: rgba(35, 122, 91, 0.13);
  color: var(--green);
}

.pill.night {
  background: rgba(114, 81, 173, 0.13);
  color: var(--purple);
}

.pill.both {
  background: rgba(200, 140, 24, 0.18);
  color: #785008;
}

.pill.skipped {
  background: rgba(215, 95, 68, 0.13);
  color: #9e2f1a;
}

.progress-ring {
  position: relative;
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
}

.progress-ring svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.ring-base {
  stroke: rgba(20, 33, 31, 0.13);
}

.ring-value {
  stroke: var(--green);
  stroke-dasharray: 188.5;
  stroke-dashoffset: 188.5;
  transition: stroke-dashoffset 180ms ease;
}

.start-card.night .ring-value,
.stat-tile.night .bar-value {
  stroke: var(--purple);
  background: var(--purple);
}

.progress-ring strong {
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.start-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.start-actions,
.button-stack {
  display: grid;
  gap: 9px;
}

.start-card .start-actions {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
}

.start-card .start-actions .compact {
  min-width: 96px;
  padding: 0 11px;
}

.primary-button,
.secondary-button,
.danger-button,
.finish-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: var(--radius);
  font-weight: 850;
}

.primary-button {
  background: var(--ink);
  color: #fff;
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
}

.secondary-button.compact {
  min-height: 44px;
}

.danger-button,
.danger-text {
  color: #9e2f1a;
}

.danger-button {
  width: 100%;
  margin-top: 14px;
  border: 1px solid rgba(158, 47, 26, 0.26);
  background: #fff1ed;
}

.finish-button {
  width: 100%;
  background: var(--gold);
  color: #221704;
}

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

.stat-tile {
  display: grid;
  gap: 7px;
  min-height: 74px;
  padding: 12px;
}

.stat-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.stat-tile strong {
  font-size: 23px;
  line-height: 1;
  letter-spacing: 0;
}

.today-panel,
.plain-section,
.routine-summary {
  display: grid;
  gap: 12px;
  margin-top: 12px;
  padding: 15px;
}

.today-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 44px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--line);
}

.status-dot.morning.done {
  background: var(--green);
}

.status-dot.night.done {
  background: var(--purple);
}

.today-row strong {
  display: block;
  font-size: 15px;
}

.today-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.58);
}

.segmented button {
  min-height: 44px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-weight: 850;
}

.segmented button.active {
  background: var(--ink);
  color: #fff;
}

.step-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.step-card {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.step-thumb {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-thumb img,
.step-media img,
.edit-preview img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fbfaf6;
}

.player-sheet .step-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.default-illustration {
  width: 100%;
  height: 100%;
}

.step-content {
  min-width: 0;
}

.routine-card-head {
  justify-content: space-between;
  gap: 8px;
}

.step-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.step-actions button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.step-actions button:disabled {
  color: #a9b0ac;
  background: rgba(20, 33, 31, 0.03);
}

.step-actions svg {
  width: 15px;
  height: 15px;
}

.step-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.step-badges span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(20, 33, 31, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.step-card p,
.routine-summary p,
.plain-section p,
.plain-section li,
.date-session-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.calendar-toolbar {
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 12px;
}

.calendar-toolbar strong {
  font-size: 20px;
}

.calendar-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px;
}

.calendar-summary div {
  display: grid;
  gap: 4px;
  min-height: 58px;
  place-items: center;
  border-radius: var(--radius);
  background: rgba(20, 33, 31, 0.04);
}

.calendar-summary span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.calendar-summary strong {
  font-size: 19px;
}

.calendar-legend {
  gap: 12px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

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

.dot.morning {
  background: var(--green);
}

.dot.night {
  background: var(--purple);
}

.star-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: rgba(200, 140, 24, 0.12);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.weekday {
  display: grid;
  min-height: 28px;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.calendar-day {
  display: grid;
  min-width: 0;
  min-height: 56px;
  align-content: space-between;
  gap: 5px;
  padding: 8px 6px;
  background: rgba(255, 250, 241, 0.86);
  color: var(--ink);
  text-align: left;
}

.calendar-day.muted {
  opacity: 0.42;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 2px var(--blue);
}

.calendar-day.both {
  background: #fff8e4;
  box-shadow: inset 0 0 0 2px var(--gold);
}

.calendar-day strong {
  font-size: 15px;
}

.day-marks {
  display: flex;
  gap: 4px;
}

.settings-form,
.plain-section {
  margin-top: 12px;
}

.settings-form {
  display: grid;
  gap: 14px;
  padding: 15px;
}

.settings-group {
  display: grid;
  gap: 10px;
}

.settings-form label,
.edit-sheet label,
.date-sheet label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.settings-form input,
.edit-sheet input,
.edit-sheet select,
.edit-sheet textarea,
.date-sheet textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  outline: none;
}

.switch-row {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px !important;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(20, 33, 31, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink) !important;
}

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

.switch-row > span {
  display: grid;
  gap: 3px;
}

.switch-row strong {
  font-size: 14px;
}

.switch-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.number-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 86px;
  gap: 12px !important;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(20, 33, 31, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink) !important;
}

.number-row.muted {
  opacity: 0.52;
}

.number-row > span {
  display: grid;
  gap: 3px;
}

.number-row strong {
  font-size: 14px;
}

.number-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.settings-form .number-row input {
  min-height: 42px;
  text-align: center;
  font-size: 16px;
  font-weight: 900;
}

.switch-row input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  margin: 0;
  padding: 0 !important;
  opacity: 0;
}

.switch-ui {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: #cdd4cf;
  transition: background 160ms ease;
}

.switch-ui::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(20, 33, 31, 0.22);
  content: "";
  transition: transform 160ms ease;
}

.switch-row input:checked + .switch-ui {
  background: var(--green);
}

.switch-row input:checked + .switch-ui::after {
  transform: translateX(20px);
}

.edit-sheet textarea,
.date-sheet textarea {
  min-height: 82px;
  padding: 11px 12px;
  resize: vertical;
}

.check-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: center;
  gap: 10px !important;
}

.check-row input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  accent-color: var(--green);
}

.guide-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.app-status-section {
  gap: 10px;
}

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

.status-item {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.status-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.status-item strong {
  font-size: 13px;
}

.guide-section {
  padding: 0;
  overflow: hidden;
}

.guide-section details {
  padding: 14px 15px;
}

.guide-section summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.guide-section .guide-list {
  margin-top: 12px;
}

.bottom-nav {
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  left: max(12px, env(safe-area-inset-left));
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(calc(100% - 24px), 456px);
  margin: 0 auto;
  padding: 6px;
  border: 1px solid rgba(20, 33, 31, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.nav-item {
  display: grid;
  min-width: 0;
  min-height: 58px;
  place-items: center;
  gap: 4px;
  border-radius: var(--radius);
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.nav-item svg {
  width: 21px;
  height: 21px;
}

.nav-item.active {
  background: var(--ink);
  color: #fff;
}

.sheet-dialog {
  width: min(100% - 18px, 472px);
  max-width: 472px;
  max-height: calc(100svh - 18px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
}

.sheet-dialog::backdrop {
  background: rgba(20, 33, 31, 0.58);
  backdrop-filter: blur(8px);
}

body.player-open {
  overflow: hidden;
}

body.player-open .bottom-nav {
  display: none;
}

.player-sheet,
.edit-sheet,
.date-sheet,
.complete-sheet {
  display: grid;
  gap: 14px;
  max-height: calc(100svh - 18px);
  overflow-y: auto;
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.dialog-top {
  justify-content: space-between;
  gap: 12px;
}

.player-dialog {
  width: min(100%, 480px);
  max-width: 480px;
  max-height: 100svh;
}

.player-dialog[open] {
  position: fixed;
  inset: 0;
  height: 100svh;
  margin: 0 auto;
}

.player-dialog::backdrop {
  background: #f4f6f1;
  backdrop-filter: none;
}

.player-sheet {
  min-height: 100svh;
  max-height: 100svh;
  gap: 10px;
  padding: max(14px, env(safe-area-inset-top)) 14px max(12px, env(safe-area-inset-bottom));
  border-radius: 0;
  background: linear-gradient(180deg, #ffffff 0%, #f5f7f1 100%);
  box-shadow: none;
}

.player-sheet .dialog-top {
  position: sticky;
  top: 0;
  z-index: 3;
  margin: calc(-1 * max(14px, env(safe-area-inset-top))) -14px 0;
  padding: max(14px, env(safe-area-inset-top)) 14px 10px;
  border-bottom: 1px solid rgba(20, 33, 31, 0.06);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.step-media,
.edit-preview {
  display: grid;
  min-height: 180px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.player-sheet .step-media {
  min-height: clamp(148px, 24svh, 212px);
}

.player-meta {
  display: grid;
  gap: 8px;
}

.player-progress-line {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(20, 33, 31, 0.1);
}

.player-progress-line span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--blue));
  transition: width 180ms ease;
}

.player-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.timer-block {
  display: grid;
  gap: 8px;
  place-items: center;
}

.timer-block[hidden] {
  display: none;
}

.timer-face {
  position: relative;
  display: grid;
  width: 138px;
  height: 138px;
  place-items: center;
}

.timer-face svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}

.timer-face .ring-value {
  stroke: var(--coral);
  stroke-dasharray: 408.4;
  stroke-dashoffset: 408.4;
}

.timer-face strong {
  font-size: 34px;
  font-variant-numeric: tabular-nums;
}

.timer-status {
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.timer-extension {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: min(100%, 240px);
  gap: 8px;
}

.timer-extension[hidden] {
  display: none;
}

.timer-extension button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 900;
}

.timer-reset-button {
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.manual-block {
  display: grid;
  gap: 8px;
  min-height: 138px;
  place-items: center;
  padding: 18px;
  border: 1px solid rgba(20, 33, 31, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(49, 95, 143, 0.08), rgba(35, 122, 91, 0.08)),
    rgba(255, 255, 255, 0.72);
  text-align: center;
}

.manual-block[hidden] {
  display: none;
}

.manual-block span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(20, 33, 31, 0.07);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.manual-edit-button {
  min-height: 44px;
  justify-self: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 850;
}

.manual-block strong {
  font-size: 30px;
  line-height: 1.05;
}

.manual-block p {
  max-width: 280px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.cue-block {
  display: grid;
  gap: 8px;
}

.cue-block p {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 11px;
  border-radius: var(--radius);
  background: rgba(20, 33, 31, 0.04);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

.cue-block strong {
  color: var(--ink);
  font-size: 12px;
}

.coach-block {
  display: grid;
  gap: 7px;
}

.coach-block[hidden] {
  display: none;
}

.coach-item {
  display: grid;
  gap: 4px;
  padding: 10px 11px;
  border: 1px solid rgba(20, 33, 31, 0.08);
  border-radius: var(--radius);
  background: #fbfaf6;
}

.coach-item strong {
  color: var(--ink);
  font-size: 12px;
}

.coach-item span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.38;
}

.link-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
}

.pain-row {
  display: grid;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid rgba(20, 33, 31, 0.08);
  border-bottom: 1px solid rgba(20, 33, 31, 0.08);
}

.pain-row > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.pain-row strong {
  color: var(--ink);
}

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

.link-row a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: #f1f3f5;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.up-next {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(20, 33, 31, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.up-next-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

.up-next-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.up-next-row.active {
  color: var(--ink);
}

.up-next-empty,
.up-next-more {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.up-next-index {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(20, 33, 31, 0.08);
  color: var(--ink);
  font-size: 11px;
}

.player-actions {
  position: sticky;
  bottom: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(54px, auto) minmax(0, 0.72fr) minmax(0, 0.95fr) minmax(0, 1.18fr);
  gap: 8px;
  margin: 0 -14px;
  padding: 10px 14px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(20, 33, 31, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}

.player-actions.manual-mode {
  grid-template-columns: minmax(54px, auto) minmax(0, 0.95fr) minmax(0, 1.22fr);
}

.player-actions .primary-button,
.player-actions .secondary-button {
  min-height: 54px;
  padding: 0 8px;
  font-size: 13px;
  white-space: nowrap;
}

.player-sheet .finish-button {
  min-height: 44px;
  border: 1px solid rgba(200, 140, 24, 0.4);
  background: rgba(255, 248, 228, 0.82);
  color: #6c4705;
}

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

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

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

.date-detail-grid {
  display: grid;
  gap: 10px;
}

.date-day-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f7f8f4;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.date-day-card strong {
  color: var(--ink);
}

.date-session-card {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.complete-sheet {
  place-items: center;
  text-align: center;
}

.complete-mark {
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 44px;
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 16px;
  bottom: calc(100px + env(safe-area-inset-bottom));
  left: 16px;
  z-index: 50;
  width: min(calc(100% - 32px), 448px);
  margin: 0 auto;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.empty-state {
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

/* v11 visual pass: reduce card heaviness, tighten hierarchy, and make the player task-first. */
.app-shell {
  padding-right: 16px;
  padding-left: 16px;
}

.topbar {
  margin-bottom: 10px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 760;
}

h2 {
  font-size: 22px;
  line-height: 1.08;
}

h3 {
  font-size: 16px;
  line-height: 1.18;
}

.start-card,
.today-overview,
.condition-panel,
.today-panel,
.routine-summary,
.step-card,
.stat-tile,
.settings-form,
.plain-section,
.calendar-summary,
.calendar-day,
.date-session-card {
  border-color: rgba(20, 27, 25, 0.07);
  box-shadow: 0 1px 0 rgba(20, 27, 25, 0.04);
}

.today-overview {
  gap: 10px;
  padding: 14px;
  background: var(--surface-strong);
}

.condition-panel {
  padding: 13px;
}

.today-overview-copy h2 {
  font-size: 21px;
  line-height: 1.08;
}

.today-overview-copy p {
  font-size: 13px;
  line-height: 1.38;
}

.today-mini-stats span {
  justify-content: flex-start;
  min-height: 34px;
  padding: 0 12px;
  background: #f7f8f4;
}

.start-card {
  gap: 10px;
  padding: 13px;
  background: var(--surface-strong);
}

.start-card.morning,
.start-card.night {
  background: var(--surface-strong);
}

.start-card.active {
  border-color: rgba(31, 122, 90, 0.28);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
}

.start-card.done {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  opacity: 0.88;
}

.start-card.done .start-top,
.start-card.done .start-actions {
  display: contents;
}

.start-card.done p,
.start-card.done .secondary-button,
.start-card.done .progress-ring {
  display: none;
}

.start-card.done .primary-button {
  min-height: 44px;
  padding: 0 12px;
  background: #f3f5f0;
  color: var(--ink);
}

.progress-ring {
  width: 58px;
  height: 58px;
}

.progress-ring strong {
  font-size: 16px;
}

.pill {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 780;
}

.primary-button,
.secondary-button,
.danger-button,
.finish-button {
  min-height: 48px;
  font-weight: 780;
}

.stats-grid {
  gap: 7px;
}

.stat-tile {
  min-height: 66px;
  padding: 11px;
}

.stat-tile strong {
  font-size: 22px;
}

.today-panel,
.plain-section,
.routine-summary {
  padding: 13px;
}

.routine-summary {
  gap: 10px;
}

.segmented {
  padding: 3px;
  background: #f3f5f0;
}

.segmented button {
  min-height: 44px;
}

.step-card {
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 11px;
  padding: 10px;
}

.step-thumb {
  width: 58px;
  height: 58px;
}

.step-actions {
  margin-top: 8px;
}

.step-actions button {
  min-height: 44px;
  padding: 0 8px;
  font-size: 11px;
}

.calendar-summary {
  padding: 7px;
}

.calendar-summary div {
  min-height: 50px;
  background: #f7f8f4;
}

.calendar-day {
  min-height: 51px;
  background: var(--surface);
  box-shadow: none;
}

.calendar-day.today {
  box-shadow: inset 0 0 0 1.5px var(--blue);
}

.settings-form {
  gap: 12px;
  padding: 14px;
}

.switch-row {
  padding: 10px 12px;
  background: #fbfaf6;
}

.bottom-nav {
  border-color: rgba(20, 27, 25, 0.08);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 26px rgba(20, 27, 25, 0.1);
}

.nav-item {
  min-height: 54px;
  font-weight: 760;
}

.player-dialog::backdrop {
  background: #f5f6f2;
}

.player-sheet {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: max(12px, env(safe-area-inset-top)) 14px calc(86px + env(safe-area-inset-bottom));
  background: #ffffff;
}

.player-sheet > * {
  flex-shrink: 0;
}

.player-sheet .dialog-top {
  margin: calc(-1 * max(12px, env(safe-area-inset-top))) -14px 0;
  padding: max(12px, env(safe-area-inset-top)) 14px 9px;
}

.player-sheet .dialog-top h2 {
  font-size: 24px;
  line-height: 1.02;
}

.player-meta {
  order: 1;
  gap: 7px;
}

.player-progress-line {
  height: 5px;
  border-radius: 0;
  background: #ecefe9;
}

.player-progress-line span {
  background: var(--green);
}

.player-chips {
  gap: 6px;
}

.player-sheet .step-media {
  position: relative;
  order: 2;
  flex-basis: clamp(132px, 22svh, 210px);
  min-height: 132px;
  height: clamp(132px, 22svh, 210px);
  border-color: rgba(20, 27, 25, 0.08);
  background: #fbfaf6;
}

.player-sheet .step-media .default-illustration {
  width: min(100%, 260px);
  height: 100%;
}

.timer-block,
.manual-block {
  order: 4;
  min-height: 98px;
  padding: 12px;
  border: 1px solid rgba(20, 27, 25, 0.08);
  border-radius: var(--radius);
  background: #f8f9f5;
}

.timer-block {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  justify-items: start;
  text-align: left;
}

.timer-face {
  width: 86px;
  height: 86px;
  grid-row: 1 / span 2;
}

.timer-face strong {
  font-size: 25px;
}

.timer-status {
  align-self: center;
  color: var(--ink);
  font-size: 14px;
}

.timer-extension {
  grid-column: 2 / 4;
  width: 100%;
}

.timer-reset-button {
  grid-column: 3;
  grid-row: 1;
  align-self: center;
  min-height: 44px;
  padding: 0 11px;
  background: #ffffff;
}

.manual-block {
  grid-template-columns: minmax(0, 1fr) auto;
  place-items: stretch;
  text-align: left;
}

.manual-block span {
  justify-self: start;
  background: #eef1eb;
}

.manual-block .manual-edit-button {
  justify-self: end;
}

.manual-block strong {
  grid-column: 1 / -1;
  font-size: 26px;
}

.manual-block p {
  grid-column: 1 / -1;
  max-width: none;
  font-size: 13px;
}

.cue-block {
  order: 5;
  gap: 6px;
}

.coach-block {
  order: 5;
}

.coach-item {
  padding: 9px 10px;
  background: #fbfaf6;
}

.cue-block p {
  grid-template-columns: 52px minmax(0, 1fr);
  padding: 9px 0;
  border-bottom: 1px solid rgba(20, 27, 25, 0.08);
  border-radius: 0;
  background: transparent;
  font-size: 13px;
}

.cue-block p:last-child {
  border-bottom: 0;
}

.pain-row {
  order: 5;
  padding: 8px 0;
}

.pain-options button {
  min-height: 44px;
  font-size: 12px;
}

.link-row {
  order: 7;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
}

.link-row a {
  min-height: 44px;
  background: #f5f6f2;
  font-size: 12px;
}

.up-next {
  order: 6;
  padding: 10px 0;
  border-width: 1px 0 0;
  border-radius: 0;
  background: transparent;
}

.up-next-title {
  font-size: 12px;
}

.up-next-row {
  font-size: 12px;
}

.up-next-index {
  width: 21px;
  height: 21px;
}

.player-tools {
  order: 3;
  display: grid;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(20, 27, 25, 0.08);
}

.player-tools summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  font-size: 13px;
  font-weight: 850;
}

.player-tools .link-row,
.player-tools .pain-row,
.player-tools .finish-button {
  margin-top: 9px;
}

.player-sheet .finish-button {
  order: 8;
  min-height: 44px;
  background: #fff9e9;
}

.player-actions {
  order: 9;
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 480px);
  margin: 0 auto;
  grid-template-columns: minmax(46px, auto) minmax(0, 0.72fr) minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 6px;
  padding: 9px 14px max(10px, env(safe-area-inset-bottom));
}

.player-actions.manual-mode {
  grid-template-columns: minmax(46px, auto) minmax(0, 0.9fr) minmax(0, 1.25fr);
}

.player-actions .primary-button,
.player-actions .secondary-button {
  min-height: 52px;
  font-size: 12px;
}

html.theme-dark,
body.theme-dark {
  background: #101412;
}

body.theme-dark {
  color-scheme: dark;
  --paper: #101412;
  --surface: #151a17;
  --surface-strong: #1b211d;
  --ink: #eef5ef;
  --muted: #9eada5;
  --line: #303a34;
  --green: #67d19f;
  --green-soft: rgba(103, 209, 159, 0.14);
  --purple: #b9a8ff;
  --purple-soft: rgba(185, 168, 255, 0.15);
  --gold: #e1b660;
  --coral: #f09078;
  --blue: #8fc8f0;
  --shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
  background: var(--paper);
}

body.theme-dark .brand-mark {
  box-shadow: 0 8px 22px rgba(103, 209, 159, 0.16);
}

body.theme-dark .start-card,
body.theme-dark .today-overview,
body.theme-dark .condition-panel,
body.theme-dark .quick-routine-panel,
body.theme-dark .weekly-report-panel,
body.theme-dark .insight-panel,
body.theme-dark .today-panel,
body.theme-dark .routine-summary,
body.theme-dark .step-card,
body.theme-dark .stat-tile,
body.theme-dark .settings-form,
body.theme-dark .plain-section,
body.theme-dark .calendar-summary,
body.theme-dark .calendar-day,
body.theme-dark .date-session-card {
  border-color: rgba(238, 245, 239, 0.09);
  background: var(--surface-strong);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

body.theme-dark .today-mini-stats span,
body.theme-dark .weekly-report-grid div,
body.theme-dark .weekly-report-note,
body.theme-dark .calendar-summary div,
body.theme-dark .date-day-card,
body.theme-dark .status-item,
body.theme-dark .condition-options button,
body.theme-dark .light-toggle,
body.theme-dark .pain-options button,
body.theme-dark .segmented,
body.theme-dark .switch-row,
body.theme-dark .number-row,
body.theme-dark .step-actions button,
body.theme-dark .step-badges span,
body.theme-dark .timer-reset-button,
body.theme-dark .timer-extension button,
body.theme-dark .quick-routine-card,
body.theme-dark .insight-row,
body.theme-dark .coach-item,
body.theme-dark .manual-edit-button,
body.theme-dark .link-row a {
  border-color: var(--line);
  background: #202821;
  color: var(--ink);
}

body.theme-dark .today-mini-stats span.done,
body.theme-dark .start-card.active,
body.theme-dark .start-card.done .primary-button,
body.theme-dark .quick-routine-card.done {
  background: #233027;
}

body.theme-dark .primary-button,
body.theme-dark .small-button,
body.theme-dark .nav-item.active,
body.theme-dark .segmented button.active,
body.theme-dark .condition-options button.active,
body.theme-dark .light-toggle.active,
body.theme-dark .pain-options button.active {
  background: #e7f1ea;
  color: #101412;
}

body.theme-dark .secondary-button {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

body.theme-dark .pill,
body.theme-dark .manual-block span,
body.theme-dark .up-next-index {
  background: rgba(238, 245, 239, 0.09);
}

body.theme-dark .pill.morning {
  background: rgba(103, 209, 159, 0.16);
  color: var(--green);
}

body.theme-dark .pill.night {
  background: rgba(185, 168, 255, 0.17);
  color: var(--purple);
}

body.theme-dark .pill.both,
body.theme-dark .calendar-day.both {
  background: rgba(225, 182, 96, 0.14);
  color: var(--gold);
}

body.theme-dark .bottom-nav,
body.theme-dark .player-actions,
body.theme-dark .player-sheet .dialog-top {
  border-color: rgba(238, 245, 239, 0.09);
  background: rgba(19, 24, 21, 0.94);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.34);
}

body.theme-dark .player-dialog::backdrop {
  background: #101412;
}

body.theme-dark .player-sheet,
body.theme-dark .edit-sheet,
body.theme-dark .date-sheet,
body.theme-dark .complete-sheet {
  background: var(--surface-strong);
}

body.theme-dark .player-sheet {
  background: linear-gradient(180deg, #1b211d 0%, #101412 100%);
}

body.theme-dark .step-media,
body.theme-dark .edit-preview,
body.theme-dark .player-sheet .step-media,
body.theme-dark .timer-block,
body.theme-dark .manual-block,
body.theme-dark .up-next {
  border-color: rgba(238, 245, 239, 0.09);
  background: #151a17;
}

body.theme-dark .step-thumb,
body.theme-dark .step-media,
body.theme-dark .edit-preview {
  border-color: var(--line);
}

body.theme-dark .step-thumb img,
body.theme-dark .step-media img,
body.theme-dark .edit-preview img {
  background: #f0eee6;
  filter: brightness(0.82) saturate(0.94);
}

body.theme-dark .cue-block p,
body.theme-dark .coach-item,
body.theme-dark .pain-row,
body.theme-dark .up-next,
body.theme-dark .player-tools {
  border-color: rgba(238, 245, 239, 0.09);
}

body.theme-dark .danger-button {
  border-color: rgba(240, 144, 120, 0.34);
  background: rgba(240, 144, 120, 0.1);
  color: #ffb9a8;
}

body.theme-dark .finish-button,
body.theme-dark .player-sheet .finish-button {
  border-color: rgba(225, 182, 96, 0.36);
  background: rgba(225, 182, 96, 0.14);
  color: #f4ce7c;
}

body.theme-dark .toast {
  background: #e7f1ea;
  color: #101412;
}

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