/* ============================================================
   Learning Center (guides + calculators). Loaded after ../styles.css,
   so it reuses the site's colors (--navy, --accent, --gold, --sand ...).
   ============================================================ */

/* ---- header nav on learn pages ---- */
.main-nav a.is-current { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; text-decoration-color: var(--gold); }
@media (max-width: 700px) { .main-nav a.keep-mobile { display: inline; } }

/* ---- hub hero ---- */
.learn-hero {
  position: relative; color: #fff; padding: 3.5rem 0 5.5rem;
  background: linear-gradient(120deg, #061a33 0%, #0b2545 55%, #13696b 130%);
}
.learn-hero h1 { color: #fff; font-size: 2.2rem; margin-bottom: .75rem; }
.learn-hero p { font-size: 1.1rem; max-width: 680px; margin: 0 0 1.5rem; }
.learn-hero .hero-local { color: #fff; }
.search-wrap { position: relative; max-width: 620px; }
.search-wrap input {
  width: 100%; font: 1.05rem -apple-system, "Segoe UI", Arial, sans-serif; padding: 1rem 1.1rem 1rem 3rem;
  border-radius: 12px; border: 0; box-shadow: 0 6px 24px rgba(0,0,0,.25); color: var(--text);
}
.search-wrap svg { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--muted); }
.learn-hero .wave svg { height: 60px; }

/* ---- filter chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.75rem; padding: 0; list-style: none; }
.chip {
  font: 700 .85rem -apple-system, "Segoe UI", Arial, sans-serif; padding: .5rem 1rem; border-radius: 99px;
  border: 2px solid #c9d3df; background: #fff; color: var(--navy); cursor: pointer; min-height: 44px;
}
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.learn-section { padding: 3rem 0; }
.learn-section.alt { background: var(--sand); }
.learn-section h2 { font-size: 1.7rem; color: var(--navy); }

/* ---- cards grid (guides + calculators) ---- */
.tile-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin: 0; padding: 0; list-style: none; }
.tile {
  display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 1.4rem 1.4rem 1.2rem; text-decoration: none; color: var(--text); border-top: 5px solid var(--accent);
  transition: transform .15s ease, box-shadow .15s ease;
}
.tile:hover, .tile:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(11,37,69,.16); }
.tile.calc { border-top-color: var(--gold); }
.tile-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: #e7f2f2; color: var(--accent); margin-bottom: .8rem; }
.tile.calc .tile-icon { background: #fbf1e1; color: var(--gold-text); }
.tile-icon svg { width: 28px; height: 28px; }
.tile h3 { margin: 0 0 .4rem; font-size: 1.1rem; color: var(--navy); }
.tile p { margin: 0 0 1rem; font-size: .95rem; color: var(--muted); flex: 1; }
.tile .meta { font: 700 .78rem -apple-system, Arial, sans-serif; color: var(--accent); text-transform: uppercase; letter-spacing: .05em; }
.tile.calc .meta { color: var(--gold-text); }
.no-results { display: none; font-style: italic; color: var(--muted); }

/* ---- the "educational only" notice ---- */
.edu-note {
  display: flex; gap: .9rem; align-items: flex-start; background: #fff8e6; border-left: 6px solid var(--gold);
  border-radius: 8px; padding: 1rem 1.1rem; font-size: .92rem; margin: 0 0 1.5rem;
}
.edu-note strong { font-family: -apple-system, Arial, sans-serif; color: var(--navy); }
.edu-note svg { flex: none; width: 24px; height: 24px; color: var(--gold-text); margin-top: .1rem; }

/* ---- breadcrumbs ---- */
.crumbs { font: .85rem -apple-system, Arial, sans-serif; color: var(--muted); margin: 0 0 1rem; }
.crumbs a { color: var(--accent); }

/* ============================================================
   Guide pages
   ============================================================ */
.guide-head { background: var(--sand); padding: 2.5rem 0 2rem; }
.guide-head h1 { margin-bottom: .5rem; }
.guide-head .dek { font-size: 1.1rem; color: var(--muted); margin: 0 0 1rem; max-width: 720px; }
.guide-meta { font: .85rem -apple-system, Arial, sans-serif; color: var(--muted); display: flex; gap: 1.25rem; flex-wrap: wrap; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 3rem; padding: 2.5rem 0 3rem; }
@media (max-width: 900px) { .guide-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.guide-body h2 { font-size: 1.45rem; color: var(--navy); margin: 2.25rem 0 .8rem; scroll-margin-top: 110px; }
.guide-body h3 { font-size: 1.1rem; color: var(--navy); margin: 1.5rem 0 .5rem; }
.guide-body li { margin-bottom: .45rem; }
.tldr { background: #e9f3f3; border-radius: 16px; padding: 1.25rem 1.5rem; }
.tldr h2 { margin: 0 0 .5rem !important; font-size: 1.1rem !important; }
.tldr h2::after { display: none; }
.tldr ul { margin: 0; padding-left: 1.2rem; }
.florida { background: #fff; border: 2px solid var(--gold); border-radius: 16px; padding: 1rem 1.25rem; margin: 1.5rem 0; }
.florida h3 { margin-top: 0; }
.term-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; padding: 0; list-style: none; }
.term-list li { background: var(--bg-soft); border-radius: 10px; padding: .85rem 1rem; margin: 0; font-size: .95rem; }
.term-list b { display: block; font-family: -apple-system, Arial, sans-serif; color: var(--navy); }
.ask-box { background: var(--navy); color: #fff; border-radius: 16px; padding: 1.4rem 1.6rem; margin: 2rem 0; }
.ask-box h2 { color: #fff !important; margin-top: 0 !important; }
.ask-box li::marker { color: var(--gold); }
.sources { font-size: .9rem; }
.sources a { color: var(--accent); word-break: break-word; }
.toc { position: sticky; top: 110px; align-self: start; font: .9rem -apple-system, Arial, sans-serif; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 .6rem; padding: 0; }
.toc h2::after { display: none; }
.toc ol { list-style: none; margin: 0 0 1.5rem; padding: 0; border-left: 3px solid #dde3ea; }
.toc a { display: block; padding: .3rem 0 .3rem .9rem; color: var(--navy); text-decoration: none; }
.toc a:hover { color: var(--accent); }
.side-cta { background: var(--sand); border-radius: 16px; padding: 1.1rem; }
.side-cta p { margin: 0 0 .8rem; }
.side-cta .btn { width: 100%; text-align: center; font-size: .95rem; min-height: 48px; padding: .7rem 1rem; }
.related { margin-top: 2.5rem; }

/* ============================================================
   Calculator pages
   ============================================================ */
.calc-layout { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 2rem; padding: 2rem 0 1rem; align-items: start; }
@media (max-width: 900px) { .calc-layout { grid-template-columns: 1fr; } }
.calc-inputs { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 1.4rem; position: sticky; top: 100px; }
@media (max-width: 900px) { .calc-inputs { position: static; } }
.calc-inputs h2, .calc-results h2 { font-size: 1.1rem !important; margin: 0 0 1rem; padding: 0 !important; }
.calc-inputs h2::after, .calc-results h2::after { display: none; }
.field { margin-bottom: 1.1rem; }
.field label { display: flex; justify-content: space-between; gap: .5rem; font: 700 .9rem -apple-system, Arial, sans-serif; color: var(--navy); margin-bottom: .35rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field .pair { display: grid; grid-template-columns: 1fr 120px; gap: .6rem; align-items: center; }
.field input[type=number], .field select, .field input[type=text] {
  width: 100%; font: 1rem -apple-system, Arial, sans-serif; padding: .55rem .6rem; border: 2px solid #c9d3df; border-radius: 8px; background: #fff; color: var(--text); min-height: 44px;
}
.field input[type=number]:focus, .field select:focus { border-color: var(--navy); outline: none; }
.field input[type=range] { width: 100%; accent-color: var(--accent); min-height: 32px; }
.field .help { font-size: .8rem; color: var(--muted); margin: .25rem 0 0; }
.fieldset-title { font: 700 .78rem -apple-system, Arial, sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-text); margin: 1.4rem 0 .7rem; border-top: 1px solid #e4e9ef; padding-top: 1rem; }
.fieldset-title:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.seg { display: flex; border: 2px solid var(--navy); border-radius: 10px; overflow: hidden; }
.seg button { flex: 1; font: 700 .85rem -apple-system, Arial, sans-serif; padding: .55rem .4rem; border: 0; background: #fff; color: var(--navy); cursor: pointer; min-height: 44px; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }

.calc-results { min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 1.1rem 1.2rem; }
.kpi.main { background: var(--navy); color: #fff; }
.kpi .k { font: 700 .78rem -apple-system, Arial, sans-serif; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.kpi.main .k { color: #cfe0f2; }
.kpi .v { font: 700 1.7rem -apple-system, Arial, sans-serif; color: var(--navy); line-height: 1.2; margin-top: .2rem; }
.kpi.main .v { color: #fff; font-size: 2rem; }
.kpi .s { font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.kpi.main .s { color: #dbe6f2; }
.panel { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 1.25rem 1.25rem 1rem; margin-bottom: 1.25rem; }
.panel h3 { margin: 0 0 .25rem; font-size: 1.05rem; color: var(--navy); }
.panel .sub { margin: 0 0 .75rem; font-size: .85rem; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 1rem; font: .82rem -apple-system, Arial, sans-serif; color: var(--muted); margin: .5rem 0 0; padding: 0; list-style: none; }
.legend i { display: inline-block; width: 14px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: .35rem; }
.legend i.dash { background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px) !important; height: 3px; }
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg text { font: 14px -apple-system, Arial, sans-serif; fill: #5b6878; }
.data-table { width: 100%; border-collapse: collapse; font: .85rem -apple-system, Arial, sans-serif; }
.data-table th, .data-table td { text-align: right; padding: .45rem .5rem; border-bottom: 1px solid #e4e9ef; }
.data-table th:first-child, .data-table td:first-child { text-align: left; }
.data-table th { color: var(--navy); background: var(--bg-soft); position: sticky; top: 0; }
.table-scroll { max-height: 340px; overflow: auto; border-radius: 8px; border: 1px solid #e4e9ef; }
details.more { margin-top: .75rem; }
details.more summary { cursor: pointer; font: 700 .9rem -apple-system, Arial, sans-serif; color: var(--accent); min-height: 32px; }
.insight { background: #e9f3f3; border-radius: 12px; padding: .9rem 1.1rem; font-size: .95rem; margin-bottom: 1.25rem; }
.insight b { font-family: -apple-system, Arial, sans-serif; }
.warn { background: #fdeaea; color: #7a1414; border-radius: 8px; padding: .6rem .8rem; font: .85rem -apple-system, Arial, sans-serif; }
.calc-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.calc-actions .btn { min-height: 44px; padding: .5rem 1rem; font-size: .9rem; }
.explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; padding: 1rem 0 2.5rem; }
.explain > div { background: var(--bg-soft); border-radius: 16px; padding: 1.2rem 1.3rem; }
.explain h3 { margin-top: 0; color: var(--navy); font-size: 1.05rem; }
.explain ul { padding-left: 1.1rem; margin: 0; font-size: .95rem; }
.donut-wrap { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.donut-wrap svg { width: 150px; height: 150px; flex: none; }

.data-table td:not(:first-child) { white-space: nowrap; }
.mini3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.mini3 .field { margin-bottom: .6rem; }
.mini-label { font: 700 .85rem -apple-system, Arial, sans-serif; color: var(--muted); margin: .2rem 0 .4rem; }

/* sidebar button sits inside .toc, so undo the TOC link styling */
.toc .side-cta .btn { color: #fff; padding: .7rem 1rem; display: block; }
.toc .side-cta .btn:hover { color: #fff; background: var(--navy-dark, #061a33); }

/* ---- visuals inside guides (built by tools/learn_viz.py) ---- */
.viz { margin: 1.5rem 0; padding: 1.2rem 1.3rem 1rem; background: #fff; border: 1px solid #e4e9ef; border-radius: 16px; box-shadow: var(--shadow); break-inside: avoid; }
.viz-title { font: 700 1rem -apple-system, Arial, sans-serif; color: var(--navy); margin: 0 0 .9rem; }
.viz-note { font-size: .88rem; color: var(--muted); margin: .8rem 0 0; }
.viz-source { font: .78rem -apple-system, Arial, sans-serif; color: var(--muted); margin: .6rem 0 0; }
.viz-source a { color: var(--accent); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hbars { display: grid; gap: .55rem; }
.hb { display: grid; grid-template-columns: minmax(120px, 34%) 1fr; gap: .8rem; align-items: center; }
.hb-label { font: .9rem -apple-system, Arial, sans-serif; color: var(--text); }
.hb.hl .hb-label { font-weight: 700; color: var(--navy); }
.hb-track { display: grid; gap: 3px; }
.hb-line { display: flex; align-items: center; gap: .5rem; }
.hb-fill { height: 18px; border-radius: 0 6px 6px 0; flex: none; }
.hb-val { font: 700 .85rem -apple-system, Arial, sans-serif; color: var(--navy); white-space: nowrap; }
.c1 { background: #0b2545; } .c2 { background: #13696b; } .c3 { background: #d99a3d; }
.hb.hl .hb-fill.c1 { background: #d99a3d; }
.legend i.sw { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: .4rem; vertical-align: -2px; }
@media (max-width: 560px) { .hb { grid-template-columns: 1fr; gap: .2rem; } }

.stats-fig { background: var(--sand); border: 0; box-shadow: none; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: .9rem; }
.stat { background: #fff; border-radius: 12px; padding: .9rem 1rem; border-top: 4px solid var(--accent); }
.stat-n { font: 800 1.7rem -apple-system, Arial, sans-serif; color: var(--navy); line-height: 1.1; }
.stat-l { font: .82rem/1.35 -apple-system, Arial, sans-serif; color: var(--muted); margin-top: .3rem; }

.timeline { list-style: none; margin: 0; padding: 0 0 0 1.1rem; border-left: 3px solid var(--accent); display: grid; gap: .75rem; }
.timeline li { position: relative; display: grid; grid-template-columns: 5.5rem 1fr; gap: .75rem; align-items: baseline; }
.timeline li::before { content: ""; position: absolute; left: -1.62rem; top: .45rem; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.tl-when { font: 800 1.15rem -apple-system, Arial, sans-serif; color: var(--navy); }
.tl-what { font-size: .95rem; }

.flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.flow-card { background: var(--bg-soft); border-radius: 12px; padding: .8rem .9rem; font-size: .92rem; border-left: 4px solid var(--accent); }
.flow-card b { display: block; font-family: -apple-system, Arial, sans-serif; color: var(--navy); margin-bottom: .2rem; }
.flow-arrow { text-align: center; color: var(--gold); font-size: 1.2rem; margin: .4rem 0; }
.flow-result { background: var(--navy); color: #fff; border-radius: 12px; padding: .85rem 1rem; font-size: .95rem; }
.flow-result a { color: #fff; }

.win { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.win-cell { background: #e4e9ef; padding: .7rem .3rem; text-align: center; font: 600 .8rem -apple-system, Arial, sans-serif; color: var(--muted); border-radius: 6px; }
.win-cell.on { background: var(--accent); color: #fff; }
.win-cell.on:nth-child(4) { background: var(--navy); }
@media (max-width: 560px) { .win { grid-template-columns: repeat(4, 1fr); } }

.stack { display: flex; gap: 4px; min-height: 84px; }
.stk { background: var(--accent); color: #fff; border-radius: 8px; padding: .6rem .5rem; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.stk:nth-child(3) { background: var(--navy); }
.stk b { font: 800 1.05rem -apple-system, Arial, sans-serif; }
.stk span { font-size: .75rem; line-height: 1.25; }
.stack-total { font: 700 .95rem -apple-system, Arial, sans-serif; color: var(--navy); margin: .7rem 0 0; }
@media (max-width: 560px) { .stack { flex-direction: column; } .stk { flex: none !important; } }

/* ---- save / share toolbar ---- */
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 1rem 0 1.25rem; }
.tool-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .9rem; border-radius: 999px; border: 2px solid #c9d3df;
  background: #fff; color: var(--navy); font: 700 .88rem -apple-system, Arial, sans-serif; cursor: pointer; }
.tool-btn:hover, .tool-btn:focus-visible { border-color: var(--accent); color: var(--accent); }
.tool-btn svg { width: 18px; height: 18px; }
.tool-btn[data-email] { background: var(--navy); border-color: var(--navy); color: #fff; }
.tool-btn[data-email]:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.tool-note { flex-basis: 100%; margin: 0; font-size: .8rem; color: var(--muted); }

/* ---- "why these starting numbers" ---- */
.basis-wrap { margin: 1rem 0 1.5rem; padding: 1.5rem; background: var(--sand); border-radius: 16px; }
.basis-wrap h2 { color: var(--navy); font-size: 1.4rem; margin-top: 0; }
.basis-table td, .basis-table th { white-space: normal !important; vertical-align: top; text-align: left !important; }
.basis-table th[scope="row"] { font-family: -apple-system, Arial, sans-serif; color: var(--navy); position: static; background: #fff; min-width: 9rem; }
.basis-table td.val { font: 800 1rem -apple-system, Arial, sans-serif; color: var(--navy); white-space: nowrap !important; }
.basis-table tbody tr { background: #fff; }
.basis-src { font: .78rem -apple-system, Arial, sans-serif; color: var(--muted); margin-top: .35rem; }
.basis-src a { color: var(--accent); }
.muted { color: var(--muted); }
@media (max-width: 640px) {
  .basis-table thead { display: none; }
  .basis-table tr { display: block; padding: .8rem; border-bottom: 1px solid #e4e9ef; }
  .basis-table th[scope="row"], .basis-table td { display: block; border: 0; padding: .15rem 0; background: none; }
}

/* ---- hub: where to start ---- */
.paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }
.path { background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 1.3rem 1.4rem; border-top: 5px solid var(--navy); }
.path h3 { margin: 0 0 .3rem; color: var(--navy); font-size: 1.15rem; }
.path p { margin: 0 0 .8rem; color: var(--muted); font-size: .93rem; }
.path ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: .4rem; }
.path li { counter-increment: s; margin: 0; padding: 0; }
.path li a { display: flex; gap: .6rem; align-items: center; padding: .55rem .7rem; border-radius: 10px; background: var(--bg-soft); color: var(--navy); text-decoration: none; font: 700 .95rem/1.3 -apple-system, Arial, sans-serif; min-height: 44px; box-sizing: border-box; width: 100%; }
.path li a::before { content: counter(s); flex: none; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 700 .8rem -apple-system, Arial, sans-serif; }
.path li a:hover { background: #e7f2f2; }
.p-txt { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.p-kind { font: 700 .68rem -apple-system, Arial, sans-serif; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); }
.p-kind.calc { color: var(--gold-text); }

/* ---- printing: a clean handout of the guide or the results ---- */
.print-only { display: none; }
@media print {
  @page { margin: 14mm; }
  html { font-size: 12.5px; }
  body { background: #fff; }
  .print-only { display: block; }
  .print-head { border-bottom: 2px solid #0b2545; padding: 0 0 .5rem; margin-bottom: 1rem; font: .85rem -apple-system, Arial, sans-serif; color: #333; }
  .site-header, .toolbar, .side-cta, .cta-band, .skip-link, .toc, .related, .wave, .search-wrap, .chips, input[type="range"] { display: none !important; }
  .guide-layout { display: block; }
  .guide-head { background: none; padding: 0 0 .5rem; }
  .calc-layout { grid-template-columns: 1fr 1.6fr; }
  .calc-inputs { position: static; box-shadow: none; border: 1px solid #ccc; }
  .panel, .kpi, .viz, .path, .tile { box-shadow: none !important; border: 1px solid #ccc; }
  .table-scroll { max-height: none !important; overflow: visible; }
  .viz, .kpis, .panel, .basis-table tr, .ask-box, .tldr, .florida { break-inside: avoid; }
  .ask-box { background: #fff; color: #000; border: 2px solid #0b2545; }
  .ask-box h2 { color: #0b2545; }
  .c1, .c2, .c3, .hb-fill, .stk, .flow-result, .win-cell.on, .stat, .stat-n { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  a { color: inherit; text-decoration: none; }
  .sources a::after, .viz-source a::after, .basis-src a::after { content: " (" attr(href) ")"; font-size: .75em; word-break: break-all; }
  .site-footer { background: #fff !important; color: #333 !important; border-top: 1px solid #ccc; }
  .site-footer a { color: #333 !important; }
}

/* ---- email dialog ---- */
.mail-dlg { width: min(760px, 94vw); max-height: 92vh; border: 0; border-radius: 16px; padding: 1.25rem 1.4rem 1.4rem; box-shadow: 0 20px 60px rgba(0,0,0,.35); color: var(--text); }
.mail-dlg::backdrop { background: rgba(11,37,69,.55); }
.mail-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.mail-top h2 { margin: 0; color: var(--navy); font-size: 1.35rem; }
.mail-x { border: 0; background: var(--bg-soft); width: 44px; height: 44px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--navy); }
.mail-lead { font-size: .95rem; color: var(--muted); margin: .5rem 0 1rem; }
.mail-steps { margin: 0 0 .6rem; padding-left: 1.4rem; display: grid; gap: .6rem; font: .9rem -apple-system, Arial, sans-serif; }
.mail-steps li::marker { font-weight: 800; color: var(--navy); }
.tool-btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.tool-btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.mail-ok { margin-left: .6rem; font-weight: 700; color: var(--accent); }
.mail-hint { color: var(--muted); }
.mail-more { display: flex; gap: 1.2rem; flex-wrap: wrap; margin: 0 0 1rem; }
.linkish { background: none; border: 0; padding: .3rem 0; min-height: 36px; color: var(--accent); text-decoration: underline; font: 600 .88rem -apple-system, Arial, sans-serif; cursor: pointer; }
.mail-preview-label { font: 700 .75rem -apple-system, Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .3rem; }
.mail-preview { border: 1px solid #e4e9ef; border-radius: 12px; overflow: auto; max-height: 52vh; }
.mail-preview h1 { border: 0; padding: 0; }
.mail-preview h1::after { display: none !important; }
@media print { .mail-dlg { display: none !important; } }
