/* Screen for budget wizard */
.bwiz-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 32px;
}
.bwiz-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 4vw, 32px);
  line-height: 1.2;
  margin-bottom: 10px;
}
.bwiz-sub {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.bwiz-progress {
  display: flex;
  gap: 6px;
  max-width: 560px;
  margin: 0 auto 28px;
}
.bwiz-pip {
  flex: 1; height: 4px; border-radius: 99px;
  background: var(--surface3);
  transition: background 0.4s ease;
}
.bwiz-pip.done { background: var(--hope); }
.bwiz-pip.active { background: var(--warm); }

/* Income card */
.bwiz-income-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 560px;
  margin: 0 auto 20px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.04);
}
.bwiz-income-label {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  margin-bottom: 6px;
}
.bwiz-income-hint { font-size: 13px; color: var(--ink-muted); margin-bottom: 16px; }
.bwiz-income-row { display: flex; gap: 10px; align-items: center; }
.bwiz-income-row .form-input { flex: 1; font-size: 22px; font-family: 'Fraunces', serif; text-align: right; }

/* Category cards grid */
.bwiz-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.bwiz-cat {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.bwiz-cat.has-data {
  border-color: rgba(42,125,111,0.4);
  box-shadow: 0 2px 12px rgba(42,125,111,0.08);
}
.bwiz-cat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.bwiz-cat-ico { font-size: 20px; flex-shrink: 0; }
.bwiz-cat-info { flex: 1; min-width: 0; }
.bwiz-cat-name { font-weight: 700; font-size: 14px; }
.bwiz-cat-total { font-size: 13px; color: var(--ink-muted); margin-top: 1px; }
.bwiz-cat-total.nonzero { color: var(--hope); font-weight: 600; }
.bwiz-cat-toggle {
  font-size: 18px; color: var(--ink-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
}
.bwiz-cat.open .bwiz-cat-toggle { transform: rotate(180deg); }

.bwiz-cat-body {
  display: none;
  padding: 0 16px 16px;
  border-top: 1px solid var(--border);
}
.bwiz-cat.open .bwiz-cat-body { display: block; }

/* Suggestion chips */
.bwiz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
  padding-top: 12px;
}
.bwiz-chip {
  padding: 6px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--border2);
  background: var(--surface2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  color: var(--ink-soft);
}
.bwiz-chip:hover { border-color: var(--hope); color: var(--hope); background: var(--hope-light); }
.bwiz-chip.selected { border-color: var(--hope); background: var(--hope-light); color: var(--hope); }

/* Line items */
.bwiz-lines { display: flex; flex-direction: column; gap: 8px; }
.bwiz-line {
  display: flex;
  gap: 8px;
  align-items: center;
}
.bwiz-line input[type="text"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  font-size: 13px;
  background: var(--surface);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
}
.bwiz-line input[type="text"]:focus { outline: none; border-color: var(--hope); }
.bwiz-line input[type="number"] {
  width: 100px;
  padding: 8px 10px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  font-size: 13px;
  text-align: right;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Fraunces', serif;
}
.bwiz-line input[type="number"]:focus { outline: none; border-color: var(--hope); }
.bwiz-line-del {
  width: 28px; height: 28px;
  border: none; background: none;
  cursor: pointer; color: var(--ink-muted);
  font-size: 16px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bwiz-line-del:hover { background: var(--soft-red-dim); color: var(--soft-red); }

.bwiz-add-line {
  margin-top: 8px;
  background: none;
  border: 1px dashed var(--border2);
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  color: var(--ink-muted);
  cursor: pointer;
  width: 100%;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.bwiz-add-line:hover { border-color: var(--hope); color: var(--hope); }

/* Summary footer */
.bwiz-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 560px;
  margin: 0 auto 24px;
}
.bwiz-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 0;
  font-size: 14px;
  border-bottom: 1px dashed var(--border);
}
.bwiz-sum-row:last-child { border-bottom: none; }
.bwiz-sum-row.total {
  font-weight: 700;
  font-size: 16px;
  color: var(--calm);
  padding-top: 12px;
  margin-top: 4px;
}
.bwiz-sum-row.available {
  font-weight: 700;
  font-size: 16px;
  color: var(--hope);
}
.bwiz-sum-row.warning { color: var(--soft-red); }

.bwiz-actions {
  display: flex;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.bwiz-skip {
  font-size: 13px;
  color: var(--ink-muted);
  text-align: center;
  margin-top: 12px;
  max-width: 560px;
  margin-left: auto; margin-right: auto;
}
.bwiz-skip button {
  background: none; border: none; cursor: pointer;
  color: var(--ink-muted); font-size: 13px;
  text-decoration: underline;
  font-family: 'DM Sans', sans-serif;
}
.bwiz-skip button:hover { color: var(--ink); }

/* Setup completion banner */
.setup-banner {
  background: linear-gradient(135deg, var(--hope-dim), rgba(74,111,165,0.08));
  border: 1px solid rgba(42,125,111,0.25);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 620px;
  margin-left: auto; margin-right: auto;
}
.setup-banner-icon { font-size: 28px; flex-shrink: 0; }
.setup-banner-text { flex: 1; }
.setup-banner-title { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.setup-banner-sub { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.setup-banner-bar {
  height: 6px;
  background: var(--surface3);
  border-radius: 99px;
  margin-top: 8px;
  overflow: hidden;
}
.setup-banner-fill {
  height: 100%;
  background: var(--hope);
  border-radius: 99px;
  transition: width 0.6s ease;
}

/* Economy wizard legacy (kept for editor) */

/* Auth and privacy gate */
body.auth-loading .app,
body.auth-required .app,
body.privacy-locked .app {
  visibility: hidden;
}

.auth-gate,
.privacy-lock-gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(20px, env(safe-area-inset-top)) 18px max(20px, env(safe-area-inset-bottom));
}

.auth-gate.hidden,
.privacy-lock-gate.hidden {
  display: none;
}

.auth-gate-backdrop,
.privacy-lock-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top, rgba(42, 125, 111, 0.08), transparent 45%),
    rgba(249, 246, 241, 0.97);
}

.auth-card,
.privacy-lock-card {
  position: relative;
  width: min(100%, 420px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px 22px;
  box-shadow: 0 18px 48px rgba(19, 28, 24, 0.12);
}

.auth-kicker,
.privacy-lock-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
}

.auth-title,
.privacy-lock-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1.05;
  margin-bottom: 10px;
}

.auth-sub,
.privacy-lock-sub {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 18px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}

.auth-tab {
  border: 1px solid var(--border2);
  background: var(--surface2);
  color: var(--ink-soft);
  border-radius: 14px;
  padding: 11px 8px;
  font: 600 13px 'DM Sans', sans-serif;
}

.auth-tab.active {
  border-color: rgba(42, 125, 111, 0.22);
  background: rgba(42, 125, 111, 0.1);
  color: var(--hope);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}

.auth-input {
  border: 1px solid var(--border2);
  background: var(--surface2);
  border-radius: 14px;
  padding: 13px 14px;
  font: 500 15px 'DM Sans', sans-serif;
  color: var(--ink);
}

.auth-input:focus {
  outline: none;
  border-color: rgba(42, 125, 111, 0.4);
  box-shadow: 0 0 0 3px rgba(42, 125, 111, 0.08);
}

.auth-message,
.auth-note,
.privacy-lock-note {
  border-radius: 14px;
  padding: 12px 13px;
  font-size: 12px;
  line-height: 1.55;
}

.auth-note,
.privacy-lock-note {
  background: var(--surface2);
  color: var(--ink-muted);
  border: 1px solid var(--border);
}

.auth-note--warn,
.auth-message--error {
  background: rgba(196, 87, 42, 0.08);
  color: #8c4a2f;
  border: 1px solid rgba(196, 87, 42, 0.18);
}

.auth-message--info {
  background: rgba(42, 125, 111, 0.08);
  color: var(--hope);
  border: 1px solid rgba(42, 125, 111, 0.18);
}

.auth-submit,
.privacy-lock-btn {
  width: 100%;
  margin-top: 4px;
}

.auth-foot {
  margin-top: 16px;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.6;
}

.privacy-lock-card {
  text-align: center;
}

.privacy-lock-note {
  margin-top: 14px;
  text-align: left;
}
.eco-wizard{ max-width: 980px; }
.eco-wiz-card{
  background: var(--surface-overlay);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 14px 44px rgba(15,20,26,0.08);
}
.eco-wiz-steps{
  display:flex; align-items:center; gap: 10px;
  margin-bottom: 14px;
}
.eco-wiz-step{
  width: 30px; height: 30px; border-radius: 999px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(17,20,24,0.06);
  color: rgba(17,20,24,0.8);
  font-weight: 800;
}
.eco-wiz-step.active{
  background: rgba(34,197,94,0.16);
  color: rgba(17,20,24,0.92);
  border: 1px solid rgba(34,197,94,0.35);
}
.eco-wiz-line{ flex:1; height: 2px; background: rgba(17,20,24,0.08); border-radius: 99px; }
.eco-wiz-title{ font-size: 18px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 6px; }
.eco-wiz-sub{ opacity: 0.9; margin-bottom: 12px; line-height: 1.45; }
.eco-wiz-field label{ display:block; font-weight: 700; margin-bottom: 6px; }
.eco-wiz-field input{ width:100%; max-width: 420px; }
.eco-wiz-hint{ font-size: 12px; opacity: 0.88; margin-top: 10px; }
.eco-wiz-summary{
  max-width: 520px;
  border: 1px solid rgba(17,20,24,0.10);
  border-radius: 14px;
  padding: 12px 12px;
  background: var(--surface-overlay);
}
.eco-wiz-sumrow{
  display:flex; justify-content:space-between; align-items:center;
  padding: 6px 2px;
  border-bottom: 1px dashed rgba(17,20,24,0.08);
}
.eco-wiz-sumrow:last-child{ border-bottom: none; }
.eco-wiz-sumrow.total strong{ color: var(--calm); }
.eco-wiz-choice{ margin-top: 12px; }
.eco-wiz-footer{
  display:flex; justify-content:space-between; align-items:center;
  gap: 14px; margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(17,20,24,0.08);
}
.eco-topbar{
  display:flex; justify-content:space-between; align-items:center;
  margin: 6px 0 10px;
}
.eco-topbar-title{ font-weight: 900; letter-spacing: -0.01em; opacity: 0.92; }
.eco-topbar-actions{ display:flex; gap: 10px; }


/* ── Back button ── */
.back-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--ink-muted); padding: 6px 0;
  transition: color 0.15s; margin-bottom: 8px;
}
.back-btn:hover { color: var(--ink); }
.back-btn svg { transition: transform 0.15s; }
.back-btn:hover svg { transform: translateX(-2px); }


/* ── Priority payment advice ── */
.priority-card {
  background: linear-gradient(135deg, rgba(74,111,165,0.06), rgba(42,125,111,0.04));
  border: 1.5px solid rgba(74,111,165,0.2);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 20px;
}
.priority-title {
  font-family: 'Fraunces', serif;
  font-size: 16px; font-weight: 600;
  margin-bottom: 4px; color: var(--ink);
}
.priority-sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.5; }
.priority-list { display: flex; flex-direction: column; gap: 8px; }
.prio-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}
.prio-rank {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; flex-shrink: 0; margin-top: 1px;
}
.prio-1 { background: var(--soft-red-dim); color: var(--soft-red); border: 1.5px solid color-mix(in srgb, var(--soft-red) 30%, transparent); }
.prio-2 { background: var(--warm-dim); color: var(--warm); border: 1.5px solid color-mix(in srgb, var(--warm) 30%, transparent); }
.prio-3 { background: var(--sun-dim); color: var(--sun); border: 1.5px solid color-mix(in srgb, var(--sun) 30%, transparent); }
.prio-4 { background: var(--calm-dim); color: var(--calm); border: 1.5px solid color-mix(in srgb, var(--calm) 30%, transparent); }
.prio-5 { background: var(--hope-dim); color: var(--hope); border: 1.5px solid color-mix(in srgb, var(--hope) 30%, transparent); }
.prio-info { flex: 1; }
.prio-name { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.prio-why { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }

/* ── Bank structure tip ── */
.bank-structure-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 16px;
}
.bank-structure-title {
  font-family: 'Fraunces', serif;
  font-size: 16px; margin-bottom: 4px;
}
.bank-structure-sub { font-size: 13px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.5; }
.bank-flow {
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.bank-node {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  position: relative; z-index: 1;
}
.bank-node.income { background: rgba(42,125,111,0.07); border-color: rgba(42,125,111,0.25); }
.bank-node.hub { background: rgba(74,111,165,0.07); border-color: rgba(74,111,165,0.25); }
.bank-node.sub { background: var(--surface2); margin-left: 24px; font-size: 12px; }
.bank-node-ico { font-size: 18px; flex-shrink: 0; }
.bank-node-info { flex: 1; }
.bank-node-name { font-weight: 700; }
.bank-node-desc { font-size: 12px; color: var(--ink-muted); margin-top: 1px; }
.bank-arrow {
  display: flex; align-items: center; gap: 6px;
  padding: 3px 14px 3px 26px;
  font-size: 11px; color: var(--ink-muted);
}
.bank-arrow-sub { padding-left: 50px; }


/* ── Priority badges on debt cards ── */
.debt-prio-pip {
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── Priority badge in snowball timeline ── */
.prio-badge {
  display: inline-block;
  font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 100px;
  margin: 3px 0 2px;
  letter-spacing: 0.01em;
}

/* ── Warning strip in snowball timeline ── */
.sb-priority-warn {
  padding: 8px 14px;
  font-size: 12px; line-height: 1.5;
  background: rgba(0,0,0,0.02);
  margin: 0 12px 8px;
  border-radius: 8px;
}

/* ══════════════════════════════════════
   HIERARKI PAGE
   ══════════════════════════════════════ */
.hier-page {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.hier-hero {
  text-align: center;
  padding: 12px 0 28px;
}
.hier-hero-ico { font-size: 40px; margin-bottom: 10px; }
.hier-hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
  margin-bottom: 12px;
}
.hier-hero-sub {
  font-size: 15px; color: var(--ink-soft);
  max-width: 520px; margin: 0 auto; line-height: 1.6;
}
.hier-hero-sub em { color: var(--hope); font-style: italic; }

.hier-intro-box {
  background: var(--calm-dim);
  border: 1px solid rgba(74,111,165,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px; line-height: 1.6;
  margin-bottom: 28px;
  color: var(--ink-soft);
}
.hier-intro-box strong { color: var(--ink); }

.hier-levels {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hier-level {
  border: 1.5px solid rgba(0,0,0,0.07);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}
.hier-level:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.hier-level-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  cursor: pointer;
  background: var(--surface);
  user-select: none;
}

.hier-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
  color: var(--text-on-accent);
  flex-shrink: 0;
}

.hier-level-title {
  flex: 1;
  font-weight: 700; font-size: 14px;
}

.hier-chip {
  font-size: 10px; font-weight: 800;
  padding: 3px 10px; border-radius: 100px;
  letter-spacing: 0.05em; text-transform: uppercase;
  flex-shrink: 0;
}
.hier-chip.danger { background: var(--soft-red-dim); color: var(--soft-red); }
.hier-chip.warn   { background: var(--sun-dim); color: var(--sun); }
.hier-chip.ok     { background: rgba(42,125,111,0.10); color: var(--hope); }
.hier-chip.low    { background: var(--surface2); color: var(--ink-muted); }

.hier-level-body {
  padding: 0 18px 18px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hier-why-title,
.hier-ex-title,
.hier-action-title {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-muted);
  margin-bottom: 5px;
  margin-top: 14px;
}

.hier-why p,
.hier-action p {
  font-size: 13px; color: var(--ink-soft);
  line-height: 1.65; margin: 0;
}
.hier-why p strong,
.hier-action p strong { color: var(--ink); }
.hier-why p em { color: var(--warm); font-style: normal; font-weight: 600; }
.hier-action p em { color: var(--warm); font-style: normal; font-weight: 600; }

.hier-tags {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.hier-tag {
  padding: 4px 10px; border-radius: 100px;
  border: 1px solid var(--border2);
  background: var(--surface2);
  font-size: 12px; color: var(--ink-soft);
}

.hier-timeline {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 4px;
}
.hier-tl-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-soft);
}
.hier-tl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  flex-shrink: 0;
}

/* Resources section */
.hier-resources {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.hier-res-title {
  font-weight: 700; font-size: 14px;
  margin-bottom: 14px;
}
.hier-res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.hier-res-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: all 0.15s;
}
.hier-res-card:hover {
  border-color: var(--hope);
  background: var(--hope-light);
  transform: translateY(-1px);
}
.hier-res-ico { font-size: 20px; margin-bottom: 6px; }
.hier-res-name { font-weight: 700; font-size: 13px; margin-bottom: 3px; }
.hier-res-desc { font-size: 11px; color: var(--ink-muted); line-height: 1.4; }

/* Bottom tip */
.hier-bottom-tip {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--hope-dim);
  border: 1px solid rgba(42,125,111,0.2);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-top: 20px;
  font-size: 13px; line-height: 1.6;
  color: var(--ink-soft);
}
.hier-tip-ico { font-size: 22px; flex-shrink: 0; margin-top: 1px; }
.hier-bottom-tip strong { color: var(--ink); }
.hier-bottom-tip em { color: var(--hope); font-style: italic; }


.hier-link-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600;
  color: var(--calm); padding: 0;
  text-decoration: underline;
  display: inline;
}
.hier-link-btn:hover { color: var(--ink); }


/* ══════════════════════════════════════
   PSYKOLOGISK BACKING (startskjerm)
   ══════════════════════════════════════ */
.rights-backing {
  max-width: 620px; margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(74,111,165,0.06) 0%, rgba(42,125,111,0.04) 100%);
  border: 1.5px solid rgba(74,111,165,0.18);
  border-radius: var(--radius);
  padding: 16px 18px;
  display: flex; gap: 14px; align-items: flex-start;
}
.rb-ico { font-size: 26px; flex-shrink: 0; margin-top: 2px; }
.rb-content { flex: 1; }
.rb-title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 10px; }
.rb-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.rb-pill {
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: 100px;
  background: rgba(42,125,111,0.09);
  border: 1px solid rgba(42,125,111,0.2);
  color: var(--hope);
}
.rb-link {
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 700;
  color: var(--calm); padding: 0;
  text-decoration: underline; text-underline-offset: 2px;
}
.rb-link:hover { color: var(--ink); }

/* ══════════════════════════════════════
   RETTIGHETER / HIERARKI PAGE
   ══════════════════════════════════════ */
.hier-page { max-width: 720px; margin: 0 auto; padding-bottom: 40px; }

.hier-hero { text-align: center; padding: 12px 0 24px; }
.hier-hero-ico { font-size: 40px; margin-bottom: 10px; }
.hier-hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 4vw, 32px); line-height: 1.2; margin-bottom: 12px;
}
.hier-hero-sub {
  font-size: 14px; color: var(--ink-soft);
  max-width: 540px; margin: 0 auto; line-height: 1.65;
}

.hier-intro-box {
  background: var(--calm-dim);
  border: 1px solid rgba(74,111,165,0.2);
  border-radius: var(--radius-sm);
  padding: 14px 18px; font-size: 13px; line-height: 1.6;
  margin-bottom: 28px; color: var(--ink-soft);
}
.hier-intro-box strong { color: var(--ink); }

/* Rights sections (accordion) */
.rights-sections { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }

.rights-block {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
  background: var(--surface);
}
.rights-block.open { box-shadow: 0 4px 24px rgba(0,0,0,0.08); }

.rights-block-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; cursor: pointer;
  user-select: none;
}
.rights-block-head:hover { background: var(--surface2); }
.rights-block-ico { font-size: 22px; flex-shrink: 0; }
.rights-block-info { flex: 1; }
.rights-block-title { font-weight: 700; font-size: 13px; }
.rights-block-sub { font-size: 11px; color: var(--ink-muted); margin-top: 2px; }

.rights-block-chip {
  font-size: 10px; font-weight: 800;
  padding: 3px 10px; border-radius: 100px;
  letter-spacing: 0.05em; text-transform: uppercase;
  flex-shrink: 0; white-space: nowrap;
  background: var(--surface2); color: var(--ink-muted);
}
.rights-block-chip.important { background: var(--soft-red-dim); color: var(--soft-red); }
.rights-block-chip.low { background: var(--surface2); color: var(--ink-muted); }

.rights-toggle-arrow {
  font-size: 18px; color: var(--ink-muted); flex-shrink: 0;
  transition: transform 0.2s;
}
.rights-block.open .rights-toggle-arrow { transform: rotate(180deg); }

.rights-block-body {
  display: none;
  padding: 0 18px 20px;
  border-top: 1px solid var(--border);
}
.rights-block.open .rights-block-body { display: block; }

/* Rule cards inside blocks */
.rights-rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 10px; margin-top: 16px; margin-bottom: 14px;
}
.rights-rule-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.rights-rule-card.warn {
  background: rgba(232,160,32,0.06);
  border-color: rgba(232,160,32,0.25);
}
.rights-rule-num {
  font-family: 'Fraunces', serif;
  font-size: 26px; font-weight: 300;
  color: var(--ink); margin-bottom: 4px;
}
.rights-rule-label { font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.rights-rule-desc { font-size: 11px; color: var(--ink-muted); line-height: 1.5; }
.rights-rule-desc em { color: var(--warm); font-style: normal; font-weight: 600; }

/* Fee table */
.rights-fee-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden; margin: 16px 0;
}
.rights-fee-head {
  display: grid; grid-template-columns: 1fr auto;
  padding: 8px 14px; background: var(--surface2);
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-muted);
  border-bottom: 1px solid var(--border);
}
.rights-fee-row {
  display: grid; grid-template-columns: 1fr auto;
  padding: 9px 14px; font-size: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
}
.rights-fee-row:last-child { border-bottom: none; }
.rights-fee-row.highlight { background: rgba(42,125,111,0.04); }
.rights-fee-val { font-weight: 700; color: var(--ink); white-space: nowrap; padding-left: 12px; }

/* Callouts */
.rights-callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.6; margin: 12px 0;
}
.rights-callout.warn { background: var(--sun-dim); border: 1px solid color-mix(in srgb, var(--sun) 28%, transparent); }
.rights-callout.tip  { background: var(--hope-dim); border: 1px solid rgba(42,125,111,0.15); }
.rights-callout-ico { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.rights-callout strong { color: var(--ink); }
.rights-callout em { color: var(--warm); font-style: normal; font-weight: 600; }

/* Letter preview */
.rights-action { margin-top: 14px; }
.rights-action-title {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--ink-muted); margin-bottom: 8px;
}
.rights-letter-preview {
  background: var(--surface3, var(--surface2));
  border: 1px solid var(--border);
  border-left: 3px solid var(--calm);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px; line-height: 1.7;
  color: var(--ink-soft);
  font-style: italic;
  white-space: pre-wrap;
}
.rights-law-ref {
  font-size: 11px; color: var(--ink-muted);
  margin-top: 14px; padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Tags */
.rights-tags-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.rights-tag {
  font-size: 11px; padding: 4px 10px; border-radius: 100px;
  background: var(--surface2); border: 1px solid var(--border2);
  color: var(--ink-soft);
}

/* External links */
.rights-ext-link {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 600;
  padding: 6px 12px; border-radius: var(--radius-sm);
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--calm); text-decoration: none;
  transition: all 0.15s;
}
.rights-ext-link:hover { border-color: var(--calm); background: var(--calm-dim); }

/* Go-to button */
.rights-goto-btn {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700;
  padding: 7px 14px; border-radius: var(--radius-sm);
  background: var(--hope-dim); border: 1px solid rgba(42,125,111,0.25);
  color: var(--hope); cursor: pointer; font-family: 'DM Sans', sans-serif;
  transition: all 0.15s;
}
.rights-goto-btn:hover { background: var(--hope); color: var(--text-on-accent); }

/* Divider between sections */
.hier-divider {
  display: flex; align-items: center; gap: 14px;
  margin: 32px 0 20px;
}
.hier-divider-line { flex: 1; height: 1px; background: var(--border); }
.hier-divider-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ink-muted); white-space: nowrap;
}

/* Hierarki levels (reused from before) */
.hier-levels { display: flex; flex-direction: column; gap: 10px; }
.hier-level {
  border: 1.5px solid rgba(0,0,0,0.07);
  border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
  transition: box-shadow 0.2s;
}
.hier-level:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.hier-level-head {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; background: var(--surface);
}
.hier-badge {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: var(--text-on-accent); flex-shrink: 0;
}
.hier-level-title { flex: 1; font-weight: 700; font-size: 13px; }
.hier-chip {
  font-size: 10px; font-weight: 800; padding: 3px 10px; border-radius: 100px;
  letter-spacing: 0.05em; text-transform: uppercase; flex-shrink: 0;
}
.hier-chip.danger { background: var(--soft-red-dim); color: var(--soft-red); }
.hier-chip.warn   { background: var(--sun-dim); color: var(--sun); }
.hier-chip.ok     { background: rgba(42,125,111,0.10); color: var(--hope); }
.hier-chip.low    { background: var(--surface2); color: var(--ink-muted); }
.hier-level-body { padding: 0 16px 16px; border-top: 1px solid var(--border); }

.hier-bottom-tip {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--hope-dim); border: 1px solid rgba(42,125,111,0.2);
  border-radius: var(--radius-sm); padding: 16px 18px;
  margin-top: 20px; font-size: 13px; line-height: 1.6; color: var(--ink-soft);
}
.hier-tip-ico { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.hier-bottom-tip em { color: var(--hope); font-style: italic; }

/* hier-link-btn */
.hier-link-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; font-weight: 600; color: var(--calm); padding: 0;
  text-decoration: underline; display: inline;
}
.hier-link-btn:hover { color: var(--ink); }


/* ── App-feel — safe areas, scroll behaviour ── */
body {
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}
.screen {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.nav-tabs {
  padding-top: env(safe-area-inset-top, 0px);
}
#mainHeader {
  padding-top: env(safe-area-inset-top, 0px);
}

/* ── Privacy page ── */
.privacy-page { max-width: 680px; margin: 0 auto; padding-bottom: 40px; }
.privacy-hero { text-align: center; padding: 12px 0 24px; }
.privacy-hero-ico { font-size: 38px; margin-bottom: 10px; }
.privacy-hero-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(22px, 4vw, 30px); margin-bottom: 10px;
}
.privacy-hero-sub {
  font-size: 14px; color: var(--ink-soft); line-height: 1.65; max-width: 500px; margin: 0 auto;
}
.privacy-hero-sub strong { color: var(--ink); }

.local-only-banner {
  display: flex; align-items: center; gap: 14px;
  background: linear-gradient(135deg, rgba(42,125,111,0.08), rgba(74,111,165,0.05));
  border: 1.5px solid rgba(42,125,111,0.22);
  border-radius: var(--radius);
  padding: 16px 18px; margin-bottom: 24px;
}
.local-only-icon { font-size: 28px; flex-shrink: 0; }
.local-only-text { flex: 1; }
.local-only-title { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.local-only-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.5; }
.local-only-desc code { font-size: 11px; background: var(--surface2); padding: 1px 4px; border-radius: 4px; }
.local-only-badge {
  background: var(--hope); color: var(--text-on-accent);
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.07em;
  padding: 4px 10px; border-radius: 100px; flex-shrink: 0;
}

.privacy-sections { display: flex; flex-direction: column; gap: 12px; }
.privacy-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.privacy-block.danger-zone { border-color: rgba(201,75,75,0.2); }
.privacy-block-title {
  font-weight: 700; font-size: 13px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--surface2);
}
.privacy-block.danger-zone .privacy-block-title { color: var(--soft-red); background: var(--soft-red-dim); border-color: rgba(201,75,75,0.12); }
.privacy-block-body { padding: 16px 18px; }
.privacy-info-list{ display:flex; flex-direction:column; gap:10px; }
.privacy-info-row{ display:grid; grid-template-columns:28px 1fr; gap:10px; align-items:flex-start; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:10px 12px; }
.privacy-info-ico{ font-size:18px; line-height:1.2; }
.privacy-info-title{ font-size:13px; font-weight:800; color:var(--ink); margin-bottom:2px; }
.privacy-info-text{ font-size:12px; color:var(--ink-soft); line-height:1.5; }
.privacy-delete-line{ margin-top:10px; font-size:12px; color:var(--ink-soft); line-height:1.5; }

.privacy-data-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px,1fr)); gap: 10px; margin-bottom: 14px;
}
.privacy-data-item {
  background: var(--surface2); border-radius: var(--radius-sm);
  padding: 12px; text-align: center;
}
.privacy-data-ico { font-size: 22px; margin-bottom: 6px; }
.privacy-data-label { font-weight: 700; font-size: 12px; margin-bottom: 4px; }
.privacy-data-desc { font-size: 11px; color: var(--ink-muted); line-height: 1.4; }
.privacy-note {
  background: var(--surface2); border-radius: var(--radius-sm);
  padding: 10px 13px; font-size: 12px; color: var(--ink-soft); line-height: 1.5;
}
.privacy-note.warn { background: var(--sun-dim); border: 1px solid color-mix(in srgb, var(--sun) 28%, transparent); }
.privacy-note strong { color: var(--ink); }

.local-sync-table {
  border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 14px;
}
.lst-head { display: grid; grid-template-columns: 1.5fr 1fr 1fr; padding: 8px 12px;
  background: var(--surface2); font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-muted); border-bottom: 1px solid var(--border); }
.lst-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; padding: 9px 12px;
  font-size: 12px; border-bottom: 1px solid var(--border); }
.lst-row:last-child { border-bottom: none; }
.lst-col.feature { color: var(--ink-soft); }
.lst-yes { color: var(--hope); font-weight: 700; }
.lst-no  { color: var(--soft-red); font-weight: 700; }
.lst-future { color: var(--ink-muted); }

.privacy-third-list { display: flex; flex-direction: column; gap: 10px; }
.privacy-third-item {
  display: grid; grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 4px 12px;
  padding: 12px 14px;
  background: var(--surface2); border-radius: var(--radius-sm);
}
.privacy-third-name { font-weight: 700; font-size: 13px; }
.privacy-third-desc { font-size: 12px; color: var(--ink-soft); line-height: 1.5; grid-column: 1; }
.privacy-third-risk {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 3px 8px; border-radius: 100px; align-self: start;
  grid-row: 1;
}
.privacy-third-risk.low  { background: var(--hope-dim); color: var(--hope); }
.privacy-third-risk.none { background: rgba(42,125,111,0.08); color: var(--hope); }

.privacy-rights-grid { display: flex; flex-direction: column; gap: 10px; }
.privacy-right-item {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 10px 13px; background: var(--surface2); border-radius: var(--radius-sm);
  font-size: 13px; line-height: 1.5; color: var(--ink-soft);
}
.privacy-right-ico { font-size: 18px; flex-shrink: 0; }
.privacy-right-text strong { color: var(--ink); }

.privacy-footer {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.privacy-footer-title {
  font-weight: 800; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 10px 18px; background: var(--surface2); border-bottom: 1px solid var(--border);
  color: var(--ink-muted);
}
.privacy-footer-text {
  padding: 16px 18px; font-size: 12px; color: var(--ink-muted); line-height: 1.7;
}
.privacy-footer-text p { margin-bottom: 4px; }
.privacy-footer-text strong { color: var(--ink-soft); }


/* ───────────────────────────
   V19 polish: mer "app feeling"
   ─────────────────────────── */

.setup-banner { margin: 14px 0 18px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--hope-light); }
.setup-banner-title { font-weight: 800; margin-bottom: 4px; }
.setup-banner-sub { color: var(--ink-soft); font-size: 13px; line-height: 1.5; }
.setup-banner-actions { display:flex; gap:10px; flex-wrap:wrap; margin-top: 12px; }

.app { padding-bottom: env(safe-area-inset-bottom); }
.page-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(10px); background: linear-gradient(180deg, var(--nav-bg), color-mix(in srgb, var(--nav-bg) 72%, transparent)); border-bottom: 1px solid var(--border); }
/* Desktop: keep plan header pinned at top */
.plan-topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, var(--nav-bg), color-mix(in srgb, var(--nav-bg) 72%, transparent));
  border-bottom: 1px solid var(--border);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px;
}
.plan-topbar .back-btn{ margin: 0 0 8px; }
.nav-tabs{
  position: static; /* tabs live inside plan-topbar on desktop */
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.nav-tab{
  appearance: none;
  border: 1px solid var(--card-border);
  background: var(--surface-overlay);
  color: var(--ink-soft);
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 13px;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
  user-select: none;
}
.nav-tab:hover{ background: var(--surface-overlay-strong); }
.nav-tab:active{ transform: translateY(1px); }
.nav-tab.active{
  background: var(--status-success-bg);
  color: var(--status-success-fg);
  border-color: var(--status-success-border);
}
.nav-tab:focus-visible{
  outline: 3px solid rgba(42,125,111,0.35);
  outline-offset: 2px;
}

.card, .eco-wiz-card, .eco-card, .plan-card, .bill-card, .letter-card { box-shadow: var(--shadow-sm); }
.modal { box-shadow: var(--shadow-lg); }
.modal-backdrop.open { display:flex; }
.modal-open { overflow:hidden; }

/* Mobile: nav tabs as bottom bar */
@media (max-width: 720px){
  .nav-tabs { position: fixed; top: auto; bottom: 0; left: 0; right: 0; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--border); border-bottom: none; background: var(--nav-bg); z-index: 50; }
  .screen#screen-plan { padding-bottom: 90px; }
  .page-header { position: static; }
}


/* ── Bottom nav (4 items) ─────────────────────────────────── */
.app{ padding-bottom: 120px; }

#bottomNav.nav-tabs{
  position: fixed !important;
  top: auto !important;
  bottom: 0; left: 0; right: 0;
  gap: clamp(6px, 1.6vw, 10px);
  padding: clamp(8px, 1.8vw, 10px) clamp(8px, 2vw, 12px) calc(clamp(8px, 1.8vw, 10px) + env(safe-area-inset-bottom));
  background: var(--nav-bg);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 60;
}
#bottomNav .nav-tab{
  flex: 1 1 0;
  min-width: 0;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 16px;
  padding: clamp(8px, 1.8vw, 10px) clamp(4px, 1vw, 8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1vw, 6px);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink-muted);
  text-align: center;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, color .12s ease;
}
#bottomNav .nav-tab:hover{ background: var(--surface-overlay); color: var(--ink-soft); }
#bottomNav .nav-tab:active{ transform: translateY(1px); }
#bottomNav .nav-tab.active{
  background: var(--status-success-bg);
  color: var(--status-success-fg);
  border-color: var(--status-success-border);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hope) 12%, transparent);
}
#bottomNav .nav-ico{ font-size: clamp(16px, 3.8vw, 18px); line-height: 1; }
#bottomNav .nav-lbl{ font-size: clamp(10px, 2.6vw, 11px); font-weight: 800; letter-spacing: .2px; line-height: 1.1; }
@media (max-width: 380px){
  #bottomNav.nav-tabs{ gap: 6px; padding-left: 8px; padding-right: 8px; }
  #bottomNav .nav-tab{ border-radius: 14px; padding: 8px 4px; }
  #bottomNav .nav-lbl{ font-size: 10px; }
}

.tips-triage-title{ font-size:17px; font-weight:800; color:var(--ink); margin-bottom:3px; }
.tips-triage-sub{ font-size:12px; color:var(--ink-soft); margin-bottom:10px; }
.tips-quick-grid{ display:grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap:8px; }
.tips-quick-choice{ border:1px solid var(--border); background:var(--surface); color:var(--ink); border-radius:12px; padding:10px 11px; text-align:left; font-size:13px; font-weight:700; cursor:pointer; transition:.15s ease; }
.tips-quick-choice:hover{ border-color:rgba(42,125,111,0.35); background:rgba(42,125,111,0.06); }
.tips-quick-choice.active{ border-color:rgba(42,125,111,0.45); background:rgba(42,125,111,0.10); color:var(--hope); }
.tips-quick-panel{ border:1px solid rgba(42,125,111,0.2); background:linear-gradient(180deg, rgba(42,125,111,0.06), var(--surface-elevated)); }
.tips-quick-kicker{ font-size:11px; color:var(--ink-muted); text-transform:uppercase; letter-spacing:.06em; font-weight:700; }
.tips-quick-title{ font-size:19px; font-weight:800; color:var(--ink); margin-top:2px; }
.tips-quick-steps{ margin:10px 0 0 18px; padding:0; font-size:13px; color:var(--ink-soft); line-height:1.55; }
.tips-quick-steps li{ margin-bottom:6px; }
.tips-quick-callout{ margin-top:10px; border:1px solid color-mix(in srgb, var(--calm) 24%, transparent); background:var(--calm-dim); border-radius:10px; padding:9px 10px; font-size:12px; color:var(--ink-soft); }
.tips-quick-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.tips-quick-foot{ margin-top:8px; font-size:11px; color:var(--ink-muted); }
.tips-board-head{ margin:8px 2px 10px; }
.tips-board-title{ font-size:14px; font-weight:800; color:var(--ink); }
.tips-board-sub{ font-size:12px; color:var(--ink-soft); margin-top:2px; }
.tips-help-card{ border:1px solid var(--status-info-border); background:linear-gradient(180deg, color-mix(in srgb, var(--status-info-bg) 58%, var(--card-bg)), var(--card-bg)); box-shadow: var(--card-shadow); }
.tips-help-title{ font-size:16px; font-weight:800; color:var(--ink); }
.tips-help-sub{ font-size:13px; color:var(--ink-soft); margin-top:6px; line-height:1.55; }
.tips-help-actions{ display:flex; gap:8px; flex-wrap:wrap; margin-top:10px; }
.tips-card{ border:1px solid var(--status-info-border); background:linear-gradient(180deg, color-mix(in srgb, var(--status-info-bg) 52%, var(--card-bg)), var(--card-bg)); box-shadow: var(--card-shadow); }
.tips-card--highlight .tips-card-title{ color:var(--calm); }
.tips-card-icon{ font-size:22px; line-height:1; margin-bottom:6px; }
.tips-card-title{ font-size:16px; font-weight:800; color:var(--ink); }

.tips-accordion{ display:flex; flex-direction:column; gap:10px; }
.tips-item{ background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-md); overflow:hidden; }
.tips-trigger{ width:100%; border:0; background:transparent; padding:12px 14px; text-align:left; cursor:pointer; display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.tips-title{ font-weight:800; color:var(--ink); font-size:14px; }
.tips-sub{ font-size:12px; color:var(--ink-soft); margin-top:2px; }
.tips-chevron{ color:var(--ink-muted); font-size:13px; line-height:1.2; margin-top:2px; }
.tips-item.open .tips-chevron{ transform: rotate(180deg); }
.tips-panel{ padding:0 14px 12px; border-top:1px solid var(--border); }
.tips-panel.hidden{ display:none; }
.tips-body{ font-size:13px; color:var(--ink-soft); line-height:1.55; }
.tips-list{ margin:8px 0 0 18px; padding:0; color:var(--ink-soft); font-size:13px; }
.tips-list li{ margin-bottom:6px; }
.tips-extra-details{ margin-top:8px; border:1px solid var(--border); border-radius:10px; padding:8px 10px; background:var(--surface2); }
.tips-extra-details summary{ cursor:pointer; font-size:12px; font-weight:700; color:var(--ink); }
.tips-extra-stamp{ font-size:12px; color:var(--ink-soft); margin-top:8px; }
.tips-extra-list{ margin:6px 0 0 18px; padding:0; color:var(--ink-soft); font-size:12px; }
.tips-extra-note{ margin-top:6px; font-size:12px; color:var(--ink-soft); }
.tips-action-hint{ margin-top:10px; border:1px solid var(--border); border-radius:10px; padding:10px 12px; background:var(--surface2); }
.tips-action-title{ font-size:12px; font-weight:800; color:var(--ink); margin-bottom:4px; }
.tips-action-body{ font-size:12px; color:var(--ink-soft); line-height:1.5; }
.tips-action-link{ display:inline-block; margin-top:6px; font-size:12px; font-weight:700; color:var(--calm); text-decoration:underline; }

.pengepust-hero{ border:1px solid rgba(42,125,111,0.2); background:linear-gradient(170deg, var(--surface), rgba(42,125,111,0.08)); border-radius:16px; padding:14px; margin-bottom:10px; }
.pengepust-brand{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }
.pengepust-title{ font-family:'Fraunces',serif; font-size:28px; color:var(--ink); line-height:1.05; }
.pengepust-ver{ font-size:11px; color:var(--ink-muted); font-weight:700; }
.pengepust-sub{ margin-top:4px; font-size:13px; color:var(--ink-soft); }
.pengepust-badge{ margin-top:8px; display:inline-block; font-size:11px; font-weight:700; color:var(--hope); background:var(--hope-dim); border:1px solid color-mix(in srgb, var(--hope) 26%, transparent); border-radius:999px; padding:4px 9px; }
.pengepust-section{ margin-bottom:10px; }
.pengepust-section-kicker{ font-size:11px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink-muted); margin:2px 4px 6px; font-weight:700; }
.pengepust-progress{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.pengepust-progress-card{ border:1px solid var(--border); background:var(--surface); border-radius:12px; padding:9px 10px; }
.pengepust-progress-label{ font-size:10px; color:var(--ink-muted); text-transform:uppercase; letter-spacing:.06em; }
.pengepust-progress-val{ margin-top:2px; font-size:15px; font-weight:800; color:var(--ink); }
.pengepust-group{ border:1px solid var(--border); border-radius:12px; background:var(--surface); overflow:hidden; }
.pengepust-row{ width:100%; border:0; background:transparent; padding:11px 12px; text-align:left; display:flex; align-items:center; gap:10px; cursor:pointer; border-bottom:1px solid var(--border); }
.pengepust-row:last-child{ border-bottom:0; }
.pengepust-row:hover{ background:rgba(42,125,111,0.05); }
.pengepust-row.danger:hover{ background:rgba(201,93,74,0.08); }
.pengepust-row-ico{ width:28px; height:28px; border-radius:8px; display:flex; align-items:center; justify-content:center; font-size:14px; background:rgba(74,111,165,0.12); color:var(--calm); flex-shrink:0; }
.pengepust-row.danger .pengepust-row-ico{ background:rgba(201,93,74,0.14); color:var(--soft-red); }
.pengepust-row-main{ flex:1; min-width:0; display:flex; flex-direction:column; }
.pengepust-row-title{ font-size:13px; font-weight:700; color:var(--ink); }
.pengepust-row-sub{ margin-top:1px; font-size:12px; color:var(--ink-soft); }
.pengepust-row-end{ color:var(--ink-muted); font-size:14px; font-weight:700; }
.pengepust-settings-inline{ padding:11px 12px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; gap:10px; }
.pengepust-settings-inline:last-child{ border-bottom:0; }
.pengepust-toggle{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink); }
.pengepust-feedback{ border:1px solid rgba(74,111,165,0.22); border-radius:12px; background:rgba(74,111,165,0.06); padding:12px; }
.pengepust-feedback h4{ margin:0 0 4px; font-size:15px; }
.pengepust-feedback p{ margin:0 0 8px; font-size:12px; color:var(--ink-soft); }
.pengepust-feedback textarea{ width:100%; min-height:88px; border:1px solid var(--border); border-radius:10px; padding:10px; font:inherit; font-size:13px; color:var(--ink); background:var(--surface); resize:vertical; }
.pengepust-feedback-actions{ margin-top:8px; display:flex; gap:8px; flex-wrap:wrap; }
.pengepust-about{ border:1px solid rgba(42,125,111,0.2); border-radius:12px; background:linear-gradient(180deg, rgba(42,125,111,0.08), var(--surface-elevated)); padding:12px; }
.pengepust-about-title{ font-size:15px; font-weight:800; color:var(--ink); margin-bottom:4px; }
.pengepust-about-text{ font-size:13px; color:var(--ink-soft); line-height:1.55; }
.pengepust-pills{ margin-top:8px; display:flex; gap:6px; flex-wrap:wrap; }
.pengepust-pill{ font-size:11px; font-weight:700; color:var(--ink-soft); background:var(--surface-overlay); border:1px solid rgba(0,0,0,0.08); border-radius:999px; padding:4px 8px; }
#moreSheetBackdrop.open{ align-items:flex-end; }
#moreSheetBackdrop .modal{ width:min(760px,96vw); border-bottom-left-radius:0; border-bottom-right-radius:0; max-height:min(84vh,640px); overflow:auto; }

.plan-add-cta{
  width:100%;
  justify-content:center;
  margin-bottom:20px;
  background:linear-gradient(180deg, var(--hope) 0%, var(--hope-strong) 100%);
  color:var(--text-on-accent);
  border:1px solid rgba(26,79,70,0.9);
  box-shadow:0 10px 22px rgba(42,125,111,0.28);
}
.plan-add-cta:hover{ filter:brightness(1.03); }
.plan-add-cta:focus-visible{ outline:2px solid rgba(42,125,111,0.35); outline-offset:2px; }
.debt-work-head{ display:flex; justify-content:space-between; align-items:flex-start; gap:10px; margin-bottom:8px; }
.debt-work-head-main .section-title{ margin-bottom:4px; }
.debt-work-head-main .section-sub{ margin-bottom:0; }
.plan-add-cta.inline{ width:auto; margin:0; padding: 13px 22px; font-size: 15px; font-weight: 700; letter-spacing: 0.01em; box-shadow:0 8px 18px rgba(42,125,111,0.28); border-radius: var(--radius-sm); }
.eco-account-row.editing{ align-items:flex-start; }
.eco-account-left{ flex:1; min-width:0; display:flex; flex-direction:column; gap:4px; }
.eco-account-label-input{ width:100%; max-width:260px; padding:8px 10px; border-radius:8px; border:1px solid var(--border); font-size:13px; }
.eco-account-label-input:focus{ outline:none; box-shadow:0 0 0 3px rgba(42,125,111,0.18); border-color:rgba(42,125,111,0.35); }
.eco-account-actions{ display:flex; flex-wrap:wrap; gap:6px; align-items:center; justify-content:flex-end; }
.eco-account-move-inline{ display:grid; gap:4px; margin-top:4px; }
.eco-account-move-inline label{ font-size:11px; color:var(--ink-soft); }
.eco-account-move-inline select{ padding:7px 9px; border-radius:8px; border:1px solid var(--border); font-size:12px; }
@media (max-width: 760px){ .debt-work-head{ flex-direction:column; } .plan-add-cta.inline{ width:100%; justify-content:center; padding: 15px 22px; font-size: 16px; } .eco-account-actions{ justify-content:flex-start; } }

/* Remove old top-tab affordances */
.nav-tabs { padding-top: 0 !important; }

/* Policy links footer */
.policy-links{
  margin: 16px auto 0;
  text-align: center;
  font-size: 12px;
  color: var(--ink-muted);
}
.policy-links a{
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.policy-links a:hover{ color: var(--ink); }
.policy-links span{ margin: 0 6px; color: var(--ink-muted); }

/* In more-tab cards */
.action-card{
  border: 1px solid var(--border);
  background: var(--surface-overlay-soft);
  border-radius: var(--radius-md, 18px);
  padding: 14px 14px;
  box-shadow: var(--shadow-sm);
}
.action-card:hover{ background: var(--surface-overlay-strong); }

/* Make room so bottom nav doesn't cover content in plan screen */
#screen-plan .micro-note,
#screen-plan .policy-links { padding-bottom: 6px; }


/* ─── Loader (for local OCR/PDF parsing) ─────────────────── */
.loader{
  width: 34px; height: 34px;
  border: 3px solid rgba(0,0,0,0.14);
  border-top-color: var(--hope);
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
  flex: 0 0 auto;
}
@keyframes spin { to { transform: rotate(360deg);} }



/* #planWorkspaceCard skjules — skjemaet åpnes via modal (openDebtFormModal) */
#planWorkspaceCard { display: none !important; }

/* ══ PLAN REDESIGN v23.1.17 ══════════════════════════════ */
.plan-page-wrap { max-width: 680px; margin: 0 auto; padding: 0 14px 32px; }

/* Situasjonsbanner */
.sit-card { display:flex; align-items:flex-start; gap:13px; border-radius:var(--radius-md); padding:14px 16px; border:1px solid transparent; margin-bottom:10px; animation:ndc-fadein .3s ease; }
.sit-card--green  { background:color-mix(in srgb, var(--status-success-bg) 62%, var(--card-bg)); border-color:var(--status-success-border); }
.sit-card--amber  { background:color-mix(in srgb, var(--status-warn-bg) 62%, var(--card-bg)); border-color:var(--status-warn-border); }
.sit-card--red    { background:color-mix(in srgb, var(--status-danger-bg) 62%, var(--card-bg)); border-color:var(--status-danger-border); }
.sit-card--neutral{ background:var(--card-bg-soft); border-color:var(--card-border); }
.sit-ico     { font-size:20px; flex:0 0 24px; margin-top:1px; }
.sit-body    { flex:1; }
.sit-headline{ font-weight:700; font-size:14px; color:var(--ink); margin-bottom:2px; }
.sit-sub     { font-size:12px; color:var(--ink-soft); line-height:1.45; }

/* Fokuskort */
.nfc { background:var(--surface); border-radius:var(--radius); border:1px solid var(--border); box-shadow:var(--shadow-sm); overflow:hidden; margin-bottom:10px; }
.nfc-accent   { height:3px; }
.nfc-body     { padding:18px 18px 14px; }
.nfc-kicker   { font-size:10px; font-weight:700; letter-spacing:.12em; text-transform:none; color:var(--hope); margin-bottom:10px; display:flex; align-items:center; gap:6px; }
.nfc-kicker-dot { width:6px; height:6px; border-radius:50%; background:var(--hope); animation:ndc-pulse 2.2s infinite; flex:0 0 6px; }
.nfc-main     { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:14px; }
.nfc-name     { font-family:'Fraunces',Georgia,serif; font-size:clamp(18px,4vw,24px); font-weight:800; line-height:1.1; color:var(--ink); }
.nfc-meta     { font-size:12px; color:var(--ink-muted); margin-top:3px; }
.nfc-amount-wrap { text-align:right; flex:0 0 auto; }
.nfc-amount   { font-family:'Fraunces',Georgia,serif; font-size:clamp(20px,4vw,26px); font-weight:300; font-style:italic; color:var(--ink); line-height:1; }
.nfc-amount-lbl  { font-size:11px; color:var(--ink-muted); margin-top:2px; }
.nfc-progress { margin-bottom:14px; }
.nfc-metrics  { display:grid; grid-template-columns:1fr 1fr 1fr; gap:1px; background:var(--border); border-radius:var(--radius-sm); overflow:hidden; margin-bottom:12px; }
.nfc-metric   { background:var(--bg); padding:10px 12px; }
.nfc-metric-lbl  { font-size:10px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-muted); margin-bottom:3px; }
.nfc-metric-val  { font-family:'Fraunces',Georgia,serif; font-size:15px; font-weight:700; color:var(--ink); }
.nfc-metric-val--hope { color:var(--hope); }
.nfc-hint     { font-size:12px; color:var(--ink-muted); line-height:1.4; margin-bottom:12px; }
.nfc-actions  { display:flex; gap:8px; flex-wrap:wrap; }
.nfc-pay-btn  { flex:1; justify-content:center; }
.plan-next-action { background: color-mix(in srgb, var(--hope) 7%, var(--surface)); border:1px solid color-mix(in srgb, var(--hope) 22%, var(--border)); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.plan-next-action--warn { background: color-mix(in srgb, var(--sun) 10%, var(--surface)); border-color: color-mix(in srgb, var(--sun) 28%, var(--border)); }
.plan-next-action--calm { background: color-mix(in srgb, var(--calm) 8%, var(--surface)); border-color: color-mix(in srgb, var(--calm) 22%, var(--border)); }
.plan-next-action--neutral { background: var(--surface2); border-color: var(--border); }
.plan-next-action-kicker { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hope); margin-bottom: 6px; }
.plan-next-action-title { font-size: 18px; font-weight: 900; color: var(--ink); line-height: 1.25; }
.plan-next-action-reason { font-size: 13px; color: var(--ink-soft); line-height: 1.5; margin-top: 6px; }
.plan-next-action-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top: 12px; }
.plan-next-action-why { margin-top: 10px; font-size: 12px; color: var(--ink-soft); line-height: 1.5; padding-top: 10px; border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent); }

/* Payoff-strip */
.nps { background:var(--surface); border-radius:var(--radius-md); border:1px solid var(--border); box-shadow:var(--shadow-sm); padding:14px 16px; margin-bottom:10px; display:flex; }
.nps-cell { flex:1; padding:0 10px; }
.nps-cell:first-child { padding-left:0; }
.nps-cell:last-child  { padding-right:0; }
.nps-cell + .nps-cell { border-left:1px solid var(--border); }
.nps-lbl { font-size:10px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--ink-muted); margin-bottom:4px; }
.nps-val { font-family:'Fraunces',Georgia,serif; font-size:clamp(14px,3vw,19px); font-weight:800; line-height:1; color:var(--ink); }
.nps-val--hope { color:var(--hope); }
.nps-val--calm { color:var(--calm); }
.nps-sub { font-size:11px; color:var(--ink-muted); margin-top:3px; }

/* Liste-header */
.ndl-header      { display:flex; align-items:center; justify-content:space-between; margin:16px 0 8px; }
.ndl-header-lbl  { font-size:11px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--ink-muted); }
.ndl-method-toggle { display:flex; gap:2px; background:var(--surface2); border-radius:8px; padding:3px; }
.ndl-mt-btn { font-size:11px; font-weight:700; padding:4px 10px; border-radius:6px; border:none; background:transparent; color:var(--ink-muted); cursor:pointer; font-family:inherit; transition:all .15s; }
.ndl-mt-btn.active { background:var(--surface); color:var(--ink); box-shadow:0 1px 4px rgba(28,23,20,.1); }
.ndl-method-hint    { font-size:12px; color:var(--ink-muted); margin-bottom:6px; padding:0 2px; }
.ndl-method-compare { font-size:12px; color:var(--ink-muted); margin-bottom:10px; padding:0 2px; }
.ndl-chart-toggle { display:block; width:100%; text-align:center; padding:10px; font-size:12px; font-weight:600; color:var(--ink-muted); background:none; border:1px dashed var(--border2); border-radius:var(--radius-sm); cursor:pointer; font-family:inherit; margin:10px 0; transition:all .15s; }
.ndl-chart-toggle:hover { background:var(--surface2); color:var(--ink); border-style:solid; }

/* Gjeldskorter */
.ndc { background:var(--surface); border-radius:var(--radius-md); border:1px solid var(--border); box-shadow:var(--shadow-sm); overflow:visible; margin-bottom:8px; }
.ndc--current { border-color:rgba(42,125,111,.25); box-shadow:0 0 0 3px var(--hope-dim), var(--shadow-sm); }
.ndc--overdue { border-color:rgba(201,75,75,.25);  box-shadow:0 0 0 3px var(--soft-red-dim), var(--shadow-sm); }
.ndc--done    { background:var(--surface2); border-color:var(--border); box-shadow:none; }
.ndc-accent   { height:3px; }
.ndc-main     { display:flex; align-items:flex-start; gap:11px; padding:14px 14px 10px; }
.ndc-dot      { width:9px; height:9px; border-radius:50%; flex:0 0 9px; margin-top:4px; }
.ndc-identity { flex:1; min-width:0; }
.ndc-name     { font-weight:700; font-size:14px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--ink); }
.ndc--done .ndc-name { color:var(--ink-soft); font-weight:600; }
.ndc-meta     { font-size:11px; color:var(--ink-muted); margin-top:2px; }
.ndc-step     { font-size:11px; font-weight:700; margin-top:3px; display:flex; align-items:center; gap:4px; }
.ndc-step--current { color:var(--hope); }
.ndc-step--overdue { color:var(--soft-red); }
.ndc-step--done    { color:var(--ink-muted); font-weight:400; }
.ndc-step--pending { color:var(--ink-muted); }
.ndc-step-dot { width:5px; height:5px; border-radius:50%; background:currentColor; animation:ndc-pulse 2s infinite; flex:0 0 5px; }
.ndc-right    { display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex:0 0 auto; }
.ndc-amount   { font-family:'Fraunces',Georgia,serif; font-size:18px; font-weight:800; color:var(--ink); line-height:1; }
.ndc-amount--done { text-decoration:line-through; color:var(--ink-muted); font-size:14px; font-weight:400; }
.ndc-badge    { font-size:10px; font-weight:700; padding:2px 8px; border-radius:99px; border:1px solid var(--status-neutral-border); }
.ndc-badge--active  { background:var(--status-success-bg); color:var(--status-success-fg); border-color:var(--status-success-border); }
.ndc-badge--overdue { background:var(--status-danger-bg); color:var(--status-danger-fg); border-color:var(--status-danger-border); }
.ndc-badge--paid    { background:var(--status-info-bg); color:var(--status-info-fg); border-color:var(--status-info-border); }
.ndc-badge--rate-high   { background:var(--status-warn-bg); color:var(--status-warn-fg); border-color:var(--status-warn-border); }
.ndc-badge--rate-review { background:var(--status-warn-bg); color:var(--status-warn-fg); border-color:var(--status-warn-border); }
.ndc-progress    { padding:0 14px 10px; }
.ndc-prog-track  { height:5px; border-radius:99px; background:var(--surface2); overflow:hidden; }
.ndc-prog-fill   { height:100%; border-radius:99px; transition:width 1s cubic-bezier(.4,0,.2,1); }
.ndc-prog-labels { display:flex; justify-content:space-between; font-size:10px; color:var(--ink-muted); margin-top:4px; }
.ndc-prio-warn   { margin:0 14px 10px; }
.ndc-alert       { margin:0 14px 10px; background:var(--soft-red-dim); border:1px solid rgba(201,75,75,.2); border-radius:var(--radius-sm); padding:9px 11px; font-size:12px; color:var(--ink-soft); display:flex; gap:8px; }
.ndc-alert-ico   { font-size:14px; flex:0 0 16px; margin-top:1px; }
.ndc-alert-body strong { font-weight:700; color:var(--soft-red); display:block; margin-bottom:2px; }
.ndc-alert-actions { display:flex; gap:6px; margin-top:6px; flex-wrap:wrap; }
.ndc-alert-btn { font-size:11px; font-weight:700; padding:4px 10px; border-radius:99px; border:1.5px solid rgba(201,75,75,.25); background:var(--surface); color:var(--soft-red); cursor:pointer; font-family:inherit; transition:all .15s; }
.ndc-alert-btn:hover { background:var(--soft-red); color:white; border-color:var(--soft-red); }
.ndc-actions     { display:flex; align-items:center; gap:6px; padding:0 14px 12px; }
.ndc-pay-btn     { flex:1; justify-content:center; }
.ndc-more-wrap   { position:relative; }
.ndc-more-btn    { width:36px; height:36px; border-radius:99px; border:1.5px solid var(--border2); background:var(--surface); color:var(--ink-soft); font-size:15px; cursor:pointer; display:flex; align-items:center; justify-content:center; font-family:inherit; transition:all .15s; }
.ndc-more-btn:hover { background:var(--surface2); }
.ndc-more-btn.open  { background:var(--ink); color:white; border-color:var(--ink); }
.ndc-menu { position:absolute; top:calc(100% + 6px); right:0; background:var(--surface); border:1px solid var(--border2); border-radius:var(--radius-md); box-shadow:var(--shadow-md); min-width:210px; overflow:hidden; z-index:1000; opacity:0; pointer-events:none; transform:translateY(6px) scale(.97); transform-origin:top right; transition:all .18s cubic-bezier(.4,0,.2,1); }
.ndc-menu.open   { opacity:1; pointer-events:all; transform:translateY(0) scale(1); }
.ndc-menu-section { padding:4px 0; border-bottom:1px solid var(--border); }
.ndc-menu-section:last-child { border-bottom:none; }
.ndc-menu-item   { display:flex; align-items:flex-start; gap:10px; padding:10px 13px; font-size:13px; font-weight:500; color:var(--ink); cursor:pointer; transition:background .12s; border:none; background:none; width:100%; font-family:inherit; text-align:left; }
.ndc-menu-item:hover { background:var(--surface2); }
.ndc-menu-item span { font-size:11px; color:var(--ink-muted); font-weight:400; display:block; margin-top:1px; }
.ndc-menu-item--danger { color:var(--soft-red); }
.ndc-menu-item--danger:hover { background:var(--soft-red-dim); }
.ndc-neg-layer   { border-top:1px solid var(--border); max-height:0; overflow:hidden; transition:max-height .35s cubic-bezier(.4,0,.2,1); }
.ndc-neg-layer.open { max-height:600px; }
.ndc-neg-inner   { padding:14px; }
.ndc-neg-tabs    { display:flex; gap:4px; margin-bottom:12px; }
.ndc-neg-tab     { flex:1; padding:7px 6px; border-radius:var(--radius-sm); border:1.5px solid var(--border2); background:var(--surface); font-family:inherit; font-size:12px; font-weight:700; color:var(--ink-muted); cursor:pointer; transition:all .15s; text-align:center; }
.ndc-neg-tab:hover  { border-color:var(--hope); color:var(--hope); }
.ndc-neg-tab.active { background:var(--hope-dim); border-color:rgba(42,125,111,.22); color:var(--hope); }
.ndc-neg-content { font-size:13px; color:var(--ink-soft); line-height:1.6; }
.ndc-letter { background:var(--bg); border:1px solid var(--border2); border-radius:var(--radius-sm); padding:10px 12px; font-size:12px; font-family:'Georgia',serif; white-space:pre-wrap; line-height:1.6; margin:8px 0; max-height:180px; overflow-y:auto; }
.ndc-neg-actions { display:flex; gap:6px; margin-top:10px; flex-wrap:wrap; }

/* Animasjoner */
@keyframes ndc-fadein { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:translateY(0); } }
@keyframes ndc-pulse  { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:.4; transform:scale(.65); } }



/* ══ DEBT FORM MODAL ════════════════════════════════════ */
.dfm-modal {
  width: min(560px, 100%);
  max-height: 92dvh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.dfm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

.dfm-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
}

.dfm-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border2);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: all .15s;
  flex: 0 0 32px;
}

.dfm-close:hover {
  background: var(--surface2);
  color: var(--ink);
}

.dfm-body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 18px 20px 20px;
  -webkit-overflow-scrolling: touch;
}

/* Skjuler elementer som ikke er relevante inne i modalen */
#debtFormModal .debt-work-head { display: none; }
#debtFormModal .debt-list      { display: none; }
#debtFormModal #debtReadySection { display: none !important; }
#debtFormModal .section-title:not(#addDebtFormTitle) { display: none; }



/* ══ EXPENSE SEED BANNER ════════════════════════════════ */
.eco-seed-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(42,125,111,.08);
  border: 1px solid rgba(42,125,111,.2);
  border-radius: 999px;
  padding: 6px 10px;
  margin-bottom: 10px;
  font-size: 11px;
  color: var(--ink-soft);
  line-height: 1.3;
}
.eco-seed-banner strong {
  display: block;
  font-weight: 700;
  color: var(--hope);
  margin-bottom: 2px;
  font-size: 13px;
}
.eco-seed-banner-ico  { font-size: 16px; flex: 0 0 18px; margin-top: 1px; }
.eco-seed-banner-body { flex: 1; }
.eco-seed-banner-close {
  flex: 0 0 auto;
  background: none;
  border: none;
  font-size: 14px;
  color: var(--ink-muted);
  cursor: pointer;
  padding: 0 2px;
  line-height: 1;
  font-family: inherit;
  margin-top: 1px;
}
.eco-seed-banner-close:hover { color: var(--ink); }



/* ══ ECO WIZARD FEEDBACK CARD ═══════════════════════════ */
.ewf {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 14px 0 4px;
  border: 1px solid transparent;
  animation: ndc-fadein .25s ease;
}
.ewf.hidden { display: none; }

.ewf--green  { background: var(--hope-dim);     border-color: rgba(42,125,111,.22); }
.ewf--amber  { background: var(--sun-dim);       border-color: rgba(232,160,32,.25); }
.ewf--red    { background: var(--soft-red-dim);  border-color: rgba(201,75,75,.20); }
.ewf--neutral{ background: var(--surface2);      border-color: var(--border); }

.ewf-ico   { font-size: 18px; flex: 0 0 22px; margin-top: 1px; line-height: 1; }
.ewf-body  { flex: 1; }
.ewf-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.3;
}
.ewf-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}

/* Farge på "Rom i budsjettet"-raden i tabellen */
.eco-wiz-sumrow.ewf-row-red   strong { color: var(--soft-red); }
.eco-wiz-sumrow.ewf-row-amber strong { color: var(--sun); }
.eco-wiz-sumrow.ewf-row-green strong { color: var(--hope); }





.eco-exp-quickadd{ display:grid; gap:8px; margin-bottom:10px; padding:12px; border:1px solid var(--border); border-radius:12px; background:var(--surface2); }
.eco-exp-quickadd-title{ font-size:13px; font-weight:800; color:var(--ink); }
.eco-exp-quickadd-sub{ font-size:12px; color:var(--ink-soft); line-height:1.45; }
.eco-exp-quickadd-row{ display:grid; grid-template-columns:1.2fr .9fr auto; gap:8px; }
.eco-exp-quickadd-actions{ display:flex; justify-content:flex-start; }
@media (max-width:720px){
  .eco-exp-quickadd-row{ grid-template-columns:1fr; }
}

.eco-overview-kicker{ font-size:10px; font-weight:800; letter-spacing:.11em; text-transform:uppercase; color:var(--ink-muted); margin-bottom:4px; }
.eco-pick-expense-btn{ margin-top:10px; width:100%; justify-content:center; }
.eco-cat{ border:1px solid var(--border); border-radius:12px; background:var(--surface); margin-top:8px; }
.eco-cat > summary{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px; min-height:48px; }
.eco-cat-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; min-width:0; }
.eco-cat-left{ min-width:0; flex:1; }
.eco-cat > summary::-webkit-details-marker{ display:none; }
.eco-cat-title{ font-size:13px; font-weight:800; color:var(--ink); }
.eco-cat-sub{ font-size:11px; color:var(--ink-muted); margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.eco-cat-right{ min-width:132px; text-align:right; display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.eco-cat-amount{ font-size:13px; font-weight:800; color:var(--ink); line-height:1.1; white-space:nowrap; }
.eco-cat-chevron{ font-size:12px; color:var(--ink-muted); line-height:1; }
.eco-cat-body{ border-top:1px solid var(--border); padding:6px 8px 8px; }
.eco-exp-row{ display:grid; grid-template-columns: 24px 1fr 110px auto; gap:8px; align-items:center; padding:6px 4px; border-bottom:1px dashed rgba(0,0,0,.06); }
.eco-exp-row:last-child{ border-bottom:none; }
.eco-exp-ico{ font-size:15px; text-align:center; }
.eco-exp-name{ border:1px solid var(--border); border-radius:8px; padding:8px 10px; font-size:13px; }
.eco-exp-amt{ border:1px solid var(--border); border-radius:8px; padding:8px 10px; font-size:13px; text-align:right; }
.eco-exp-del{ border:none; background:none; color:var(--ink-muted); font-size:16px; cursor:pointer; width:34px; height:34px; border-radius:999px; }
.eco-exp-del:hover{ background:var(--surface2); color:var(--soft-red); }
.eco-pick-modal{ max-width:760px; width:min(760px, calc(100vw - 20px)); }
.eco-pick-groups{ display:grid; gap:10px; }
.eco-pick-group{ border:1px solid var(--border); border-radius:10px; background:var(--surface); padding:8px 10px; }
.eco-pick-group-title{ font-size:12px; font-weight:800; color:var(--ink); margin-bottom:6px; }
.eco-pick-item{ display:flex; align-items:center; gap:8px; font-size:13px; color:var(--ink-soft); padding:4px 0; }
.eco-pick-item input{ accent-color: var(--hope); }
.eco-pick-custom{ margin-top:12px; border-top:1px solid var(--border); padding-top:10px; }
.eco-pick-custom-title{ font-size:12px; font-weight:800; color:var(--ink); margin-bottom:6px; }
.eco-pick-custom-row{ display:grid; grid-template-columns:1.2fr .8fr auto; gap:8px; }
@media (max-width:720px){
  .eco-exp-row{ grid-template-columns: 22px 1fr 90px auto; }
  .eco-pick-custom-row{ grid-template-columns:1fr; }
  .eco-cat-right{ min-width:108px; }
  .eco-cat-title{ white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
}

.eco-pick-header{ position:sticky; top:0; z-index:2; background:var(--surface); }
.eco-pick-body{ max-height:min(74vh,620px); overflow:auto; }
.eco-pick-controls{ display:grid; gap:8px; margin-bottom:10px; }
.eco-pick-filters{ display:flex; gap:6px; flex-wrap:wrap; }
.eco-filter-chip{ border:1px solid var(--border2); background:var(--surface); color:var(--ink-soft); border-radius:999px; padding:5px 10px; font-size:12px; font-weight:700; cursor:pointer; }
.eco-filter-chip.active{ background:var(--status-success-bg); color:var(--status-success-fg); border-color:var(--status-success-border); }
.eco-pick-only-selected{ display:flex; align-items:center; gap:7px; font-size:12px; color:var(--ink-soft); }
.eco-pick-item{ min-height:48px; border:1px solid var(--border); border-radius:10px; padding:8px 10px; cursor:pointer; }
.eco-pick-item-text{ display:flex; align-items:center; gap:8px; }
.eco-pick-item-text small{ color:var(--ink-muted); font-size:11px; }
.eco-pick-item-ico{ font-size:16px; width:18px; text-align:center; }

@media (max-width:760px){
  .eco-pick-modal{ width:100vw; max-width:100vw; height:100dvh; max-height:100dvh; border-radius:0; }
  .eco-pick-body{ max-height:calc(100dvh - 150px); }
}

/* Timeline summary (Plan) */
.ptl { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 14px 14px 12px; margin-bottom: 10px; }
.ptl-head-row { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:6px; }
.ptl-head-kicker { font-size: 10px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 0; }
.ptl-add-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 18px rgba(42,125,111,0.28);
  margin-bottom: 12px;
}
#planEmptyAddBtn {
  padding: 14px 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: var(--radius-sm);
}
@media (max-width: 760px) {
  #planEmptyAddBtn {
    width: 100%;
    justify-content: center;
    padding: 15px 22px;
    font-size: 16px;
  }
}
.plan-mini-card { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius-sm); padding:10px 12px; margin-bottom:10px; }
.plan-mini-title { font-size:11px; font-weight:700; color:var(--ink-muted); text-transform:uppercase; letter-spacing:.06em; margin-bottom:4px; }
.plan-mini-value { font-size:13px; color:var(--ink); font-weight:700; }
.plan-mini-text { font-size:12px; color:var(--ink-soft); line-height:1.5; }
.plan-mini-actions { margin-top:8px; display:flex; gap:8px; flex-wrap:wrap; }
.plan-link-btn { background:none; border:none; color:var(--calm); font:inherit; font-size:11px; text-decoration:underline; cursor:pointer; padding:0; }
.ptl-title { font-family: 'Fraunces', Georgia, serif; font-size: clamp(20px, 4vw, 28px); color: var(--ink); line-height: 1.08; margin-bottom: 4px; }
.ptl-title strong { color: var(--hope); font-style: italic; }
.ptl-sub { font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }
.ptl-rail { position: relative; }
.ptl-rail::before { content: ''; position: absolute; left: 11px; top: 4px; bottom: 6px; width: 2px; background: var(--border); }
.ptl-row { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; margin-bottom: 8px; position: relative; }
.ptl-node { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; background: var(--surface2); color: var(--ink-muted); border: 1px solid var(--border2); margin-top: 2px; z-index: 1; }
.ptl-node--done { background: var(--hope-light); color: var(--hope); border-color: rgba(42,125,111,.28); }
.ptl-node--active { background: var(--surface); color: var(--hope); border: 2px solid var(--hope); }
.ptl-node--final { background: var(--sun-dim); color: var(--sun); border-color: color-mix(in srgb, var(--sun) 32%, transparent); }
.ptl-card { background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 9px 10px; }
.ptl-card--active { background: var(--surface); border-color: rgba(42,125,111,.28); box-shadow: 0 0 0 2px var(--hope-dim); }
.ptl-card--done { background: var(--hope-light); border-color: rgba(42,125,111,.2); }
.ptl-card--final { background: linear-gradient(160deg, rgba(232,160,32,.12), rgba(42,125,111,.08)); border-color: rgba(232,160,32,.28); }
.ptl-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.ptl-top-right { display:flex; align-items:center; gap:6px; }
.ptl-card-main { border:none; background:none; width:100%; padding:0; text-align:left; cursor:pointer; font-family:inherit; }
.ptl-card-main:focus-visible { outline:2px solid var(--calm); outline-offset:2px; border-radius:8px; }
.ptl-name { font-weight: 700; font-size: 13px; color: var(--ink); }
.ptl-payoff { font-size: 11px; color: var(--ink-muted); white-space: nowrap; }
.ptl-meta { font-size: 11px; color: var(--ink-soft); }
.ptl-case { margin-top: 4px; font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ptl-case span { display: inline-block; margin-right: 6px; font-size: 10px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.ptl-case--missing { color: var(--warm); }
.ptl-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 99px; font-size: 10px; font-weight: 700; }
.ptl-badge--active { background: var(--hope-dim); color: var(--hope); border: 1px solid rgba(42,125,111,.25); }
.ptl-badge--done { background: rgba(42,125,111,.14); color: var(--hope); border: 1px solid rgba(42,125,111,.25); }
.ptl-badge-row { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ptl-mini-priority { display:inline-flex; align-items:center; gap:4px; padding:2px 8px; border-radius:99px; font-size:10px; font-weight:700; color:var(--warm); background:color-mix(in srgb, var(--warm) 12%, white); border:1px solid color-mix(in srgb, var(--warm) 28%, var(--border)); }
.ptl-progress { margin-top: 6px; }
.ptl-progress-track { height: 6px; border-radius: 99px; background: var(--surface3); overflow: hidden; }
.ptl-progress-fill { height: 100%; border-radius: 99px; background: var(--hope); }
.ptl-progress-meta { margin-top: 4px; display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--ink-muted); }
.ptl-priority-why { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--warm) 12%, white); border: 1px solid color-mix(in srgb, var(--warm) 30%, var(--border)); box-shadow: inset 3px 0 0 0 color-mix(in srgb, var(--warm) 70%, transparent); font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.ptl-priority-why strong { color: var(--warm); }
.ptl-drawer-hint { margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--warm); }
.ptl-drawer-note { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
.ptl-drawer-note-title { font-size: 11px; font-weight: 800; color: var(--ink); margin-bottom: 4px; }
.ptl-drawer-note-body { font-size: 12px; line-height: 1.5; color: var(--ink-soft); }
.ptl-actions { margin-top: 8px; display:flex; justify-content:flex-start; }
.ptl-pay-btn { justify-content:center; }
.ptl-method-wrap { margin-bottom: 10px; }
.ptl-method-toggle { display:inline-flex; gap:3px; background:var(--surface2); border:1px solid var(--border); border-radius:10px; padding:4px; margin-bottom:6px; }
.ptl-method-btn { border:none; background:transparent; border-radius:8px; padding:8px 14px; font-size:13px; font-weight:700; color:var(--ink-muted); cursor:pointer; font-family:inherit; }
.ptl-method-btn.active { background:var(--surface); color:var(--ink); box-shadow:0 1px 6px rgba(28,23,20,.12); }
.ptl-method-help { font-size:12px; color:var(--ink-soft); }
.ptl-drawer { max-height:0; overflow:hidden; transition:max-height .2s ease; }
.ptl-drawer.open { max-height:260px; }
.ptl-drawer-actions { display:flex; gap:8px; flex-wrap:wrap; padding-top:8px; }
.ptl-action-btn { justify-content:center; }
.ptl-action-btn--danger { color:var(--soft-red); border-color:rgba(201,75,75,.4); }
.ptl-foot { margin-top: 8px; padding-top: 9px; border-top: 1px dashed var(--border2); display: flex; justify-content: space-between; gap: 10px; font-size: 11px; color: var(--ink-soft); }
.ptl-foot strong { color: var(--ink); }
.ptl-method { text-align: right; }

/* Visible version labels + compact debug block */
.tab-version-inline { font-size:12px; color:var(--ink-muted); text-align:right; margin:0 0 10px; }
.pengepust-debug { border:1px solid var(--border); border-radius:var(--radius-sm); background:var(--surface); padding:10px 12px; display:grid; gap:6px; }
.pengepust-debug-row { display:flex; align-items:center; justify-content:space-between; gap:8px; font-size:12px; color:var(--ink-soft); }
.pengepust-debug-row strong { color:var(--ink); font-size:12px; font-weight:700; }
#debugSection.hidden{ display:none !important; }

/* Pengepust støtte */
.pengepust-support { border:1px solid rgba(42,125,111,0.2); border-radius:12px; background:linear-gradient(180deg, rgba(42,125,111,0.08), var(--surface-elevated)); padding:12px; }
.pengepust-support-title { font-size:15px; font-weight:800; color:var(--ink); margin:0 0 4px; }
.pengepust-support-text { font-size:12px; color:var(--ink-soft); line-height:1.5; margin:0 0 10px; }
.pengepust-support-amounts { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:10px; }
.pengepust-support-chip { border:1px solid var(--border2); background:var(--surface); color:var(--ink-soft); border-radius:999px; padding:4px 10px; font-size:12px; font-weight:700; cursor:pointer; }
.pengepust-support-chip.active { background:var(--hope-dim); border-color:rgba(42,125,111,.3); color:var(--hope); }
.pengepust-support-cta { width:100%; justify-content:center; }

.debtfree-modal { max-width:560px; }
.debtfree-label { font-size:10px; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-muted); font-weight:700; margin-bottom:6px; }
.debtfree-title { font-family:'Fraunces', Georgia, serif; font-size:34px; line-height:1.05; color:var(--ink); margin-bottom:8px; }
.debtfree-body { font-size:14px; color:var(--ink-soft); line-height:1.55; }
.debtfree-note { margin-top:10px; font-size:12px; color:var(--ink-muted); }
.debtfree-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:14px; }
@media (prefers-reduced-motion: reduce) {
  .debtfree-modal { animation:none !important; transition:none !important; }
}

/* Pengepust feiringer */
.pb-confirm-toast {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%) translateY(20px);
  width: min(560px, calc(100% - 20px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 10px 12px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 700;
}
.pb-confirm-toast.open { opacity: 1; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.pb-confirm-ico { width: 24px; height: 24px; border-radius: 999px; background: var(--hope-dim); color: var(--hope); display:flex; align-items:center; justify-content:center; font-weight:800; margin-top: 1px; }
.pb-confirm-title { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.pb-confirm-sub { font-size: 12px; color: var(--ink-soft); line-height: 1.45; margin-top: 1px; }
.pb-confirm-interest {
  font-size: 11px;
  color: var(--hope);
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.4;
}
.pb-confirm-close { border: none; background: transparent; color: var(--ink-muted); font-size: 14px; cursor: pointer; padding: 0 2px; line-height: 1; }

.pb-celebration-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20,18,14,.4);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 710;
}
.pb-celebration-backdrop.open { display: flex; }
.pb-celebration-modal {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.pb-celebration-top { margin-bottom: 10px; }
.pb-celebration-emoji { font-size: 24px; margin-bottom: 6px; }
.pb-celebration-title { margin: 0; font-size: 22px; line-height: 1.15; font-family: 'Fraunces', Georgia, serif; color: var(--ink); }
.pb-celebration-sub { margin-top: 4px; font-size: 13px; color: var(--ink-soft); }
.pb-celebration-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 8px 0 10px; }
.pb-stat { border: 1px solid var(--border); border-radius: 10px; background: var(--surface2); padding: 8px; }
.pb-stat-lbl { font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.pb-stat-val { margin-top: 3px; font-size: 13px; color: var(--ink); font-weight: 700; }
.pb-celebration-next { border-top: 1px dashed var(--border2); padding-top: 8px; font-size: 12px; color: var(--ink-soft); margin-bottom: 10px; }
.pb-celebration-actions { display: flex; justify-content: flex-end; gap: 8px; }
.pb-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.pb-confetti-piece {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  opacity: .9;
  animation: pb-drop 900ms ease-out forwards;
}
@keyframes pb-drop {
  from { transform: translateY(-18px) rotate(0deg); opacity: .95; }
  to { transform: translateY(150px) rotate(260deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pb-confirm-toast, .pb-celebration-backdrop, .pb-confetti-piece { animation: none !important; transition: none !important; }
}

/* ══ PAYMENT MODAL FEEDBACK ════════════════════════════ */
.pmfb {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  margin: 0;
  border-top: 1px solid var(--border);
  animation: ndc-fadein .2s ease;
}
.pmfb.hidden { display: none; }

.pmfb--green   { background: var(--hope-dim); }
.pmfb--neutral { background: var(--surface2); }

.pmfb-ico {
  font-size: 28px;
  flex: 0 0 36px;
  text-align: center;
  line-height: 1;
}
.pmfb-body  { flex: 1; }
.pmfb-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 4px;
}
.pmfb-sub {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}



/* ══ ONBOARDING PUSH NOTE ══════════════════════════════ */
.eco-wiz-push-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--surface2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.eco-wiz-push-ico { font-size: 14px; flex: 0 0 16px; margin-top: 1px; }
.eco-wiz-push-note strong { color: var(--ink); font-weight: 600; }


/* ── BUDGET SUGGEST BANNER ── */
.plan-budget-suggest {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(74,111,165,0.07);
  border: 1.5px solid rgba(74,111,165,0.2);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 0 0 10px;
}
.plan-budget-suggest-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
}
.plan-budget-suggest-body {
  flex: 1;
  min-width: 0;
}
.plan-budget-suggest-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.plan-budget-suggest-sub {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.plan-budget-suggest-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}

.plan-method-grid { display:grid; gap:10px; grid-template-columns:repeat(auto-fit,minmax(180px,1fr)); margin-bottom:10px; }
.plan-method-option { display:flex; flex-direction:column; align-items:flex-start; gap:6px; width:100%; padding:14px; border-radius:var(--radius-sm); border:1px solid var(--border); background:var(--card-bg); color:var(--ink); text-align:left; font:inherit; cursor:pointer; transition:all .15s ease; }
.plan-method-option.active { border-color:var(--hope); box-shadow:0 0 0 3px var(--hope-dim); background:color-mix(in srgb, var(--hope-dim) 45%, var(--card-bg)); }
.plan-method-badges { display:flex; gap:6px; min-height:22px; }
.plan-method-badge { display:inline-flex; align-items:center; padding:4px 8px; border-radius:999px; font-size:10px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--ink-soft); background:var(--surface2); }
.plan-method-badge--hope { background:var(--hope-dim); color:var(--hope); }
.plan-method-title { font-size:15px; font-weight:700; color:var(--ink); }
.plan-method-desc { font-size:13px; color:var(--ink); }
.plan-method-sub { font-size:12px; color:var(--ink-muted); }
.plan-method-date { margin-top:auto; font-size:12px; font-weight:700; color:var(--hope); }
.plan-method-note { font-size:12px; color:var(--ink-muted); }


.plan-chart-card{ padding:16px; overflow:hidden; width:100%; max-width:100%; box-sizing:border-box; }
.plan-extra-kicker{ font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-muted); margin-bottom:10px; }
.plan-extra-title-row{ display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:20px; flex-wrap:wrap; min-width:0; }
.plan-extra-title-row > div{ min-width:0; }
.plan-extra-title-row .plan-chart-title{ font-family:'Fraunces', Georgia, serif; font-size:clamp(28px, 4.2vw, 34px); line-height:1.05; letter-spacing:-.02em; max-width:12ch; }
.plan-extra-title-row .plan-chart-meta{ font-size:13px; line-height:1.55; text-align:left; max-width:34ch; margin:0; }
.plan-extra-empty{ border:1px dashed var(--border2); border-radius:20px; padding:18px; font-size:13px; color:var(--ink-soft); background:var(--surface2); }
.plan-extra-slider-box{ background:color-mix(in srgb, var(--surface2) 84%, var(--warm-dim)); border:1px solid color-mix(in srgb, var(--border) 90%, transparent); border-radius:24px; padding:22px 22px 18px; margin-bottom:22px; }
.plan-extra-slider-head{ display:flex; justify-content:space-between; gap:12px; align-items:flex-end; margin-bottom:16px; }
.plan-extra-slider-label{ font-size:15px; font-weight:700; color:var(--ink); }
.plan-extra-slider-value{ font-size:15px; font-weight:600; color:var(--ink-muted); }
.plan-extra-slider-value strong{ font-family:'Fraunces', Georgia, serif; font-size:28px; line-height:1; color:var(--ink-muted); font-weight:400; }
.plan-extra-range{ -webkit-appearance:none; appearance:none; width:100%; height:12px; border-radius:999px; background:color-mix(in srgb, var(--border) 92%, var(--surface)); outline:none; cursor:pointer; }
.plan-extra-range::-webkit-slider-thumb{ -webkit-appearance:none; appearance:none; width:30px; height:30px; border-radius:50%; background:var(--hope); box-shadow:0 4px 18px color-mix(in srgb, var(--hope) 32%, transparent); border:0; }
.plan-extra-range::-moz-range-thumb{ width:30px; height:30px; border:none; border-radius:50%; background:var(--hope); box-shadow:0 4px 18px color-mix(in srgb, var(--hope) 32%, transparent); }
.plan-extra-slider-ticks{ display:flex; justify-content:space-between; font-size:11px; color:var(--ink-muted); margin-top:14px; }
.plan-extra-banner{ margin-bottom:18px; padding:14px 16px; border-radius:18px; background:color-mix(in srgb, var(--hope-dim) 90%, var(--surface)); color:var(--ink); border:1px solid color-mix(in srgb, var(--hope) 18%, transparent); font-size:13px; line-height:1.55; font-weight:600; }
.plan-extra-banner-line + .plan-extra-banner-line{ margin-top:2px; }
.plan-extra-timeline{ display:grid; gap:12px; margin-bottom:22px; }
.plan-extra-timeline-label{ font-size:10px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-muted); margin-bottom:6px; }
.plan-extra-row{ display:flex; align-items:center; gap:18px; min-width:0; }
.plan-extra-row-visual{ flex:1; min-width:0; display:grid; gap:8px; }
.plan-extra-row-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; min-width:0; }
.plan-extra-row-label{ font-size:12px; font-weight:700; color:var(--ink); }
.plan-extra-row-badge{ display:inline-flex; align-items:center; justify-content:center; padding:4px 8px; border-radius:999px; font-size:10px; font-weight:700; letter-spacing:.04em; white-space:nowrap; }
.plan-extra-row-badge--strong{ background:color-mix(in srgb, var(--hope) 14%, #fff); color:var(--hope-strong); }
.plan-extra-row-badge--base{ background:color-mix(in srgb, var(--ink-muted) 10%, #fff); color:var(--ink-soft); }
.plan-extra-row-badge--none{ background:color-mix(in srgb, var(--warm) 14%, #fff); color:var(--warm-strong); }
.plan-extra-bar-wrap{ flex:1; min-width:0; height:78px; background:color-mix(in srgb, var(--surface2) 80%, var(--warm-dim)); border-radius:22px; overflow:hidden; }
.plan-extra-bar{ height:100%; min-width:126px; border-radius:22px; display:flex; align-items:center; padding:0 26px; transition:width .35s cubic-bezier(.34,1.2,.64,1); }
.plan-extra-bar--strong{ background:var(--hope-strong); }
.plan-extra-bar--base{ background:var(--hope); }
.plan-extra-bar--none{ background:color-mix(in srgb, var(--warm) 36%, var(--surface2)); }
.plan-extra-row-end{ min-width:122px; text-align:right; }
.plan-extra-row-date{ font-size:16px; font-weight:700; color:var(--ink); }
.plan-extra-row-date--strong{ color:var(--hope-strong); }
.plan-extra-row-date--base{ color:var(--hope); }
.plan-extra-row-date--none{ color:var(--warm-strong); }
.plan-extra-row-months{ font-size:11px; color:var(--ink-muted); margin-top:4px; }
.plan-extra-compare{ display:grid; gap:14px; }
.plan-extra-compare-card{ display:flex; align-items:center; justify-content:space-between; gap:18px; padding:22px 24px; border-radius:22px; min-width:0; }
.plan-extra-compare-card--base{ background:color-mix(in srgb, var(--hope-light) 82%, var(--surface)); }
.plan-extra-compare-card--strong{ background:var(--hope); }
.plan-extra-compare-card--none{ background:color-mix(in srgb, var(--warm-dim) 78%, var(--surface)); }
.plan-extra-compare-left{ display:flex; align-items:center; gap:14px; min-width:0; }
.plan-extra-compare-icon{ width:58px; height:58px; border-radius:16px; display:flex; align-items:center; justify-content:center; flex-shrink:0; font-size:28px; }
.plan-extra-compare-card--base .plan-extra-compare-icon{ background:color-mix(in srgb, var(--hope) 12%, #fff); }
.plan-extra-compare-card--strong .plan-extra-compare-icon{ background:rgba(255,255,255,0.18); }
.plan-extra-compare-card--none .plan-extra-compare-icon{ background:color-mix(in srgb, var(--warm) 14%, #fff); }
.plan-extra-compare-text{ min-width:0; }
.plan-extra-compare-name{ font-size:18px; font-weight:700; }
.plan-extra-compare-card--base .plan-extra-compare-name{ color:var(--hope-strong); }
.plan-extra-compare-card--strong .plan-extra-compare-name{ color:#fff; }
.plan-extra-compare-card--none .plan-extra-compare-name{ color:var(--warm-strong); }
.plan-extra-compare-sub{ font-size:12px; color:var(--ink-muted); margin-top:4px; text-wrap:pretty; }
.plan-extra-compare-note{ font-size:12px; line-height:1.45; color:var(--ink-soft); margin-top:8px; }
.plan-extra-compare-card--strong .plan-extra-compare-sub{ color:rgba(255,255,255,0.74); }
.plan-extra-compare-card--strong .plan-extra-compare-note{ color:rgba(255,255,255,0.82); }
.plan-extra-compare-right{ text-align:right; flex-shrink:0; }
.plan-extra-compare-metric{ font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-muted); margin-bottom:6px; }
.plan-extra-compare-card--strong .plan-extra-compare-metric{ color:rgba(255,255,255,0.76); }
.plan-extra-compare-interest{ font-family:'Fraunces', Georgia, serif; font-size:32px; line-height:1; }
.plan-extra-compare-card--base .plan-extra-compare-interest{ color:var(--hope-strong); }
.plan-extra-compare-card--strong .plan-extra-compare-interest{ color:#fff; }
.plan-extra-compare-card--none .plan-extra-compare-interest{ color:var(--warm-strong); }
.plan-extra-compare-date{ font-size:12px; margin-top:6px; color:var(--ink-muted); }
.plan-extra-compare-card--strong .plan-extra-compare-date{ color:rgba(255,255,255,0.78); }
@media (max-width: 720px){
  .plan-page-wrap{ padding-left:16px; padding-right:16px; overflow-x:clip; }
  .plan-extra-kicker{ text-align:left; }
  .plan-extra-title-row{ display:grid; gap:10px; margin-bottom:16px; }
  .plan-extra-title-row > div,
  .plan-extra-title-row .plan-chart-meta{ width:100%; max-width:100%; }
  .plan-extra-title-row .plan-chart-title{ max-width:none; font-size:clamp(24px, 8vw, 32px); }
  .plan-extra-title-row .plan-chart-meta{ max-width:none; text-align:left; }
  .plan-muted-note{ text-align:left; }
  .plan-extra-slider-box{ padding:18px 16px 16px; border-radius:20px; }
  .plan-extra-slider-head{ align-items:flex-start; }
  .plan-extra-row{ gap:10px; align-items:flex-start; }
  .plan-extra-bar-wrap{ height:64px; }
  .plan-extra-row-head{ align-items:flex-start; }
  .plan-extra-bar{ padding:0 18px; min-width:108px; }
  .plan-extra-row-end{ min-width:84px; width:84px; }
  .plan-extra-row-date{ font-size:14px; }
  .plan-extra-compare-card{ flex-direction:column; align-items:stretch; padding:18px 16px; }
  .plan-extra-compare-left{ align-items:flex-start; }
  .plan-extra-compare-icon{ width:48px; height:48px; font-size:24px; }
  .plan-extra-compare-name{ font-size:16px; }
  .plan-extra-compare-sub,
  .plan-extra-compare-date{ overflow-wrap:anywhere; }
  .plan-extra-compare-right{ text-align:left; flex-shrink:1; min-width:0; }
  .plan-extra-compare-interest{ font-size:28px; }
}

/* ══ PLAN REDESIGN v30.10.46 ═══════════════════════════ */
.plan-page-wrap{
  display:flex;
  flex-direction:column;
  gap:14px;
  max-width:760px;
  padding:12px 16px 42px;
}
#planPayoffStrip{ order:1; margin-bottom:0; }
#planSituationBanner{ order:2; }
#planNextActionCard{ order:3; margin-bottom:0; }
#planMethodCard{ order:4; margin-bottom:0 !important; padding:18px !important; border-radius:28px; border:1px solid var(--border); box-shadow:var(--shadow-sm); background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,246,241,.9)); }
#planFocusCard{ order:5; margin-bottom:0; }
#planExtraSavingsCard{ order:6; margin-bottom:0; }
#planMomentumCard{ order:7; margin-bottom:0; }
#planTimelineSummary{ order:8; margin-bottom:0; }
#planChartCard{ order:9; margin-bottom:0; }
#planConsequenceBox{ order:10; }
#refinansieringKort{ order:11; }
#planWorkspaceCard{ order:12; margin-bottom:0 !important; }
#planDebtList{ order:13; }

.nps{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  padding:20px;
  border:none;
  border-radius:30px;
  background:
    radial-gradient(circle at top right, rgba(255,255,255,.18), transparent 26%),
    linear-gradient(145deg, color-mix(in srgb, var(--hope) 82%, #3a9888), color-mix(in srgb, var(--hope-strong) 88%, #184d43));
  box-shadow:0 18px 40px rgba(32,82,73,.22);
}
.nps-cell{
  padding:0;
  border:none !important;
}
.nps-cell:first-child{
  grid-column:1 / -1;
  padding-bottom:14px;
  border-bottom:1px solid rgba(255,255,255,.14) !important;
}
.nps-lbl{ color:rgba(255,255,255,.66); }
.nps-val,
.nps-sub,
.nps-foot,
.nps-cell strong{ color:#fff; }
.nps-cell:first-child .nps-val{
  font-size:clamp(34px, 8vw, 52px);
  font-weight:700;
  letter-spacing:-.03em;
  line-height:.95;
}
.nps-cell:first-child .nps-sub{
  margin-top:8px;
  font-size:13px;
  color:rgba(255,255,255,.72);
}
.nps-val:not(.nps-cell:first-child .nps-val){
  font-size:clamp(18px, 4vw, 24px);
}
.nps .plan-link-btn{
  color:#fff;
  border-color:rgba(255,255,255,.34);
}

.plan-next-action{
  border:none;
  border-radius:28px;
  padding:18px 18px 16px;
  background:linear-gradient(180deg, color-mix(in srgb, var(--warm-dim) 92%, white), rgba(255,255,255,.92));
  box-shadow:0 14px 36px rgba(61,40,19,.08);
}
.plan-next-action-title{ font-size:clamp(22px, 5vw, 28px); line-height:1.15; }
.plan-next-action-actions{ margin-top:14px; }

.ptl-method-wrap{ margin-bottom:0; }
.ptl-method-toggle{
  width:100%;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:6px;
  padding:6px;
  border:none;
  border-radius:18px;
  background:rgba(239,234,226,.86);
}
.ptl-method-btn{
  min-height:48px;
  border-radius:14px;
  font-size:15px;
  font-weight:700;
}
.ptl-method-btn.active{
  color:var(--hope-strong);
  background:#fff;
  box-shadow:0 8px 18px rgba(24,77,67,.12);
}
.ptl-method-help{
  margin-top:12px;
  font-size:13px;
  line-height:1.55;
}

.nfc{
  border:none;
  border-radius:30px;
  background:rgba(255,255,255,.96);
  box-shadow:0 18px 44px rgba(29,24,20,.08);
}
.nfc-accent{ display:none; }
.nfc-body{ padding:20px; }
.nfc-kicker{ margin-bottom:14px; font-size:11px; letter-spacing:.14em; }
.nfc-main{ margin-bottom:16px; }
.nfc-name{ font-size:clamp(26px, 5.4vw, 34px); }
.nfc-meta{ font-size:13px; margin-top:6px; line-height:1.5; }
.nfc-amount{ font-size:clamp(24px, 5vw, 30px); font-style:normal; font-weight:700; }
.nfc-metrics{
  gap:10px;
  background:transparent;
  overflow:visible;
}
.nfc-metric{
  background:color-mix(in srgb, var(--surface2) 88%, white);
  border:1px solid var(--border);
  border-radius:16px;
}
.nfc-actions{ gap:10px; }
.nfc-pay-btn,
.nfc-actions .btn{ min-height:52px; border-radius:18px; }

.ptl{
  border:none;
  border-radius:30px;
  background:rgba(255,255,255,.96);
  box-shadow:0 18px 42px rgba(29,24,20,.08);
  padding:20px;
}
.ptl-head-kicker{ color:var(--ink-muted); letter-spacing:.14em; }
.ptl-title{
  font-family:'Fraunces', Georgia, serif;
  font-size:clamp(26px, 6vw, 34px);
  line-height:1.05;
  letter-spacing:-.02em;
  margin-bottom:8px;
}
.ptl-sub{ font-size:13px; line-height:1.55; }
.ptl-add-btn{
  width:100%;
  min-height:54px;
  border-radius:18px;
  margin:16px 0 18px;
  justify-content:center;
}
.ptl-card{
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,246,241,.92));
  border:1px solid var(--border);
}
.ptl-card--active{
  border-color:color-mix(in srgb, var(--hope) 30%, var(--border));
  box-shadow:0 10px 24px rgba(42,125,111,.12);
}
.ptl-top{ gap:12px; }
.ptl-name{ font-size:17px; }
.ptl-payoff{ font-size:12px; }
.ptl-meta{ font-size:12px; line-height:1.45; }
.ptl-foot{
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--border);
  font-size:12px;
}

.plan-chart-card{
  border:none;
  border-radius:32px;
  background:rgba(255,255,255,.98);
  box-shadow:0 20px 48px rgba(29,24,20,.08);
  padding:22px 20px 20px;
}
.plan-extra-kicker{
  margin-bottom:8px;
  color:var(--ink-muted);
}
.plan-extra-title-row{
  display:grid;
  gap:12px;
  margin-bottom:18px;
}
.plan-extra-title-row .plan-chart-title{
  font-size:clamp(34px, 9vw, 54px);
  max-width:11ch;
  line-height:.96;
}
.plan-extra-title-row .plan-chart-meta{
  max-width:42ch;
  font-size:14px;
  line-height:1.65;
}
.plan-extra-panel{ display:grid; gap:18px; }
.plan-extra-control-shell{
  display:grid;
  grid-template-columns:minmax(0, 1.1fr) minmax(220px, 260px);
  gap:18px;
  align-items:center;
  padding:18px;
  border-radius:28px;
  background:linear-gradient(180deg, color-mix(in srgb, var(--surface2) 88%, white), color-mix(in srgb, var(--warm-dim) 42%, white));
  border:1px solid color-mix(in srgb, var(--border) 92%, white);
}
.plan-extra-control-copy{ display:grid; gap:12px; align-content:start; }
.plan-extra-slider-label{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--ink-muted); }
.plan-extra-amount-show{
  display:inline-grid;
  justify-items:start;
  gap:6px;
  width:max-content;
  border:none;
  background:none;
  cursor:pointer;
  padding:0;
  text-align:left;
  font:inherit;
}
.plan-extra-amount-number{ display:flex; align-items:flex-end; gap:10px; color:var(--hope-strong); }
.plan-extra-amount-number strong{
  font-family:'Fraunces', Georgia, serif;
  font-size:clamp(44px, 10vw, 64px);
  line-height:.95;
  font-weight:500;
}
.plan-extra-amount-number span{
  font-size:22px;
  color:var(--ink-muted);
  margin-bottom:10px;
}
.plan-extra-amount-hint,
.plan-extra-step-indicator{
  font-size:12px;
  color:var(--ink-muted);
}
.plan-extra-amount-edit{ display:grid; gap:10px; }
.plan-extra-edit-row{ display:flex; align-items:flex-end; gap:10px; }
.plan-extra-edit-input{
  width:170px;
  border:none;
  border-bottom:2px solid color-mix(in srgb, var(--hope) 45%, var(--border));
  background:transparent;
  font-family:'Fraunces', Georgia, serif;
  font-size:46px;
  line-height:1;
  color:var(--hope-strong);
  outline:none;
}
.plan-extra-edit-unit{ font-size:18px; color:var(--ink-muted); margin-bottom:8px; }
.plan-extra-edit-ok{ width:max-content; min-height:42px; border-radius:14px; }
.plan-extra-dial-wrap{ display:grid; gap:14px; justify-items:center; }
.plan-extra-dial-hints{
  width:100%;
  display:flex;
  justify-content:space-between;
  font-size:11px;
  font-weight:700;
  color:var(--ink-muted);
  opacity:.72;
}
.plan-extra-dial-stage{
  position:relative;
  width:220px;
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.plan-extra-dial-svg{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
}
.plan-extra-dial-knob{
  position:relative;
  z-index:2;
  width:158px;
  height:158px;
  border-radius:50%;
  background:radial-gradient(circle at 36% 32%, #49ab99, var(--hope-strong));
  box-shadow:0 16px 36px rgba(35,110,97,.3), inset 0 2px 4px rgba(255,255,255,.2), inset 0 -2px 6px rgba(0,0,0,.2);
  touch-action:none;
  cursor:grab;
}
.plan-extra-dial-knob:active{ cursor:grabbing; }
.plan-extra-dial-grip{
  position:absolute;
  inset:8px;
  border-radius:50%;
  background:
    radial-gradient(circle at center, rgba(255,255,255,.12), transparent 62%),
    repeating-conic-gradient(from 0deg, rgba(255,255,255,.16) 0deg 4deg, transparent 4deg 15deg);
  -webkit-mask:radial-gradient(circle, transparent 0 54px, #000 56px);
  mask:radial-gradient(circle, transparent 0 54px, #000 56px);
  opacity:.78;
}
.plan-extra-dial-indicator{
  position:absolute;
  top:12px;
  left:50%;
  transform:translateX(-50%);
  width:4px;
  height:24px;
  border-radius:999px;
  background:rgba(255,255,255,.92);
}
.plan-extra-slider-ticks{
  width:100%;
  display:flex;
  justify-content:space-between;
  font-size:11px;
  color:var(--ink-muted);
  margin-top:2px;
}
.plan-extra-banner{
  margin-bottom:0;
  border-radius:20px;
  padding:14px 16px;
  background:color-mix(in srgb, var(--hope-dim) 82%, white);
  border:1px solid color-mix(in srgb, var(--hope) 20%, var(--border));
}
.plan-extra-compare{ gap:12px; }
.plan-extra-compare-card{
  border-radius:24px;
  border:1px solid var(--border);
  box-shadow:none;
}
.plan-extra-compare-card--strong{
  background:linear-gradient(140deg, color-mix(in srgb, var(--hope) 96%, #2f8978), color-mix(in srgb, var(--hope-strong) 92%, #174f44));
  border-color:transparent;
}
.plan-extra-compare-card--base{
  background:rgba(237,247,244,.95);
}
.plan-extra-compare-card--none{
  background:rgba(253,240,235,.95);
}
.plan-extra-compare-note{ max-width:28ch; }

@media (max-width: 720px){
  .plan-page-wrap{ padding:12px 14px 36px; }
  .nps{ grid-template-columns:1fr; gap:12px; padding:18px; border-radius:28px; }
  .nps-cell:first-child{ grid-column:auto; }
  .nps-cell:first-child .nps-val{ font-size:clamp(30px, 10vw, 42px); }
  .plan-next-action-title{ font-size:clamp(20px, 7vw, 26px); }
  #planMethodCard{ padding:16px !important; border-radius:24px; }
  .ptl-method-toggle{ grid-template-columns:1fr; }
  .nfc,
  .ptl,
  .plan-chart-card{ border-radius:26px; }
  .nfc-body,
  .ptl,
  .plan-chart-card{ padding:18px 16px; }
  .nfc-main{ flex-direction:column; align-items:flex-start; }
  .nfc-amount-wrap{ text-align:left; }
  .nfc-metrics{ grid-template-columns:1fr; }
  .plan-extra-title-row .plan-chart-title{ font-size:clamp(28px, 10vw, 40px); max-width:none; }
  .plan-extra-control-shell{ grid-template-columns:1fr; padding:16px; border-radius:24px; }
  .plan-extra-amount-number strong{ font-size:52px; }
  .plan-extra-amount-number span{ font-size:20px; margin-bottom:8px; }
  .plan-extra-edit-input{ width:100%; font-size:42px; }
  .plan-extra-dial-stage{ width:206px; height:206px; }
  .plan-extra-dial-knob{ width:146px; height:146px; }
  .plan-extra-compare-card{ padding:18px 16px; }
}
