/* =====================================================================
   Tharunam phone demo — scoped to .th-phone / .th-demo.
   Light tokens copied from SivaStack/Tharunam/client/src/index.css.
   ===================================================================== */

.th-phone {
  --k: 0.84;
  --bez: 11px;
  position: relative;
  width: calc(375px * var(--k) + var(--bez) * 2);
  padding: var(--bez);
  border-radius: calc(54px * var(--k) + var(--bez));
  background: linear-gradient(145deg, #3a342e 0%, #1b1815 38%, #121010 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(60, 40, 20, 0.35),
    0 50px 80px -40px rgba(60, 36, 14, 0.55),
    0 30px 40px -30px rgba(60, 36, 14, 0.45);
}
.th-clip {
  position: relative;
  width: calc(375px * var(--k));
  height: calc(790px * var(--k));
  border-radius: calc(44px * var(--k));
  overflow: hidden;
  background: #F6F7F5;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* Safari: clip transformed children to the radius */
}
.th-island {
  position: absolute;
  top: calc(var(--bez) + 11px * var(--k));
  left: 50%;
  width: calc(112px * var(--k));
  height: calc(32px * var(--k));
  transform: translateX(-50%);
  border-radius: 999px;
  background: #0b0a09;
  pointer-events: none;
}

.th-demo {
  --bg: #F6F7F5;
  --surface: #FFFFFF;
  --surface-2: #FAFBFA;
  --border: #E3E7E3;
  --border-strong: #CBD2CC;
  --divider: #EEF0EE;
  --fg: #15201C;
  --fg-muted: #5B6660;
  --fg-dim: #68726C;
  --accent: #0E7C6B;
  --accent-strong: #0B5F52;
  --accent-tint: #E6F5F1;
  --success: #0C7262;
  --success-tint: #E6F5F1;
  --warn: #A54C08;
  --warn-tint: #FFF4E5;
  --danger: #B91C1C;
  --info: #1D4ED8;
  --info-tint: #E8F0FE;
  --out: #9A3A14;
  --out-tint: #FBEDE6;

  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--fg);
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.th-demo *, .th-demo *::before, .th-demo *::after { box-sizing: border-box; }
.th-demo :where(p, h3, h4) { margin: 0; }
.th-demo :where(button) {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.th-demo button:focus-visible,
.th-demo input:focus-visible,
.th-demo select:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 2px;
  border-radius: 10px;
}

.th-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 375px;
  height: 790px;
  transform: scale(var(--k));
  transform-origin: 0 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

/* Status bar */
.th-status {
  flex: none;
  height: 52px;
  padding: 16px 30px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  background: rgba(246, 247, 245, 0.92);
}
.th-status-icons { display: inline-flex; gap: 6px; align-items: center; fill: currentColor; color: var(--fg); }

/* App top bar */
.th-top {
  flex: none;
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--divider);
  background: rgba(246, 247, 245, 0.92);
}
.th-ws { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.th-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.th-ws-name { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
.th-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent-strong);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
}
.th-banner {
  flex: none;
  padding: 7px 16px;
  background: var(--warn-tint);
  color: var(--warn);
  font-size: 12.5px;
  font-weight: 600;
  text-align: center;
}

/* Scrolling content */
.th-main {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: auto;
  scrollbar-width: none;
  outline: none;
}
.th-main::-webkit-scrollbar { display: none; }
.th-pad { padding: 16px 16px 28px; animation: th-fade 0.35s ease both; }
@keyframes th-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.th-h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.th-h2 { font-size: 15px; font-weight: 700; margin: 22px 0 10px; }
.th-h2-row { display: flex; align-items: baseline; justify-content: space-between; }
.th-link { color: var(--accent-strong); font-size: 14px; font-weight: 600; }
.th-lede { margin-top: 6px; font-size: 14px; color: var(--fg-muted); }

/* Balance card */
.th-balance {
  margin-top: 14px;
  background: var(--accent);
  color: #fff;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 14px 28px -18px rgba(14, 124, 107, 0.8);
}
.th-bal-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.th-right { text-align: right; }
.th-bal-label { font-size: 13px; font-weight: 600; opacity: 0.95; }
.th-bal-amt { font-size: 32px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.th-bal-cash { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.th-bal-note { margin-top: 4px; font-size: 12px; opacity: 0.85; }
.th-bal-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.th-bal-tile { background: rgba(255, 255, 255, 0.15); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.th-bal-tile p { font-size: 11.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-bal-tile b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Cards and rows */
.th-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.th-card > * + * { border-top: 1px solid var(--divider); }

.th-row, .th-att {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  text-align: left;
}
.th-att:not(:disabled):hover { background: #F2F4F2; }
.th-att:disabled { cursor: default; }
.th-row-new { animation: th-new 2.4s ease-out; }
@keyframes th-new { 0%, 40% { background: var(--accent-tint); } 100% { background: transparent; } }

.th-av {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 13.5px;
  font-weight: 700;
}
.th-av-in { background: var(--accent-tint); color: var(--accent-strong); }
.th-av-out { background: var(--out-tint); color: var(--out); }

.th-row-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.th-row-name { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-row-sub { font-size: 12.5px; color: var(--fg-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-att-title { font-size: 14px; font-weight: 600; line-height: 1.3; }
.th-row-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.th-amt { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.th-amt-in { color: var(--accent-strong); }

.th-pill {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.th-pill-muted { background: var(--divider); color: var(--fg-muted); }
.th-pill-accent { background: var(--accent-tint); color: var(--accent-strong); }
.th-pill-success { background: var(--success-tint); color: var(--success); }
.th-pill-info { background: var(--info-tint); color: var(--info); }

.th-verify {
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 10px -4px rgba(14, 124, 107, 0.7);
}
.th-verify:hover { background: var(--accent-strong) !important; }

.th-tile {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.th-tone-warn { background: var(--warn-tint); color: var(--warn); }
.th-tone-info { background: var(--info-tint); color: var(--info); }
.th-tone-accent { background: var(--accent-tint); color: var(--accent-strong); }
.th-tone-out { background: var(--out-tint); color: var(--out); }
.th-chev { flex: none; color: var(--fg-dim); display: inline-flex; transition: transform 0.25s; }
.th-chev.is-up { transform: rotate(-90deg); }

/* Activity */
.th-title-row { display: flex; align-items: center; justify-content: space-between; }
.th-icons { display: inline-flex; gap: 2px; }
.th-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--fg);
}
.th-icon-btn:hover { background: var(--divider); }
.th-fpills {
  display: flex;
  gap: 8px;
  margin: 14px -16px 4px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.th-fpills::-webkit-scrollbar { display: none; }
.th-fpill {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--fg-muted) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.th-fpill.is-on { background: var(--fg) !important; border-color: var(--fg) !important; color: #fff !important; }
.th-badge {
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--warn);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-grid;
  place-items: center;
}
.th-day {
  margin: 18px 2px 8px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-dim);
}
.th-empty {
  margin-top: 40px;
  text-align: center;
  color: var(--accent-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.th-empty p { font-size: 17px; font-weight: 700; color: var(--fg); }
.th-empty span { font-size: 14px; color: var(--fg-muted); }

/* Funds */
.th-back-row { display: flex; align-items: center; gap: 4px; margin-left: -10px; }
.th-fund { padding: 14px; margin-top: 12px; }
.th-fund > * + * { border-top: 0; }
.th-fund-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.th-fund-bal { margin-top: 6px !important; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.th-fund-meta { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12.5px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.th-bar { height: 6px; border-radius: 999px; background: var(--divider); margin-top: 6px; overflow: hidden; }
.th-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }

/* Bottom navigation */
.th-nav {
  flex: none;
  height: 68px;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding: 8px 8px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 2;
}
.th-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 56px;
  min-height: 44px;
  padding-top: 4px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--fg-muted) !important;
}
.th-tab.is-on { color: var(--accent) !important; }
.th-record-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -26px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--fg-muted) !important;
}
.th-record-btn > span:last-child { margin-top: 4px; }
.th-fab {
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(14, 124, 107, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: th-breathe 3.2s ease-in-out 1.2s 3;
}
.th-record-btn:hover .th-fab { transform: scale(1.05); box-shadow: 0 10px 22px rgba(14, 124, 107, 0.45); }
@keyframes th-breathe {
  0%, 100% { box-shadow: 0 6px 16px rgba(14, 124, 107, 0.35), 0 0 0 0 rgba(14, 124, 107, 0.35); }
  50% { box-shadow: 0 6px 16px rgba(14, 124, 107, 0.35), 0 0 0 12px rgba(14, 124, 107, 0); }
}
.th-homebar {
  flex: none;
  height: 26px;
  background: var(--surface);
  position: relative;
  z-index: 2;
}
.th-homebar::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 134px;
  height: 5px;
  border-radius: 999px;
  background: var(--fg);
  transform: translateX(-50%);
}

/* Overlay layer: sheets and the Record form */
.th-layer { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.th-layer.is-open { pointer-events: auto; }
.th-scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 32, 28, 0.45);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.th-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88%;
  overflow-y: auto;
  overscroll-behavior: auto;
  scrollbar-width: none;
  background: var(--bg);
  border-radius: 20px 20px 0 0;
  padding: 10px 16px 34px;
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.th-layer.is-in .th-scrim { opacity: 1; }
.th-layer.is-in .th-sheet { transform: none; }
.th-grabber { display: block; width: 40px; height: 5px; border-radius: 999px; background: var(--border-strong); margin: 0 auto 12px; }
.th-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.th-sheet-title { font-size: 22px; font-weight: 800; letter-spacing: -0.015em; }
.th-sheet-sub { font-size: 14px; color: var(--fg-muted); margin-top: 2px !important; }
.th-close { width: 36px; height: 36px; border-radius: 999px; background: var(--divider) !important; display: grid; place-items: center; }

.th-choice {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px !important;
  margin-top: 10px !important;
  border-radius: 16px;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  text-align: left;
  transition: border-color 0.2s, transform 0.15s;
}
.th-choice:hover { border-color: var(--accent) !important; }
.th-choice:active { transform: scale(0.99); }
.th-choice-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.th-choice-title { font-size: 16px; font-weight: 700; }

.th-more-group { margin: 16px 2px 8px !important; font-size: 13px; font-weight: 700; color: var(--fg); }
.th-more-group span { font-weight: 500; color: var(--fg-muted); margin-left: 4px; }
.th-more-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  text-align: left;
}
.th-more-item > span:nth-child(2) { flex: 1; }
.th-more-item:hover { background: #F2F4F2 !important; }
.th-more-ic { color: var(--fg-muted); display: inline-flex; }

/* Record form */
.th-screen.is-form .th-layer { top: 52px; }
.th-form {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  animation: th-slide 0.32s cubic-bezier(0.2, 0.9, 0.25, 1) both;
}
@keyframes th-slide { from { transform: translateX(30%); opacity: 0; } to { transform: none; opacity: 1; } }
.th-form-head {
  flex: none;
  height: 56px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--divider);
}
.th-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--divider);
}
.th-seg button {
  height: 34px;
  padding: 0 14px !important;
  border-radius: 9px;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--fg-muted) !important;
}
.th-seg button.is-on { background: var(--surface) !important; color: var(--fg) !important; box-shadow: 0 1px 3px rgba(21, 32, 28, 0.12); }

.th-form-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: auto;
  scrollbar-width: none;
  padding: 14px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.th-form-body::-webkit-scrollbar { display: none; }

.th-photo {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px !important;
  border-radius: 16px;
  border: 1.5px dashed var(--border-strong) !important;
  background: var(--surface-2) !important;
  text-align: left;
}
.th-photo.has-photo { border-style: solid !important; border-color: var(--accent) !important; background: var(--accent-tint) !important; }
.th-thumb { width: 42px; height: 42px; flex: none; border-radius: 10px; background: var(--divider); color: var(--fg-muted); display: grid; place-items: center; }
.th-photo.has-photo .th-thumb { background: var(--surface); color: var(--accent-strong); }
.th-ok { color: var(--accent-strong); display: inline-flex; }

.th-amount-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}
.th-amount-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.th-demo .th-amount-input:focus-visible { outline: none; }
.th-amount { display: flex; align-items: baseline; gap: 6px; cursor: text; }
.th-rupee { font-size: 32px; font-weight: 700; color: var(--fg-muted); }
.th-amount-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: 800 42px/1.1 'Inter', sans-serif;
  letter-spacing: -0.025em;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  padding: 0;
  outline: none;
}
.th-amount-input::placeholder { color: #B9C1BC; }
.th-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.th-chip {
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border) !important;
  background: var(--surface) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: var(--fg-muted) !important;
}
.th-chip.is-on { border: 1.5px solid var(--accent) !important; background: var(--accent-tint) !important; color: var(--accent-strong) !important; }
.th-chip-sm { height: 32px; padding: 0 12px !important; font-size: 13px !important; }

.th-warn {
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--warn-tint);
  color: var(--warn);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
}
.th-warn[hidden], .th-err[hidden], .th-md-body[hidden] { display: none; }

.th-fields { overflow: visible; }
.th-field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 14px;
}
.th-field-label { width: 64px; flex: none; font-size: 14px; font-weight: 600; color: var(--fg-muted); }
.th-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0;
  background: transparent;
  font: 500 16px 'Inter', sans-serif; /* 16px keeps iOS from zooming */
  color: var(--fg);
  padding: 0;
  outline: none;
}
.th-input::placeholder { color: #9AA39E; }
.th-input.is-error::placeholder { color: var(--danger); }
.th-select { appearance: none; -webkit-appearance: none; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2368726C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; padding-right: 22px; }
.th-date-chips { display: inline-flex; gap: 6px; }
.th-err { padding: 0 14px 10px 88px; font-size: 12.5px; font-weight: 600; color: var(--danger); border-top: 0 !important; }

.th-more-details > * + * { border-top: 1px solid var(--divider); }
.th-md-toggle {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}
.th-md-body > * + * { border-top: 1px solid var(--divider); }
.th-switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; }
.th-switch-row > span:first-child { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.th-switch-row .th-row-sub { white-space: normal; }
.th-switch {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: var(--border-strong);
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
  margin: 0;
}
.th-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.th-switch:checked { background: var(--accent); }
.th-switch:checked::after { transform: translateX(18px); }
.th-switch:disabled { opacity: 0.5; cursor: not-allowed; }

.th-footnote { font-size: 12.5px; color: var(--fg-muted); line-height: 1.5; padding: 0 2px; }
.th-footnote b { color: var(--fg); }

.th-form-foot {
  flex: none;
  padding: 10px 16px 30px;
  border-top: 1px solid var(--divider);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.th-save {
  height: 52px;
  border-radius: 14px;
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  transition: background-color 0.2s, opacity 0.2s;
}
.th-save:hover:not(:disabled) { background: var(--accent-strong) !important; }
.th-save:disabled, .th-save-more:disabled { opacity: 0.45; cursor: not-allowed; }
.th-save-more { height: 40px; font-size: 14px !important; font-weight: 600 !important; color: var(--accent-strong) !important; }

/* Toast */
.th-toast {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 108px;
  z-index: 20;
  min-height: 46px;
  padding: 10px 10px 10px 16px;
  border-radius: 14px;
  background: #15201C;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s, transform 0.3s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.th-toast.is-on { opacity: 1; transform: none; pointer-events: auto; }
.th-toast button {
  flex: none;
  height: 32px;
  padding: 0 12px !important;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #7FE0CF !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
}
.th-screen.is-form .th-toast { bottom: 120px; }

@media (prefers-reduced-motion: reduce) {
  .th-demo *, .th-demo *::before, .th-demo *::after { animation: none !important; transition: none !important; }
}
