:root {
  color-scheme: light;
  --bg: #a8c957;
  --page: #f3faea;
  --page-soft: #fbfdf7;
  --ink: #111519;
  --muted: #758064;
  --line: rgba(17, 21, 25, 0.09);
  --card: rgba(255, 255, 255, 0.78);
  --accent: #9cc43f;
  --accent-deep: #83a725;
  --control: #111519;
  --control-contrast: #f7ffe9;
  --rose: #dfeec4;
  --rose-strong: #9cc43f;
  --green: #83a725;
  --blue: #6ea8e5;
  --gold: #f2c94c;
  --violet: #9a7ff2;
  --shadow: 0 18px 48px rgba(35, 48, 18, 0.13), 0 2px 10px rgba(17, 21, 25, 0.04);
  --shadow-soft: 0 10px 28px rgba(35, 48, 18, 0.1);
  --radius: 26px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(236, 255, 198, 0.82), transparent 27%),
    radial-gradient(circle at 5% 72%, rgba(255, 255, 255, 0.34), transparent 26%),
    linear-gradient(135deg, #9fbd4c 0%, #b9d86b 52%, #e8f6c9 100%);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

body:has(.app-shell[data-theme="velvet"]) {
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 252, 239, 0.42), transparent 27%),
    radial-gradient(circle at 86% 18%, rgba(109, 8, 17, 0.52), transparent 28%),
    linear-gradient(135deg, #6d0811 0%, #270708 58%, #fffcef 100%);
}

body:has(.app-shell[data-theme="ginger"]) {
  background:
    radial-gradient(circle at 20% 8%, rgba(245, 217, 175, 0.72), transparent 27%),
    radial-gradient(circle at 86% 18%, rgba(234, 184, 75, 0.52), transparent 28%),
    linear-gradient(135deg, #eab84b 0%, #f5d9af 54%, #fff6df 100%);
}

body:has(.app-shell[data-theme="pomelo"]) {
  background:
    radial-gradient(circle at 20% 8%, rgba(255, 253, 245, 0.58), transparent 27%),
    radial-gradient(circle at 86% 18%, rgba(255, 236, 153, 0.68), transparent 28%),
    linear-gradient(135deg, #b21d12 0%, #ffec99 55%, #fffdf5 100%);
}

body:has(.app-shell[data-theme="taro"]) {
  background:
    radial-gradient(circle at 20% 8%, rgba(252, 236, 177, 0.62), transparent 27%),
    radial-gradient(circle at 86% 18%, rgba(31, 62, 102, 0.5), transparent 28%),
    linear-gradient(135deg, #6969bc 0%, #fcecb1 52%, #1f3e66 100%);
}

button,
input,
select,
textarea {
  font: inherit;
  max-width: 100%;
}

button {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  cursor: pointer;
  background-color: transparent;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(100%, 480px);
  min-height: 100vh;
  margin: 0 auto;
  background:
    radial-gradient(circle at 80% 5%, rgba(255, 255, 255, 0.9) 0 78px, transparent 79px),
    radial-gradient(circle at 9% 31%, rgba(168, 201, 87, 0.24) 0 118px, transparent 120px),
    radial-gradient(circle at 74% 74%, rgba(255, 255, 255, 0.48) 0 96px, transparent 98px),
    linear-gradient(180deg, var(--page) 0%, var(--page-soft) 52%, #eef7df 100%);
  position: relative;
  overflow-x: hidden;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.34), 0 28px 80px rgba(24, 38, 10, 0.22);
}

.app-shell[data-theme="avocado"],
.app-shell[data-theme="leaf"],
.app-shell[data-theme="warm"] {
  --bg: #a8c957;
  --page: #f3faea;
  --page-soft: #fbfdf7;
  --rose: #dfeec4;
  --rose-strong: #9cc43f;
  --accent: #9cc43f;
  --accent-deep: #83a725;
  --control: #111519;
  --control-contrast: #f7ffe9;
  --muted: #758064;
  --shadow: 0 18px 48px rgba(35, 48, 18, 0.13), 0 2px 10px rgba(17, 21, 25, 0.04);
}

.app-shell[data-theme="velvet"] {
  --bg: #6d0811;
  --page: #fffcef;
  --page-soft: #fffaf0;
  --card: rgba(255, 252, 239, 0.82);
  --accent: #6d0811;
  --accent-deep: #270708;
  --control: #270708;
  --control-contrast: #fffcef;
  --rose: #f4e8d0;
  --rose-strong: #6d0811;
  --green: #270708;
  --blue: #8d4548;
  --gold: #fffcef;
  --violet: #6d0811;
  --muted: #745f52;
  --line: rgba(17, 21, 25, 0.09);
  --shadow: 0 18px 48px rgba(39, 7, 8, 0.16), 0 2px 10px rgba(17, 21, 25, 0.04);
  background:
    radial-gradient(circle at 80% 5%, rgba(255, 252, 239, 0.92) 0 78px, transparent 79px),
    radial-gradient(circle at 12% 31%, rgba(109, 8, 17, 0.12) 0 118px, transparent 120px),
    linear-gradient(180deg, #fffcef 0%, #fffaf0 54%, #f7eadb 100%);
}

.app-shell[data-theme="ginger"] {
  --bg: #eab84b;
  --page: #fff6df;
  --page-soft: #fffaf0;
  --card: rgba(255, 250, 240, 0.82);
  --accent: #eab84b;
  --accent-deep: #451e02;
  --control: #451e02;
  --control-contrast: #f5d9af;
  --rose: #f5d9af;
  --rose-strong: #eab84b;
  --green: #451e02;
  --blue: #b67831;
  --gold: #eab84b;
  --violet: #451e02;
  --muted: #7b684d;
  --line: rgba(69, 30, 2, 0.11);
  --shadow: 0 18px 48px rgba(69, 30, 2, 0.13), 0 2px 10px rgba(17, 21, 25, 0.04);
  background:
    radial-gradient(circle at 80% 5%, rgba(255, 255, 255, 0.82) 0 78px, transparent 79px),
    radial-gradient(circle at 12% 31%, rgba(234, 184, 75, 0.18) 0 118px, transparent 120px),
    linear-gradient(180deg, #fff6df 0%, #fffaf0 54%, #f5d9af 100%);
}

.app-shell[data-theme="pomelo"] {
  --bg: #b21d12;
  --page: #fffdf5;
  --page-soft: #fff9df;
  --card: rgba(255, 253, 245, 0.84);
  --accent: #b21d12;
  --accent-deep: #8d160e;
  --control: #b21d12;
  --control-contrast: #fffdf5;
  --rose: #ffec99;
  --rose-strong: #b21d12;
  --green: #ffec99;
  --blue: #d86145;
  --gold: #ffec99;
  --violet: #b21d12;
  --muted: #77694f;
  --line: rgba(178, 29, 18, 0.1);
  --shadow: 0 18px 48px rgba(178, 29, 18, 0.13), 0 2px 10px rgba(17, 21, 25, 0.04);
  background:
    radial-gradient(circle at 80% 5%, rgba(255, 255, 255, 0.86) 0 78px, transparent 79px),
    radial-gradient(circle at 12% 31%, rgba(255, 236, 153, 0.26) 0 118px, transparent 120px),
    linear-gradient(180deg, #fffdf5 0%, #fff9df 54%, #ffec99 100%);
}

.app-shell[data-theme="taro"],
.app-shell[data-theme="sky"] {
  --bg: #6969bc;
  --page: #fff8d9;
  --page-soft: #fcecb1;
  --card: rgba(255, 248, 217, 0.82);
  --accent: #6969bc;
  --accent-deep: #1f3e66;
  --control: #1f3e66;
  --control-contrast: #fcecb1;
  --rose: #fcecb1;
  --rose-strong: #6969bc;
  --green: #1f3e66;
  --blue: #6969bc;
  --gold: #fcecb1;
  --violet: #6969bc;
  --muted: #314b68;
  --line: rgba(31, 62, 102, 0.11);
  --shadow: 0 18px 48px rgba(31, 62, 102, 0.16), 0 2px 10px rgba(17, 21, 25, 0.04);
  background:
    radial-gradient(circle at 80% 5%, rgba(252, 236, 177, 0.88) 0 78px, transparent 79px),
    radial-gradient(circle at 12% 31%, rgba(105, 105, 188, 0.16) 0 118px, transparent 120px),
    linear-gradient(180deg, #fff8d9 0%, #fcecb1 54%, #eef1f7 100%);
}

.screen {
  min-height: 100vh;
  padding: calc(18px + env(safe-area-inset-top)) 18px 108px;
}

.topbar,
.calendar-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.brand {
  margin: 0;
  font-size: 34px;
  line-height: 1.04;
  letter-spacing: 0;
  font-weight: 880;
}

.subtle {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.date-pill {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted);
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.stack {
  display: grid;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(1.28);
  -webkit-backdrop-filter: blur(20px) saturate(1.28);
}

.section-card {
  padding: 18px;
}

.cycle-edit-card {
  display: grid;
  gap: 16px;
}

.cycle-edit-card .danger {
  margin-top: 4px;
}

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

.card-title h2,
.card-title h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
  font-weight: 820;
}

.tarot-card {
  display: grid;
  gap: 12px;
  background:
    radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 38%),
    rgba(255, 255, 255, 0.72);
}

.tarot-name {
  display: inline-grid;
  place-items: center;
  min-height: 104px;
  border-radius: 24px;
  background: var(--control);
  background:
    radial-gradient(circle at 72% 28%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 28%),
    linear-gradient(135deg, var(--control), color-mix(in srgb, var(--control) 72%, var(--accent)));
  color: var(--control-contrast);
  font-size: 27px;
  font-weight: 850;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.primary,
.secondary,
.ghost,
.danger {
  min-height: 42px;
  border-radius: 999px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 760;
}

.primary {
  background: var(--control);
  background: linear-gradient(180deg, color-mix(in srgb, var(--control) 84%, white), var(--control));
  color: var(--control-contrast);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--control) 24%, transparent);
}

.secondary {
  background: var(--accent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 76%, white), var(--accent));
  color: #121711;
  box-shadow: 0 10px 22px color-mix(in srgb, var(--accent) 28%, transparent);
}

.ghost {
  background: rgba(255, 255, 255, 0.68);
  color: var(--ink);
  border: 1px solid var(--line);
}

.danger {
  background: rgba(156, 196, 63, 0.14);
  background: color-mix(in srgb, var(--accent) 14%, white);
  color: var(--control);
}

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

.record-card {
  min-height: 132px;
  padding: 16px;
  text-align: left;
  color: var(--ink);
  display: grid;
  align-content: space-between;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.68);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.record-card:active {
  transform: scale(0.985);
}

.record-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 20px rgba(0, 0, 0, 0.08);
}

.record-icon::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
}

.record-card h3 {
  margin: 12px 0 4px;
  font-size: 17px;
  font-weight: 820;
  color: var(--ink);
}

.summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  min-height: 40px;
}

.health-row,
.actions-row,
.cleanup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cleanup-actions {
  justify-content: flex-end;
  margin-top: 18px;
}

.calendar-title {
  font-size: 28px;
  font-weight: 880;
}

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

.week {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.day {
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  padding: 6px 4px;
  display: grid;
  align-content: start;
  gap: 4px;
  color: var(--ink);
}

.day.is-other {
  opacity: 0.36;
}

.day.is-today {
  outline: 2px solid var(--control);
  outline-offset: 1px;
  background: var(--control);
  color: var(--control-contrast);
}

.day.is-period {
  background:
    radial-gradient(circle at 82% 16%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 28%),
    color-mix(in srgb, var(--accent) 8%, var(--page-soft));
}

.day.is-predicted {
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8) 6px, color-mix(in srgb, var(--accent) 18%, white) 6px, color-mix(in srgb, var(--accent) 18%, white) 12px);
}

.day.is-filtered {
  opacity: 0.26;
}

.day-number {
  font-size: 13px;
  font-weight: 800;
}

.dots {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
}

.detail-list,
.module-list,
.todo-list {
  display: grid;
  gap: 10px;
}

.detail-item,
.todo-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 20px;
}

.detail-item .subtle {
  display: block;
  white-space: normal;
}

.detail-item strong {
  display: block;
  margin-bottom: 4px;
}

.cycle-detail-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-content: start;
  align-items: start;
}

.cycle-detail-copy {
  min-width: 0;
}

.cycle-detail-actions {
  justify-content: flex-start;
  align-items: center;
  margin-top: 10px;
}

.cycle-detail-actions .secondary,
.cycle-detail-actions .ghost,
.cycle-detail-actions .danger {
  flex: 0 0 auto;
  min-width: 88px;
}

.cycle-detail-actions [data-action="open-cycle"],
.cycle-detail-actions [data-action="delete-cycle"] {
  min-width: 132px;
}

.module-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.module-item > div:first-child {
  min-width: 0;
}

.module-item .actions-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.module-item .ghost {
  min-width: 64px;
  min-height: 42px;
  padding: 0 12px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.module-item .subtle {
  line-height: 1.35;
}

.todo-list {
  margin-top: 16px;
}

.todo-list-inline {
  margin-top: 4px;
}

.todo-item {
  display: grid;
  grid-template-columns: auto 1fr;
  text-align: left;
  width: 100%;
  color: var(--ink);
}

.todo-item:has(.actions-row) {
  grid-template-columns: auto 1fr auto;
}

.todo-hit,
.todo-main {
  background: transparent;
  color: inherit;
  text-align: left;
}

.todo-hit {
  padding: 0;
}

.todo-main {
  display: grid;
  gap: 2px;
  padding: 0;
}

.todo-item.is-done {
  opacity: 1;
}

.todo-item.is-done strong,
.todo-item.is-done .subtle {
  opacity: 0.52;
  text-decoration: line-through;
}

.todo-check {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid var(--control);
  background: transparent;
  color: var(--control);
  display: grid;
  place-items: center;
  font-weight: 850;
  font-size: 14px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 10px;
  width: min(calc(100% - 24px), 456px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: 0 18px 46px rgba(27, 39, 13, 0.2);
  z-index: 20;
}

.nav-btn {
  min-height: 54px;
  border-radius: 22px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  gap: 2px;
  font-size: 12px;
}

.nav-btn.is-active {
  background: var(--control);
  color: var(--control-contrast);
  box-shadow: 0 10px 22px color-mix(in srgb, var(--control) 25%, transparent);
}

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--control) 34%, transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px 12px;
  z-index: 40;
}

.sheet {
  width: min(100%, 456px);
  min-width: 0;
  max-height: min(86vh, 760px);
  overflow: auto;
  background: rgba(253, 255, 247, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 30px 30px 22px 22px;
  padding: 18px;
  box-shadow: 0 24px 80px color-mix(in srgb, var(--control) 26%, transparent);
  backdrop-filter: blur(26px) saturate(1.35);
  -webkit-backdrop-filter: blur(26px) saturate(1.35);
}

.sheet h2 {
  margin: 0 0 4px;
}

.form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
  min-width: 0;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.field label {
  font-weight: 750;
}

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

.link-btn {
  min-height: 32px;
  border-radius: 999px;
  padding: 0 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 750;
}

.input,
.textarea,
.select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: color-mix(in srgb, var(--accent) 72%, transparent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}

.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  width: 100%;
}

.password-wrap .input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  width: 42px;
  height: 32px;
  transform: translateY(-50%);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  padding: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.eye-mark {
  position: relative;
  width: 22px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

.eye-mark::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 4px;
  height: 10px;
  border-bottom: 3px solid currentColor;
  border-radius: 0 0 999px 999px;
}

.eye-mark::after {
  content: "";
  position: absolute;
  left: 8px;
  bottom: 0;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
}

.eye-mark span,
.eye-mark span::before,
.eye-mark span::after {
  content: "";
  position: absolute;
  bottom: 11px;
  width: 2px;
  height: 5px;
  border-radius: 99px;
  background: currentColor;
}

.eye-mark span {
  left: 10px;
  display: block;
}

.eye-mark span::before {
  content: "";
  left: -7px;
  bottom: -2px;
  transform: rotate(-36deg);
}

.eye-mark span::after {
  content: "";
  left: 7px;
  bottom: -2px;
  transform: rotate(36deg);
}

.password-toggle.is-visible .eye-mark::before {
  border-top: 3px solid currentColor;
  border-bottom: 0;
  top: 2px;
  bottom: auto;
  border-radius: 999px 999px 0 0;
}

.password-toggle.is-visible .eye-mark::after {
  bottom: 5px;
}

.password-toggle.is-visible .eye-mark span,
.password-toggle.is-visible .eye-mark span::before,
.password-toggle.is-visible .eye-mark span::after {
  display: none;
}

.password-tools {
  display: flex;
  justify-content: flex-end;
  margin-top: -6px;
}

.forgot-btn {
  padding: 0 4px;
  color: color-mix(in srgb, var(--control) 72%, var(--muted));
}

.native-picker {
  text-align: left;
  line-height: 1.2;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding-right: 10px;
  -webkit-appearance: none;
  appearance: none;
}

.native-picker::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
  min-width: 0;
  width: 100%;
}

.native-picker::-webkit-calendar-picker-indicator {
  margin-right: 0;
  padding: 2px;
  flex: 0 0 auto;
}

.textarea {
  min-height: 88px;
  resize: vertical;
}

.chips,
.option-delete-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.chip {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid var(--line);
}

.chip.is-selected {
  background: var(--control);
  color: var(--control-contrast);
}

@supports not (background: color-mix(in srgb, white, black)) {
  .tarot-name,
  .primary,
  .chip.is-selected,
  .nav-btn.is-active {
    background: var(--control);
    color: var(--control-contrast);
  }

  .secondary {
    background: var(--accent);
    color: #121711;
  }

  .danger {
    background: rgba(156, 196, 63, 0.14);
    color: var(--control);
  }

  .sheet-backdrop {
    background: rgba(17, 21, 25, 0.34);
  }
}

.option-editor {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.option-editor[hidden],
.file-input {
  display: none;
}

.option-editor-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
}

.module-field {
  box-shadow: none;
}

.timer-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stats-grid div {
  min-height: 76px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 80% 12%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 34%),
    rgba(255, 255, 255, 0.68);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
}

.stats-grid strong {
  font-size: 24px;
}

.stats-grid span {
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 360px) {
  .screen {
    padding-left: 12px;
    padding-right: 12px;
  }

  .brand {
    font-size: 29px;
  }

  .grid-2 {
    gap: 8px;
  }
}

@media (max-width: 390px) {
  .module-item {
    gap: 8px;
  }

  .module-item .actions-row {
    gap: 6px;
  }

  .module-item .ghost {
    min-width: 58px;
    padding: 0 10px;
    font-size: 15px;
  }
}
