/* Personal Progress Tracker — green minimalist, mobile-first */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var.65850a373e25.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-var.5d2835174326.woff2") format("woff2");
  font-weight: 500 700;
  font-display: swap;
}

:root {
  --green: #3e7a37;
  --green-dark: #2c5527;
  --green-deep: #1e3a1a;
  --green-soft: #e7f0e4;
  --green-tint: #f0f5ee;
  --gold: #b8860b;
  --ink: #22271f;
  --muted: #67705f;
  --line: #dde4d8;
  --bg: #f4f6f2;
  --card: #ffffff;
  --field: #ffffff;
  --bar-bg: rgba(255, 255, 255, 0.92);
  --bar-bg-solid: rgba(255, 255, 255, 0.96);
  --danger: #b3402f;
  --danger-soft: #f9ece9;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(26, 36, 20, 0.05), 0 6px 20px rgba(26, 36, 20, 0.06);
  --shadow-lift: 0 2px 6px rgba(26, 36, 20, 0.07), 0 14px 34px rgba(26, 36, 20, 0.1);
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --tabbar-h: 62px;
  --wheel-1: #2a78d6; --wheel-2: #eb6834; --wheel-3: #1baf7a; --wheel-4: #eda100;
  --wheel-5: #e87ba4; --wheel-6: #008300; --wheel-7: #4a3aa7; --wheel-8: #e34948;
  --wheel-ink: #22271f;
  --hub-fill: #f0f5ee;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --green: #5d9a52;
  --green-dark: #7ab06e;
  --green-deep: #a9c69e;
  --green-soft: #24301f;
  --green-tint: #1e281a;
  --gold: #d1a33c;
  --ink: #e8ebe4;
  --muted: #98a28f;
  --line: #2e352a;
  --bg: #131711;
  --card: #1b211a;
  --field: #161b15;
  --bar-bg: rgba(23, 28, 22, 0.92);
  --bar-bg-solid: rgba(23, 28, 22, 0.97);
  --danger: #d96a58;
  --danger-soft: #33201c;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 6px 20px rgba(0, 0, 0, 0.35);
  --shadow-lift: 0 2px 6px rgba(0, 0, 0, 0.35), 0 14px 34px rgba(0, 0, 0, 0.45);
  --wheel-1: #3987e5; --wheel-2: #d95926; --wheel-3: #199e70; --wheel-4: #c98500;
  --wheel-5: #d55181; --wheel-6: #2e8b2e; --wheel-7: #9085e9; --wheel-8: #e66767;
  --wheel-ink: #e8ebe4;
  --hub-fill: #1e281a;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--green-dark); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bar-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0.55rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 54px;
}
.brand {
  font-family: var(--font-display);
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--green-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.brand .leaf {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.desktop-nav { display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.desktop-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.88rem;
  padding: 0.32rem 0.5rem;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.desktop-nav a:hover { color: var(--green-dark); background: var(--green-tint); }
.desktop-nav a.active { color: var(--green-dark); background: var(--green-soft); font-weight: 600; }
.spacer { flex: 1; }
.topbar .user { color: var(--muted); font-size: 0.88rem; white-space: nowrap; }
.topbar form { display: inline; margin: 0; }

/* ---------- layout ---------- */
main {
  max-width: 1000px;
  margin: 1.25rem auto 3rem;
  padding: 0 1rem;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--green-dark); font-weight: normal; line-height: 1.25; }
h1 { font-size: 1.65rem; margin: 0.4rem 0 0.35rem; }
h2 { font-size: 1.25rem; margin: 1.6rem 0 0.7rem; }
h3 { font-size: 1.08rem; margin: 0 0 0.5rem; }
h3 a { text-decoration: none; }
h3 a:hover { text-decoration: underline; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}
.card.accent { border-color: var(--green); box-shadow: var(--shadow-lift); }
.card.hero {
  background: linear-gradient(150deg, var(--card) 0%, var(--green-tint) 100%);
  border-color: var(--green);
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 720px) { .grid2 { grid-template-columns: 1fr; } }

.quote { font-family: var(--font-display); font-style: italic; color: var(--muted); margin: 0.3rem 0 0.6rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
.tagline { color: var(--muted); font-style: italic; font-family: var(--font-display); }

/* ---------- stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; margin: 0.9rem 0 1rem; }
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.75rem 0.9rem;
  text-align: center;
}
.stat .num {
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--green-dark);
  line-height: 1.2;
  display: block;
}
.stat .lbl { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- badges & progress ---------- */
.badge {
  display: inline-block;
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid rgba(62, 122, 55, 0.45);
  border-radius: 999px;
  padding: 0.18rem 0.75rem;
  font-size: 0.85rem;
  margin: 0 0.3rem 0.4rem 0;
}
.progress-track {
  background: var(--green-soft);
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
  margin: 0.4rem 0;
}
.progress-fill {
  background: linear-gradient(90deg, var(--green), var(--green-dark));
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* ---------- weekly grid ---------- */
.week-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.week-nav strong { font-family: var(--font-display); font-weight: normal; color: var(--green-dark); text-align: center; }

.weekgrid { display: grid; gap: 0.45rem; }
.wg-head, .wg-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(7, minmax(2.4rem, 2.9rem));
  gap: 0.3rem;
  align-items: center;
}
.wg-day {
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.25;
  padding: 0.15rem 0;
  border-radius: var(--radius-sm);
}
.wg-day b { display: block; font-weight: 600; color: var(--ink); }
.wg-day.today { background: var(--green-soft); color: var(--green-dark); }
.wg-day.today b { color: var(--green-dark); }
.wg-name {
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  padding-right: 0.3rem;
}
.wg-cell { display: flex; justify-content: center; }
.wg-cell form { margin: 0; width: 100%; display: flex; justify-content: center; }
button.check {
  width: 100%;
  max-width: 2.9rem;
  height: 2.5rem;
  padding: 0;
  background: var(--field);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  color: transparent;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
button.check:hover { border-color: var(--green); background: var(--green-tint); }
button.check:active { transform: scale(0.94); }
button.check.on {
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  border-color: var(--green-dark);
  color: #fff;
}
button.check.today-cell { border-color: var(--green); }

@media (max-width: 620px) {
  .wg-head, .wg-row { grid-template-columns: repeat(7, 1fr); }
  .wg-head .wg-name { display: none; }
  .wg-row { row-gap: 0.15rem; }
  .wg-name { grid-column: 1 / -1; padding: 0.35rem 0 0.1rem; font-weight: 500; }
  button.check { max-width: none; height: 2.75rem; }
}

/* ---------- forms ---------- */
form p { margin: 0.7rem 0; }
label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--green-dark); margin-bottom: 0.2rem; }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=number], textarea, select {
  width: 100%;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  background: var(--field);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(62, 122, 55, 0.15);
}
textarea { resize: vertical; }
.helptext { font-size: 0.82rem; color: var(--muted); display: block; margin-top: 0.15rem; }

button, .btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1.1rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  white-space: nowrap;
  transition: background 0.15s, transform 0.05s;
}
button:hover, .btn:hover { background: var(--green-dark); }
button:active, .btn:active { transform: scale(0.98); }
.btn.ghost, button.ghost {
  background: none;
  color: var(--green-dark);
  border: 1px solid var(--green);
}
.btn.ghost:hover, button.ghost:hover { background: var(--green-tint); color: var(--green-dark); }
.btn.danger { background: var(--danger); }
.btn.danger:hover { background: #8f3325; }
.btn.small, button.small { padding: 0.3rem 0.7rem; font-size: 0.85rem; }

/* ---------- messages ---------- */
ul.messages { list-style: none; padding: 0; margin: 0 0 1rem; }
ul.messages li {
  background: var(--green-soft);
  border: 1px solid rgba(62, 122, 55, 0.35);
  border-left: 4px solid var(--green);
  color: var(--green-deep);
  padding: 0.6rem 0.9rem;
  margin-bottom: 0.5rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
}
.errorlist { color: var(--danger); list-style: none; padding: 0; margin: 0.2rem 0; font-size: 0.88rem; }

.inline-form { display: flex; gap: 0.5rem; align-items: stretch; }
.inline-form input { flex: 1; min-width: 0; }
.inline-form button { white-space: nowrap; }

/* ---------- life wheel ---------- */
.wheel-row { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.7rem; }
.wheel-row label { flex: 0 0 220px; margin: 0; }
.wheel-row input[type=range] { flex: 1; accent-color: var(--green); height: 2rem; margin: 0; }
.wheel-row output {
  width: 2.2rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--green-dark);
  background: var(--green-soft);
  border-radius: var(--radius-sm);
  padding: 0.15rem 0;
}
@media (max-width: 620px) {
  .wheel-row { flex-wrap: wrap; gap: 0.4rem 0.8rem; margin-bottom: 1rem; }
  .wheel-row label { flex: 1 1 100%; }
  .wheel-row input[type=range] { flex: 1; }
}
.score-note { font-size: 0.85rem; color: var(--muted); }

/* ---------- misc ---------- */
.auth-card { max-width: 420px; margin: 2.5rem auto; }
.goal-head { display: flex; justify-content: space-between; align-items: baseline; gap: 0.6rem 1rem; flex-wrap: wrap; }
.goal-head h1, .goal-head h3 { margin-bottom: 0.2rem; }
.actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }
.activity-list { list-style: none; padding: 0; margin: 0 0 0.8rem; }
.activity-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.1rem;
  border-bottom: 1px solid var(--line);
}
.activity-list li:last-child { border-bottom: none; }
.activity-list form { margin: 0; }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }

@media (max-width: 860px) {
  .desktop-nav, .topbar .user { display: none; }
  main { margin-bottom: 1rem; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 1.5rem); }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: var(--bar-bg-solid);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  }
  .tabbar > a, .tabbar summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    height: var(--tabbar-h);
    text-decoration: none;
    color: var(--muted);
    font-size: 0.68rem;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .tabbar svg { width: 23px; height: 23px; stroke: currentColor; }
  .tabbar > a.active { color: var(--green-dark); font-weight: 600; }
  .tabbar summary { list-style: none; }
  .tabbar summary::-webkit-details-marker { display: none; }
  .tabbar details { position: relative; }
  .tabbar details[open] summary { color: var(--green-dark); }
  .more-menu {
    position: absolute;
    bottom: calc(100% + 6px);
    right: 8px;
    min-width: 190px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
  }
  .more-menu a, .more-menu button {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--ink);
    font-size: 0.95rem;
    padding: 0.6rem 0.8rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
  }
  .more-menu a:hover, .more-menu a.active { background: var(--green-tint); color: var(--green-dark); }
  .more-menu button { color: var(--danger); }
  .more-menu button:hover { background: var(--danger-soft); }
  .more-menu form { margin: 0; border-top: 1px solid var(--line); padding-top: 0.25rem; margin-top: 0.25rem; }
}

@media (max-width: 620px) {
  main { padding-left: 0.8rem; padding-right: 0.8rem; }
  .card { padding: 0.95rem 1rem; }
  h1 { font-size: 1.45rem; }
  .goal-head .btn { align-self: center; }
}

/* ---------- public landing page ---------- */
.lp-hero { text-align: center; padding: 2.5rem 1rem 1.5rem; }
.lp-hero h1 {
  font-family: var(--font-display);
  color: var(--green-deep);
  font-size: clamp(1.9rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.9rem;
}
.lp-sub { max-width: 620px; margin: 0 auto 1.4rem; color: var(--muted); font-size: 1.05rem; }
.lp-cta { display: flex; gap: 0.7rem; justify-content: center; flex-wrap: wrap; }
.lp-cta .btn { font-size: 1rem; padding: 0.65rem 1.3rem; }
.lp-tagline {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.lp-demo { max-width: 560px; margin: 1.2rem auto 0; }
.lp-demo-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem; }
.lp-chip {
  background: var(--green-soft);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}
.lp-grid { display: grid; gap: 0.35rem; }
.lp-row { display: grid; grid-template-columns: 1fr repeat(7, 2rem); gap: 0.35rem; align-items: center; }
.lp-row.lp-head span { text-align: center; font-size: 0.72rem; color: var(--muted); font-weight: 700; }
.lp-act { font-size: 0.9rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-row span:not(.lp-act) {
  height: 2rem;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--field);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}
.lp-row.lp-head span { border: none; background: none; height: auto; }
.lp-row span.on { background: var(--green); border-color: var(--green); color: #fff; }
.lp-row span.today { border: 2px dashed var(--green); }
.lp-caption { text-align: center; color: var(--muted); font-size: 0.85rem; margin: 0.9rem 0 0; }
.lp-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1000px;
  margin: 2rem auto 0;
}
@media (max-width: 860px) { .lp-features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .lp-features { grid-template-columns: 1fr; } }
.lp-features h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.lp-features p { margin: 0; color: var(--muted); font-size: 0.92rem; }
.lp-steps { max-width: 620px; margin: 2rem auto 0; }
.lp-steps h2 { font-family: var(--font-display); color: var(--green-deep); margin-top: 0; }
.lp-steps ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.6rem; }
.lp-final { text-align: center; padding: 2.5rem 1rem 3rem; }
.lp-final h2 {
  font-family: var(--font-display);
  color: var(--green-deep);
  font-size: clamp(1.3rem, 3.5vw, 1.8rem);
  max-width: 560px;
  margin: 0 auto 1.2rem;
}

/* ---------- interactive life wheel ---------- */
.wheel-card { max-width: 640px; margin: 0 auto; }
.wheel-stage { max-width: 480px; margin: 0 auto; }
#life-wheel { width: 100%; height: auto; touch-action: none; cursor: pointer; display: block; }
.wheel-legend { list-style: none; padding: 0; margin: 0.8rem 0 1rem; display: grid; gap: 0.3rem; }
@media (min-width: 620px) { .wheel-legend { grid-template-columns: 1fr 1fr; } }
.wheel-legend li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.92rem; }
.wheel-legend .dot { width: 12px; height: 12px; border-radius: 4px; flex: none; }
.wheel-legend .wl-label { flex: 1; }
.wheel-legend .wl-val { min-width: 3.2em; text-align: center; font-weight: 600; }
.wl-step {
  width: 26px; height: 26px; padding: 0; line-height: 1; font-size: 1rem;
  background: var(--green-tint); color: var(--green-dark);
  border: 1px solid var(--line); border-radius: 7px;
}
.wl-step:hover { background: var(--green-soft); }

/* ---------- rating pills (5-level reflection, 3-level goal check-in) ---------- */
.pill-field { margin: 0.9rem 0; }
.pill-field > .pf-label { font-weight: 600; display: block; margin-bottom: 0.35rem; }
.pill-group { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.pill-group input[type="radio"] { position: absolute; opacity: 0; width: 0; }
.pill-group label {
  padding: 0.42rem 0.8rem; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--field); color: var(--muted); font-size: 0.88rem; font-weight: 600;
  cursor: pointer; user-select: none;
}
.pill-group input:focus-visible + label { outline: 2px solid var(--green); outline-offset: 2px; }
.pill-group input:checked + label { color: #fff; border-color: transparent; }
.pill-group input:checked + label.pv-1 { background: #8a6d1c; }
.pill-group input:checked + label.pv-2 { background: #6f8a3a; }
.pill-group input:checked + label.pv-3 { background: #55904a; }
.pill-group input:checked + label.pv-4 { background: #3e7a37; }
.pill-group input:checked + label.pv-5 { background: #1e3a1a; }
.pill-group input:checked + label.pv-off { background: #a35a00; }
.pill-group input:checked + label.pv-mid { background: #55904a; }
.pill-group input:checked + label.pv-win { background: #1e3a1a; }

/* goal check-in dots and timeline */
.ci-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 0.35rem; }
.ci-1 { background: #a35a00; }
.ci-3 { background: #55904a; }
.ci-5 { background: #1e3a1a; }
.ci-list { list-style: none; padding: 0; margin: 0; }
.ci-list li { padding: 0.4rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.ci-list li:last-child { border-bottom: none; }

/* ---------- staff dashboard ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.8rem; margin-bottom: 1.2rem; }
.stat-tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.8rem 1rem; text-align: center; box-shadow: var(--shadow); }
.stat-tile .n { font-size: 1.6rem; font-weight: 700; color: var(--green-dark); font-family: var(--font-display); }
.stat-tile .l { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mgmt-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.mgmt-table th, .mgmt-table td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
.mgmt-table th { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
.mgmt-table .inactive { opacity: 0.5; }
.table-scroll { overflow-x: auto; }

/* ---------- premium pass: motion, toggle, errors, toasts, empty states ---------- */
body { font-feature-settings: "cv05", "ss01"; }
h1 { letter-spacing: -0.01em; }
.card { transition: box-shadow 0.2s ease, border-color 0.2s ease; }
button, .btn { transition: background 0.15s, transform 0.06s, box-shadow 0.15s; }
button:active, .btn:active { transform: scale(0.97); }
.pill-group label { transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.06s; }
.pill-group label:active { transform: scale(0.95); }
button.check { transition: background 0.15s, border-color 0.15s, transform 0.08s; }
button.check:active { transform: scale(0.88); }

.theme-toggle {
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 34px; height: 34px;
  padding: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
  flex: none;
}
.theme-toggle:hover { background: var(--green-tint); color: var(--green-dark); }
:root[data-theme="dark"] .tt-light { display: none; }
:root:not([data-theme="dark"]) .tt-dark { display: none; }

.errorlist {
  list-style: none;
  margin: 0.25rem 0 0.4rem;
  padding: 0.45rem 0.7rem;
  background: var(--danger-soft);
  color: var(--danger);
  border-left: 3px solid var(--danger);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.88rem;
}
.errorlist li { margin: 0; }

.messages {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
.messages li {
  background: var(--green-soft);
  color: var(--green-dark);
  border: 1px solid rgba(62, 122, 55, 0.4);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
  margin-bottom: 0.4rem;
  animation: toast-in 0.25s ease;
}
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.empty-state {
  text-align: center;
  padding: 2.2rem 1.2rem;
}
.empty-state .es-icon { font-size: 2rem; display: block; margin-bottom: 0.5rem; }
.empty-state h3 { color: var(--green-dark); margin-bottom: 0.35rem; }
.empty-state p { color: var(--muted); max-width: 26rem; margin: 0 auto 1rem; font-size: 0.94rem; }
