/* Peach Financial — design system */

:root {
  /* Brand, from the Peach logo: warm amber fruit, green leaf */
  --peach-50:  #FFF8F0;
  --peach-100: #FDEBD6;
  --peach-200: #FAD6A8;
  --peach-300: #F6BE79;
  --peach-400: #F0A44F;
  --peach-500: #E8913B;
  --peach-600: #D2762A;
  --peach-700: #A85B1F;

  --leaf-400: #7CC242;
  --leaf-500: #5FA524;
  --leaf-600: #4A8419;

  --ink-900: #1D1F2B;
  --ink-800: #2E3142;
  --ink-700: #3F4356;
  --ink-500: #6B7085;
  --ink-400: #8D92A6;
  --ink-300: #B9BDCC;
  --ink-200: #DCDFE8;
  --ink-100: #EEF0F5;

  --bg: #F7F7FA;
  --surface: #FFFFFF;
  --surface-alt: #FBFBFD;

  --danger: #D8453C;
  --danger-bg: #FDEDEC;
  --ok: #2E9E5B;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(29,31,43,.06), 0 1px 3px rgba(29,31,43,.05);
  --shadow: 0 2px 6px rgba(29,31,43,.06), 0 8px 24px rgba(29,31,43,.07);
  --shadow-lg: 0 8px 20px rgba(29,31,43,.10), 0 24px 48px rgba(29,31,43,.10);

  --tabbar-h: 62px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

/* Any class that sets `display` outranks the UA [hidden] rule, which would
   otherwise leave hidden elements laid out and intercepting taps. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overscroll-behavior-y: none;
}

body {
  font-family: var(--font);
  background: var(--ink-100);
  color: var(--ink-900);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ------------------------------------------------------------------
 * Phone frame — the app is a mobile product; on desktop we centre it
 * in a device-sized column so it doesn't stretch into nonsense.
 * ---------------------------------------------------------------- */

#app {
  position: relative;
  width: 100%;
  max-width: 460px;
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 0 1px rgba(29,31,43,.05);
}

@media (min-width: 900px) and (min-height: 760px) {
  body { background: linear-gradient(160deg, #F3F0EC 0%, #EDEFF4 100%); }
  #app {
    max-width: 420px;
    min-height: 0;
    height: 860px;
    margin: 32px auto;
    border-radius: 34px;
    box-shadow: var(--shadow-lg), 0 0 0 10px #22242F, 0 0 0 11px #3A3D4C;
  }
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}

.screen[hidden] { display: none !important; }

.screen-enter { animation: slideIn .26s cubic-bezier(.22,.7,.3,1); }
@keyframes slideIn {
  from { opacity: 0; transform: translateX(14px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .screen-enter { animation: none; }
}

/* ------------------------------------------------------------------
 * Header
 * ---------------------------------------------------------------- */

.hdr {
  flex: 0 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 16px) 16px 30px;
  background: linear-gradient(150deg, var(--peach-400) 0%, var(--peach-500) 55%, var(--peach-600) 100%);
  color: #fff;
  position: relative;
}

.hdr--plain {
  background: var(--surface);
  color: var(--ink-900);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ink-200);
}

.hdr-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
}

.hdr-title {
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin: 0;
}

.hdr-sub {
  text-align: center;
  font-size: 12.5px;
  opacity: .85;
  margin: 2px 0 0;
}

.icon-btn {
  position: relative;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.18);
  color: inherit;
  cursor: pointer;
  font-size: 17px;
  line-height: 1;
  padding: 0;
  transition: background .15s;
}
/* Expand the touch target past the visible circle to a comfortable 48px. */
.icon-btn::after { content: ''; position: absolute; inset: -4px; }
.icon-btn:hover { background: rgba(255,255,255,.3); }
.icon-btn:active { transform: scale(.94); }
.icon-btn--ghost { background: transparent; }
.hdr--plain .icon-btn { background: var(--ink-100); color: var(--ink-700); }
.hdr--plain .icon-btn:hover { background: var(--ink-200); }
.icon-btn[hidden] { visibility: hidden; display: grid !important; }

/* ------------------------------------------------------------------
 * Body / card sheet that overlaps the header
 * ---------------------------------------------------------------- */

.body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
}

.body--tabbed { padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom, 0px)); }

.sheet {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-top: -18px;
  padding: 22px 18px;
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.card--tap {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.card--tap:hover { box-shadow: var(--shadow); }
.card--tap:active { transform: scale(.985); }

.card-emoji {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--peach-50);
  display: grid; place-items: center;
  font-size: 21px;
}
.card-emoji--leaf { background: #F1FAE8; }

.card-main { flex: 1; min-width: 0; }
.card-title { font-weight: 650; font-size: 15.5px; letter-spacing: -.01em; }
.card-desc { font-size: 12.8px; color: var(--ink-500); margin-top: 2px; }
.card-chev { flex: 0 0 auto; color: var(--ink-300); font-size: 19px; }

.card-eyebrow {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11.5px; color: var(--ink-400); text-transform: uppercase;
  letter-spacing: .05em; font-weight: 650; margin-bottom: 3px;
}

/* ------------------------------------------------------------------
 * Typography
 * ---------------------------------------------------------------- */

h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
.h-lg { font-size: 25px; font-weight: 700; line-height: 1.22; }
.h-md { font-size: 20px; font-weight: 700; line-height: 1.25; }
.h-sm { font-size: 16px; font-weight: 680; }
.muted { color: var(--ink-500); }
.hint { font-size: 13px; color: var(--ink-500); line-height: 1.5; }
.tiny { font-size: 11.5px; color: var(--ink-400); line-height: 1.5; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.section-label {
  font-size: 11.5px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-400);
  margin: 22px 2px 10px;
}
.section-label:first-child { margin-top: 6px; }

.figure {
  font-size: 38px; font-weight: 700; letter-spacing: -.035em;
  line-height: 1.05; font-variant-numeric: tabular-nums;
}
.figure--sm { font-size: 27px; }
.figure-cap { font-size: 12.5px; color: var(--ink-500); margin-top: 6px; }

/* ------------------------------------------------------------------
 * Buttons
 * ---------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 13px 20px;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--peach-500);
  color: #fff;
  font: inherit;
  font-weight: 650;
  font-size: 15.5px;
  cursor: pointer;
  transition: background .15s, transform .1s, opacity .15s;
}
.btn:hover { background: var(--peach-600); }
.btn:active { transform: scale(.985); }
.btn:disabled { background: var(--ink-200); color: var(--ink-400); cursor: not-allowed; }

.btn--ghost {
  background: transparent; color: var(--peach-600);
  box-shadow: inset 0 0 0 1.5px var(--peach-200);
}
.btn--ghost:hover { background: var(--peach-50); }

.btn--quiet {
  background: var(--ink-100); color: var(--ink-700);
}
.btn--quiet:hover { background: var(--ink-200); }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14px; width: auto; }

.linkbtn {
  display: block;
  width: 100%;
  background: none; border: 0; padding: 12px 4px;
  font: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ink-500);
  text-decoration: underline; text-underline-offset: 3px;
  cursor: pointer;
}
.linkbtn:hover { color: var(--ink-800); }

.btn-row { display: flex; gap: 10px; }
.btn-row .btn { width: auto; flex: 1; }

/* ------------------------------------------------------------------
 * Inputs
 * ---------------------------------------------------------------- */

.field { margin-bottom: 16px; }
.field-label {
  display: block; font-size: 13.5px; font-weight: 620;
  color: var(--ink-700); margin-bottom: 7px;
}

.input-wrap { position: relative; display: block; }
.input-prefix, .input-suffix {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--ink-400); font-size: 16px; font-weight: 600; pointer-events: none;
}
.input-prefix { left: 16px; }
.input-suffix { right: 16px; }

input[type=text], input[type=number], input[type=date], input[type=email], select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 16px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  font-size: 16px; /* 16px keeps iOS from zooming on focus */
  font-weight: 600;
  color: var(--ink-900);
  transition: border-color .15s, box-shadow .15s;
  appearance: none;
  font-variant-numeric: tabular-nums;
}
.input-wrap--money input { padding-left: 32px; }
.input-wrap--pct input { padding-right: 36px; }

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--peach-400);
  box-shadow: 0 0 0 4px rgba(240,164,79,.16);
}
input::placeholder { color: var(--ink-300); font-weight: 500; }

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%238D92A6' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.field-error {
  display: flex; gap: 7px;
  font-size: 12.8px; color: var(--danger);
  margin-top: 7px; font-weight: 550;
}

/* Slider */
.slider-row { margin-top: 14px; }
input[type=range] {
  width: 100%; height: 30px; background: transparent;
  appearance: none; padding: 0; border: 0; min-height: 0;
}
input[type=range]:focus { box-shadow: none; }
input[type=range]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px; background: var(--ink-200);
}
input[type=range]::-webkit-slider-thumb {
  appearance: none;
  width: 26px; height: 26px; margin-top: -10px;
  border-radius: 50%; background: var(--peach-500);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(210,118,42,.35);
  cursor: grab;
}
input[type=range]::-webkit-slider-thumb:active { cursor: grabbing; }
input[type=range]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--ink-200); }
input[type=range]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--peach-500); border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(210,118,42,.35); cursor: grab;
}
.slider-scale {
  display: flex; justify-content: space-between;
  font-size: 11px; color: var(--ink-400); margin-top: -2px;
  font-variant-numeric: tabular-nums;
}

/* Choice chips */
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice {
  flex: 1 1 auto;
  min-width: 96px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1.5px solid var(--ink-200);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font: inherit; font-size: 15px; font-weight: 620;
  color: var(--ink-700);
  cursor: pointer;
  transition: all .15s;
}
.choice:hover { border-color: var(--peach-300); }
.choice[aria-pressed="true"] {
  background: var(--peach-500); border-color: var(--peach-500); color: #fff;
  box-shadow: 0 3px 10px rgba(210,118,42,.28);
}
.choices--stack { flex-direction: column; }
.choices--stack .choice { width: 100%; text-align: left; }

/* ------------------------------------------------------------------
 * Step flow
 * ---------------------------------------------------------------- */

.step-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-top: -18px;
  padding: 26px 20px 20px;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}

.step-q {
  font-size: 22px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1.26; text-align: center; margin-bottom: 6px;
}
.step-hint { font-size: 13px; color: var(--ink-500); text-align: center; margin-bottom: 20px; line-height: 1.5; }
.step-input { margin-bottom: auto; }
.step-foot { margin-top: 22px; }

.progress {
  margin-top: 16px;
}
.progress-bar {
  height: 5px; border-radius: 3px; background: var(--ink-100); overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 3px;
  background: linear-gradient(90deg, var(--peach-400), var(--peach-500));
  transition: width .3s cubic-bezier(.3,.8,.4,1);
}
.progress-label {
  text-align: center; font-size: 11.5px; color: var(--ink-400);
  margin-top: 7px; font-weight: 600;
}

/* Info disclosure inside a step */
.info-toggle {
  background: none; border: 0; padding: 0;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--peach-600); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.info-box {
  margin-top: 12px; padding: 14px;
  background: var(--peach-50);
  border-radius: var(--radius-sm);
  font-size: 13px; color: var(--ink-700); line-height: 1.55;
  border-left: 3px solid var(--peach-300);
}
.info-box strong { color: var(--ink-900); }

/* ------------------------------------------------------------------
 * Results
 * ---------------------------------------------------------------- */

.result-hero {
  text-align: center;
  padding: 26px 18px 22px;
  background: linear-gradient(160deg, var(--peach-50), #fff 70%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin-top: -18px;
}
.result-badge {
  display: inline-block;
  padding: 5px 13px;
  border-radius: var(--radius-pill);
  background: var(--peach-100);
  color: var(--peach-700);
  font-size: 11.5px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 12px;
}
.result-badge--leaf { background: #EAF7DD; color: var(--leaf-600); }

/* Line items */
.lines { margin: 0; padding: 0; list-style: none; }
.line {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--ink-100);
  font-size: 14.3px;
}
.line:last-child { border-bottom: 0; }
.line-label { color: var(--ink-700); }
.line-value { font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; }
.line--total {
  border-top: 1.5px solid var(--ink-200);
  border-bottom: 0;
  margin-top: 4px; padding-top: 13px;
  font-size: 16px; font-weight: 700;
}
.line--total .line-label { color: var(--ink-900); font-weight: 700; }
.line--sub { padding-left: 14px; font-size: 13.4px; }
.line--sub .line-label { color: var(--ink-500); }
.line-note { font-size: 11.5px; color: var(--ink-400); font-weight: 500; display: block; }
.line--credit .line-value { color: var(--ok); }

.group-head {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; padding: 13px 0; border: 0; background: none;
  font: inherit; font-size: 14.5px; font-weight: 680; color: var(--ink-900);
  cursor: pointer; border-top: 1px solid var(--ink-100);
}
.group-head:first-child { border-top: 0; }
.group-head .chev { color: var(--ink-400); transition: transform .2s; font-size: 12px; }
.group-head[aria-expanded="true"] .chev { transform: rotate(90deg); }
.group-total { font-variant-numeric: tabular-nums; color: var(--ink-500); font-weight: 650; margin-left: auto; margin-right: 10px; }

/* Metric grid */
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.metric {
  background: var(--surface-alt);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-sm);
  padding: 13px;
}
.metric-label { font-size: 11.5px; color: var(--ink-500); font-weight: 600; }
.metric-value { font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-top: 3px; font-variant-numeric: tabular-nums; }

/* Ratio meters */
.meter { margin-bottom: 14px; }
.meter-head { display: flex; justify-content: space-between; font-size: 12.8px; margin-bottom: 6px; }
.meter-name { font-weight: 620; color: var(--ink-700); }
.meter-val { font-variant-numeric: tabular-nums; font-weight: 650; }
.meter-track { height: 8px; border-radius: 4px; background: var(--ink-100); position: relative; overflow: hidden; }
.meter-fill { height: 100%; border-radius: 4px; background: var(--leaf-500); transition: width .4s; }
.meter-fill--warn { background: var(--peach-400); }
.meter-fill--over { background: var(--danger); }
.meter-limit {
  position: absolute; top: -2px; bottom: -2px; width: 2px;
  background: var(--ink-400); border-radius: 1px;
}

/* Callout */
.callout {
  display: flex; gap: 11px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  background: var(--peach-50);
  font-size: 13px; line-height: 1.5; color: var(--ink-700);
}
.callout--warn { background: #FEF6E7; }
.callout--error { background: var(--danger-bg); color: #8E2A23; }
.callout-icon { flex: 0 0 auto; font-size: 15px; line-height: 1.35; }

/* Chart */
.chart { width: 100%; height: 190px; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 12px; }
.legend-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-600); }
.legend-swatch { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }

/* ------------------------------------------------------------------
 * Tab bar
 * ---------------------------------------------------------------- */

.tabbar {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: flex;
  background: rgba(255,255,255,.93);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--ink-200);
  z-index: 40;
}

.tab {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  border: 0; background: none; padding: 6px 0 4px;
  font: inherit; font-size: 10.5px; font-weight: 620;
  color: var(--ink-400);
  cursor: pointer;
  transition: color .15s;
}
.tab svg { width: 22px; height: 22px; }
.tab[aria-selected="true"] { color: var(--peach-600); }
.tab:active { transform: scale(.94); }

/* ------------------------------------------------------------------
 * Splash + onboarding
 * ---------------------------------------------------------------- */

#splash {
  background: linear-gradient(165deg, #FFFCF7 0%, var(--peach-50) 100%);
  align-items: center; justify-content: center;
  z-index: 100;
}
.splash-mark { animation: pop .7s cubic-bezier(.2,1.2,.4,1); }
@keyframes pop {
  0% { opacity: 0; transform: scale(.82); }
  60% { opacity: 1; transform: scale(1.03); }
  100% { transform: scale(1); }
}
.splash-word {
  margin-top: 18px; text-align: center;
  font-size: 15px; letter-spacing: .34em; text-transform: uppercase;
  color: var(--peach-600); font-weight: 600;
  animation: fadeUp .6s .25s both;
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.onb {
  flex: 1; display: flex; flex-direction: column;
  padding: 0 24px calc(28px + env(safe-area-inset-bottom, 0px));
}
.onb-art {
  flex: 1; display: grid; place-items: center; padding: 20px 0;
  min-height: 190px;
}
.onb-art svg { width: 100%; max-width: 250px; height: auto; }
.onb-kicker {
  text-align: center; font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--peach-600);
  margin-bottom: 10px;
}
.onb-title { text-align: center; font-size: 26px; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.onb-text { text-align: center; color: var(--ink-500); font-size: 14.5px; margin-top: 10px; line-height: 1.55; }
.dots { display: flex; justify-content: center; gap: 7px; margin: 24px 0 18px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-200); transition: all .25s; }
.dot.on { width: 22px; border-radius: 4px; background: var(--peach-500); }
.onb-foot { display: flex; align-items: center; gap: 12px; }
.onb-foot .btn { flex: 1; }

/* ------------------------------------------------------------------
 * Saved list rows with swipe-to-reveal
 * ---------------------------------------------------------------- */

.swipe { position: relative; overflow: hidden; border-radius: var(--radius); margin-bottom: 10px; }
.swipe-actions {
  position: absolute; inset: 0 0 0 auto;
  display: flex;
}
.swipe-action {
  width: 68px; border: 0; cursor: pointer;
  display: grid; place-items: center;
  font-size: 18px; color: #fff;
}
.swipe-action--share { background: var(--ink-700); }
.swipe-action--delete { background: var(--danger); }
.swipe-face {
  position: relative;
  background: var(--surface);
  padding: 14px 16px;
  display: flex; align-items: center; gap: 12px;
  transition: transform .22s cubic-bezier(.22,.7,.3,1);
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius);
  cursor: pointer;
}
.swipe.open .swipe-face { transform: translateX(-136px); }

.empty {
  text-align: center; padding: 48px 24px;
  color: var(--ink-400);
}
.empty-icon { font-size: 40px; margin-bottom: 12px; opacity: .55; }
.empty-title { font-size: 16px; font-weight: 650; color: var(--ink-700); }
.empty-text { font-size: 13.5px; margin-top: 6px; line-height: 1.55; }

/* ------------------------------------------------------------------
 * Menu rows
 * ---------------------------------------------------------------- */

.menu { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.menu-row {
  display: flex; align-items: center; gap: 13px;
  width: 100%; padding: 15px 16px;
  border: 0; border-top: 1px solid var(--ink-100);
  background: none; font: inherit; font-size: 15px; color: inherit;
  text-align: left; cursor: pointer;
}
.menu-row:first-child { border-top: 0; }
.menu-row:hover { background: var(--surface-alt); }
.menu-row .menu-icon { width: 22px; text-align: center; font-size: 17px; }
.menu-row .menu-label { flex: 1; font-weight: 580; }
.menu-row .menu-chev { color: var(--ink-300); }

/* Checklist */
.checkitem {
  display: flex; gap: 12px; align-items: flex-start;
  width: 100%; padding: 14px 16px; border: 0; border-top: 1px solid var(--ink-100);
  background: none; font: inherit; text-align: left; cursor: pointer; color: inherit;
}
.checkitem:first-child { border-top: 0; }
.checkbox {
  flex: 0 0 auto; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 7px; border: 2px solid var(--ink-200);
  display: grid; place-items: center;
  color: #fff; font-size: 12px; transition: all .15s;
}
.checkitem[aria-checked="true"] .checkbox { background: var(--leaf-500); border-color: var(--leaf-500); }
.checkitem[aria-checked="true"] .checklabel { color: var(--ink-400); text-decoration: line-through; }
.checklabel { font-size: 14.5px; font-weight: 570; line-height: 1.4; }
.checkdesc { font-size: 12.5px; color: var(--ink-500); margin-top: 2px; }

/* ------------------------------------------------------------------
 * Modal
 * ---------------------------------------------------------------- */

.modal-scrim {
  position: absolute; inset: 0; z-index: 200;
  background: rgba(29,31,43,.42);
  display: grid; place-items: center;
  padding: 24px;
  animation: fade .18s;
}
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }
.modal {
  width: 100%; max-width: 330px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 22px 20px 18px;
  animation: popIn .22s cubic-bezier(.2,1.1,.4,1);
}
@keyframes popIn { from { opacity: 0; transform: scale(.94) } to { opacity: 1; transform: none } }
.modal-title { font-size: 17px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.modal-text { font-size: 13.5px; color: var(--ink-500); text-align: center; line-height: 1.55; margin-bottom: 16px; }

/* Toast */
.toast {
  position: absolute; left: 16px; right: 16px;
  bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px));
  z-index: 300;
  background: var(--ink-900); color: #fff;
  padding: 13px 16px; border-radius: var(--radius);
  font-size: 13.5px; font-weight: 570;
  box-shadow: var(--shadow-lg);
  animation: toastIn .25s cubic-bezier(.2,1,.4,1);
}
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

/* Print */
@media print {
  body { background: #fff; }
  #app { max-width: none; height: auto; box-shadow: none; border-radius: 0; overflow: visible; }
  .tabbar, .hdr .icon-btn, .btn, .linkbtn, .toast { display: none !important; }
  .screen { position: static; }
  .body { overflow: visible; padding: 0; }
  .sheet, .card, .result-hero, .step-card { box-shadow: none; border: 1px solid #ddd; margin-top: 0; break-inside: avoid; }
  .hdr { background: none !important; color: #000 !important; padding: 0 0 12px; }
}
