/* FILE: site.css - v1.2 */
/* KLOD - 2026-10-26 - v1.2 - W logo; big Save; light/dark toggle (html[data-theme] only); Maya card in the article column;
   SEO copy: keyword line in the H1 (.hero_kw), section sub-headings (.sub_title), mobile "Updated" line (.art_meta) */
/* KLOD - 2026-10-26 - v1.1 - approved redesign (thin bar, 16px min, debranded); both Sold/Bought sides stacked (no layout
   shift); reminder strip removed; jQuery UI date picker (light + dark, 16px, 40px; today = ring, picked day = filled) */

:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg_soft: #f6f7f9;
  --surface: #ffffff;
  --line: #e4e7ec;
  --line_strong: #d0d5dd;
  --input_line: #c5cbd3;
  --ink: #101828;
  --ink_2: #344054;
  --ink_3: #475467;
  --ink_4: #5d6679;
  --accent: #2952cc;
  --accent_hover: #1f40a8;
  --accent_btn_hover: #1f40a8;
  --accent_text: #2952cc;
  --accent_ink: #ffffff;
  --accent_soft: #eef2fd;
  --seg_track: #f2f4f7;
  --seg_on: #ffffff;
  --risk: #b42318;
  --risk_bg: #fef3f2;
  --risk_soft: #fee4e2;
  --risk_mid: #fecdca;
  --risk_line: #fecdca;
  --wait: #b54708;
  --wait_bg: #fef6ee;
  --defer: #b54708;
  --defer_bar: #f79009;
  --track: #eef0f3;
  --dark: #101828;
  --dark_ink: #ffffff;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow_pop: 0 24px 48px -12px rgba(16, 24, 40, 0.25);
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* dark theme: js/theme.js sets html[data-theme] (saved choice, else the system setting); no JS = light */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b111c;
  --bg_soft: #101826;
  --surface: #141c2b;
  --line: #253041;
  --line_strong: #344054;
  --input_line: #4a5568;
  --ink: #f2f4f7;
  --ink_2: #d0d5dd;
  --ink_3: #b0b8c6;
  --ink_4: #98a2b3;
  --accent: #3d63e0;
  --accent_hover: #c2d0ff;
  --accent_btn_hover: #2f55d4;
  --accent_text: #9db4ff;
  --accent_ink: #ffffff;
  --accent_soft: #18234a;
  --seg_track: #0b111c;
  --seg_on: #253041;
  --risk: #fda29b;
  --risk_bg: #2a1517;
  --risk_soft: #4a1f1d;
  --risk_mid: #6b2a24;
  --risk_line: #5a2622;
  --wait: #fdb022;
  --wait_bg: #2b1f10;
  --defer: #fdb022;
  --defer_bar: #f79009;
  --track: #253041;
  --dark: #1d2939;
  --dark_ink: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow_pop: 0 24px 48px -12px rgba(0, 0, 0, 0.6);
}

/* base */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { display: flex; flex-direction: column; min-height: 100vh; margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
main { flex: 1 0 auto; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent_text); text-underline-offset: 2px; }
a:hover { color: var(--accent_hover); }
b, strong { font-weight: 600; }
svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, summary:focus-visible, select:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr_only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.skip_link { position: absolute; left: 16px; top: -80px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip_link:focus { top: 12px; color: var(--bg); }
.ic_fill { fill: currentColor; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }

/* header */
.site_head { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.head_row { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand_mark { display: block; width: 36px; height: 36px; flex: none; }
.brand_name { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { color: var(--ink_2); text-decoration: none; font-size: 16px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.head_stores { display: flex; gap: 10px; }
.store_mini { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--dark); color: var(--dark_ink); font-size: 16px; font-weight: 600; }
.store_mini:hover { opacity: 0.9; }
.store_mini svg { width: 18px; height: 18px; flex: none; }
.theme_btn { display: none; place-items: center; width: 44px; height: 44px; flex: none; margin-left: -12px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink_2); }
html[data-theme="light"] .theme_btn, html[data-theme="dark"] .theme_btn { display: grid; }
.theme_btn:hover { background: var(--seg_track); color: var(--ink); }
.theme_btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.theme_btn .ti_sun { display: none; }
html[data-theme="dark"] .theme_btn .ti_sun { display: block; }
html[data-theme="dark"] .theme_btn .ti_moon { display: none; }
.menu_btn { display: none; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--ink_2); }
.menu_btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; }
.menu_btn .mi_close { display: none; }
.menu_btn[aria-expanded="true"] .mi_open { display: none; }
.menu_btn[aria-expanded="true"] .mi_close { display: block; }
.menu_list { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow_pop); }
.menu_ul { list-style: none; padding-top: 4px; padding-bottom: 8px; }
.menu_ul li + li { border-top: 1px solid var(--line); }
.menu_ul a { display: flex; align-items: center; min-height: 52px; color: var(--ink); font-size: 17px; font-weight: 600; text-decoration: none; }
.menu_ul a:hover { color: var(--accent_text); }

/* hero */
.hero { padding: 40px 0 0; }
.hero_title { font-size: 34px; line-height: 42px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.hero_kw { display: block; margin-bottom: 2px; font-size: 16px; line-height: 24px; font-weight: 600; letter-spacing: 0; color: var(--accent_text); }
.hero_lede { max-width: 760px; margin-top: 8px; font-size: 18px; line-height: 28px; color: var(--ink_3); }

/* calculator */
.calc { display: grid; grid-template-columns: 2fr 3fr; gap: 24px; align-items: stretch; margin-top: 28px; }
.calc_form { display: flex; flex-direction: column; gap: 20px; padding: 24px; min-width: 0; }
.pane_title { font-size: 22px; line-height: 30px; font-weight: 600; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; height: 44px; padding: 4px; border-radius: 12px; background: var(--seg_track); }
.seg_opt { position: relative; display: block; min-width: 0; }
.seg_opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg_opt span { display: flex; align-items: center; justify-content: center; height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 9px; font-size: 16px; font-weight: 500; color: var(--ink_3); white-space: nowrap; }
.seg_opt input:checked + span { border-color: var(--line_strong); background: var(--seg_on); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.08); }
.seg_opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }
.seg_sm { max-width: 280px; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fld_lbl { display: block; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--ink_2); }
.fld_in { display: block; width: 100%; height: 48px; padding: 0 14px; border: 1.5px solid var(--input_line); border-radius: 10px; background: var(--surface); color: var(--ink); font-size: 17px; font-weight: 500; font-variant-numeric: tabular-nums; -webkit-appearance: none; appearance: none; }
.fld_in:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.fld_in::placeholder { color: var(--ink_4); font-weight: 400; opacity: 1; }
.fld_in[aria-invalid="true"] { border-color: var(--risk); }
.fld_ticker { font-size: 18px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; }
.fld_ticker::placeholder { text-transform: none; letter-spacing: 0; }
.fld_pick { min-width: 0; padding-right: 44px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='15.5' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }
.fld_select { padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.fld_quote { height: 24px; margin-top: -2px; overflow: hidden; font-size: 16px; line-height: 24px; color: var(--ink_3); white-space: nowrap; text-overflow: ellipsis; }
.fld_err { font-size: 16px; line-height: 22px; font-weight: 500; color: var(--risk); }
.fld_off { visibility: hidden; }

.more_wrap { padding-top: 4px; border-top: 1px solid var(--line); }
.more_btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 48px; padding: 0; border: 0; background: transparent; text-align: left; }
.more_txt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; }
.more_t { font-size: 16px; font-weight: 600; color: var(--accent_text); }
.more_s { font-size: 16px; color: var(--ink_4); }
.more_btn .chev { width: 20px; height: 20px; stroke: var(--accent_text); }
.more_btn[aria-expanded="true"] .chev { transform: rotate(180deg); }
.more_btn.more_bad .more_t { color: var(--risk); }
.more_btn.more_bad .chev { stroke: var(--risk); }
.more { display: flex; flex-direction: column; gap: 20px; padding: 12px 0 4px; }
.buys { display: flex; flex-direction: column; gap: 12px; }
.buys_title { font-size: 16px; font-weight: 600; color: var(--ink); }
.buys_note { margin-top: -6px; font-size: 16px; color: var(--ink_3); }
.buy_list { display: flex; flex-direction: column; gap: 12px; }
.buy_list:empty { display: none; }
.buy_row { padding: 12px 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg_soft); }
.buy_row .row2 { row-gap: 12px; }
.buy_head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.buy_title { font-size: 16px; font-weight: 600; color: var(--ink_2); }
.buy_del { height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink_3); font-size: 16px; font-weight: 600; }
.buy_del:hover { background: var(--risk_bg); color: var(--risk); }
.add_buy { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; border: 1.5px dashed var(--input_line); border-radius: 10px; background: var(--surface); color: var(--accent_text); font-size: 16px; font-weight: 600; }
.add_buy:hover { border-color: var(--accent); }
.add_buy svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.tag_row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tag_lbl { font-size: 16px; color: var(--ink_3); }
.tag { display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border: 1px solid var(--line_strong); border-radius: 999px; background: var(--surface); color: var(--ink_2); font-size: 16px; font-weight: 500; }
.tag:hover { border-color: var(--accent); color: var(--accent_text); }

/* result panel */
.calc_result { display: flex; flex-direction: column; padding: 24px 32px; min-width: 0; min-height: 482px; }
.res_body { display: flex; flex-direction: column; flex: 1; }
.res_stack { display: grid; flex: 1; min-width: 0; }
.res_layer { grid-area: 1 / 1; display: flex; flex-direction: column; min-width: 0; }
.res_layer_off { visibility: hidden; }
.res_empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 0; text-align: center; outline: none; }
.res_empty_ic { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg_soft); }
.res_empty_ic svg { width: 32px; height: 32px; fill: none; stroke: var(--accent_text); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.res_empty_txt { display: flex; flex-direction: column; align-items: inherit; gap: 12px; }
.res_empty_h { font-size: 22px; font-weight: 600; color: var(--ink); outline: none; }
.res_empty_p { max-width: 400px; font-size: 18px; color: var(--ink_3); }
.res_label { font-size: 18px; line-height: 28px; font-weight: 500; color: var(--ink_3); outline: none; }
.res_date { margin-top: 4px; font-size: 40px; line-height: 48px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.res_date_txt { font-size: 34px; }
.res_chips { display: flex; gap: 8px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.chip svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.chip_wait { background: var(--wait_bg); color: var(--wait); }
.chip_ok { background: var(--accent_soft); color: var(--accent_text); }
.chip_info { background: var(--seg_track); color: var(--ink_3); }
.res_reason { margin-top: 16px; font-size: 18px; line-height: 28px; color: var(--ink_3); }

.tbar_box { margin-top: 28px; padding: 0 2px; }
.tbar { display: block; width: 100%; height: 92px; overflow: visible; }
.tb_today { fill: var(--accent_text); font-family: var(--font); font-size: 16px; font-weight: 600; }
.tb_today_mk { fill: var(--accent); }
.tb_track { fill: var(--track); }
.tb_before { fill: var(--risk_soft); }
.tb_after { fill: var(--risk_mid); }
.tb_sale { fill: var(--ink); }
.tb_buy { fill: var(--risk); stroke: var(--surface); stroke-width: 2; }
.tb_buy_out { fill: var(--ink_4); stroke: var(--surface); stroke-width: 2; }
.tb_safe { fill: var(--accent); stroke: var(--surface); stroke-width: 3; }
.tb_safe_ring { fill: none; stroke: var(--accent); stroke-width: 1; }
.tb_lbl, .tb_lbl_sale, .tb_lbl_safe { font-family: var(--font); font-size: 16px; }
.tb_lbl { fill: var(--ink_3); }
.tb_lbl_sale { fill: var(--ink); font-weight: 600; }
.tb_lbl_safe { fill: var(--accent_text); font-weight: 600; }
.tb_short { display: none; }

.conflict { margin-top: 20px; border: 1px solid var(--risk_line); border-radius: 12px; background: var(--risk_bg); overflow: hidden; }
.conflict_h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-size: 17px; font-weight: 600; color: var(--risk); }
.conflict_h svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.conflict_list { list-style: none; }
.conflict_row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--risk_line); font-size: 16px; color: var(--ink_2); }
.cr_when b { display: block; color: var(--ink); font-weight: 600; }
.cr_amt { text-align: right; font-weight: 600; color: var(--defer); }
.cr_lost { color: var(--risk); }

.res_stats { display: grid; grid-template-columns: 1fr 1fr; margin-top: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg_soft); overflow: hidden; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; min-width: 0; box-shadow: -1px -1px 0 var(--line); }
.stat:last-child:nth-child(odd) { grid-column: 1 / -1; }
.stat_k { font-size: 16px; color: var(--ink_3); }
.stat_v { font-size: 20px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat_s { font-size: 16px; color: var(--ink_4); overflow-wrap: break-word; }
.sv_risk { color: var(--risk); }
.sv_ok { color: var(--accent_text); }
.sv_def { color: var(--defer); }
.res_notes { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.res_note { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 24px; color: var(--ink_3); }
.res_note svg { width: 20px; height: 20px; flex: none; margin-top: 2px; fill: none; stroke: var(--ink_4); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.res_note_risk { color: var(--ink_2); }
.res_note_risk svg { stroke: var(--risk); }
.res_actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; min-height: 72px; margin-top: auto; padding-top: 28px; }
.save_box { display: flex; flex-direction: column; gap: 10px; margin-top: auto; padding-top: 4px; }
.btn_save { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 56px; padding: 0 20px; border: 0; border-radius: 12px; background: #2952cc; color: #ffffff; font-size: 18px; line-height: 24px; font-weight: 600; box-shadow: 0 6px 16px rgba(41, 82, 204, 0.32); cursor: pointer; }
.btn_save svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn_save:hover { background: #1f40a8; box-shadow: 0 8px 22px rgba(41, 82, 204, 0.42); }
.btn_save:active { background: #1a3690; box-shadow: 0 2px 6px rgba(41, 82, 204, 0.32); }
.btn_save:focus-visible { outline: 3px solid var(--accent_text); outline-offset: 3px; border-radius: 12px; }
.btn_save:disabled { background: var(--accent_soft); color: var(--accent_text); box-shadow: none; cursor: not-allowed; }
.save_hint { font-size: 16px; line-height: 22px; color: var(--ink_3); text-align: center; }
.btn_link svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.btn_link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent_text); font-size: 16px; font-weight: 600; }
.btn_link:hover { color: var(--accent_hover); }

.tw { display: grid; }
.tw_on, .tw_off { grid-area: 1 / 1; }
.tw_off { visibility: hidden; }

.save_strip { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; padding: 14px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 16px; color: var(--ink_3); }
.save_head b { font-weight: 600; color: var(--ink); }
.save_slots { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.save_slot { display: inline-flex; align-items: center; height: 44px; border: 1px solid var(--line_strong); border-radius: 999px; background: var(--surface); overflow: hidden; }
.save_slot_on { border-color: var(--accent); background: var(--accent_soft); }
.save_slot_empty { padding: 0 16px; border-style: dashed; color: var(--ink_4); }
.slot_open { display: inline-flex; align-items: center; gap: 8px; height: 100%; padding: 0 4px 0 16px; border: 0; background: none; color: var(--ink_3); font-size: 16px; font-weight: 500; white-space: nowrap; }
.slot_open b { color: var(--ink); font-weight: 700; }
.slot_del { display: grid; place-items: center; width: 40px; height: 100%; border: 0; background: none; color: var(--ink_4); }
.slot_del:hover { color: var(--risk); }
.slot_del svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.save_more { margin-left: auto; }
.link_btn { padding: 0; border: 0; background: none; color: var(--accent_text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; width: max-content; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 16px; font-weight: 500; line-height: 1.45; box-shadow: var(--shadow_pop); transform: translateX(-50%); }
.toast:empty { display: none; }

/* how it works */
.how { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding-top: 32px; }
.how_item { display: flex; align-items: center; gap: 12px; font-size: 16px; color: var(--ink_2); }
.how_ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 999px; background: var(--accent_soft); }
.how_ic svg { width: 20px; height: 20px; fill: none; stroke: var(--accent_text); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* story */
.story { margin-bottom: 72px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.story_head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; background: var(--risk_bg); }
.story_hl { display: flex; align-items: center; gap: 12px; }
.story_hl svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--risk); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.story_title { font-size: 22px; line-height: 30px; font-weight: 600; color: var(--ink); }
.story_tag { display: inline-flex; align-items: center; flex: none; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--seg_track); color: var(--ink_3); font-size: 16px; font-weight: 600; }
.story_body { display: flex; flex-direction: column; gap: 12px; padding: 24px; }
.story_body p { max-width: 820px; font-size: 18px; line-height: 28px; color: var(--ink_2); }
.story_cta { margin-top: 4px; font-size: 18px; font-weight: 600; text-decoration: none; }

/* article */
.doc { padding: 96px 0 40px; }
.doc_grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0 56px; align-items: start; }
.toc { position: sticky; top: 96px; }
.toc_h { margin-bottom: 12px; font-size: 16px; font-weight: 600; color: var(--ink); }
.toc_list { list-style: none; border-left: 1px solid var(--line); }
.toc_list a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; font-size: 16px; color: var(--ink_3); text-decoration: none; }
.toc_list a:hover { color: var(--ink); border-left-color: var(--accent); }
.art_meta { display: none; margin-bottom: 16px; font-size: 16px; line-height: 1.5; color: var(--ink_4); }
.toc_meta { margin-top: 18px; font-size: 16px; line-height: 1.5; color: var(--ink_4); }
.toc_mobile { display: none; margin-bottom: 40px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg_soft); }
.toc_mobile summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 16px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.toc_mobile summary::-webkit-details-marker { display: none; }
.toc_mobile .toc_list { margin: 0 16px 14px; }
.chev { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.15s ease; }
details[open] > summary .chev { transform: rotate(180deg); }
.art { min-width: 0; max-width: 860px; }
.art_sec { padding-bottom: 72px; margin-bottom: 72px; border-bottom: 1px solid var(--line); }
.art_sec_last { margin-bottom: 0; border-bottom: 0; }
.sec_kicker { margin-bottom: 8px; font-size: 16px; font-weight: 600; color: var(--accent_text); }
.sec_title { margin-bottom: 16px; font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 700; max-width: 760px; }
.lede { max-width: 700px; font-size: 19px; line-height: 1.55; color: var(--ink); }
.prose { max-width: 720px; margin-top: 16px; font-size: 17px; line-height: 1.65; color: var(--ink_2); }
.prose b { color: var(--ink); }
.cite { margin-top: 12px; font-size: 16px; color: var(--ink_4); }
.sub_title { max-width: 760px; margin-top: 48px; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--ink); }

.tbl_card { margin-top: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.tbl_cap { caption-side: top; padding: 14px 18px; text-align: left; font-size: 16px; font-weight: 600; color: var(--ink_2); background: var(--bg_soft); border-bottom: 1px solid var(--line); }
.tbl th { padding: 12px 18px; text-align: left; font-size: 16px; font-weight: 600; color: var(--ink_3); border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--ink_2); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.td_main { display: block; color: var(--ink); font-weight: 600; }
.td_safe { display: block; font-weight: 600; color: var(--accent_text); }
.td_why { display: block; margin-top: 2px; font-size: 16px; color: var(--ink_4); }
.td_tag { display: inline-flex; align-items: center; height: 28px; margin-top: 6px; padding: 0 10px; border-radius: 999px; font-size: 16px; font-weight: 500; color: var(--ink_3); background: var(--seg_track); }
.td_lbl { display: none; }

.fig1 { margin: 32px 0 0; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.fig1_row { display: grid; grid-template-columns: 30fr 11fr 30fr 11fr; gap: 6px; }
.fig1_blk { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 76px; padding: 10px 12px; border-radius: 10px; font-size: 16px; line-height: 1.35; min-width: 0; }
.fig1_blk b { font-size: 17px; }
.fig1_win { background: var(--risk_soft); color: var(--ink_2); }
.fig1_win b { color: var(--risk); }
.fig1_sale { background: var(--ink); color: var(--bg); align-items: center; text-align: center; }
.fig1_safe { background: var(--accent); color: var(--accent_ink); align-items: center; text-align: center; }
.fig1_cap { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink_3); }
.check_list { list-style: none; display: flex; flex-direction: column; gap: 12px; max-width: 720px; margin-top: 28px; }
.check_list li { display: flex; gap: 12px; font-size: 17px; line-height: 1.55; color: var(--ink_2); }
.check_list b { color: var(--ink); }
.check_ic { width: 22px; height: 22px; flex: none; margin-top: 2px; fill: none; stroke: var(--accent_text); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.chart_pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.chart_card { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.chart_title { font-size: 18px; line-height: 1.35; font-weight: 600; }
.chart_sub { margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--ink_3); }
.bar_chart { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.bc_row_h { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 6px; font-size: 16px; color: var(--ink_4); }
.bc_row_h b { color: var(--ink); font-weight: 600; }
.bc_track { display: flex; gap: 2px; height: 32px; border-radius: 8px; overflow: hidden; background: var(--bg_soft); }
.bc_seg { display: flex; align-items: center; padding: 0 8px; font-size: 16px; font-weight: 600; white-space: nowrap; min-width: 0; overflow: hidden; }
.bc_ded { background: var(--accent); color: var(--accent_ink); }
.bc_def { background: var(--defer_bar); color: #1c1305; }
.bc_lost { background: var(--risk); color: var(--surface); }
.bc_base { background: var(--track); color: var(--ink); }
.bc_none { background: transparent; }
.w3 { flex: 3 1 0; }
.w25 { flex: 25 1 0; }
.w75 { flex: 75 1 0; }
.w97 { flex: 97 1 0; }
.w100 { flex: 100 1 0; }
.w250 { flex: 250 1 0; }
.w800 { flex: 800 1 0; }
.bc_legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: 16px; color: var(--ink_3); }
.lg { display: inline-flex; align-items: center; gap: 8px; }
.lg_sw { width: 14px; height: 14px; flex: none; border-radius: 4px; }
.sw_ded { background: var(--accent); }
.sw_def { background: var(--defer_bar); }
.sw_lost { background: var(--risk); }
.basis_eq { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink_3); }
.basis_eq b { font-size: 26px; font-weight: 700; color: var(--ink); }

.trig_list { list-style: none; display: grid; gap: 8px; max-width: 720px; margin-top: 24px; }
.trig_list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg_soft); font-size: 17px; font-weight: 500; color: var(--ink); }
.trig_n { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--accent_soft); color: var(--accent_text); font-size: 16px; font-weight: 700; }
.rule_grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.rule_card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); min-width: 0; }
.rule_ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px; border-radius: 999px; background: var(--accent_soft); color: var(--accent_text); }
.rule_ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.rule_title { margin-bottom: 6px; font-size: 18px; line-height: 1.35; font-weight: 600; }
.rule_txt { font-size: 16px; line-height: 1.55; color: var(--ink_2); }
.rule_src { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink_4); }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.call { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); min-width: 0; }
.call_ira { border-color: var(--risk_line); background: var(--risk_bg); }
.call_drip { border-color: var(--line); background: var(--accent_soft); }
.call_tag { font-size: 16px; font-weight: 600; color: var(--ink_3); }
.call_ira .call_tag { color: var(--risk); }
.call_drip .call_tag { color: var(--accent_text); }
.call_title { margin: 6px 0 8px; font-size: 20px; line-height: 1.3; font-weight: 700; }
.call_txt { font-size: 16px; line-height: 1.55; color: var(--ink_2); }
.split_bar { display: flex; gap: 2px; height: 14px; margin-top: 18px; border-radius: 6px; overflow: hidden; }
.split_ok { background: var(--accent); }
.split_def { background: var(--defer_bar); }
.split_lost { background: var(--risk); }
.split_lab { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 16px; color: var(--ink_2); }
.split_lab b { color: var(--ink); }
.call_tip { margin-top: 12px; font-size: 16px; color: var(--ink_2); }
.link_arrow svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.chip_yes, .chip_maybe, .chip_no { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; font-size: 16px; font-weight: 600; white-space: nowrap; }
.chip_yes { background: var(--risk_soft); color: var(--risk); }
.chip_maybe { background: var(--wait_bg); color: var(--wait); }
.chip_no { background: var(--seg_track); color: var(--ink_2); }
.td_chip { width: 200px; }

.f8949_row { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.8fr 1fr 1fr; margin-top: 28px; border: 1px solid var(--line_strong); border-radius: 12px; overflow: hidden; background: var(--surface); }
.f_cell { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 10px 12px 12px; border-left: 1px solid var(--line); min-width: 0; }
.f_cell:first-child { border-left: 0; }
.f_col { font-size: 16px; line-height: 1.3; color: var(--ink_4); }
.f_val { font-size: 17px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.f_hl { background: var(--accent_soft); }
.f_hl .f_col, .f_hl .f_val { color: var(--accent_text); }
.f_cap { margin-top: 8px; font-size: 16px; color: var(--ink_4); }
.f1099 { display: flex; gap: 14px; align-items: flex-start; max-width: 720px; margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg_soft); }
.f1099_box { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 92px; height: 64px; flex: none; border: 1px solid var(--line_strong); border-radius: 10px; background: var(--surface); font-size: 16px; color: var(--ink_4); line-height: 1.25; }
.f1099_box b { font-size: 16px; color: var(--ink); }
.f1099_txt { display: flex; flex-direction: column; gap: 2px; font-size: 16px; line-height: 1.55; color: var(--ink_2); }
.f1099_txt b { color: var(--ink); }

.faq_list { display: flex; flex-direction: column; max-width: 760px; margin-top: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.faq_item + .faq_item { border-top: 1px solid var(--line); }
.faq_q { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 20px; cursor: pointer; list-style: none; }
.faq_q::-webkit-details-marker { display: none; }
.faq_q h3 { font-size: 17px; font-weight: 600; line-height: 1.4; }
.faq_ic { color: var(--ink_3); }
.faq_a { padding: 0 20px 20px; font-size: 17px; line-height: 1.65; color: var(--ink_2); }
.link_arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 16px; font-weight: 600; text-decoration: none; }

/* app */
.sec_app { margin-top: 72px; padding: 88px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg_soft); }
.app_grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 64px; }
.app_copy { max-width: 540px; }
.app_title { font-size: 32px; line-height: 40px; letter-spacing: -0.02em; font-weight: 700; color: var(--ink); }
.app_feats { list-style: none; display: grid; gap: 18px; margin-top: 28px; }
.app_feats li { display: flex; align-items: flex-start; gap: 14px; font-size: 18px; line-height: 28px; color: var(--ink_2); }
.feat_ic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; margin-top: -4px; border-radius: 999px; background: var(--accent_soft); color: var(--accent_text); }
.feat_ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feat_ic_risk { background: var(--risk_soft); color: var(--risk); }
.store_row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store_btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 18px; border: 0; border-radius: 12px; background: var(--dark); color: var(--dark_ink); font-size: 16px; font-weight: 600; }
.store_btn:hover { opacity: 0.9; }
.store_btn svg { width: 20px; height: 20px; flex: none; }
.app_phones { display: flex; align-items: flex-start; justify-content: center; gap: 28px; }
.phone { width: 252px; margin: 0; padding: 8px; border: 1px solid var(--line_strong); border-radius: 42px; background: #101828; box-shadow: var(--shadow_pop); }
.phone_img { display: block; width: 100%; height: auto; border-radius: 34px; }
.phone_low { margin-top: 64px; }

/* sources */
.sec_src { padding: 72px 0; border-top: 1px solid var(--line); background: var(--bg_soft); }
.src_layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.src_txt { max-width: 520px; margin-top: 10px; font-size: 16px; line-height: 1.6; color: var(--ink_2); }
.src_meta { margin-top: 14px; font-size: 16px; font-weight: 600; color: var(--ink_3); }
.src_list { list-style: none; border-top: 1px solid var(--line); }
.src_list li { border-bottom: 1px solid var(--line); }
.src_list a { display: block; padding: 12px 0; font-size: 16px; font-weight: 500; text-decoration: none; }
.src_list a:hover { text-decoration: underline; }

/* footer */
.site_foot { border-top: 1px solid var(--line); background: var(--bg_soft); padding: 32px 0 40px; }
.foot_top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px 32px; }
.foot_stores { display: flex; gap: 12px; }
.foot_txt { display: flex; flex-direction: column; gap: 4px; max-width: 640px; }
.foot_disc { font-size: 16px; line-height: 24px; color: var(--ink_3); }
.foot_copy { font-size: 16px; color: var(--ink_4); }
.foot_links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.foot_links a { font-size: 16px; color: var(--ink_2); text-decoration: none; }
.foot_links a:hover { color: var(--ink); text-decoration: underline; }

/* dialogs */
.app_dialog { width: calc(100% - 32px); max-width: 440px; padding: 0; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow_pop); }
.app_dialog::backdrop { background: rgba(16, 24, 40, 0.55); }
.dlg_body { padding: 28px; text-align: center; }
.dlg_ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: var(--accent_soft); color: var(--accent_text); }
.dlg_ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.dlg_title { margin: 16px 0 8px; font-size: 22px; font-weight: 700; }
.dlg_txt { font-size: 17px; line-height: 1.55; color: var(--ink_2); }
.dlg_txt + .dlg_txt { margin-top: 10px; }
.dlg_form { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.dlg_link { font-size: 16px; font-weight: 600; }
.btn_primary { display: flex; align-items: center; justify-content: center; width: 100%; height: 48px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent_ink); font-size: 16px; font-weight: 600; text-decoration: none; }
.btn_primary:hover { background: var(--accent_btn_hover); color: var(--accent_ink); }

/* legal and support pages */
.page { padding: 64px 0 88px; }
.page_body { max-width: 720px; }
.page_body h1 { margin: 8px 0 14px; font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
.page_body h2 { margin: 36px 0 10px; font-size: 22px; line-height: 1.3; font-weight: 600; }
.page_body p, .page_body li { font-size: 17px; line-height: 1.65; color: var(--ink_2); }
.page_body p + p { margin-top: 12px; }
.page_body ul { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0 20px; }
.page_body .page_meta { font-size: 16px; color: var(--ink_4); }
.page_cta { display: inline-flex; width: auto; padding: 0 22px; margin-top: 28px; }
.help_grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.help_card { padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.page_body .help_card h2 { margin: 0 0 6px; font-size: 18px; }
.page_body .help_card p { font-size: 16px; }
.nf { padding: 120px 0; text-align: center; }
.nf_logo { display: block; width: 64px; height: 64px; margin: 0 auto 24px; }
.nf_code { font-size: 96px; line-height: 1; letter-spacing: -0.04em; font-weight: 700; color: var(--accent_text); }
.nf h1 { margin: 16px 0 10px; font-size: 32px; }
.nf_txt { font-size: 17px; color: var(--ink_2); }
.nf .btn_primary { display: inline-flex; width: auto; padding: 0 24px; margin-top: 28px; }

/* date picker (jQuery UI datepicker, same look as the other calculators; light + dark; text 16px, targets 40px) */
.ui-datepicker { display: none; width: 328px; max-width: calc(100vw - 32px); padding: 8px; border: 1px solid #d8d7d1; border-radius: 10px; background: #ffffff; color: #1c1c1a; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18); font-family: var(--font); font-size: 16px; z-index: 40 !important; }
.ui-datepicker .ui-datepicker-header { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 4px 48px; border: 0; border-radius: 7px; background: #185fa5; color: #ffffff; }
.ui-datepicker .ui-datepicker-title { display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; line-height: 40px; }
.ui-datepicker .ui-datepicker-title select { height: 40px; padding: 0 6px; border: 0; border-radius: 5px; background: #ffffff; color: #1c1c1a; font-size: 16px; cursor: pointer; }
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position: absolute; top: 4px; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 6px; cursor: pointer; }
.ui-datepicker .ui-datepicker-prev { left: 4px; }
.ui-datepicker .ui-datepicker-next { right: 4px; }
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { background: rgba(255, 255, 255, 0.22); }
.ui-datepicker .ui-icon { display: block; width: 22px; height: 22px; overflow: hidden; text-indent: -9999px; white-space: nowrap; background-repeat: no-repeat; background-position: center; background-size: 22px; }
.ui-datepicker .ui-icon-circle-triangle-w { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E"); }
.ui-datepicker .ui-icon-circle-triangle-e { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
.ui-datepicker .ui-state-disabled { opacity: 0.35; cursor: default; }
.ui-datepicker table { width: 100%; margin: 6px 0 0; border: 0; border-collapse: collapse; table-layout: fixed; font-size: 16px; }
.ui-datepicker th { padding: 6px 0; border: 0; color: #6b6b66; font-size: 16px; font-weight: 600; text-align: center; }
.ui-datepicker td { padding: 1px; border: 0; }
.ui-datepicker td a, .ui-datepicker td span { display: block; height: 40px; line-height: 40px; border: 0; border-radius: 6px; background: transparent; color: #1c1c1a; font-size: 16px; text-align: center; text-decoration: none; font-variant-numeric: tabular-nums; }
.ui-datepicker td a.ui-priority-secondary, .ui-datepicker td.ui-datepicker-other-month span { color: #74746e; }
.ui-datepicker td a:hover, .ui-datepicker td a.ui-state-hover { background: #e8f0fa; color: #185fa5; }
.ui-datepicker td a.ui-state-highlight { box-shadow: inset 0 0 0 2px #185fa5; color: #185fa5; font-weight: 700; }
.ui-datepicker td a.ui-state-active { background: #185fa5 !important; box-shadow: none; color: #ffffff !important; font-weight: 700; }
.ui-datepicker .ui-datepicker-buttonpane { display: flex; justify-content: space-between; gap: 8px; margin: 6px 0 0; padding: 8px 0 0; border-top: 1px solid #e6e5e0; }
.ui-datepicker .ui-datepicker-buttonpane button { min-height: 40px; padding: 0 16px; border: 1px solid #d8d7d1; border-radius: 6px; background: transparent; color: #185fa5; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.ui-datepicker .ui-datepicker-buttonpane button:hover { border-color: #185fa5; }
.ui-datepicker .ui-datepicker-buttonpane button:focus-visible, .ui-datepicker .ui-datepicker-title select:focus-visible { outline: 3px solid #5ba0e8; outline-offset: 1px; }
html[data-theme="dark"] .ui-datepicker { border-color: #3f3f3a; background: #222220; color: #ececea; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.55); }
html[data-theme="dark"] .ui-datepicker .ui-datepicker-header { background: #16263a; }
html[data-theme="dark"] .ui-datepicker .ui-datepicker-title select { background: #222220; color: #ececea; }
html[data-theme="dark"] .ui-datepicker th { color: #a3a39c; }
html[data-theme="dark"] .ui-datepicker td a, html[data-theme="dark"] .ui-datepicker td span { color: #ececea; }
html[data-theme="dark"] .ui-datepicker td a.ui-priority-secondary, html[data-theme="dark"] .ui-datepicker td.ui-datepicker-other-month span { color: #94948d; }
html[data-theme="dark"] .ui-datepicker td a:hover, html[data-theme="dark"] .ui-datepicker td a.ui-state-hover { background: #16263a; color: #5ba0e8; }
html[data-theme="dark"] .ui-datepicker td a.ui-state-highlight { box-shadow: inset 0 0 0 2px #5ba0e8; color: #5ba0e8; }
html[data-theme="dark"] .ui-datepicker td a.ui-state-active { background: #5ba0e8 !important; box-shadow: none; color: #16263a !important; }
html[data-theme="dark"] .ui-datepicker .ui-datepicker-buttonpane { border-top-color: #33332f; }
html[data-theme="dark"] .ui-datepicker .ui-datepicker-buttonpane button { border-color: #3f3f3a; color: #5ba0e8; }
html[data-theme="dark"] .ui-datepicker .ui-datepicker-buttonpane button:hover { border-color: #5ba0e8; }

/* responsive */
@media (max-width: 1100px) {
  .head_stores { display: none; }
  .calc_result { padding: 24px; }
  .res_date { font-size: 36px; line-height: 44px; }
}

@media (max-width: 1023px) {
  .head_row { gap: 8px; }
  .brand { margin-right: auto; }
  .theme_btn { margin-left: 0; }
  .nav { display: none; }
  .menu_btn { display: grid; }
  .menu_list { display: block; }
  .calc { grid-template-columns: 1fr; gap: 16px; }
  .calc_result { min-height: 0; }
  .res_empty { padding: 8px 0; }
  .doc_grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .toc_mobile { display: block; }
  .art_meta { display: block; }
  .art { max-width: none; }
  .rule_grid { grid-template-columns: 1fr 1fr; }
  .app_grid { grid-template-columns: 1fr; gap: 48px; }
  .app_copy { max-width: 640px; }
  .src_layout { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .head_row { height: 60px; gap: 4px; }
  .brand_mark { width: 32px; height: 32px; }
  .brand_name { font-size: 18px; }
  .hero { padding-top: 24px; }
  .hero_title { font-size: 28px; line-height: 34px; }
  .hero_lede { font-size: 17px; line-height: 24px; }
  .calc { margin-top: 20px; }
  .calc_form { gap: 16px; padding: 16px; }
  .pane_title { font-size: 20px; }
  .row2 { gap: 12px; }
  .buy_row .fld_date, .buy_row .fld_account { grid-column: 1 / -1; }
  .tag_row { display: grid; grid-template-columns: 1fr 1fr; }
  .tag_lbl { grid-column: 1 / -1; }
  .tag { justify-content: center; }
  .more_s { display: none; }
  .calc_result { padding: 16px; }
  .res_empty { flex-direction: row; justify-content: flex-start; gap: 12px; padding: 4px 0; text-align: left; }
  .res_empty_ic { width: 40px; height: 40px; margin-bottom: 0; }
  .res_empty_ic svg { width: 20px; height: 20px; }
  .res_empty_h { font-size: 18px; }
  .res_empty_p { font-size: 16px; }
  .res_empty_txt { align-items: flex-start; gap: 2px; }
  .res_label { font-size: 17px; line-height: 24px; }
  .res_date { font-size: 30px; line-height: 36px; }
  .res_date_txt { font-size: 28px; }
  .res_chips { margin-top: 12px; }
  .res_reason { margin-top: 12px; font-size: 17px; line-height: 26px; color: var(--ink_2); }
  .tbar_box { margin-top: 20px; }
  .tb_long { display: none; }
  .tb_short { display: inline; }
  .conflict_row { flex-direction: column; gap: 2px; }
  .cr_amt { text-align: left; }
  .res_actions { flex-direction: column; align-items: stretch; gap: 4px; padding-top: 20px; }
  .btn_sec { width: 100%; height: 48px; border: 1.5px solid var(--input_line); border-radius: 12px; color: var(--ink); }
  .btn_link { justify-content: center; }
  .save_strip { padding: 14px 16px; }
  .save_slots { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .save_slot { justify-content: space-between; }
  .save_more { margin-left: 0; }
  .how { grid-template-columns: 1fr; gap: 12px; padding-top: 24px; }
  .story_head { padding: 14px 16px; }
  .story_title { font-size: 18px; line-height: 24px; }
  .story_body { padding: 16px; }
  .story_body p, .story_cta { font-size: 17px; line-height: 26px; }
  .doc { padding: 64px 0 24px; }
  .art_sec { padding-bottom: 56px; margin-bottom: 56px; }
  .art_sec_last { margin-bottom: 0; }
  .sec_title { font-size: 26px; }
  .lede { font-size: 18px; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; }
  .tbl thead { display: none; }
  .tbl_cap { display: block; }
  .tbl tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .tbl tbody tr:last-child { border-bottom: 0; }
  .tbl td { padding: 2px 0; border: 0; }
  .tbl td.td_first { padding-bottom: 6px; }
  .td_lbl { display: inline; color: var(--ink_4); }
  .td_chip { width: auto; padding-top: 6px; }
  .fig1 { padding: 14px; }
  .fig1_row { grid-template-columns: 1fr 1fr; }
  .chart_pair, .duo { grid-template-columns: 1fr; }
  .rule_grid { grid-template-columns: 1fr; gap: 10px; }
  .rule_card { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 16px; }
  .rule_ic { grid-row: 1 / 4; margin-bottom: 0; }
  .f8949_row { grid-template-columns: 1fr 1fr 1fr; }
  .f_cell { border-top: 1px solid var(--line); }
  .f_cell:nth-child(1), .f_cell:nth-child(2), .f_cell:nth-child(3) { border-top: 0; }
  .f_cell:nth-child(4) { border-left: 0; }
  .faq_q { padding: 12px 16px; }
  .faq_a { padding: 0 16px 16px; font-size: 16px; }
  .sec_app { margin-top: 48px; padding: 56px 0; }
  .app_grid { gap: 40px; }
  .app_title { font-size: 26px; line-height: 32px; }
  .app_feats li { font-size: 17px; line-height: 26px; }
  .store_row { display: grid; grid-template-columns: 1fr 1fr; }
  .app_phones { gap: 16px; }
  .phone { width: calc(50% - 8px); max-width: 220px; padding: 5px; border-radius: 28px; }
  .phone_img { border-radius: 23px; }
  .phone_low { margin-top: 40px; }
  .story { margin-bottom: 56px; }
  .sec_src { padding: 48px 0; }
  .site_foot { padding: 24px 0 32px; background: var(--surface); }
  .foot_top { flex-direction: column; align-items: stretch; gap: 16px; }
  .foot_stores { display: grid; grid-template-columns: 1fr 1fr; }
  .foot_stores .store_btn { height: 52px; padding: 0 8px; }
  .page { padding: 40px 0 64px; }
  .page_body h1 { font-size: 32px; }
  .help_grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chev { transition: none; }
}

@media print {
  .site_head, .hero_title, .hero_lede, .calc_form, .res_actions, .save_strip, .ui-datepicker, .how, .doc, .sec_app, .sec_src, .site_foot, .skip_link, .toast { display: none !important; }
  body { display: block; background: #ffffff; color: #000000; }
  .calc { display: block; margin: 0; }
  .calc_result { border: 0; box-shadow: none; padding: 0; }
}
