/* ============================================================
   TEZ Daily — Styles (v5 Final Spec)
   Plain CSS, no external dependencies.
   ============================================================ */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #08090b;
  color: #f5f5f7;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
               "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
  overscroll-behavior: none;
}

/* ============================================================
   APP ROOT & TOKENS
   ============================================================ */
.tez {
  --bg: #08090b;
  --surface: #111215;
  --surface-2: #16171b;
  --hair: rgba(255, 255, 255, 0.07);
  --text: #f5f5f7;
  --text-2: rgba(235, 235, 245, 0.62);
  --text-3: rgba(235, 235, 245, 0.36);
  --meal: #34d399;
  --cur: #ffb020;

  position: fixed;
  inset: 0;
  max-width: 480px;
  margin: 0 auto;
  background:
    radial-gradient(520px 340px at 50% -60px, color-mix(in oklab, var(--cur) 26%, transparent), transparent 70%),
    var(--bg);
  color: var(--text);
  font-variant-numeric: tabular-nums;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.screen {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 0 calc(104px + env(safe-area-inset-bottom, 0px));
  scrollbar-width: none;
  display: none;
}
.screen::-webkit-scrollbar {
  display: none;
}
.screen.active {
  display: block;
}

/* ---------- Header ---------- */
.header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 10px 22px 0;
}
.day {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.date {
  font-size: 15px;
  color: var(--text-2);
  margin-top: 2px;
  font-weight: 500;
}
.clock {
  font-size: 34px;
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text-2);
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hair);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 7px 13px 7px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.back-btn:active {
  opacity: 0.7;
}

/* ---------- Day strip (whole waking day at a glance) ---------- */
.strip {
  margin: 20px 22px 0;
}
.strip-track {
  position: relative;
  height: 8px;
  display: flex;
  gap: 2px;
}
.strip-track i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: color-mix(in oklab, var(--c) 34%, #0b0c0e);
}
.strip-track i.done {
  background: color-mix(in oklab, var(--c) 70%, #0b0c0e);
}
.strip-track i.cur {
  background: var(--c);
}
.strip-now {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 3px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--bg), 0 0 12px rgba(255, 255, 255, 0.6);
}
.strip-meal {
  position: absolute;
  top: -9px;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--meal);
}
.strip-meal.past {
  background: color-mix(in oklab, var(--meal) 35%, #0b0c0e);
}
.strip-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}

/* ---------- Completed (collapsed) ---------- */
.done-toggle {
  margin: 16px 16px 0;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.done-toggle .dots {
  display: flex;
  gap: 4px;
}
.done-toggle .dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--c) 60%, #222);
}
.done-toggle .names {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.done-toggle svg {
  transition: transform 0.25s ease;
  opacity: 0.7;
}
.done-toggle.open svg {
  transform: rotate(180deg);
}
.done-list {
  margin: 6px 16px 0;
  display: none;
}
.done-list.open {
  display: block;
}
.done-list .row {
  opacity: 0.5;
}
.done-list .rows {
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.025);
}

/* ---------- Current block (hero) ---------- */
.hero {
  margin: 14px 16px 0;
  padding: 22px 22px 20px;
  border-radius: 30px;
  background:
    linear-gradient(160deg, color-mix(in oklab, var(--cur) 16%, #121316) 0%, #0f1013 62%);
  border: 1px solid color-mix(in oklab, var(--cur) 24%, transparent);
  box-shadow: 0 24px 60px -30px color-mix(in oklab, var(--cur) 60%, transparent);
}
.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  color: var(--text-2);
  font-weight: 500;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cur);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.live::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cur);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--cur) 70%, transparent);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--cur) 60%, transparent); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero-name {
  margin-top: 14px;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--cur);
}
.hero-stats {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.remain {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.remain small, .pct small {
  font-size: 17px;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 4px;
}
.pct {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.hero .bar {
  margin-top: 16px;
  height: 18px;
}
.hero-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

/* ---------- Progress bar (two-layer, margins always visible) ---------- */
.bar {
  position: relative;
  height: 6px;
  --c: #888;
}
.bar .track, .bar .fill {
  position: absolute;
  inset: 0;
  display: flex;
  overflow: hidden;
  border-radius: 999px;
}
.bar .seg {
  display: block;
  height: 100%;
  flex: none;
}
.bar .seg.core {
  flex: 1 1 auto;
}
.bar .track .seg.core {
  background: color-mix(in oklab, var(--c) 30%, #0b0c0e);
}
.bar .track .seg.edge {
  background: color-mix(in oklab, var(--c) 15%, #0b0c0e);
}
.bar .fill .seg.core {
  background: var(--c);
}
.bar .fill .seg.edge {
  background: color-mix(in oklab, var(--c) 52%, #000);
}
.bar .seg + .seg {
  box-shadow: inset 1px 0 0 rgba(0, 0, 0, 0.35);
}
.bar .marker {
  position: absolute;
  top: -5px;
  bottom: -5px;
  width: 4px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 2.5px #0f1013, 0 0 14px rgba(255, 255, 255, 0.55);
}
.bar .tick {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 2px;
  margin-left: -1px;
  border-radius: 1px;
  background: var(--meal);
  box-shadow: 0 0 0 1.5px #0b0c0e;
}

/* ---------- Meals ---------- */
.meals {
  margin: 12px 16px 0;
  padding: 18px 20px 18px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--hair);
}
.meals-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.meal-next {
  display: flex;
  align-items: center;
  gap: 12px;
}
.meal-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: color-mix(in oklab, var(--meal) 16%, transparent);
  color: var(--meal);
}
.meal-time {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.meal-sub {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
  margin-top: 1px;
}
.meal-count {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--meal);
  text-align: right;
}
.meal-count small {
  display: block;
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0;
}

.meal-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
}
.meal-row::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  top: 6px;
  height: 2px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 1px;
}
.meal-row .line-done {
  position: absolute;
  left: 6px;
  top: 6px;
  height: 2px;
  border-radius: 1px;
  background: color-mix(in oklab, var(--meal) 40%, #0b0c0e);
}
.m {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 44px;
}
.m:first-child {
  align-items: flex-start;
}
.m:last-child {
  align-items: flex-end;
}
.m i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: block;
  background: var(--surface);
  border: 2px solid rgba(255, 255, 255, 0.18);
}
.m span {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}
.m.past i {
  background: color-mix(in oklab, var(--meal) 40%, #0b0c0e);
  border-color: transparent;
}
.m.past span {
  color: rgba(235, 235, 245, 0.28);
  text-decoration: line-through;
  text-decoration-color: rgba(235, 235, 245, 0.18);
}
.m.now i {
  background: var(--meal);
  border-color: var(--meal);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--meal) 25%, transparent);
}
.m.now span {
  color: var(--meal);
  font-weight: 600;
}
.m.next i {
  border-color: var(--meal);
  box-shadow: 0 0 12px color-mix(in oklab, var(--meal) 55%, transparent);
}
.m.next span {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Upcoming & Day View list ---------- */
.list {
  margin: 12px 16px 0;
  border-radius: 26px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--hair);
}
.row {
  padding: 15px 18px 16px;
  position: relative;
}
.row + .row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 0;
  height: 1px;
  background: var(--hair);
}
.row-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chip {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--c);
  flex: none;
}
.row-name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex: 1;
}
.row-time {
  font-size: 15px;
  color: var(--text-2);
  font-weight: 500;
}
.row-dur {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
  width: 56px;
  text-align: right;
}
.row .bar {
  margin-top: 12px;
  margin-left: 22px;
  height: 6px;
}

/* ============================================================
   WEEK SCREEN
   ============================================================ */
.week-card {
  margin: 16px 16px 0;
  padding: 16px 12px 16px 8px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--hair);
}
.week-grid {
  display: grid;
  grid-template-columns: 38px repeat(7, 1fr);
  gap: 5px;
  align-items: stretch;
}
.week-axis {
  position: relative;
  padding-top: 42px;
  height: 500px;
}
.week-axis span {
  position: absolute;
  right: 4px;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
}
.week-col {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border-radius: 12px;
  padding: 4px 2px;
  transition: background 0.15s ease;
}
.week-col:active {
  background: rgba(255, 255, 255, 0.05);
}
.week-col.today {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}
.week-col-hdr {
  height: 34px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.week-col-day {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.week-col.today .week-col-day {
  color: var(--text);
}
.week-col-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: transparent;
  margin-top: 3px;
}
.week-col.today .week-col-dot {
  background: var(--cur);
}
.week-timeline {
  position: relative;
  height: 430px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-radius: 8px;
  overflow: visible;
}
.week-seg {
  width: 100%;
  border-radius: 5px;
  background: color-mix(in oklab, var(--c) 46%, #0d0e11);
  border: 1px solid color-mix(in oklab, var(--c) 32%, transparent);
}
.week-col.today .week-seg {
  background: color-mix(in oklab, var(--c) 68%, #0d0e11);
}
.week-sleep {
  margin-top: 3px;
  height: 22px;
  border-radius: 5px;
  background: color-mix(in oklab, #64748B 30%, #0d0e11);
  border: 1px solid rgba(100, 116, 139, 0.22);
}
.week-meal {
  position: absolute;
  left: 50%;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  margin-top: -2.5px;
  border-radius: 50%;
  background: var(--meal);
  box-shadow: 0 0 0 1.5px #111215;
  z-index: 3;
  pointer-events: none;
}
.week-now {
  position: absolute;
  left: -3px;
  right: -3px;
  height: 2.5px;
  margin-top: -1.25px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 0 0 2px #111215, 0 0 10px rgba(255, 255, 255, 0.8);
  z-index: 5;
  pointer-events: none;
}

.week-legend {
  margin: 12px 16px 0;
  padding: 13px 16px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.legend-item i {
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--c);
}
.legend-item i.round {
  border-radius: 50%;
}

/* ============================================================
   SETTINGS SCREEN
   ============================================================ */
.sec-title {
  margin: 22px 22px 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.day-picker {
  margin: 0 16px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.day-pill {
  height: 40px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
}
.day-pill.active {
  background: rgba(255, 255, 255, 0.11);
  color: var(--text);
}

.ed-block-row {
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  cursor: pointer;
  min-height: 54px;
}
.ed-block-row + .ed-block-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 0;
  height: 1px;
  background: var(--hair);
}
.ed-block-row.selected {
  background: color-mix(in oklab, var(--c) 14%, var(--surface-2));
}
.ed-block-row.selected::after {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 3.5px;
  border-radius: 0 3px 3px 0;
  background: var(--c);
}

.editor-panel {
  margin: 10px 16px 0;
  padding: 18px;
  border-radius: 26px;
  background: var(--surface-2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.ed-panel-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.ed-panel-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 18px;
  font-weight: 700;
}
.ed-panel-span {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
}

.op-row {
  display: grid;
  grid-template-columns: 54px 1fr 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}
.op-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}
.op-btn {
  min-height: 46px;
  padding: 7px 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
}
.op-btn:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
}
.op-btn:disabled {
  opacity: 0.26;
  cursor: default;
}
.op-btn span {
  font-size: 13px;
  font-weight: 600;
}
.op-btn small {
  font-size: 12px;
  color: var(--text-2);
  font-weight: 500;
}

.cat-picker {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hair);
}
.cat-btn {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.cat-btn.active {
  background: color-mix(in oklab, var(--c) 18%, transparent);
  border-color: var(--c);
  color: var(--text);
}
.cat-btn i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
}

.ed-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.act-btn {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.act-btn.danger {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.22);
  background: rgba(248, 113, 113, 0.07);
}
.act-btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.copy-bar {
  margin: 10px 16px 0;
  padding: 14px 16px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--hair);
}
.copy-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.copy-title {
  font-size: 15px;
  font-weight: 600;
}
.copy-targets {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-top: 10px;
}
.copy-pill {
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.copy-pill.on {
  background: rgba(52, 211, 153, 0.16);
  border-color: var(--meal);
  color: var(--meal);
}
.copy-pill:disabled {
  opacity: 0.25;
  cursor: default;
}

/* ---------- Stepper rows (Meals & Categories) ---------- */
.set-row {
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  min-height: 54px;
}
.set-row + .set-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 0;
  height: 1px;
  background: var(--hair);
}
.set-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
}
.set-sub {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.step-val {
  min-width: 58px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}
.step-btn {
  width: 44px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.step-btn:active:not(:disabled) {
  background: rgba(255, 255, 255, 0.14);
}
.step-btn:disabled {
  opacity: 0.25;
  cursor: default;
}

.margin-group {
  padding: 14px 18px;
  position: relative;
}
.margin-group + .margin-group::before {
  content: "";
  position: absolute;
  top: 0;
  left: 18px;
  right: 0;
  height: 1px;
  background: var(--hair);
}
.margin-hdr {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.margin-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.margin-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.margin-box-lbl {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.mini-step {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mini-btn {
  width: 32px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.mini-btn:disabled {
  opacity: 0.25;
}
.mini-val {
  min-width: 38px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
}

.notice-card {
  margin: 12px 16px 0;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #fca5a5;
  font-size: 14px;
  line-height: 1.4;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  background: #1f2128;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 60;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- Tab bar ---------- */
.tabbar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  min-height: calc(64px + env(safe-area-inset-bottom, 0px));
  z-index: 20;
  padding: 8px 28px calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  background: rgba(10, 10, 12, 0.78);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
  border-top: 1px solid var(--hair);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: var(--text-3);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  width: 84px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px 0;
}
.tab.active {
  color: var(--text);
}
.tab svg {
  width: 26px;
  height: 26px;
}
