/* LCI public dashboard — complements site style.css */
.lci-dash {
  --lci-ink: #1a1a2e;
  --lci-muted: #5c5c6e;
  --lci-card: #fff;
  --lci-border: rgba(106, 90, 205, 0.22);
  --lci-accent: #6a5acd;
  --lci-good: #2d8a54;
  --lci-warn: #FFC64B;
  --lci-bad: #c44c4c;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 18px 48px;
  color: var(--lci-ink);
}

/* Guard against global theme overrides (e.g. white text on light cards). */
.lci-dash,
.lci-dash .lci-card,
.lci-dash .lci-card h2,
.lci-dash .lci-methodology-prose,
.lci-dash .lci-live-meta,
.lci-dash .lci-chart-caption,
.lci-dash .lci-basket-name,
.lci-dash .lci-basket-pct,
.lci-dash .lci-sources-table th,
.lci-dash .lci-sources-table td,
.lci-dash .lci-signal-field label,
.lci-dash .lci-signal-hint {
  color: var(--lci-ink);
}

.lci-dash .lci-dash-hero p,
.lci-dash .lci-live-sem-tension,
.lci-dash .lci-live-meta,
.lci-dash .lci-chart-caption,
.lci-dash .lci-basket-pct,
.lci-dash .lci-sources-table th,
.lci-dash .lci-signal-field label,
.lci-dash .lci-signal-hint {
  color: var(--lci-muted);
}

.lci-dash input,
.lci-dash select,
.lci-dash textarea {
  color: var(--lci-ink);
  -webkit-text-fill-color: var(--lci-ink);
  background: #fff;
  border-color: var(--lci-border);
}

.lci-dash .lci-signal-field input,
.lci-dash .lci-signal-field select {
  color: var(--lci-ink) !important;
  -webkit-text-fill-color: var(--lci-ink) !important;
  background: #fff !important;
  border: 1.5px solid rgba(73, 73, 102, 0.45) !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.lci-dash .lci-signal-field input::placeholder {
  color: #6f7482 !important;
  -webkit-text-fill-color: #6f7482 !important;
  opacity: 1;
}

.lci-dash .lci-signal-field select option {
  color: #1a1a2e;
  background: #fff;
}

.lci-dash .lci-signal-field input:hover,
.lci-dash .lci-signal-field select:hover {
  border-color: rgba(106, 90, 205, 0.65) !important;
}

.lci-dash .lci-signal-field input:focus,
.lci-dash .lci-signal-field select:focus {
  outline: none;
  border-color: #6a5acd !important;
  box-shadow: 0 0 0 3px rgba(106, 90, 205, 0.2), inset 0 0 0 1px rgba(255, 255, 255, 0.65);
  background: #fff;
}

.lci-dash-hero {
  text-align: center;
  padding: 8px 0 24px;
}
.lci-lang-toggle-wrap {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}
.lci-lang-toggle {
  min-width: 72px;
  font-weight: 700;
}
.lci-dash-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--lci-ink);
  letter-spacing: -0.02em;
}
.lci-dash-hero h1 .lci-hero-head {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem 0.55rem;
  max-width: 100%;
  text-align: center;
}
.lci-dash-hero h1 .lci-hero-head .fa-coins,
.lci-dash-hero h1 .lci-hero-head .ggs-help-btn {
  flex-shrink: 0;
}
.lci-dash-hero h1 .lci-hero-head .ggs-help-btn {
  align-self: center;
  margin: 0;
}
.lci-dash-hero p {
  margin: 0 auto;
  max-width: 640px;
  color: var(--lci-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.lci-dash-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .lci-dash-grid.lci-dash-grid-top {
    grid-template-columns: 1.1fr 0.9fr;
  }
  .lci-dash-grid.lci-dash-grid-top-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.lci-card {
  background: var(--lci-card);
  border: 1px solid var(--lci-border);
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 8px 28px rgba(26, 26, 46, 0.06);
}

.lci-card h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lci-ink);
  text-align: center;
}

.lci-dash .lci-card > .lci-methodology-prose,
.lci-dash .lci-card > p.lci-top-card-line,
.lci-dash .lci-card > .lci-chart-caption,
.lci-dash .lci-advanced-details > section > h2 {
  text-align: center;
}

.lci-dash .lci-personal-section-title {
  text-align: center;
}

.lci-dash-grid-top-3 .lci-live-score-wrap,
.lci-dash-grid-top-3 .lci-confidence-wrap,
.lci-dash-grid-top-3 .lci-top-card-more .lci-methodology-prose {
  text-align: center;
}

.lci-dash-grid-top-3 .lci-region-form,
.lci-dash-grid-top-3 .lci-region-human {
  text-align: left;
  max-width: 420px;
  margin-inline: auto;
}

#lci-basket-breakdown {
  text-align: center;
}

.lci-top-card-line {
  margin: 0 0 8px;
  font-size: 0.86rem;
  line-height: 1.4;
}

.lci-top-card-more {
  border: 1px solid rgba(106, 90, 205, 0.2);
  border-radius: 10px;
  background: rgba(106, 90, 205, 0.03);
  padding: 8px 10px 10px;
}

.lci-top-card-more-summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--lci-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lci-top-card-more-summary::-webkit-details-marker {
  display: none;
}

.lci-top-card-more[open] .lci-top-card-more-summary {
  margin-bottom: 6px;
}

.lci-top-card-region-form {
  margin-top: 10px;
}

.lci-live-score-wrap {
  margin: 0 0 4px;
  max-width: 100%;
}
.lci-live-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  max-width: 100%;
  margin: 0 0 8px;
  line-height: 1.1;
}
.lci-live-score .lci-live-score-prefix {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--lci-muted);
  margin: 0;
  text-align: center;
  line-height: 1.35;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.lci-live-score .lci-live-score-num {
  font-size: clamp(1.6rem, 4.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--lci-accent);
}
.lci-dash-grid-top-3 .lci-live-score .lci-live-score-num {
  font-size: clamp(1.35rem, 3.2vw, 1.85rem);
}
.lci-dash-grid-top-3 .lci-live-score .lci-live-score-prefix {
  font-size: 0.68rem;
}
.lci-live-sem-pressure {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--lci-ink);
  line-height: 1.35;
}
.lci-live-sem-tension {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--lci-muted);
  line-height: 1.4;
}
.lci-live-meta {
  font-size: 0.85rem;
  color: var(--lci-muted);
  margin: 0 0 18px;
}

.lci-banner {
  font-size: 0.82rem;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  background: rgba(201, 162, 39, 0.12);
  border: 1px solid rgba(201, 162, 39, 0.35);
  color: #6a5420;
}

.lci-confidence-wrap {
  margin-top: 8px;
}
.lci-confidence-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.lci-confidence-pct {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--lci-ink);
}
.lci-confidence-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(106, 90, 205, 0.12);
  color: var(--lci-accent);
}

.lci-confidence-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #c44c4c 0%,
    #c44c4c 35%,
    #FFC64B 35%,
    #FFC64B 60%,
    #6a5acd 60%,
    #6a5acd 85%,
    #2d8a54 85%,
    #2d8a54 100%
  );
  position: relative;
  margin-top: 4px;
}
.lci-confidence-marker {
  position: absolute;
  top: -5px;
  width: 4px;
  height: 20px;
  margin-left: -2px;
  border-radius: 2px;
  background: #1a1a2e;
  box-shadow: 0 0 0 2px #fff;
}

.lci-region-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}
.lci-region-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--lci-muted);
}
.lci-region-form input {
  flex: 1;
  min-width: 140px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--lci-border);
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
}
.lci-region-form button {
  padding: 10px 18px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: var(--lci-accent);
  color: #fff;
}
.lci-region-form button:hover {
  filter: brightness(1.06);
}
.lci-region-form .lci-region-auto-btn {
  background: #fff;
  color: var(--lci-accent);
  border: 1px solid var(--lci-border);
}
.lci-region-form .lci-region-auto-btn:hover {
  background: rgba(106, 90, 205, 0.08);
  filter: none;
}
.lci-region-human {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: var(--lci-muted);
}

.lci-chart-wrap {
  width: 100%;
  overflow-x: auto;
}
.lci-chart {
  width: 100%;
  min-height: 220px;
  display: block;
}
.lci-chart-caption {
  font-size: 0.78rem;
  color: var(--lci-muted);
  margin-top: 8px;
}

.lci-basket-row {
  display: grid;
  grid-template-columns: minmax(100px, 1.2fr) 3fr 48px;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.86rem;
}
.lci-basket-name {
  color: var(--lci-ink);
  font-weight: 600;
  word-break: break-word;
}
.lci-basket-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(106, 90, 205, 0.12);
  overflow: hidden;
}
.lci-basket-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #8b7bd4, #6a5acd);
}
.lci-basket-pct {
  text-align: right;
  color: var(--lci-muted);
  font-variant-numeric: tabular-nums;
}

.lci-sources-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.lci-sources-table th,
.lci-sources-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  vertical-align: top;
}
.lci-sources-table th {
  color: var(--lci-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.68rem;
}
.lci-sources-table code {
  font-size: 0.72rem;
  background: rgba(106, 90, 205, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
}

.lci-methodology-prose {
  font-size: 0.88rem;
  color: #444;
  line-height: 1.65;
  margin: 0 0 12px;
}

.lci-dash-loading {
  color: var(--lci-muted);
  font-size: 0.9rem;
}
.lci-dash-error {
  color: var(--lci-bad);
  font-size: 0.9rem;
}

/* Crowd signal form */
.lci-signal-card .lci-signal-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px 16px;
  margin-top: 8px;
}
@media (min-width: 640px) {
  .lci-signal-card .lci-signal-form {
    grid-template-columns: 1fr 1fr;
  }
  .lci-signal-field-wide {
    grid-column: 1 / -1;
  }
  .lci-signal-actions {
    grid-column: 1 / -1;
  }
}
.lci-signal-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lci-muted);
  margin-bottom: 6px;
}
.lci-signal-field input,
.lci-signal-field select {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--lci-border);
  font-family: inherit;
  font-size: 0.9rem;
  background: #fff;
}
.lci-signal-field input.lci-signal-currency-input {
  font-family: ui-monospace, monospace;
  text-transform: uppercase;
}
.lci-signal-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--lci-muted);
  margin-top: 4px;
}
.lci-signal-optional {
  font-weight: 500;
  color: #888;
}
.lci-signal-income-note {
  margin: 0;
  font-size: 0.78rem;
  color: var(--lci-muted);
  line-height: 1.45;
  grid-column: 1 / -1;
}
@media (min-width: 640px) {
  .lci-signal-income-note {
    grid-column: 1 / -1;
  }
}
.lci-signal-actions {
  margin-top: 4px;
}
.lci-signal-submit {
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  background: var(--lci-accent);
  color: #fff;
  font-size: 0.95rem;
}
.lci-signal-submit:hover:not(:disabled) {
  filter: brightness(1.06);
}
.lci-signal-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.lci-signal-status {
  margin: 14px 0 0;
  font-size: 0.88rem;
  line-height: 1.45;
  padding: 10px 12px;
  border-radius: 10px;
}
.lci-signal-status.lci-signal-status-ok {
  background: rgba(45, 138, 84, 0.12);
  border: 1px solid rgba(45, 138, 84, 0.35);
  color: #1e5c38;
}
.lci-signal-status.lci-signal-status-err {
  background: rgba(196, 76, 76, 0.1);
  border: 1px solid rgba(196, 76, 76, 0.35);
  color: #8b2a2a;
}

.lci-personal-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--lci-ink);
}

.lci-personal-form .lci-personal-section {
  margin: 0;
  padding: 0;
  border: none;
}

.lci-eval-main-card {
  text-align: center;
}

.lci-eval-main-title,
.lci-eval-main-subtitle {
  text-align: center;
}

.lci-eval-country-details,
.lci-eval-columns {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.lci-eval-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  align-items: start;
}

.lci-eval-col {
  border: 1px solid rgba(106, 90, 205, 0.18);
  border-radius: 12px;
  padding: 12px;
  background: rgba(106, 90, 205, 0.02);
}

.lci-eval-row {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
  align-items: end;
}

.lci-eval-row-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lci-eval-subsection {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(106, 90, 205, 0.16);
}

.lci-eval-expense-hint {
  font-size: 0.74rem;
  line-height: 1.3;
  margin-bottom: 6px;
}

.lci-personal-form .lci-personal-section + .lci-personal-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(106, 90, 205, 0.18);
}

.lci-personal-section-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--lci-ink);
}

.lci-personal-details {
  border: 1px solid var(--lci-border);
  border-radius: 12px;
  padding: 8px 12px 12px;
  background: rgba(106, 90, 205, 0.04);
}

.lci-personal-details-summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--lci-accent);
  list-style: none;
}

.lci-personal-details-summary::-webkit-details-marker {
  display: none;
}

.lci-personal-details[open] .lci-personal-details-summary {
  margin-bottom: 4px;
}

.lci-expense-item-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--lci-border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(26, 26, 46, 0.04);
}

.lci-expense-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}

.lci-expense-item-amount-block {
  flex: 1;
  min-width: 140px;
}

.lci-expense-amount-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lci-muted);
  margin-bottom: 6px;
}

.lci-expense-item-amount-block .lci-expense-item-amount {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(73, 73, 102, 0.45);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.lci-expense-item-details {
  border-top: 1px dashed rgba(106, 90, 205, 0.2);
  padding-top: 8px;
  margin-top: 2px;
}

.lci-expense-item-details-summary {
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--lci-muted);
  list-style: none;
}

.lci-expense-item-details-summary::-webkit-details-marker {
  display: none;
}

.lci-expense-item-details .lci-expense-item-label {
  width: 100%;
  box-sizing: border-box;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid var(--lci-border);
  font-size: 0.9rem;
}

.lci-expense-item-remove {
  border: 1px solid rgba(196, 76, 76, 0.35);
  background: rgba(196, 76, 76, 0.08);
  color: #8b2a2a;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  flex-shrink: 0;
}

/* Small secondary control — “Add another expense row” in Moment(s) */
.lci-dash .lci-compare-expense-tools .lci-expense-add-btn,
.lci-dash .lci-compare-add-expense-row {
  align-self: flex-start;
  margin-top: 0;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.25;
  border-width: 1px;
  border-radius: 8px;
}

.lci-breathing-bar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid var(--lci-border);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 10px;
}

.lci-breathing-bar-segment {
  font-size: 0.72rem;
  text-align: center;
  padding: 8px 4px;
  font-weight: 600;
  color: #40445a;
  border-right: 1px solid rgba(115, 116, 155, 0.18);
  background: linear-gradient(180deg, rgba(106, 90, 205, 0.08), rgba(106, 90, 205, 0.03));
}

.lci-breathing-bar-segment:last-child {
  border-right: none;
}

.lci-breathing-bar-marker {
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 2px;
  background: #b12727;
  transform: translateX(-1px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
}

.lci-personal-callout {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(106, 90, 205, 0.24);
  background: rgba(106, 90, 205, 0.08);
  font-size: 0.84rem;
  color: #333a56;
}

.lci-delta-callout {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(38, 89, 168, 0.32);
  background: linear-gradient(180deg, rgba(38, 89, 168, 0.12), rgba(38, 89, 168, 0.06));
  font-size: 0.84rem;
  color: #20335e;
}

.lci-personal-key-line {
  margin: 0 0 12px;
  font-size: 1.03rem;
  line-height: 1.35;
  font-weight: 700;
  color: #2d2f45;
}

.lci-personal-result-card {
  margin-top: 12px;
  border-radius: 14px;
}

.lci-personal-result-card-mbr {
  border-color: rgba(38, 89, 168, 0.26);
  box-shadow: 0 7px 24px rgba(38, 89, 168, 0.09);
}

.lci-personal-result-card-lci {
  border-color: rgba(45, 138, 84, 0.35);
  box-shadow: 0 7px 24px rgba(45, 138, 84, 0.1);
  background: linear-gradient(180deg, rgba(45, 138, 84, 0.07), rgba(45, 138, 84, 0.02));
}

.lci-personal-result-card-wealth {
  border-color: rgba(184, 134, 11, 0.45);
  box-shadow: 0 12px 32px rgba(184, 134, 11, 0.18);
  background: linear-gradient(180deg, rgba(255, 215, 100, 0.22), rgba(255, 248, 220, 0.5));
  margin-top: 10px;
}

.lci-personal-result-card-money-strength {
  border-color: rgba(46, 125, 90, 0.45);
  box-shadow: 0 12px 32px rgba(46, 125, 90, 0.16);
  background: linear-gradient(180deg, rgba(180, 230, 200, 0.28), rgba(240, 255, 248, 0.55));
  margin-top: 0;
}

.lci-money-strength-headline {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: #1e4d38;
  margin: 0 0 6px;
}

.lci-money-strength-pct {
  font-variant-numeric: tabular-nums;
}

.lci-money-strength-band {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #1a4030;
}

.lci-money-strength-emotional,
.lci-money-strength-change,
.lci-money-strength-conf {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #3a4d48;
}

.lci-strength-delta-tone-easier {
  --lci-tone-color: #1a7f37;
}

.lci-strength-delta-tone-harder {
  --lci-tone-color: #b42318;
}

.lci-strength-delta-tone-mixed {
  --lci-tone-color: #8a6d00;
}

/* Hero card's "Compared to before" line: the sentence itself stays plain/black —
   only the arrow + number are big and colored by direction, same size as the
   Then/Now numbers above so it reads at a glance. */
.lci-money-strength-change.lci-strength-delta {
  color: #14181f;
  font-size: 0.92rem;
}

.lci-money-strength-change.lci-strength-delta .lci-strength-delta-arrow,
.lci-money-strength-change.lci-strength-delta strong {
  font-size: clamp(1.85rem, 5.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
  color: var(--lci-tone-color, #14181f);
}

body.ios-theme .section.section-light .feature-block.feature-bordered .lci-money-strength-change.lci-strength-delta,
body.ios-theme .section.section-light-alt .feature-block.feature-bordered .lci-money-strength-change.lci-strength-delta {
  color: #14181f !important;
  -webkit-text-fill-color: #14181f !important;
}

body.ios-theme .section.section-light .feature-block.feature-bordered .lci-money-strength-change.lci-strength-delta strong,
body.ios-theme .section.section-light-alt .feature-block.feature-bordered .lci-money-strength-change.lci-strength-delta strong {
  color: var(--lci-tone-color, #14181f) !important;
  -webkit-text-fill-color: var(--lci-tone-color, #14181f) !important;
}

.lci-money-strength-scale-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #666;
  line-height: 1.35;
}

.lci-money-strength-bar,
.lci-wealth-bar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lci-money-strength-bar .lci-breathing-bar-segment {
  font-size: 0.65rem;
  color: #888;
}

.lci-money-strength-bar-mid {
  text-align: center;
}

.lci-money-strength-bar-marker {
  background: linear-gradient(180deg, #3cb371, #2e7d5a);
  border-color: #1e5c40;
}

/* Big number + people scale (you / most people / then) */
.lci-result-strength-hero {
  margin: 0 0 18px;
}

.lci-result-strength-hero .lci-personal-result-card-money-strength {
  text-align: center;
  padding: 22px 18px 18px;
}

.lci-strength-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 10px;
  align-items: end;
}

.lci-strength-dual-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lci-strength-dual-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a6a62;
}

.lci-strength-dual-num {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  color: #1e4d38;
}

.lci-strength-dual-now .lci-strength-dual-num {
  color: #145a32;
}

.lci-strength-periods {
  display: grid;
  gap: 18px;
  margin: 0 0 8px;
}

.lci-strength-periods-multi {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .lci-strength-periods-multi {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }

  .lci-strength-periods-multi:has(> :nth-child(3)) {
    grid-template-columns: repeat(auto-fit, minmax(12.5rem, 1fr));
  }
}

.lci-strength-period {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
}

.lci-strength-period-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a6a62;
  margin-bottom: 4px;
}

.lci-strength-period-num {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  font-size: clamp(1.85rem, 5.5vw, 2.85rem);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  color: #1e4d38;
  margin-bottom: 4px;
}

.lci-strength-period-arrow {
  font-size: 0.5em;
  line-height: 1;
}

.lci-strength-period-arrow-tone-easier {
  color: #1a7f37;
}

.lci-strength-period-arrow-tone-harder {
  color: #b42318;
}

.lci-strength-period-arrow-tone-mixed {
  color: #8a6d00;
}

.lci-strength-periods-hint {
  margin-top: 2px;
}

.lci-majority-caption {
  margin: 8px 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: #555;
  text-align: center;
}

.lci-people-scale-compact .lci-majority-caption {
  margin-top: 6px;
  font-size: 0.68rem;
}

.lci-people-scale-compact .lci-people-scale-track {
  margin: 24px 0 18px;
}

.lci-money-strength-headline {
  font-size: clamp(2.25rem, 7vw, 3.4rem);
  line-height: 1.05;
}

.lci-people-scale {
  margin: 14px auto 4px;
  max-width: 34rem;
  text-align: left;
}

.lci-people-scale-ends {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  font-weight: 650;
  color: #6a736e;
  margin-bottom: 6px;
}

.lci-people-scale-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #d9e2dc 0%, #b7cfc0 45%, #5fa87a 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  margin: 28px 0 22px;
}

.lci-people-scale-majority-band {
  position: absolute;
  top: -3px;
  bottom: -3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed rgba(40, 70, 55, 0.35);
  pointer-events: none;
}

.lci-people-scale-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 0;
}

.lci-people-scale-pin {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.lci-people-scale-marker-you .lci-people-scale-pin {
  background: #1e7a45;
  width: 16px;
  height: 16px;
}

.lci-people-scale-marker-majority .lci-people-scale-pin {
  background: #8a9490;
}

.lci-people-scale-marker-compare .lci-people-scale-pin {
  background: #2f6fad;
}

.lci-people-scale-tag {
  position: absolute;
  top: -26px;
  white-space: nowrap;
  font-size: 0.68rem;
  font-weight: 700;
  color: #24352c;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 2px 6px;
  line-height: 1.2;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.lci-people-scale-marker-compare .lci-people-scale-tag {
  top: auto;
  bottom: -26px;
  color: #1e3f5c;
}

.lci-people-scale-marker-near-start .lci-people-scale-tag {
  transform: translateX(40%);
}

.lci-people-scale-marker-near-end .lci-people-scale-tag {
  transform: translateX(-40%);
}

.lci-people-scale-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: #888;
  font-variant-numeric: tabular-nums;
  margin-top: -12px;
}

.lci-people-scale-hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #666;
  text-align: center;
}

.lci-story-card-money .lci-people-scale {
  margin-top: 8px;
  margin-bottom: 8px;
}

.lci-story-card-money .lci-story-answer-num {
  font-size: clamp(2rem, 6vw, 2.85rem);
  line-height: 1.05;
}

.lci-dash-human .lci-result-strength-hero .lci-money-strength-emotional,
.lci-dash-human .lci-result-strength-hero .lci-money-strength-change,
.lci-dash-human .lci-result-strength-hero .lci-money-strength-conf {
  display: none;
}

/* Un-hide just the colored "Compared to before: ..." verdict line: this rule was
   silently swallowing it (display:none on .lci-money-strength-change above), so the
   new arrow+color treatment computed correctly but never rendered on money1/
   life-pressure-mirror at all — the one line worth keeping visible here, unlike the
   longer emotional/confidence paragraphs this simplified view intentionally drops. */
.lci-dash-human .lci-result-strength-hero .lci-money-strength-change.lci-strength-delta {
  display: block;
}

.lci-dash-human .lci-result-strength-hero .lci-people-scale-hint,
.lci-dash-human .lci-result-strength-hero .lci-strength-periods-hint {
  display: block;
  color: #555;
}

.lci-dash-human .lci-result-strength-hero .lci-snapshot-provenance {
  display: none;
}

.lci-compare-snapshot-metric-money-strength {
  order: -2;
  border-color: rgba(46, 125, 90, 0.35);
  background: rgba(240, 255, 248, 0.65);
}

.lci-wealth-headline {
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  color: #5c4a12;
  margin: 0 0 6px;
}

.lci-wealth-pct {
  font-variant-numeric: tabular-nums;
}

.lci-wealth-band {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #4a3d18;
}

.lci-wealth-emotional,
.lci-wealth-change {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #4a4d62;
}

.lci-wealth-scale-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #666;
  line-height: 1.35;
}

.lci-wealth-bar .lci-breathing-bar-segment {
  font-size: 0.65rem;
  color: #888;
}

.lci-wealth-bar-mid {
  text-align: center;
}

.lci-wealth-bar-marker {
  background: linear-gradient(180deg, #d4a017, #b8860b);
  border-color: #8b6914;
}

.lci-compare-snapshot-metric-wealth {
  order: -1;
  border-color: rgba(184, 134, 11, 0.35);
  background: rgba(255, 248, 220, 0.65);
}

.lci-personal-result-card-pressure {
  border-color: rgba(106, 90, 205, 0.4);
  box-shadow: 0 10px 30px rgba(106, 90, 205, 0.16);
  background: linear-gradient(180deg, rgba(106, 90, 205, 0.14), rgba(106, 90, 205, 0.04));
}

.lci-life-pressure-headline {
  font-size: clamp(1.4rem, 3.1vw, 1.9rem);
  color: #272756;
}

.lci-life-pressure-state {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #343b60;
  line-height: 1.4;
}

.lci-life-pressure-trend {
  margin: 0;
  font-size: 0.82rem;
  color: #50597d;
}

.lci-lci-headline {
  font-size: 1.35rem;
}

.lci-lci-tagline {
  margin: 0 0 12px;
  font-size: 0.84rem;
  color: #4a4d62;
  line-height: 1.4;
}

.lci-lci-tagline-nominal-hint {
  color: #453894;
  font-weight: 700;
}

.lci-lci-unavailable {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #8a5a2b;
  line-height: 1.35;
}

.lci-lci-gaps {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 198, 75, 0.08);
  border: 1px solid rgba(255, 198, 75, 0.2);
  font-size: 0.82rem;
  line-height: 1.45;
  color: #4a3d2e;
}

.lci-prov-gaps.lci-lci-gaps {
  margin: 8px 0 12px;
}

.lci-lci-gaps-title {
  margin: 0 0 6px;
  font-weight: 600;
  font-size: 0.84rem;
  color: #5c4528;
}

.lci-lci-gaps-list {
  margin: 0;
  padding-left: 1.1rem;
}

.lci-lci-gaps-list li {
  margin: 0 0 4px;
}

.lci-lci-gap-warn {
  color: #7a4a1a;
}

.lci-lci-gap-info {
  color: #4a5568;
}

.lci-lci-gap-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #5c5f74;
}

.lci-living-details {
  margin-top: 10px;
}

.lci-living-chain {
  margin: 0 0 10px;
  font-size: 0.8rem;
  color: #4a4d62;
  line-height: 1.45;
}

.lci-living-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin: 0 0 10px;
}

.lci-living-table th,
.lci-living-table td {
  border: 1px solid #e2e4ef;
  padding: 6px 8px;
  vertical-align: top;
}

.lci-living-table th {
  background: #f5f6fb;
  text-align: left;
  font-weight: 600;
}

.lci-living-cat-en {
  font-size: 0.72rem;
  color: #6b7088;
  margin-top: 2px;
}

.lci-living-val {
  white-space: nowrap;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lci-living-st-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
}

.lci-living-st-ok {
  background: rgba(34, 160, 107, 0.12);
  color: #1d6b47;
}

.lci-living-st-missing {
  background: rgba(180, 60, 60, 0.1);
  color: #8a3030;
}

.lci-living-st-fallback,
.lci-living-st-proxy {
  background: rgba(214, 158, 46, 0.12);
  color: #8A6D00;
}

.lci-living-src-row td {
  background: #fafbff;
  font-size: 0.72rem;
  color: #555b72;
}

.lci-living-src-en {
  color: #7a8199;
}

.lci-living-manual-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.7rem;
  color: #5c5f74;
}

.lci-living-manual-input {
  width: 100%;
  max-width: 7rem;
  padding: 4px 6px;
  border: 1px solid #ccd0e4;
  border-radius: 6px;
  font-size: 0.78rem;
}

.lci-living-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 8px;
}

.lci-living-api-note {
  margin: 0;
}

.lci-methodology-advanced {
  font-size: 0.8rem;
  color: #5c5f74;
  line-height: 1.45;
}

.lci-advanced-lede {
  margin: 0 0 10px;
}

.lci-decomposition-list {
  margin: 0 0 10px;
  padding-left: 1.15rem;
}

.lci-decomposition-list li {
  margin: 0 0 6px;
}

.lci-decomposition-val {
  font-weight: 700;
  color: #3d4260;
  margin-left: 6px;
}

.lci-advanced-notes,
.lci-advanced-inputs {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #6a6e86;
}

.lci-personal-result-card-grv {
  border-color: rgba(86, 63, 168, 0.28);
  box-shadow: 0 8px 26px rgba(106, 90, 205, 0.11);
  background: linear-gradient(180deg, rgba(106, 90, 205, 0.06), rgba(106, 90, 205, 0.015));
}

.lci-personal-result-card-grv-legacy {
  opacity: 0.92;
  border-color: rgba(106, 90, 205, 0.16);
  box-shadow: 0 4px 16px rgba(80, 80, 110, 0.06);
  background: linear-gradient(180deg, rgba(106, 90, 205, 0.03), rgba(250, 250, 252, 0.9));
}

.lci-grv-legacy-title {
  font-size: 0.98rem;
}

.lci-grv-legacy-title strong,
.lci-grv-legacy-title .lci-grv-legacy-denom {
  font-size: clamp(1.85rem, 5.5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.05;
}

.lci-grv-legacy-note {
  font-size: 0.76rem !important;
  color: #7a7e96 !important;
}

.lci-personal-result-card-details {
  border-color: rgba(106, 90, 205, 0.2);
}

.lci-personal-result-block {
  margin-top: 12px;
}

.lci-personal-card-kicker {
  margin: 0 0 5px;
  font-size: 0.78rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.lci-personal-card-title {
  margin: 0 0 10px;
  font-size: 1.02rem;
  color: #222;
  line-height: 1.3;
}

.lci-personal-card-score {
  color: #555;
  font-size: 0.95rem;
}

.lci-grv-interpretation {
  margin: 0 0 10px;
  font-size: 0.92rem;
  color: #222;
  line-height: 1.38;
}

.lci-grv-drivers-wrap {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(106, 90, 205, 0.22);
  background: rgba(106, 90, 205, 0.04);
}

.lci-grv-drivers-title {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: #555;
}

.lci-grv-driver-row {
  margin: 0 0 5px;
  font-size: 0.84rem;
  color: #4c4f67;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.lci-grv-driver-row:last-child {
  margin-bottom: 0;
}

.lci-grv-driver-row span {
  color: #545878;
}

.lci-grv-disclaimer {
  margin: 0;
  font-size: 0.8rem;
  color: #5c5f74;
  line-height: 1.35;
}

.lci-grv-note {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #777;
  line-height: 1.35;
}

.lci-grv-scale-note {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #666;
  line-height: 1.35;
}

.lci-grv-engine-raw-note {
  margin: 8px 0 0;
  font-size: 0.8rem;
  color: #5c5f74;
  line-height: 1.35;
}

.lci-grv-interpretation-muted {
  opacity: 0.78;
  font-size: 0.88rem;
  color: #4c4f67;
}

.lci-detail-row {
  margin: 0 0 6px;
  font-size: 0.84rem;
  color: #555;
}

.lci-detail-row-residual {
  margin-bottom: 0;
}

.lci-detail-meta {
  color: #777;
}

.lci-detail-note {
  margin: 8px 0 0;
  font-size: 0.75rem;
  color: #666;
}

@media (max-width: 640px) {
  .lci-personal-result-card {
    padding: 16px 14px;
  }

  .lci-personal-card-title {
    font-size: 0.96rem;
  }

  .lci-personal-key-line {
    font-size: 0.96rem;
    line-height: 1.38;
  }

  .lci-grv-driver-row {
    font-size: 0.82rem;
    gap: 8px;
  }

  .lci-breathing-bar-segment {
    font-size: 0.67rem;
    padding: 8px 2px;
  }
}

.lci-personal-journal-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
}

.lci-compare-card {
  border-top: 1px solid rgba(106, 90, 205, 0.2);
  padding-top: 14px;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.lci-compare-card > .lci-macro-collapse-summary {
  display: block;
  width: 100%;
  text-align: center;
}

.lci-compare-summary {
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-align: center !important;
}

.lci-compare-summary::marker {
  content: "";
}

.lci-macro-collapse {
  border: 1px solid rgba(106, 90, 205, 0.22);
  border-radius: 12px;
  padding: 8px 12px 12px;
  background: rgba(106, 90, 205, 0.03);
}

.lci-macro-collapse-summary {
  cursor: pointer;
  list-style: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--lci-accent);
}

.lci-macro-collapse-summary::-webkit-details-marker {
  display: none;
}

.lci-macro-collapse[open] .lci-macro-collapse-summary {
  margin-bottom: 8px;
}

.lci-compare-rows {
  display: grid;
  gap: 12px;
  justify-content: center;
  grid-template-columns: minmax(0, min(520px, 100%));
  margin-inline: auto;
}

.lci-compare-rows[data-moment-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
}

.lci-compare-rows[data-moment-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1100px;
}

.lci-compare-rows[data-moment-count]:not([data-moment-count="1"]):not([data-moment-count="2"]):not([data-moment-count="3"]) {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  max-width: 1100px;
}

.lci-compare-row {
  border: 1px solid rgba(106, 90, 205, 0.18);
  border-radius: 12px;
  background: rgba(106, 90, 205, 0.03);
  padding: 12px;
  text-align: left;
}

.lci-compare-rows[data-moment-count="1"] .lci-compare-row-actions {
  justify-content: center;
}

.lci-compare-rows[data-moment-count="1"] .lci-compare-more-living {
  align-self: stretch;
}

.lci-compare-expense-tools {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

/* Primary control — category breakdown (rent, utilities, …) */
.lci-dash .lci-compare-more-living {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  border-radius: 10px;
  border-width: 2px;
  text-align: center;
}

.lci-compare-living-panel {
  border: 1px solid rgba(106, 90, 205, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.65);
  padding: 10px 12px;
}

.lci-compare-living-lede {
  margin: 0 0 10px;
  font-size: 0.78rem;
  line-height: 1.4;
}

.lci-compare-living-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
}

.lci-compare-living-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.lci-compare-living-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #333;
  line-height: 1.3;
}

.lci-compare-living-label-text {
  flex: 1;
  min-width: 0;
}

.lci-compare-living-auto-tag {
  flex-shrink: 0;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6a5acd;
  background: rgba(106, 90, 205, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
}

.lci-compare-living-hint {
  flex: 1 1 100%;
  font-size: 0.68rem;
  font-weight: 400;
  color: #777;
  line-height: 1.35;
}

.lci-basket-hint {
  font-size: 0.72rem;
  font-weight: 400;
  color: #777;
  line-height: 1.35;
  margin-top: 2px;
}

.lci-compare-living-input {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid rgba(106, 90, 205, 0.25);
  border-radius: 8px;
  font-size: 0.85rem;
}

.lci-compare-living-status {
  margin: 8px 0 0;
}

.lci-compare-living-total-line {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  line-height: 1.4;
}

.lci-compare-living-section-kicker {
  margin: 12px 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6a5acd;
}

.lci-compare-living-context-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.lci-compare-living-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.lci-compare-living-pct {
  font-size: 0.72rem;
  color: #6a5acd;
  white-space: nowrap;
}

.lci-compare-living-pct[hidden] {
  display: none;
}

.lci-compare-living-yoy-ref {
  font-size: 0.68rem;
  color: #777;
  line-height: 1.35;
}

.lci-compare-living-context-row .lci-compare-living-yoy-ref {
  font-size: 0.78rem;
}

@media (max-width: 720px) {
  .lci-compare-living-grid {
    grid-template-columns: 1fr;
  }
}

.lci-compare-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 10px;
}

.lci-compare-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lci-compare-toolbar-center {
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.lci-compare-add-above {
  display: flex;
  justify-content: center;
  margin: 0 0 10px;
}

.lci-compare-add-below {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.lci-dash #lci-compare-add-row.lci-journal-btn,
.lci-dash-human #lci-compare-add-row.lci-journal-btn,
.lci-dash #lci-compare-add-row-above.lci-journal-btn,
.lci-dash-human #lci-compare-add-row-above.lci-journal-btn {
  background: #FFC64B !important;
  color: #8A6D00 !important;
  -webkit-text-fill-color: #8A6D00;
  border: 1px solid rgba(220, 170, 50, 0.45) !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(184, 134, 11, 0.22);
}

.lci-dash #lci-compare-add-row.lci-journal-btn:hover,
.lci-dash-human #lci-compare-add-row.lci-journal-btn:hover,
.lci-dash #lci-compare-add-row-above.lci-journal-btn:hover,
.lci-dash-human #lci-compare-add-row-above.lci-journal-btn:hover {
  background: #FFCE4D !important;
  color: #333 !important;
  -webkit-text-fill-color: #333;
  border-color: rgba(220, 175, 45, 0.55) !important;
}

.lci-compare-toolbar-under-title {
  justify-content: center;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 10px;
  margin-bottom: 12px;
  gap: 12px;
}

.lci-compare-toolbar-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.lci-compare-toolbar-under-title .lci-compare-invert-moments:not(:disabled) {
  border-color: rgba(61, 110, 168, 0.55);
  color: #2d5080;
}

/* .btn { display:inline-flex } overrides bare [hidden] — force hide when < 2 moments */
#lci-compare-invert-moments[hidden],
.lci-compare-toolbar-under-title .lci-compare-invert-moments[hidden] {
  display: none !important;
}

.lci-dash-human #lci-compare-run.lci-signal-submit {
  min-width: 0;
  width: min(280px, 100%);
  max-width: 100%;
  box-sizing: border-box;
  padding: 16px 20px;
  font-size: 1.15rem;
  font-weight: 800;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(184, 134, 11, 0.28);
}

.lci-compare-trend-chart {
  display: grid;
  gap: 14px 12px;
  align-items: start;
  align-content: start;
  justify-content: center;
  justify-items: center;
  min-height: 0;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-inline: auto;
  grid-template-columns: minmax(112px, min(320px, 100%));
}

#lci-compare-result[data-snapshot-count="2"] .lci-compare-trend-chart,
#lci-compare-result[data-snapshot-count="2"] .lci-compare-snapshot-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 980px;
  justify-items: stretch;
}

#lci-compare-result[data-snapshot-count="3"] .lci-compare-trend-chart,
#lci-compare-result[data-snapshot-count="3"] .lci-compare-snapshot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1100px;
  justify-items: stretch;
}

#lci-compare-result[data-snapshot-count]:not([data-snapshot-count="1"]):not([data-snapshot-count="2"]):not([data-snapshot-count="3"]) .lci-compare-trend-chart,
#lci-compare-result[data-snapshot-count]:not([data-snapshot-count="1"]):not([data-snapshot-count="2"]):not([data-snapshot-count="3"]) .lci-compare-snapshot-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  max-width: 1100px;
  justify-items: stretch;
}

.lci-compare-trend-item {
  display: grid;
  grid-template-rows: 100px auto auto auto auto;
  gap: 6px;
  align-items: stretch;
  justify-items: center;
  align-content: start;
  min-width: 0;
  width: 100%;
}

.lci-compare-trend-item > .lci-compare-trend-bar-wrap {
  justify-self: center;
}

.lci-compare-trend-item > .lci-purchasing-strip,
.lci-compare-trend-item > .lci-snapshot-provenance-trend {
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.lci-compare-trend-item .lci-methodology-advanced,
.lci-compare-trend-item .lci-prov-inner {
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.lci-compare-trend-item .lci-purchasing-table,
.lci-compare-trend-item .lci-living-table {
  max-width: 100%;
}

.lci-compare-trend-bar-wrap {
  width: 44px;
  height: 100px;
  border-radius: 8px;
  border: 1px solid rgba(106, 90, 205, 0.2);
  background: rgba(106, 90, 205, 0.08);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.lci-compare-trend-bar {
  width: 100%;
  background: linear-gradient(180deg, #7a66d6 0%, #5b4ab0 100%);
}

.lci-compare-trend-bar-lci {
  background: linear-gradient(180deg, #3daf6f 0%, #2d8a54 100%);
}

.lci-compare-trend-val {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #2f3457;
}

.lci-compare-trend-val-display {
  font-weight: 700;
}

.lci-compare-grv-raw-note {
  font-size: 0.72rem;
  font-weight: 400;
  color: #7a7e96;
  margin-left: 4px;
}

.lci-compare-trend-raw {
  display: block;
  margin-left: 0;
  text-align: center;
  font-size: 0.68rem;
}

.lci-compare-snapshot-metric-grv .lci-compare-grv-raw-note {
  display: block;
  margin-top: 4px;
  margin-left: 0;
  font-size: 0.72rem;
}

.lci-compare-trend-label {
  font-size: 0.72rem;
  color: #666b84;
  text-align: center;
}


.lci-compare-row-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px 10px;
}

.lci-compare-row-actions {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

.lci-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.lci-compare-table th,
.lci-compare-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.lci-dash .lci-compare-table-wrap {
  text-align: left;
}

.lci-compare-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lci-muted);
  font-weight: 700;
}

.lci-compare-note {
  margin: 0 0 10px;
  font-size: 0.83rem;
  color: #555b73;
  line-height: 1.4;
  text-align: center;
}

.lci-personal-card-kicker,
.lci-compare-insight-primary,
.lci-compare-insight-text,
.lci-compare-nominal-where-hint,
.lci-compare-trend-caption,
.lci-compare-legend {
  text-align: center;
}

.lci-compare-legend {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.78rem;
  color: #5c6278;
  line-height: 1.45;
}

.lci-compare-legend p {
  margin: 0 0 6px;
  text-align: center;
}

.lci-compare-legend p:last-child {
  margin-bottom: 0;
}

.lci-compare-legend strong {
  color: #3d4260;
  font-weight: 700;
}

.lci-compare-table-details-col {
  width: 1%;
  white-space: nowrap;
}

.lci-compare-table-details-cell {
  vertical-align: top;
  padding-top: 6px;
}

.lci-compare-table-nominal-th {
  min-width: 7.5rem;
}

.lci-compare-table-nominal-td {
  vertical-align: top;
  font-variant-numeric: tabular-nums;
}

.lci-compare-nominal-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.25;
  font-size: 0.78rem;
}

.lci-compare-nominal-eyebrow {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5b4bb7;
  margin-bottom: 2px;
}

.lci-compare-nominal-line {
  display: block;
  color: #3d4260;
}

.lci-compare-nominal-basket {
  color: #5c6278;
  font-size: 0.74rem;
}

.lci-compare-nominal-sub {
  font-weight: 500;
  color: var(--lci-muted);
  font-size: 0.68rem;
}

.lci-compare-nominal-where-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #3d4260;
}

.lci-compare-nominal-where-strong {
  color: #453894;
}

.lci-snapshot-provenance {
  margin-top: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #4e5476;
}

.lci-snapshot-provenance-inline {
  margin-top: 0;
}

.lci-snapshot-provenance-trend {
  margin-top: 6px;
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
}

.lci-snapshot-provenance-summary {
  cursor: pointer;
  font-weight: 700;
  color: #5b4ab0;
  list-style: none;
}

.lci-snapshot-provenance-summary::-webkit-details-marker {
  display: none;
}

.lci-snapshot-provenance .lci-prov-inner {
  margin-top: 8px;
  padding: 10px 10px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.lci-personal-result-card-mbr .lci-snapshot-provenance,
.lci-personal-result-card-grv .lci-snapshot-provenance,
.lci-personal-result-card-lci .lci-snapshot-provenance {
  margin-top: 12px;
}

.lci-snapshot-provenance-full {
  margin-bottom: 12px;
}

.lci-prov-row {
  margin: 0 0 8px;
}

.lci-prov-row:last-child {
  margin-bottom: 0;
}

.lci-prov-row.muted {
  color: #6a708c;
  font-size: 0.92em;
}

.lci-prov-caveat {
  margin: 0 0 8px;
  font-size: 0.88em;
  color: #7a4e6b;
  background: rgba(106, 90, 205, 0.06);
  padding: 8px 10px;
  border-radius: 8px;
}

.lci-prov-meta {
  color: #888daa;
  font-size: 0.92em;
}

.lci-prov-note {
  margin: 0 0 8px;
  font-size: 0.88em;
  color: #5c6278;
}

.lci-prov-feeds {
  margin: 0;
  font-size: 0.86em;
  color: #5a6080;
}

.lci-prov-feeds a {
  color: #5b4ab0;
}

.lci-insight-provenance {
  margin-top: 12px;
}

.lci-source-breakdown {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed rgba(0, 0, 0, 0.12);
}

.lci-prov-breakdown-intro {
  margin-bottom: 10px;
}

.lci-prov-section {
  margin-bottom: 10px;
}

.lci-prov-fold-summary {
  cursor: pointer;
  font-weight: 700;
  color: #4a3f91;
  list-style: none;
}

.lci-prov-fold-summary::-webkit-details-marker {
  display: none;
}

.lci-prov-source-list,
.lci-prov-criterion-list {
  margin: 6px 0 0;
  padding-left: 1.1rem;
  font-size: 0.88em;
  color: #4e5476;
}

.lci-prov-source-list li,
.lci-prov-criterion-list li {
  margin-bottom: 4px;
}

.lci-prov-criterion-block {
  margin-bottom: 12px;
}

.lci-prov-criterion-title {
  margin: 0 0 6px;
  font-size: 0.88rem;
}

.lci-prov-mean {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #2f3457;
}

.lci-prov-mean-note {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #7a708a;
  font-style: italic;
}

.lci-compare-insight-primary {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  font-weight: 800;
  color: #2c3153;
}

.lci-compare-insight-text {
  margin: 0;
  font-size: 0.9rem;
  color: #4e5476;
  line-height: 1.4;
}

.lci-compare-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.lci-compare-snapshot-card {
  border: 1px solid rgba(106, 90, 205, 0.2);
  border-radius: 12px;
  background: rgba(106, 90, 205, 0.03);
  padding: 10px 12px;
}

.lci-compare-snapshot-region {
  margin: 0 0 8px;
  font-size: 0.79rem;
  color: #666;
}

.lci-compare-snapshot-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 8px;
}

.lci-compare-snapshot-metric {
  border: 1px solid rgba(106, 90, 205, 0.18);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
  text-align: center;
}

.lci-compare-snapshot-metrics-ordered {
  grid-template-columns: 1fr;
  gap: 8px;
}

.lci-compare-snapshot-metrics-ordered .lci-compare-snapshot-metric {
  text-align: center;
}

.lci-compare-snapshot-metric-coverage {
  border-color: rgba(255, 198, 75, 0.45);
  background: linear-gradient(180deg, rgba(255, 193, 120, 0.22), rgba(255, 220, 180, 0.12));
}

.lci-compare-snapshot-metric-coverage .lci-compare-snapshot-label {
  color: #a85a12;
}

.lci-compare-snapshot-metric-coverage .lci-compare-snapshot-value {
  color: #c2650e;
}

.lci-dash .lci-snapshot-metric-what {
  margin-top: 8px;
  width: 100%;
  font-size: 0.72rem;
  line-height: 1.35;
  color: #4e5476;
}

.lci-dash .lci-snapshot-metric-what-summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: #5b4ab0;
  padding: 2px 0;
}

.lci-dash .lci-snapshot-metric-what-summary::-webkit-details-marker {
  display: none;
}

.lci-dash .lci-snapshot-metric-what-body {
  margin: 6px 0 0;
  padding: 0;
  color: #4e5476;
}

.lci-compare-snapshot-metric-lci {
  border-color: rgba(45, 138, 84, 0.35);
  background: linear-gradient(180deg, rgba(45, 138, 84, 0.09), rgba(45, 138, 84, 0.02));
}

.lci-compare-snapshot-metric-lci .lci-compare-snapshot-value {
  color: var(--lci-good);
  font-size: 1.12rem;
}

.lci-compare-snapshot-metric-grv {
  border-color: rgba(86, 63, 168, 0.22);
  background: rgba(250, 250, 252, 0.95);
  opacity: 0.92;
}

.lci-compare-legacy-metric-strong {
  font-weight: 600;
  color: #5c5f74;
}

.lci-compare-legacy-metric {
  font-size: 0.88rem;
  color: #6a6e86;
}

.lci-compare-missing {
  color: #9a9eb4;
  font-weight: 600;
}

.lci-compare-trend-caption {
  margin-bottom: 8px !important;
}

.lci-methodology-nested {
  margin-top: 8px;
}

.lci-prov-decomp-list {
  margin: 8px 0 0;
  padding-left: 1.1rem;
}

.lci-prov-decomp-list li {
  margin: 0 0 4px;
}

.lci-compare-snapshot-label {
  display: block;
  font-size: 0.72rem;
  color: #62657b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.lci-compare-snapshot-value {
  font-size: 1.08rem;
  color: #23263a;
}

@media (max-width: 900px) {
  .lci-compare-row-grid {
    grid-template-columns: 1fr 1fr;
  }
  .lci-compare-rows[data-moment-count="2"],
  .lci-compare-rows[data-moment-count="3"],
  .lci-compare-rows[data-moment-count]:not([data-moment-count="1"]) {
    grid-template-columns: 1fr;
    max-width: min(520px, 100%);
  }
  #lci-compare-result[data-snapshot-count="2"] .lci-compare-snapshot-grid,
  #lci-compare-result[data-snapshot-count="2"] .lci-compare-trend-chart,
  #lci-compare-result[data-snapshot-count="3"] .lci-compare-snapshot-grid,
  #lci-compare-result[data-snapshot-count="3"] .lci-compare-trend-chart,
  #lci-compare-result[data-snapshot-count]:not([data-snapshot-count="1"]) .lci-compare-snapshot-grid,
  #lci-compare-result[data-snapshot-count]:not([data-snapshot-count="1"]) .lci-compare-trend-chart {
    grid-template-columns: 1fr;
    max-width: min(480px, 100%);
  }
}

@media (max-width: 560px) {
  .lci-compare-row-grid {
    grid-template-columns: 1fr;
  }
  .lci-eval-row {
    grid-template-columns: 1fr;
  }
  .lci-eval-row-3 {
    grid-template-columns: 1fr;
  }
  .lci-compare-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

.lci-advanced-details > summary {
  list-style: none;
}

.lci-journal-btn {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.88rem;
}

/* Purchasing snapshot (nominal EUR) — frosted glass via .grigsi-glass-surface */
.lci-dash .lci-purchasing-strip {
  margin: 12px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
}

.lci-dash .lci-purchasing-strip-callout {
  border-left: none;
}

.lci-dash .lci-purchasing-strip-kicker {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--lci-ink);
}

.lci-dash .lci-purchasing-strip-kicker-note {
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--lci-muted);
  font-size: 0.65rem;
}

.lci-dash .lci-purchasing-strip-title {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
}

.lci-dash .lci-purchasing-strip-hint {
  font-weight: 400;
  color: var(--lci-muted);
  font-size: 0.76rem;
}

.lci-dash .lci-purchasing-strip-line {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

.lci-dash .lci-compare-trend-item .lci-purchasing-strip {
  margin: 8px 0 6px;
  padding: 8px 10px;
}

.lci-dash .lci-compare-trend-item .lci-purchasing-strip-line {
  font-size: 0.78rem;
}

/* Two-axis personal result: nominal vs inflation (user currency, EUR default in forms). */
.lci-dash .lci-axis-block {
  margin: 14px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
}

.lci-dash .lci-axis-nominal,
.lci-dash .lci-axis-inflation {
  border-left: none;
}
.lci-dash .lci-axis-kicker {
  margin: 0 0 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lci-muted);
}
.lci-dash .lci-axis-lede {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--lci-ink);
}
.lci-dash .lci-axis-block .lci-purchasing-strip {
  margin-top: 8px;
}
.lci-dash .lci-inflation-drag-list {
  margin: 8px 0 10px;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* Personal Purchasing Power Index (PPPI) — additive, user's spend mix */
.lci-dash .lci-pppi-card {
  border-left: 5px solid #2a8f6a;
  background: linear-gradient(95deg, rgba(42, 143, 106, 0.12) 0%, rgba(255, 255, 255, 0.92) 55%);
}
.lci-dash .lci-pppi-card-muted {
  border-left-color: #8aa89c;
  background: rgba(255, 255, 255, 0.75);
}
.lci-dash .lci-pppi-headline {
  color: #1a5c44;
}
.lci-dash .lci-pppi-lede {
  margin: 0 0 8px;
  font-size: 0.84rem;
  line-height: 1.45;
}
.lci-dash .lci-pppi-unavailable {
  margin: 0 0 8px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--lci-ink);
}
.lci-dash .lci-pppi-notes {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  color: var(--lci-muted);
}
.lci-dash .lci-pppi-table {
  margin-top: 8px;
}

/* PPPI slot inside compare snapshot cards (above LCI metrics) */
.lci-dash .lci-compare-snapshot-pppi {
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(42, 143, 106, 0.35);
  background: linear-gradient(95deg, rgba(42, 143, 106, 0.14) 0%, rgba(255, 255, 255, 0.88) 60%);
}
.lci-dash .lci-compare-snapshot-pppi-dormant,
.lci-dash .lci-compare-snapshot-pppi-muted {
  border-style: dashed;
  border-color: rgba(42, 143, 106, 0.28);
  background: rgba(255, 255, 255, 0.65);
}
.lci-dash .lci-compare-snapshot-pppi-active {
  border-left: 4px solid #2a8f6a;
}
.lci-dash .lci-compare-snapshot-pppi-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 12px;
}
.lci-dash .lci-compare-snapshot-pppi-value {
  color: #1a5c44;
  font-size: 1.15rem;
}
.lci-dash .lci-compare-snapshot-pppi-denom {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lci-muted);
}
.lci-dash .lci-compare-snapshot-pppi-band {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2a8f6a;
}
.lci-dash .lci-compare-snapshot-pppi-idle,
.lci-dash .lci-compare-snapshot-pppi-active-note {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--lci-muted);
}
.lci-dash .lci-compare-snapshot-pppi-details {
  margin-top: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lci-dash .lci-pppi-table-compact {
  font-size: 0.8rem;
  table-layout: fixed;
  min-width: 17.5rem;
}
/* PPPI mix table has 3 columns — do not use the 2-col purchasing-table width split (44% + 56% = 100%, middle col collapses). */
.lci-dash .lci-pppi-table.lci-purchasing-table thead th:first-child {
  width: 52%;
}
.lci-dash .lci-pppi-table.lci-purchasing-table thead th:nth-child(2) {
  width: 22%;
}
.lci-dash .lci-pppi-table.lci-purchasing-table thead th:last-child {
  width: 26%;
}
.lci-dash .lci-pppi-table.lci-purchasing-table th,
.lci-dash .lci-pppi-table.lci-purchasing-table td {
  padding: 7px 8px;
  line-height: 1.4;
  vertical-align: middle;
}
.lci-dash .lci-pppi-table.lci-purchasing-table td:first-child {
  word-break: normal;
  overflow-wrap: normal;
  hyphens: manual;
}
.lci-dash .lci-pppi-table.lci-purchasing-table th:nth-child(2),
.lci-dash .lci-pppi-table.lci-purchasing-table th:nth-child(3),
.lci-dash .lci-pppi-table.lci-purchasing-table td:nth-child(2),
.lci-dash .lci-pppi-table.lci-purchasing-table td:nth-child(3) {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Inflation & currency devaluation slot — below PPPI on snapshot cards (red accent) */
.lci-dash .lci-compare-snapshot-deval {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(196, 76, 76, 0.45);
  background: linear-gradient(95deg, rgba(196, 76, 76, 0.16) 0%, rgba(255, 255, 255, 0.9) 58%);
}
.lci-dash .lci-compare-snapshot-deval-dormant,
.lci-dash .lci-compare-snapshot-deval-muted {
  border-style: dashed;
  border-color: rgba(196, 76, 76, 0.32);
  background: rgba(255, 255, 255, 0.65);
}
.lci-dash .lci-compare-snapshot-deval-active {
  border-left: 4px solid #c44c4c;
}
.lci-dash .lci-compare-snapshot-deval-is-base.lci-compare-snapshot-deval-active {
  border-left-color: #9a6b6b;
}
.lci-dash .lci-compare-snapshot-deval-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.lci-dash .lci-compare-snapshot-deval-head .lci-compare-snapshot-label {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(196, 76, 76, 0.55);
  text-underline-offset: 3px;
}
.lci-dash .lci-compare-snapshot-deval-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.lci-dash .lci-compare-snapshot-deval-trend-down .lci-compare-snapshot-deval-arrow {
  color: #fff;
  background: #c44c4c;
}
.lci-dash .lci-compare-snapshot-deval-trend-up .lci-compare-snapshot-deval-arrow {
  color: #fff;
  background: #2d8a54;
}
.lci-dash .lci-compare-snapshot-deval-trend-flat .lci-compare-snapshot-deval-arrow,
.lci-dash .lci-compare-snapshot-deval-is-base .lci-compare-snapshot-deval-arrow {
  color: #6b4a4a;
  background: rgba(196, 76, 76, 0.15);
}
.lci-dash .lci-compare-snapshot-deval-value {
  color: #9e2f2f;
  font-size: 1.15rem;
}
.lci-dash .lci-compare-snapshot-deval-trend-up .lci-compare-snapshot-deval-value {
  color: #1a5c44;
}
.lci-dash .lci-compare-snapshot-deval-denom {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--lci-muted);
}
.lci-dash .lci-compare-snapshot-deval-base-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #8a4a4a;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(196, 76, 76, 0.12);
}
.lci-dash .lci-compare-snapshot-deval-sub,
.lci-dash .lci-compare-snapshot-deval-idle,
.lci-dash .lci-compare-snapshot-deval-delta {
  margin: 6px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--lci-muted);
}
.lci-dash .lci-compare-snapshot-deval-delta strong {
  color: #9e2f2f;
}
.lci-dash .lci-compare-snapshot-deval-trend-up .lci-compare-snapshot-deval-delta strong {
  color: #1a5c44;
}
.lci-dash .lci-compare-snapshot-deval-delta-base {
  font-weight: 600;
}

/* Official income context (national benchmark) */
.lci-dash .lci-compare-snapshot-official {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(106, 90, 205, 0.22);
  background: rgba(106, 90, 205, 0.04);
}
.lci-dash .lci-compare-snapshot-official-dormant,
.lci-dash .lci-compare-snapshot-official-muted {
  border-style: dashed;
  background: rgba(92, 92, 110, 0.04);
}
.lci-dash .lci-compare-snapshot-official-active {
  border-color: rgba(184, 134, 11, 0.35);
  background: linear-gradient(135deg, rgba(184, 134, 11, 0.07) 0%, rgba(106, 90, 205, 0.05) 100%);
}
.lci-dash .lci-compare-snapshot-official-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 8px;
  margin-bottom: 6px;
}
.lci-dash .lci-compare-snapshot-official-country {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--lci-accent);
  text-transform: uppercase;
}
.lci-dash .lci-compare-snapshot-official-live-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(45, 138, 84, 0.14);
  color: #1a5c44;
}
.lci-dash .lci-compare-snapshot-official-live-tag-curated {
  background: rgba(92, 92, 110, 0.12);
  color: var(--lci-muted);
}
.lci-dash .lci-compare-snapshot-official-year {
  font-size: 0.68rem;
  color: var(--lci-muted);
  font-weight: 600;
}
.lci-dash .lci-compare-snapshot-official-kicker,
.lci-dash .lci-compare-snapshot-official-idle,
.lci-dash .lci-compare-snapshot-official-stat-min {
  margin: 0 0 8px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--lci-muted);
  text-align: center;
}
.lci-dash .lci-compare-snapshot-official-you {
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.45;
  text-align: center;
  color: var(--lci-ink);
}
.lci-dash .lci-official-benchmark-table {
  margin: 0 auto 8px;
  max-width: 100%;
  font-size: 0.82rem;
}
.lci-dash .lci-official-benchmark-table th[scope="row"] {
  font-weight: 600;
  text-align: left;
  padding-right: 10px;
}
.lci-dash .lci-official-source-list {
  margin: 8px 0 0;
  padding-left: 1.1rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--lci-muted);
}
.lci-dash .lci-official-source-list a {
  color: var(--lci-accent);
}

/* Real change over time (2+ moments) */
.lci-dash .lci-real-change-over-time {
  border-left: 5px solid #3d6ea8;
  background: linear-gradient(95deg, rgba(61, 110, 168, 0.1) 0%, rgba(255, 255, 255, 0.9) 55%);
}
.lci-dash .lci-real-change-over-time-muted {
  border-left-color: #9aa8bc;
}
.lci-dash .lci-real-change-table th[scope="row"] {
  font-weight: 600;
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 11rem;
  vertical-align: top;
}
.lci-dash .lci-real-change-delta {
  white-space: nowrap;
  font-size: 0.82rem;
}
.lci-dash .lci-real-change-delta-sub {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--lci-muted);
  margin-top: 2px;
}
.lci-dash .lci-real-change-base-tag {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--lci-muted);
}
.lci-dash .lci-real-change-footnote {
  margin: 10px 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--lci-muted);
}
.lci-dash .lci-real-change-insight {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(61, 110, 168, 0.08);
  border: 1px solid rgba(61, 110, 168, 0.2);
  font-size: 0.84rem;
  line-height: 1.45;
}
.lci-dash .lci-real-change-actions {
  margin: 14px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.lci-dash .lci-real-change-actions .lci-signal-hint {
  flex: 1 1 200px;
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
}

.lci-dash .lci-purchasing-details {
  margin-top: 10px;
}

.lci-dash .lci-purchasing-lede {
  margin-top: 0;
}

.lci-dash .lci-purchasing-details > .lci-methodology-advanced {
  max-width: 100%;
  overflow-x: auto;
  box-sizing: border-box;
}

.lci-dash .lci-purch-th strong {
  font-weight: 600;
}

.lci-dash .lci-purchasing-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.88rem;
}

.lci-dash .lci-purchasing-table th,
.lci-dash .lci-purchasing-table td {
  border: 1px solid var(--lci-border);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.lci-dash .lci-purchasing-table thead th:first-child {
  width: 44%;
}

.lci-dash .lci-purchasing-table thead th:last-child {
  width: 56%;
}

.lci-dash .lci-purchasing-table th {
  background: rgba(106, 90, 205, 0.06);
  font-weight: 600;
}

.lci-dash .lci-purch-th .lci-purch-en {
  font-size: 0.78rem;
  color: var(--lci-muted);
  font-weight: 400;
  margin-top: 4px;
}

.lci-dash .lci-purch-val {
  font-variant-numeric: tabular-nums;
  white-space: normal;
}

.lci-dash .lci-purch-en-inline {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  color: var(--lci-muted);
}

.lci-dash .lci-compare-year.lci-compare-year-placeholder::placeholder,
.lci-dash .lci-compare-placeholder-faint::placeholder {
  color: var(--lci-muted);
  opacity: 0.55;
}

.lci-dash .lci-compare-year.lci-compare-year-placeholder:placeholder-shown {
  color: var(--lci-ink);
}

.lci-dash .lci-compare-placeholder-faint:placeholder-shown {
  color: var(--lci-ink);
}

/* Mobile: avoid clipped values / symbols in tables and compare rows */
@media (max-width: 720px) {
  .lci-dash .lci-living-val,
  .lci-dash .lci-compare-living-pct,
  .lci-dash .lci-compare-table-details-col,
  .lci-dash .lci-compare-snapshot-deval-head,
  .lci-dash .lci-basket-row {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
  }
  .lci-dash .lci-basket-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .lci-dash .lci-basket-pct {
    text-align: left;
  }
  .lci-dash .lci-living-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lci-dash .lci-sources-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .lci-dash .lci-compare-living-input-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .lci-dash .lci-card,
  .lci-dash .lci-dash-hero h1 {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

/* ——— Human-first presentation (life-pressure-mirror redesign) ——— */
.lci-dash-human {
  max-width: 920px;
}

.lci-hero-human {
  padding: 28px 0 36px;
  text-align: center;
}

.lci-hero-human .lci-hero-lead {
  max-width: 34em;
  margin: 0 auto 28px;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.55;
  color: var(--lci-muted);
  font-weight: 500;
}

.lci-hero-human h1 {
  font-size: clamp(1.85rem, 4.5vw, 2.55rem);
  margin-bottom: 16px;
}

.lci-hero-human .lci-hero-lead {
  margin-bottom: 14px;
}

.lci-hero-next-wrap {
  margin: 0 0 8px;
  text-align: center;
}

.lci-hero-next-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(30, 77, 56, 0.28);
  background: rgba(255, 255, 255, 0.72);
  color: #1e4d38;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.lci-hero-next-btn:hover,
.lci-hero-next-btn:focus-visible {
  background: #fff;
  border-color: rgba(30, 77, 56, 0.5);
  transform: translateY(-1px);
  outline: none;
}

.lci-next-page {
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

.lci-next-back {
  margin: 0 0 8px;
}

.lci-next-back-link {
  color: #3a5a4a;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.lci-next-back-link:hover {
  text-decoration: underline;
}

.lci-next-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6a736e;
}

.lci-next-section {
  margin-top: 0;
}

.lci-next-article {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.lci-next-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  line-height: 1.3;
  color: #1a2e24;
}

.lci-next-prose {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #2a332e;
}

.lci-next-prose p {
  margin: 0 0 0.9em;
}

.lci-next-prose p:last-child {
  margin-bottom: 0;
}

.lci-next-pull {
  margin: 1rem 0;
  padding: 0.15em 0 0.15em 0.85em;
  border-left: 3px solid rgba(30, 77, 56, 0.45);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.45;
  color: #1a2e24;
}

.lci-next-pull-mute {
  font-weight: 650;
  color: #5a6560;
  border-left-color: rgba(90, 101, 96, 0.35);
}

.lci-next-pull-final {
  font-size: 1.28rem;
  border-left-color: #1e7a45;
}

.lci-next-chain {
  margin: 0.85em 0 1em;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(30, 77, 56, 0.06);
  font-weight: 650;
  line-height: 1.5;
  color: #1e4d38;
}

.lci-next-list {
  margin: 0.4em 0 1em;
  padding-left: 1.15em;
}

.lci-next-list li {
  margin: 0.35em 0;
}

.lci-next-list-questions li,
.lci-next-list-eternal li {
  font-weight: 550;
}

.lci-start-cta {
  display: inline-block;
  margin: 0 auto;
  padding: 4px 2px;
  border: none;
  border-radius: 0;
  background: none;
  color: #1a1a2e !important;
  -webkit-text-fill-color: #1a1a2e;
  font-weight: 800;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: none;
  border-bottom: 2px solid rgba(26, 26, 46, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.lci-start-cta:hover {
  transform: none;
  box-shadow: none;
  color: #000 !important;
  -webkit-text-fill-color: #000;
  border-bottom-color: #1a1a2e;
}

.lci-value-section {
  margin: 0 0 28px;
  text-align: center;
}

.lci-value-heading {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 auto 14px;
  color: var(--lci-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.lci-value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lci-value-card {
  background: var(--lci-card);
  border: 1px solid var(--lci-border);
  border-radius: 16px;
  padding: 18px 16px 20px;
  box-shadow: 0 6px 18px rgba(26, 26, 46, 0.04);
}

.lci-value-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--lci-ink);
}

.lci-value-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--lci-muted);
}

.lci-enter-card {
  margin-top: 8px;
  scroll-margin-top: 88px;
}

.lci-enter-basics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 8px;
}

.lci-dash-human .lci-eval-main-title {
  font-size: clamp(1.35rem, 3vw, 1.65rem);
}

.lci-dash-human .lci-eval-main-subtitle {
  font-size: 1rem;
  max-width: 36em;
}

.lci-deep-dive {
  margin-top: 28px;
}

.lci-deep-dive > summary {
  font-size: 1.08rem;
  font-weight: 700;
  cursor: pointer;
}

.lci-deep-inner {
  border-style: dashed;
}

.lci-result-primary {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.lci-result-primary .lci-personal-result-card {
  margin: 0;
}

.lci-result-more-details,
.lci-result-expert-details {
  margin-top: 16px;
  border: 1px solid var(--lci-border);
  border-radius: 14px;
  padding: 10px 14px 14px;
  background: #fafafc;
}

.lci-result-expert-details {
  background: #f4f5f8;
  border-style: dashed;
}

.lci-result-more-summary,
.lci-result-expert-summary {
  font-weight: 700;
  cursor: pointer;
  color: var(--lci-muted);
}

.lci-result-expert-summary {
  color: #5a5f6e;
}

.lci-result-more-body,
.lci-result-expert-body {
  margin-top: 12px;
}

/* Tier 1 — compare toolbar + three plain story cards */
.lci-story-wrap {
  display: grid;
  gap: 14px;
}

.lci-story-compare-bar {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--lci-border, #ddd);
  border-radius: 10px;
  background: linear-gradient(180deg, #faf9f6 0%, #fff 70%);
  text-align: left;
}

@media (min-width: 640px) {
  .lci-story-compare-bar {
    grid-template-columns: auto auto 1fr;
    align-items: end;
  }
}

.lci-story-compare-field {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--lci-muted, #666);
}

.lci-story-compare-select {
  min-width: 7.5rem;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 600;
  color: #222;
}

.lci-story-compare-select:disabled {
  opacity: 0.85;
  color: #444;
}

.lci-story-compare-hint {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.35;
  color: #666;
  align-self: center;
}

.lci-story-vs-now {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #ddd;
}

.lci-story-path-cite {
  text-align: center;
}

.lci-story-path-head {
  margin: 0 0 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 6px 10px;
  font-size: 0.9rem;
  font-weight: 650;
  color: #333;
}

.lci-story-path-more {
  display: inline;
  font-weight: 500;
}

.lci-story-path-more-sum {
  cursor: pointer;
  list-style: none;
  font-size: 0.78rem;
  font-weight: 650;
  color: #5a6a7a;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lci-story-path-more-sum::-webkit-details-marker {
  display: none;
}

.lci-story-path-more-body {
  margin-top: 6px;
  padding: 8px 10px;
  border: 1px solid #e4e4ea;
  border-radius: 8px;
  background: #fafafa;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.4;
  color: #555;
}

.lci-story-path-more-line {
  margin: 0 0 4px;
}

.lci-story-path-more-line:last-child {
  margin-bottom: 0;
}

.lci-story-path-range,
.lci-story-path-kept,
.lci-story-path-coef {
  margin: 0 0 4px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #444;
}

.lci-story-path-coef {
  margin-bottom: 0;
  color: #555;
}

.lci-story-unit-note {
  font-size: 0.82rem;
  color: #7a5a2a;
}

.lci-story-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 860px) {
  .lci-story-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.lci-story-card {
  margin: 0;
  text-align: center;
  padding: 18px 16px 16px;
}

.lci-story-q {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--lci-muted, #666);
}

.lci-story-answer {
  margin: 0 0 10px;
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 750;
  line-height: 1.35;
  color: #1a1a1a;
}

.lci-story-answer-num {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
}

.lci-story-pp {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #ddd;
}

.lci-story-soft {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: #333;
}

.lci-story-detail {
  margin: 0 0 10px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: #444;
}

.lci-story-hint {
  margin: 10px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: #777;
}

.lci-story-change {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: #2a4a6a;
}

.lci-story-tone-easier {
  border-color: #9ec9a8;
  background: linear-gradient(180deg, #f5fbf6 0%, #fff 55%);
}

.lci-story-tone-harder {
  border-color: #d4a39a;
  background: linear-gradient(180deg, #fdf6f4 0%, #fff 55%);
}

.lci-story-tone-mixed {
  border-color: #c5c0a8;
  background: linear-gradient(180deg, #fbfaf4 0%, #fff 55%);
}

/* Big, color-coded number for a story card — readable by color/size alone, no literacy needed.
   !important is deliberate: style.css carries
   "body.ios-theme .section.section-light .feature-block.feature-bordered p" (specificity 0,5,2)
   graying out every <p> in these cards, which no realistic class-based selector here out-ranks. */
.lci-story-card .lci-story-answer-num {
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.lci-story-answer-num-suffix {
  font-size: 0.5em;
  font-weight: 700;
  opacity: 0.7;
  margin-left: 2px;
}

/* Prefixed to out-rank style.css's
   "body.ios-theme .section.section-light .feature-block.feature-bordered p !important"
   (specificity 0,5,2) — a plain .lci-story-answer-tone-* class alone cannot beat it.
   -webkit-text-fill-color must be set too: that same style.css rule sets it
   alongside color, and on WebKit/Chrome -webkit-text-fill-color wins the actual
   glyph paint over color when both are present — setting color alone leaves the
   computed style correct but the text still visually gray.
   The ", ... strong" variant is needed too: the wages/direction card wraps its
   number in <strong>, and style.css also has a rule targeting "strong" directly
   (same specificity family) — a direct match on the child always beats a color
   only set on/inherited from the parent <p>, no matter how specific the parent rule is. */
body.ios-theme .section.section-light .feature-block.feature-bordered .lci-story-answer-num.lci-story-answer-tone-easier,
body.ios-theme .section.section-light .feature-block.feature-bordered .lci-story-answer-num.lci-story-answer-tone-easier strong {
  color: #1a7f37 !important;
  -webkit-text-fill-color: #1a7f37 !important;
}

body.ios-theme .section.section-light .feature-block.feature-bordered .lci-story-answer-num.lci-story-answer-tone-harder,
body.ios-theme .section.section-light .feature-block.feature-bordered .lci-story-answer-num.lci-story-answer-tone-harder strong {
  color: #b42318 !important;
  -webkit-text-fill-color: #b42318 !important;
}

body.ios-theme .section.section-light .feature-block.feature-bordered .lci-story-answer-num.lci-story-answer-tone-mixed,
body.ios-theme .section.section-light .feature-block.feature-bordered .lci-story-answer-num.lci-story-answer-tone-mixed strong {
  color: #8a6d00 !important;
  -webkit-text-fill-color: #8a6d00 !important;
}

/* Then/Now money-strength periods, nested inside the narrow 3-up story card.
   formatStrengthPeriodBlockHtml() always renders the full people-scale widget
   (Weaker/Stronger labels, track, "You · NN" tag, 0/50/100 ticks) — hideScaleHint
   only drops one hint line, not the widget itself. That full widget has no room
   in a ~180px column and is what was actually causing the two numbers to crowd
   into each other, not just the number's own font-size (an earlier, smaller-clamp
   fix here was verified against a hand-built test page that omitted this widget
   and so didn't reproduce the real crowding). The compact card only needs the
   label + number + colored delta below — the full scale still shows in the wider,
   single-column "How strong is your money?" hero card. */
.lci-story-card .lci-strength-periods-story .lci-people-scale {
  display: none;
}

.lci-story-card .lci-strength-periods-story {
  display: flex;
  justify-content: center;
  gap: 18px;
}

.lci-story-card .lci-strength-periods-story .lci-strength-period {
  flex: 1 1 0;
  min-width: 0;
}

.lci-story-card .lci-strength-periods-story .lci-strength-period-num {
  font-size: clamp(1.15rem, 3.6vw, 1.55rem);
  overflow-wrap: anywhere;
}

/* Then/Now big numbers, colored to match the delta's direction (both the
   compact 3-up card above and the wide "How strong is your money?" hero) —
   same out-ranking pattern as .lci-story-answer-tone-* above; the number
   element is itself the <strong>, so one compound selector reaches it. */
body.ios-theme .section.section-light .feature-block.feature-bordered .lci-strength-period-num.lci-strength-period-num-tone-easier {
  color: #1a7f37 !important;
  -webkit-text-fill-color: #1a7f37 !important;
}

body.ios-theme .section.section-light .feature-block.feature-bordered .lci-strength-period-num.lci-strength-period-num-tone-harder {
  color: #b42318 !important;
  -webkit-text-fill-color: #b42318 !important;
}

body.ios-theme .section.section-light .feature-block.feature-bordered .lci-strength-period-num.lci-strength-period-num-tone-mixed {
  color: #8a6d00 !important;
  -webkit-text-fill-color: #8a6d00 !important;
}

.lci-story-card .lci-strength-delta {
  margin: 6px 0 0;
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
}

.lci-strength-delta-arrow {
  display: inline-block;
  margin-right: 4px;
}

body.ios-theme .section.section-light .feature-block.feature-bordered .lci-strength-delta.lci-strength-delta-tone-easier {
  color: #1a7f37 !important;
  -webkit-text-fill-color: #1a7f37 !important;
}

body.ios-theme .section.section-light .feature-block.feature-bordered .lci-strength-delta.lci-strength-delta-tone-harder {
  color: #b42318 !important;
  -webkit-text-fill-color: #b42318 !important;
}

body.ios-theme .section.section-light .feature-block.feature-bordered .lci-strength-delta.lci-strength-delta-tone-mixed {
  color: #8a6d00 !important;
  -webkit-text-fill-color: #8a6d00 !important;
}

/* Tier 2 — plain-language More */
.lci-simple-more {
  display: grid;
  gap: 12px;
  text-align: left;
}

.lci-simple-more-card {
  border: 1px solid var(--lci-border, #ddd);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

.lci-simple-more-title {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 750;
}

.lci-simple-more-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #333;
}

.lci-simple-more-list {
  margin: 10px 0 0;
  padding-left: 1.2em;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #333;
}

.lci-simple-more-list li {
  margin: 0.25em 0;
}

.lci-plain-num-hero {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 750;
  line-height: 1.2;
}

.lci-plain-num-hero-text {
  font-size: clamp(1.15rem, 2.6vw, 1.45rem);
}

.lci-plain-num-band {
  font-size: 0.95rem;
  font-weight: 650;
  color: #444;
  margin-left: 0.35em;
}

.lci-plain-num-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

@media (max-width: 640px) {
  .lci-plain-num-grid {
    grid-template-columns: 1fr;
  }
}

.lci-plain-num-cell {
  border: 1px solid #e4e4ea;
  border-radius: 10px;
  padding: 10px 12px;
  background: #fafafc;
  text-align: center;
}

.lci-plain-num-cell-accent {
  background: #f3f7f4;
  border-color: #c5d9cb;
}

.lci-plain-num-cell-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 4px;
}

.lci-plain-num-callout {
  margin: 10px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f0f4fa;
  border: 1px solid #d5e0ef;
  font-size: 0.92rem;
  line-height: 1.45;
}

.lci-plain-num-row {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #333;
}

.lci-plain-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px 10px;
  align-items: center;
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed #c8c8d0;
  background: #fff;
}

.lci-plain-compare-col {
  text-align: center;
}

.lci-plain-compare-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 650;
  color: #777;
  margin-bottom: 4px;
}

.lci-plain-compare-val {
  display: block;
  font-size: 1.25rem;
}

.lci-plain-compare-sub {
  display: block;
  font-size: 0.8rem;
  color: #555;
  margin-top: 2px;
}

.lci-plain-compare-arrow {
  font-size: 1.25rem;
  color: #888;
}

.lci-plain-compare-delta {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #333;
}

/* Tier 3 — expert meters */
.lci-expert-panel {
  text-align: left;
}

.lci-expert-lede {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #555;
}

.lci-expert-table-wrap {
  overflow-x: auto;
  margin-bottom: 14px;
}

.lci-expert-meters-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.lci-expert-meters-table th,
.lci-expert-meters-table td {
  border-bottom: 1px solid #e4e4ea;
  padding: 8px 10px;
  vertical-align: top;
  text-align: left;
}

.lci-expert-meters-table th {
  width: 42%;
  font-weight: 650;
  color: #333;
}

.lci-expert-buffer-track-wrap {
  margin-top: 18px;
  text-align: left;
}

.lci-expert-buffer-track-lede {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #555;
}

.lci-expert-buffer-track-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 720px) {
  .lci-expert-buffer-track-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.lci-expert-buffer-track-card {
  margin: 0;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #faf8f3 0%, #fff 60%);
  border-style: dashed;
}

.lci-expert-buffer-track-mark {
  margin: 0 0 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6a5a3a;
}

.lci-expert-buffer-track-status {
  margin: 0 0 8px;
  font-size: 0.9rem;
  color: #444;
}

.lci-expert-buffer-track-body,
.lci-expert-buffer-track-apply {
  margin: 0 0 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #555;
}

.lci-expert-buffer-track-apply {
  margin-bottom: 0;
  padding-top: 8px;
  border-top: 1px dashed #ddd;
  color: #3a4a5a;
}

.lci-expert-hint {
  display: inline-block;
  margin-top: 2px;
  font-weight: 400;
  font-size: 0.72rem;
  color: #888;
}

.lci-expert-raw-fold {
  margin-top: 8px;
}

.lci-expert-raw-json {
  margin: 10px 0 0;
  max-height: 420px;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  background: #1e1f24;
  color: #e8e8ec;
  font-size: 0.72rem;
  line-height: 1.4;
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Quieter result chrome: one sentence under the big number */
.lci-dash-human .lci-money-strength-conf,
.lci-dash-human .lci-money-strength-scale-hint,
.lci-dash-human .lci-wealth-scale-hint,
.lci-dash-human .lci-result-primary .lci-snapshot-provenance {
  display: none;
}

.lci-dash-human .lci-money-strength-headline,
.lci-dash-human .lci-wealth-headline {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin: 4px 0 6px;
}

.lci-dash-human .lci-result-change-card .lci-compare-insight-primary {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.lci-dash-human .lci-eval-main-title,
.lci-dash-human .lci-eval-main-subtitle,
.lci-dash-human .lci-moments-heading,
.lci-dash-human .lci-enter-card > h2 {
  text-align: center;
}

.lci-dash-human .lci-eval-main-subtitle {
  margin-left: auto;
  margin-right: auto;
}

.lci-dash-human .lci-result-primary {
  text-align: center;
}

.lci-dash-human .lci-result-primary .lci-personal-card-kicker,
.lci-dash-human .lci-result-primary .lci-personal-key-line,
.lci-dash-human .lci-result-primary .lci-money-strength-emotional,
.lci-dash-human .lci-result-primary .lci-wealth-emotional,
.lci-dash-human .lci-result-primary .lci-money-strength-change,
.lci-dash-human .lci-result-primary .lci-wealth-change {
  text-align: center;
}

.lci-dash-human .lci-result-more-summary,
.lci-dash-human .lci-result-expert-summary {
  text-align: center;
}

.lci-dash-human .lci-deep-dive > summary {
  text-align: center;
}

.lci-dash-human .lci-region-human {
  text-align: center;
}

/* Human results — centered hero + snapshot detail */
.lci-dash-human .lci-result-human {
  text-align: center;
}

.lci-dash-human .lci-result-more-body,
.lci-dash-human .lci-result-expert-body {
  text-align: center;
}

.lci-dash-human .lci-simple-more,
.lci-dash-human .lci-expert-panel {
  text-align: left;
}

.lci-dash-human .lci-money-strength-bar,
.lci-dash-human .lci-wealth-bar {
  max-width: min(480px, 100%);
  margin-inline: auto;
}

.lci-dash-human .lci-result-primary .lci-personal-result-card,
.lci-dash-human .lci-result-more-body .lci-personal-result-card-details {
  max-width: min(600px, 100%);
  margin-inline: auto;
}

.lci-dash-human .lci-result-primary .lci-personal-card-title,
.lci-dash-human .lci-result-primary .lci-money-strength-band,
.lci-dash-human .lci-result-primary .lci-wealth-band {
  text-align: center;
}

.lci-dash-human .lci-result-more-body .lci-compare-snapshot-card,
.lci-dash-human .lci-result-more-body .lci-compare-snapshot-region,
.lci-dash-human .lci-result-more-body .lci-compare-snapshot-official,
.lci-dash-human .lci-result-more-body .lci-compare-snapshot-metric,
.lci-dash-human .lci-result-more-body .lci-snapshot-metric-what,
.lci-dash-human .lci-result-more-body .lci-snapshot-provenance,
.lci-dash-human .lci-result-more-body .lci-snapshot-provenance-summary,
.lci-dash-human .lci-result-more-body .lci-personal-card-kicker,
.lci-dash-human .lci-result-more-body .lci-compare-nominal-where-hint {
  text-align: center;
}

#lci-compare-result[data-snapshot-count="1"] .lci-compare-snapshot-grid {
  grid-template-columns: minmax(0, min(520px, 100%));
  justify-content: center;
  margin-inline: auto;
}

.lci-dash-human .lci-compare-snapshot-official .lci-official-benchmark-table {
  margin-inline: auto;
}

.lci-dash-human .lci-official-source-list {
  margin-inline: auto;
  padding-left: 0;
  list-style-position: inside;
  text-align: center;
}

@media (max-width: 800px) {
  .lci-value-grid {
    grid-template-columns: 1fr;
  }
  .lci-enter-basics {
    grid-template-columns: 1fr;
  }
}
