/* 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) */
.eco-wizard{ max-width: 980px; }
.eco-wiz-card{
  background: rgba(255,255,255,0.78);
  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.78; 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.75; 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: rgba(255,255,255,0.55);
}
.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: #c94b4b22; color: #c94b4b; border: 1.5px solid #c94b4b44; }
.prio-2 { background: #c4622d22; color: #c4622d; border: 1.5px solid #c4622d44; }
.prio-3 { background: #e8a02022; color: #c28000; border: 1.5px solid #e8a02044; }
.prio-4 { background: #4a6fa522; color: #4a6fa5; border: 1.5px solid #4a6fa544; }
.prio-5 { background: #2a7d6f22; color: #2a7d6f; border: 1.5px solid #2a7d6f44; }
.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: #fff;
  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: rgba(201,75,75,0.12); color: #c94b4b; }
.hier-chip.warn   { background: rgba(232,160,32,0.12); color: #b07800; }
.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: rgba(201,75,75,0.1); color: #c94b4b; }
.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: rgba(232,160,32,0.07); border: 1px solid rgba(232,160,32,0.2); }
.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: #fff; }

/* 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: #fff; 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: rgba(201,75,75,0.12); color: #c94b4b; }
.hier-chip.warn   { background: rgba(232,160,32,0.12); color: #b07800; }
.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: #fff;
  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: rgba(232,160,32,0.07); border: 1px solid rgba(232,160,32,0.2); }
.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, rgba(249,246,241,0.92), rgba(249,246,241,0.72)); 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, rgba(249,246,241,0.92), rgba(249,246,241,0.72));
  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(--border);
  background: rgba(255,255,255,0.55);
  color: var(--ink);
  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: rgba(255,255,255,0.72); }
.nav-tab:active{ transform: translateY(1px); }
.nav-tab.active{
  background: rgba(42,125,111,0.14);
  border-color: rgba(42,125,111,0.35);
}
.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: rgba(249,246,241,0.92); 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;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(249,246,241,0.92);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  z-index: 60;
}
#bottomNav .nav-tab{
  flex: 1;
  border: 1px solid rgba(0,0,0,0.06);
  background: rgba(255,255,255,0.70);
  border-radius: 16px;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink-soft);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
#bottomNav .nav-tab:hover{ background: rgba(255,255,255,0.86); }
#bottomNav .nav-tab:active{ transform: translateY(1px); }
#bottomNav .nav-tab.active{
  background: var(--ink);
  color: white;
  border-color: rgba(0,0,0,0.2);
}
#bottomNav .nav-ico{ font-size: 18px; line-height: 1; }
#bottomNav .nav-lbl{ font-size: 11px; font-weight: 800; letter-spacing: .2px; }

.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), rgba(255,255,255,0.96)); }
.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 rgba(74,111,165,0.2); background:rgba(74,111,165,0.08); 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 rgba(42,125,111,0.2); background:linear-gradient(180deg, rgba(42,125,111,0.06), rgba(255,255,255,0.95)); }
.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 rgba(74,111,165,0.2); background:linear-gradient(180deg, rgba(74,111,165,0.07), rgba(255,255,255,0.95)); }
.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:rgba(42,125,111,0.12); border:1px solid rgba(42,125,111,0.24); 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), rgba(255,255,255,0.95)); 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:rgba(255,255,255,0.8); 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, rgba(42,125,111,1) 0%, rgba(33,98,87,1) 100%);
  color:#fff;
  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: rgba(255,255,255,0.72);
  border-radius: var(--radius-md, 18px);
  padding: 14px 14px;
  box-shadow: var(--shadow-sm);
}
.action-card:hover{ background: rgba(255,255,255,0.92); }

/* 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, #2a7d6f);
  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:var(--hope-dim);      border-color:rgba(42,125,111,.22); }
.sit-card--amber  { background:var(--sun-dim);        border-color:rgba(232,160,32,.25); }
.sit-card--red    { background:var(--soft-red-dim);   border-color:rgba(201,75,75,.22); }
.sit-card--neutral{ background:var(--surface2);       border-color:var(--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:uppercase; 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; }

/* 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; }
.ndc-badge--active  { background:var(--hope-dim);     color:var(--hope);     border:1px solid rgba(42,125,111,.22); }
.ndc-badge--overdue { background:var(--soft-red-dim); color:var(--soft-red); border:1px solid rgba(201,75,75,.2); }
.ndc-badge--paid    { background:var(--calm-dim);     color:var(--calm);     border:1px solid rgba(74,111,165,.22); }
.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-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(--hope-dim); color:var(--hope); border-color:rgba(42,125,111,.3); }
.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: rgba(232,160,32,.14); color: #a56b04; border-color: rgba(232,160,32,.3); }
.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-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-progress { margin-top: 6px; }
.ptl-progress-track { height: 6px; border-radius: 99px; background: #ebe5db; 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-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:160px; }
.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), rgba(255,255,255,0.96)); 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;
}
