/* Annuity Rates Today Calculator (UK): navy / teal / slate, matched to Index Fund Comparison */

.art-app,
.art-app *,
.art-modal,
.art-modal * { box-sizing: border-box; }

.art-loading { margin: 12px 0; color: #4a6570; font-weight: 650; }

/* Two classes so the theme's constrained-layout width rule cannot shrink the calculator. */
#art-root.art-app,
.art-root.art-app {
  --art-ink: #083141;
  --art-muted: #4a6570;
  --art-line: #d5e0e4;
  --art-soft: #f4f7f8;
  --art-teal: #0f766e;
  --art-teal-deep: #0b5f59;
  --art-neg: #8a4b3a;
  --art-text-sm: 0.95rem;
  --art-text-xs: 0.88rem;
  width: 100%;
  max-width: 1100px;
  margin: 24px auto 0;
  padding: 0 12px 8px;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--art-ink);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.art-app h2,
.art-app h3,
.art-app h4,
.art-app p { font-family: inherit; }

.art-shell {
  width: 100%;
  margin: 0 auto 28px;
  padding: 22px 20px 28px;
  border: 1px solid var(--art-line);
  border-radius: 28px;
  background:
    radial-gradient(1100px 480px at 8% -12%, rgba(15, 118, 110, 0.16), transparent 58%),
    radial-gradient(900px 420px at 100% 0%, rgba(140, 198, 223, 0.28), transparent 52%),
    #fff;
  box-shadow: 0 24px 60px rgba(8, 49, 65, 0.1);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* Header */
.art-head {
  position: relative;
  overflow: hidden;
  padding: 30px 26px 26px;
  border-radius: 24px;
  background: linear-gradient(145deg, #052933 0%, #083141 38%, #0b5f59 72%, #14a39a 100%);
  color: #fff;
}
.art-head::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -90px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(140, 198, 223, 0.45), transparent 68%);
  pointer-events: none;
}
.art-head > * { position: relative; z-index: 1; }
.art-kicker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9fe8df;
}
.art-app .art-title {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.4vw, 2.35rem);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}
.art-lead { margin: 0 0 10px; max-width: 54rem; color: #e7f3f1; font-size: 1.05rem; line-height: 1.55; }
.art-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.art-chip {
  display: inline-block;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.82rem;
  font-weight: 700;
}

.art-eyebrow {
  margin: 0 0 6px !important;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--art-teal);
}
.art-note { margin: 10px 0 0; color: var(--art-muted); font-size: var(--art-text-xs); line-height: 1.5; }

/* Market strip */
.art-market {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  padding: 22px 20px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 22px;
  background: linear-gradient(165deg, #eefaf7 0%, #fff 45%);
  box-shadow: 0 10px 26px rgba(8, 49, 65, 0.05);
}
.art-market__fig {
  margin: 0 0 6px !important;
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.art-market__fig span { font-size: 1.05rem; font-weight: 750; letter-spacing: 0; color: var(--art-muted); }
.art-market__line { margin: 0 0 14px !important; color: var(--art-muted); font-size: var(--art-text-sm); }
.art-market__moves { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.art-market__moves li { margin: 0; font-size: var(--art-text-sm); color: var(--art-muted); }
.art-market__moves strong { color: var(--art-ink); font-weight: 900; }
.art-market__trendhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.art-market__trendhead .art-eyebrow { margin: 0 !important; }

/* Charts */
.art-chart { display: block; width: 100%; height: auto; overflow: visible; }
.art-gridline { stroke: #e3eaed; stroke-width: 1; }
.art-axis { fill: var(--art-muted); font-size: 12px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.art-line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.art-line.is-main { stroke: var(--art-teal); stroke-width: 3; }
.art-line.is-level { stroke: #8aa3ad; }
.art-line.is-three { stroke: #3a8fb0; }
.art-line.is-rpi { stroke: var(--art-teal); }
.art-line.is-picked { stroke-width: 4.5; }
.art-dot { fill: #fff; stroke: var(--art-teal); stroke-width: 2.5; }
.art-marker { stroke: var(--art-ink); stroke-width: 1; stroke-dasharray: 4 4; opacity: 0.5; }
.art-marker-label { fill: var(--art-ink); font-size: 12px; font-weight: 700; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }
.art-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 8px; font-size: var(--art-text-xs); font-weight: 700; }
.art-legend__item { display: inline-flex; align-items: center; gap: 8px; }
.art-legend__item i { display: inline-block; width: 22px; height: 4px; border-radius: 2px; background: #8aa3ad; }
.art-legend__item.is-three i { background: #3a8fb0; }
.art-legend__item.is-rpi i { background: var(--art-teal); }
.art-legend__item.is-picked { color: var(--art-ink); }
.art-legend__item.is-picked i { height: 6px; }

/* Inputs */
.art-panel {
  position: relative;
  overflow: hidden;
  padding: 24px 22px;
  border: 1px solid rgba(8, 49, 65, 0.1);
  border-radius: 24px;
  background: linear-gradient(165deg, #ffffff 0%, #f7fbfb 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 14px 36px rgba(8, 49, 65, 0.07);
}
.art-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #0f766e 0%, #083141 100%);
  opacity: 0.85;
}
.art-app .art-panel__title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.45rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--art-ink);
}
.art-panel__lead { margin: 0 0 18px; color: var(--art-muted); font-size: var(--art-text-sm); }
.art-app .art-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px 18px; }
.art-app .art-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.art-partner { display: contents; }
.art-field { display: flex; flex-direction: column; gap: 6px; margin: 0; min-width: 0; }
.art-field label { font-size: var(--art-text-sm); font-weight: 700; color: var(--art-ink); }
.art-app .art-field input,
.art-app .art-field select {
  width: 100%;
  max-width: none;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid var(--art-line);
  border-radius: 12px;
  background: var(--art-soft);
  font: inherit;
  font-weight: 600;
  color: var(--art-ink);
}
.art-app .art-field input:focus,
.art-app .art-field select:focus {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  border-color: var(--art-teal);
  background: #fff;
}
.art-field small { font-size: var(--art-text-xs); color: var(--art-muted); line-height: 1.4; }
.art-field small.is-warn { color: var(--art-neg); font-weight: 700; }

/* Results */
.art-results { display: flex; flex-direction: column; gap: 18px; }
.art-empty { margin: 0; padding: 18px; border-radius: 14px; background: var(--art-soft); color: var(--art-muted); font-weight: 650; }

.art-prio { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.art-prio__label { margin: 0; font-size: var(--art-text-sm); font-weight: 800; }
.art-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.art-app .art-pill {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(8, 49, 65, 0.14);
  background: #fff;
  color: var(--art-ink);
  font: inherit;
  font-size: var(--art-text-sm);
  font-weight: 800;
  cursor: pointer;
  box-shadow: none;
}
.art-app .art-pill:hover { border-color: var(--art-teal); }
.art-app .art-pill.is-on {
  background: linear-gradient(145deg, #0b5f59 0%, #0f766e 55%, #129287 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 118, 110, 0.28);
}
.art-app .art-pills--sm .art-pill { min-height: 38px; padding: 7px 13px; font-size: var(--art-text-xs); }

.art-top { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 18px; align-items: stretch; }
.art-hero {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 22px;
  border-radius: 24px;
  color: #fff;
  box-shadow: 0 18px 40px rgba(8, 49, 65, 0.18);
  background: linear-gradient(135deg, #04352f 0%, #0f766e 48%, #1fb5a8 100%);
}
.art-hero::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -40px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
  pointer-events: none;
}
.art-hero > * { position: relative; z-index: 1; }
.art-hero__badge {
  display: inline-block;
  margin: 0 0 12px !important;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.art-hero__figure {
  margin: 0 0 8px !important;
  font-size: clamp(2rem, 4.6vw, 2.9rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.art-hero__line { margin: 0 !important; max-width: 62ch; color: rgba(255, 255, 255, 0.92); font-size: 1.02rem; }
.art-hero__note {
  margin: 14px 0 0 !important;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.88);
  font-size: var(--art-text-xs);
}
.art-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.art-kpi { padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.28); min-width: 0; }
.art-kpi__v {
  display: block;
  overflow: hidden;
  font-size: clamp(1.4rem, 2.6vw, 1.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.art-kpi__l { display: block; margin-top: 4px; color: rgba(255, 255, 255, 0.84); font-size: 0.82rem; line-height: 1.35; }

.art-health {
  padding: 22px 20px;
  border: 1px solid rgba(8, 49, 65, 0.14);
  border-left: 5px solid var(--art-ink);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(8, 49, 65, 0.06);
}
.art-app .art-health h3 { margin: 0 0 10px; font-size: 1.2rem; font-weight: 900; letter-spacing: -0.01em; color: var(--art-ink); }
.art-health p { margin: 0 0 10px; color: #355564; font-size: var(--art-text-sm); line-height: 1.5; }
.art-health .art-health__foot { margin: 0; padding-top: 10px; border-top: 1px solid #e8eef0; color: var(--art-muted); font-size: var(--art-text-xs); font-weight: 700; }

.art-compare,
.art-block,
.art-insights,
.art-outside {
  padding: 22px 20px;
  border: 1px solid rgba(8, 49, 65, 0.1);
  border-radius: 22px;
  background: linear-gradient(165deg, #ffffff 0%, #f7fbfb 100%);
  box-shadow: 0 10px 26px rgba(8, 49, 65, 0.05);
}
.art-compare { background: linear-gradient(165deg, #eefaf7 0%, #fff 30%); border-color: rgba(15, 118, 110, 0.22); }
.art-section-badge {
  display: inline-block;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e6f6f3, #e9f1ef);
  color: var(--art-teal-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.art-section-badge--plain { background: var(--art-soft); color: var(--art-muted); }
.art-app .art-section-title { margin: 0 0 10px; font-size: 1.28rem; font-weight: 900; letter-spacing: -0.015em; color: var(--art-ink); }
.art-app .art-section-lead { margin: 0 0 14px; max-width: 66ch; color: var(--art-muted); font-size: var(--art-text-sm); }

/* Tables */
.art-table-scroll { overflow-x: auto; border: 1px solid var(--art-line); border-radius: 16px; background: #fff; }
.art-app .art-table { width: 100%; min-width: 680px; margin: 0; border-collapse: collapse; font-size: var(--art-text-sm); }
.art-app .art-table th,
.art-app .art-table td {
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #e8eef0;
  text-align: right;
  vertical-align: middle;
  white-space: nowrap;
  color: var(--art-ink);
}
.art-app .art-table th { background: var(--art-soft); font-size: var(--art-text-xs); font-weight: 800; vertical-align: bottom; white-space: normal; }
.art-app .art-table tr:last-child td { border-bottom: 0; }
.art-app .art-table .art-c-name { text-align: left; white-space: normal; }
.art-namecell { display: flex; align-items: center; gap: 12px; }
.art-row { cursor: pointer; transition: background 0.12s ease; }
.art-row:hover td { background: #f3f9f8; }
.art-row:focus-visible { outline: 2px solid var(--art-teal); outline-offset: -2px; }
.art-row.is-sel td { background: #eef8f6; }
.art-row.is-sel td:first-child { box-shadow: inset 4px 0 0 var(--art-teal); }
.art-rank {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--art-soft);
  font-size: 0.85rem;
  font-weight: 900;
}
.art-row:first-child .art-rank { background: var(--art-ink); color: #fff; }
.art-name { display: block; font-weight: 800; line-height: 1.3; }
.art-meta { display: block; margin-top: 2px; color: var(--art-muted); font-size: 0.8rem; line-height: 1.35; }
.art-sub { display: block; color: var(--art-muted); font-size: 0.78rem; font-weight: 600; }
.art-table strong { font-size: 1.05rem; font-weight: 900; }
.art-score { font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em; }
.art-score small { margin-left: 1px; font-size: 0.75rem; font-weight: 700; color: var(--art-muted); }
.art-table--wait tr.is-now td { background: #f7fbfb; }

/* Feature costs */
.art-costs { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.art-costs li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(8, 49, 65, 0.12);
  border-radius: 16px;
  background: #fff;
}
.art-costs li > div:first-child strong { display: block; font-weight: 850; }
.art-costs li > div:first-child span { display: block; color: var(--art-muted); font-size: var(--art-text-xs); }
.art-costs__v { text-align: right; }
.art-costs__v strong { display: block; font-size: 1.35rem; font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; }
.art-costs__v span { display: block; color: var(--art-muted); font-size: 0.8rem; white-space: nowrap; }
.art-callout {
  margin-top: 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--art-teal);
  border-radius: 12px;
  background: #eef6f5;
}
.art-callout p { margin: 0; font-size: var(--art-text-sm); font-weight: 650; }
.art-callout p + p { margin-top: 8px; }

/* Insights, outside */
.art-insights__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.art-insights__list li {
  margin: 0;
  padding: 12px 14px;
  border-left: 4px solid var(--art-teal);
  border-radius: 10px;
  background: #eef6f5;
  color: var(--art-ink);
  font-size: var(--art-text-sm);
  line-height: 1.5;
}
.art-outside { border-style: dashed; background: #fff; box-shadow: none; }
.art-app .art-outside h3 { margin: 0 0 8px; font-size: 1.05rem; font-weight: 900; color: var(--art-ink); }
.art-outside ul { margin: 0; padding-left: 20px; color: var(--art-muted); font-size: var(--art-text-sm); }
.art-outside li + li { margin-top: 6px; }

/* Quote check */
.art-quote__out { margin-top: 14px; }
.art-quote__verdict { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--art-line); border-left: 5px solid var(--art-teal); background: #fff; }
.art-quote__verdict strong { display: block; margin-bottom: 4px; font-size: 1.05rem; font-weight: 900; }
.art-quote__verdict p { margin: 0; color: #355564; font-size: var(--art-text-sm); }
.art-quote__verdict.is-mid { border-left-color: #b7791f; }
.art-quote__verdict.is-low { border-left-color: var(--art-neg); }
.art-gar {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px dashed rgba(8, 49, 65, 0.22);
  border-radius: 14px;
  background: #fff;
}
.art-gar strong { display: block; margin-bottom: 4px; font-weight: 900; }
.art-gar p { margin: 0; color: var(--art-muted); font-size: var(--art-text-sm); }

/* Fixed term */
.art-ft__out { margin-top: 16px; }
.art-ft__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.art-stat { padding: 14px 16px; border-radius: 16px; border: 1px solid rgba(15, 118, 110, 0.25); background: #eefaf7; min-width: 0; }
.art-stat--muted { border-color: var(--art-line); background: var(--art-soft); }
.art-stat__v { display: block; font-size: clamp(1.35rem, 2.6vw, 1.7rem); font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.art-stat__l { display: block; margin-top: 2px; color: var(--art-muted); font-size: 0.82rem; }

/* Where to get a quote */
.art-where__main { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 16px; }
.art-app .art-cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, #14a39a 0%, #0f766e 55%, #0b5f59 100%);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.25);
}
.art-app .art-cta:hover { color: #fff; background: linear-gradient(135deg, #1fb5a8 0%, #0f766e 60%, #083141 100%); }
.art-app .art-link { color: var(--art-teal-deep); font-weight: 750; }
.art-where__label { margin: 0 0 8px; font-size: var(--art-text-sm); font-weight: 800; }
.art-providers { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.art-providers li { margin: 0; }
.art-app .art-providers a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--art-line);
  border-radius: 12px;
  background: #fff;
  color: var(--art-ink);
  font-weight: 750;
  text-decoration: none;
}
.art-app .art-providers a:hover { border-color: var(--art-teal); color: var(--art-teal-deep); }

/* Method */
.art-method {
  padding: 16px 18px;
  border: 1px dashed rgba(8, 49, 65, 0.18);
  border-radius: 16px;
  background: #fff;
}
.art-method summary { cursor: pointer; font-size: var(--art-text-sm); font-weight: 800; color: var(--art-teal-deep); }
.art-method[open] summary { margin-bottom: 12px; }
.art-method ul { margin: 0; padding-left: 20px; color: var(--art-muted); font-size: var(--art-text-sm); }
.art-method li + li { margin-top: 6px; }

/* Export */
.art-export {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 22px;
  background: linear-gradient(135deg, #eefaf7 0%, #f4f7f8 45%, #fff 100%);
  box-shadow: 0 10px 24px rgba(8, 49, 65, 0.05);
}
.art-export > div { flex: 1 1 260px; }
.art-export__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 12px;
  background: linear-gradient(145deg, #083141, #0f766e);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
}
.art-app .art-export__title { margin: 0 0 4px; font-size: 1.15rem; font-weight: 900; color: var(--art-ink); }
.art-export p { margin: 0; color: var(--art-muted); font-size: var(--art-text-sm); }
.art-app .art-export__btn {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 20px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #14a39a 0%, #0f766e 55%, #0b5f59 100%);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.25);
}
.art-app .art-export__btn:hover { background: linear-gradient(135deg, #1fb5a8 0%, #0f766e 60%, #083141 100%); }

/* Fallback email modal */
.art-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(8, 49, 65, 0.45);
}
.art-modal__card {
  width: min(440px, 100%);
  padding: 22px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(8, 49, 65, 0.25);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #083141;
}
.art-modal__card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.art-modal__card label { display: block; margin: 8px 0 6px; font-size: 0.95rem; font-weight: 700; }
.art-modal__card input { width: 100%; padding: 11px 12px; border: 1px solid #d5e0e4; border-radius: 12px; font: inherit; }
.rc-ml-overlay .rc-ml-modal .rc-ml-modal__snapshot-val { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; }
.art-modal__snap { margin: 0 0 12px; padding: 12px 14px; list-style: none; border-radius: 12px; background: #f4f7f8; }
.art-modal__snap li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.art-modal__snap li + li { margin-top: 6px; }
.art-modal__snap strong { text-align: right; }
.art-modal__err { min-height: 1.2em; margin: 6px 0; color: #b42318; font-weight: 700; }
.art-modal__actions { display: flex; justify-content: flex-end; gap: 10px; }
.art-modal__actions button { min-height: 44px; padding: 10px 14px; border-radius: 12px; font: inherit; font-weight: 750; cursor: pointer; }
.art-modal__cancel { border: 1px solid #d5e0e4; background: #fff; color: #083141; }
.art-modal .art-export__btn { border: none; background: #0f766e; color: #fff; }

@media (max-width: 900px) {
  .art-market { grid-template-columns: 1fr; }
  .art-top { grid-template-columns: 1fr; }
  .art-app .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones */
@media (max-width: 700px) {
  #art-root.art-app, .art-root.art-app { padding: 0 0 8px; margin-top: 16px; }
  .art-shell { padding: 14px 12px 20px; border-radius: 22px; gap: 16px; }
  .art-head { padding: 22px 16px 18px; border-radius: 18px; }
  .art-panel { padding: 18px 14px; border-radius: 18px; }
  .art-market, .art-compare, .art-block, .art-insights, .art-outside, .art-health { padding: 18px 14px; border-radius: 18px; }
  .art-hero { padding: 22px 16px 18px; border-radius: 20px; }
  .art-app .art-grid, .art-app .art-grid--2 { grid-template-columns: 1fr; }
  .art-kpis { grid-template-columns: 1fr; gap: 8px; }
  .art-kpi { display: flex; align-items: baseline; gap: 12px; padding: 10px 14px; }
  .art-kpi__v { flex: 0 0 auto; font-size: 1.35rem; }
  .art-kpi__l { margin-top: 0; }
  .art-pills { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 4px; scrollbar-width: none; }
  .art-pills::-webkit-scrollbar { display: none; }
  .art-app .art-pill { flex: 0 0 auto; }
  .art-market__trendhead .art-pills { margin: 0; padding: 0; }
  .art-prio { flex-direction: column; align-items: stretch; }
  .art-prio .art-pills { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }

  /* Tables become cards */
  .art-table-scroll { overflow: visible; border: 0; background: transparent; }
  .art-app .art-table { min-width: 0; }
  .art-app .art-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .art-app .art-table tbody { display: grid; gap: 10px; }
  .art-app .art-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; padding: 12px 14px; border: 1px solid var(--art-line); border-radius: 16px; background: #fff; }
  .art-row.is-sel { border-color: rgba(15, 118, 110, 0.55) !important; box-shadow: inset 4px 0 0 var(--art-teal); }
  .art-app .art-table td { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 5px 0; font-size: 0.92rem; border: 0; text-align: left; background: transparent !important; box-shadow: none !important; white-space: normal; }
  .art-app .art-table td::before { content: attr(data-label); max-width: 100%; color: var(--art-muted); font-size: 0.75rem; font-weight: 700; }
  .art-app .art-table td.art-c-name { grid-column: 1 / -1; padding: 0 0 6px; }
  .art-app .art-table td.art-c-name::before { display: none; }
  .art-app .art-table td.art-c-score { position: absolute; right: 14px; top: 12px; padding: 0; }
  .art-app .art-table td.art-c-score::before { display: none; }
  .art-app .art-table tr.art-row { position: relative; }
  .art-app .art-table--wait td.art-c-name { font-weight: 800; }

  .art-costs li { grid-template-columns: 1fr; gap: 6px; }
  .art-costs__v { display: flex; align-items: baseline; gap: 8px; text-align: left; }
  .art-costs__v span { white-space: normal; }
  .art-ft__grid { grid-template-columns: 1fr; gap: 8px; }
  .art-providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .art-where__main { flex-direction: column; align-items: stretch; }
  .art-app .art-cta { justify-content: center; }
  .art-export { flex-direction: column; align-items: stretch; }
  .art-export > div { flex: 0 0 auto; }
  .art-app .art-export__btn { width: 100%; }
  .art-axis, .art-marker-label { font-size: 21px; }
  .art-line { stroke-width: 3.5; }
  .art-line.is-picked { stroke-width: 6; }
}
