:root {
  --sse-blue: #1467b3;
  --sse-blue-dark: #0d4f8f;
  --sse-blue-soft: #eaf3fb;
  --ink: #17233d;
  --muted: #657085;
  --line: #dce2ea;
  --surface: #ffffff;
  --canvas: #f3f5f8;
  --call: #b33a31;
  --call-soft: #fff3f1;
  --put: #087b63;
  --put-soft: #edf9f5;
  --shadow: 0 14px 40px rgba(27, 48, 78, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--canvas); }

body { margin: 0; min-height: 100vh; font-size: 16px; line-height: 1.6; }

button, input, select { font: inherit; }

button { cursor: pointer; }

.site-header {
  color: #fff;
  background:
    linear-gradient(100deg, rgba(8, 54, 98, 0.98), rgba(20, 103, 179, 0.96)),
    var(--sse-blue);
  border-bottom: 4px solid #e8b347;
}

.header-inner {
  width: min(1160px, calc(100% - 40px));
  min-height: 112px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-mark {
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 4px;
  font-family: Georgia, "Songti SC", serif;
  font-size: 27px;
  background: rgba(255,255,255,.08);
}

.eyebrow { margin: 0 0 2px; color: rgba(255,255,255,.72); font-size: 13px; letter-spacing: .12em; }

.site-header h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(24px, 3vw, 34px); font-weight: 600; letter-spacing: .02em; }

.offline-badge { margin-left: auto; display: flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid rgba(255,255,255,.36); border-radius: 999px; font-size: 14px; background: rgba(0,0,0,.1); }

.offline-badge span { width: 8px; height: 8px; border-radius: 50%; background: #77deb4; box-shadow: 0 0 0 4px rgba(119,222,180,.14); }

.page-shell { width: min(1160px, calc(100% - 40px)); margin: 28px auto 54px; }

.notice { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: center; margin-bottom: 18px; padding: 14px 18px; background: #fff; border-left: 4px solid var(--sse-blue); box-shadow: 0 4px 16px rgba(35,55,85,.05); }
.notice strong { color: var(--sse-blue-dark); }
.notice p { margin: 0; color: var(--muted); }

.calculator-card, .info-card, .iv-card, .method-note { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }

.section-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 22px; color: #fff; background: var(--sse-blue); }
.section-title-main { display: flex; align-items: center; gap: 14px; }
.section-title-main > span { font-size: 19px; font-weight: 700; letter-spacing: .03em; }
.section-title small { color: rgba(255,255,255,.8); font-size: 13px; }
.calculator-help-button { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; color: #fff; font-size: 13px; font-weight: 600; line-height: 1.5; text-decoration: none; border: 1px solid rgba(255,255,255,.7); border-radius: 4px; background: rgba(255,255,255,.1); transition: background .18s, border-color .18s; }
.calculator-help-button span { width: 17px; height: 17px; display: inline-grid; place-items: center; font-family: Georgia, serif; font-size: 12px; line-height: 1; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; }
.calculator-help-button:hover { border-color: #fff; background: rgba(255,255,255,.2); }
.calculator-help-button:focus-visible { outline: 3px solid rgba(255,255,255,.38); outline-offset: 2px; }

#pricing-form { padding: 26px 30px 22px; background: #f8f9fb; border-bottom: 1px solid var(--line); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 52px; row-gap: 20px; }
.field { min-width: 0; display: grid; grid-template-columns: 150px minmax(150px, 1fr); align-items: center; gap: 4px 16px; }
.field > span:first-child { font-weight: 600; color: #2c3850; }
.field > small { grid-column: 2; color: #7c8596; font-size: 12px; line-height: 1.35; }
.inline-link { padding: 0; color: var(--sse-blue); font-size: 12px; font-weight: 600; white-space: nowrap; border: 0; border-bottom: 1px solid currentColor; background: transparent; }
.inline-link:hover { color: var(--sse-blue-dark); }
.inline-link:disabled { cursor: not-allowed; color: #7e8a9c; border-bottom-color: transparent; }
.inline-link.loading:disabled { cursor: wait; }
.inline-link.loading::before { content: ""; width: 10px; height: 10px; display: inline-block; margin-right: 6px; vertical-align: -1px; border: 2px solid #aeb9c7; border-top-color: var(--sse-blue); border-radius: 50%; animation: spin .8s linear infinite; }
.volatility-field { grid-template-rows: auto auto auto; }
.volatility-field > .volatility-label { grid-column: 1; grid-row: 2; white-space: nowrap; }
.volatility-field > .inline-link { grid-column: 2; grid-row: 1; justify-self: start; margin-bottom: 2px; }
.volatility-field > .input-wrap { grid-column: 2; grid-row: 2; }
.volatility-field > small { grid-column: 2; grid-row: 3; }
.wide-field { grid-column: 1 / -1; max-width: calc(50% - 26px); }
.security-field { max-width: none; }
.security-picker { position: relative; min-width: 0; }
.search-input-wrap { position: relative; }
.search-input-wrap input { padding-right: 38px; }
.loading-spinner { position: absolute; right: 12px; width: 16px; height: 16px; border: 2px solid #c4ccd6; border-top-color: var(--sse-blue); border-radius: 50%; animation: spin .8s linear infinite; }
.security-search-results { position: absolute; z-index: 20; top: calc(100% + 5px); left: 0; right: 0; max-height: 300px; overflow-y: auto; border: 1px solid #aebdcd; background: #fff; box-shadow: 0 14px 35px rgba(25, 45, 70, .18); }
.security-result { width: 100%; display: grid; grid-template-columns: minmax(140px, 1fr) auto auto; align-items: center; gap: 14px; padding: 10px 13px; color: var(--ink); text-align: left; border: 0; border-bottom: 1px solid #e7ebf0; background: #fff; }
.security-result:last-child { border-bottom: 0; }
.security-result:hover, .security-result.active { background: var(--sse-blue-soft); }
.security-result strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.security-result span { color: var(--sse-blue-dark); font-variant-numeric: tabular-nums; }
.security-result small { min-width: 34px; color: var(--muted); text-align: right; }
.security-search-message { padding: 12px 13px; color: var(--muted); font-size: 13px; }
@keyframes spin { to { transform: rotate(360deg); } }

.input-wrap { min-width: 0; height: 42px; display: flex; align-items: center; overflow: hidden; border: 1px solid #aeb7c4; background: #fff; transition: border .18s, box-shadow .18s; }
.input-wrap:focus-within { border-color: var(--sse-blue); box-shadow: 0 0 0 3px rgba(20,103,179,.12); }
.input-wrap input { min-width: 0; width: 100%; height: 100%; padding: 8px 10px; border: 0; outline: 0; color: var(--ink); background: transparent; }
.date-wrap input { color-scheme: light; cursor: pointer; }
.date-wrap input::-webkit-calendar-picker-indicator { cursor: pointer; opacity: .72; }
.input-wrap em { flex: 0 0 auto; padding: 0 11px; color: #727c8e; font-size: 14px; font-style: normal; border-left: 1px solid #e1e5ea; background: #f8f9fa; }

.form-actions { display: flex; justify-content: center; gap: 14px; margin-top: 26px; }
.primary-button, .secondary-button { min-width: 118px; padding: 9px 24px; border: 1px solid var(--sse-blue); border-radius: 4px; font-weight: 600; transition: background .18s, color .18s, transform .18s; }
.primary-button { color: #fff; background: var(--sse-blue); }
.primary-button:hover { background: var(--sse-blue-dark); }
.secondary-button { color: var(--sse-blue); background: transparent; }
.secondary-button:hover { background: var(--sse-blue-soft); }
.primary-button:active, .secondary-button:active { transform: translateY(1px); }
.primary-button:focus-visible, .secondary-button:focus-visible, .text-button:focus-visible { outline: 3px solid rgba(20,103,179,.3); outline-offset: 2px; }

.form-error { margin-top: 16px; padding: 9px 12px; color: #922d27; border: 1px solid #e8b5b0; background: #fff3f2; }

.results { padding: 24px 30px 30px; }
.results-heading, .card-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; }
.results-heading p { margin: 0; font-size: 18px; font-weight: 700; }
.results-heading div > span, .results-heading > span, .card-heading > span { color: var(--muted); font-size: 13px; }
.results-heading-tools { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.results-heading-tools > span { white-space: nowrap; }

.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.price-card { position: relative; overflow: hidden; padding: 22px 24px; border: 1px solid var(--line); }
.price-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; }
.call-card { background: linear-gradient(110deg, var(--call-soft), #fff 52%); }
.put-card { background: linear-gradient(110deg, var(--put-soft), #fff 52%); }
.call-card::before { background: var(--call); }
.put-card::before { background: var(--put); }
.price-label { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.price-label span { font-weight: 700; }
.price-label small { color: var(--muted); }
.price-value-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.local-price { min-width: 0; }
.local-price > strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(32px, 5vw, 48px); line-height: 1.15; font-variant-numeric: tabular-nums; }
.call-card .local-price > strong { color: var(--call); }
.put-card .local-price > strong { color: var(--put); }
.local-price > span { margin-left: 5px; color: var(--muted); font-size: 14px; }
.sse-inline-price { min-width: 142px; padding: 8px 0 4px 18px; text-align: right; border-left: 1px solid rgba(40,55,75,.14); }
.sse-inline-price span, .sse-inline-price small { display: block; color: var(--muted); font-size: 11px; }
.sse-inline-price strong { display: block; color: var(--sse-blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: 24px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.price-card dl { margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.price-card dl div { padding-top: 10px; border-top: 1px solid rgba(40,55,75,.12); }
.price-card dt { color: var(--muted); font-size: 12px; }
.price-card dd { margin: 2px 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 16px; border: 1px solid var(--line); }
.metric-grid div { min-width: 0; padding: 12px 14px; border-right: 1px dotted #cfd6df; }
.metric-grid div:last-child { border-right: 0; }
.metric-grid span { display: block; color: var(--muted); font-size: 12px; }
.metric-grid strong { display: block; margin-top: 2px; font-size: 15px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.sse-comparison { margin-top: 18px; border: 1px solid #c9d9e8; background: linear-gradient(120deg, #f3f8fd, #fff 60%); }
.sse-comparison-summary { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 52px 15px 20px; list-style: none; cursor: pointer; }
.sse-comparison-summary::-webkit-details-marker { display: none; }
.sse-comparison-summary::after { content: "展开"; position: absolute; right: 18px; color: var(--sse-blue); font-size: 12px; font-weight: 600; }
.sse-comparison[open] .sse-comparison-summary::after { content: "收起"; }
.sse-comparison-summary strong { font-family: Georgia, "Songti SC", serif; font-size: 18px; }
.sse-comparison-summary > span { color: var(--muted); font-size: 12px; text-align: right; }
.sse-comparison-body { padding: 0 20px 20px; border-top: 1px solid #dbe5ef; }
.sse-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.sse-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 18px; border: 1px solid var(--line); background: #fff; }
.sse-result-grid > div { min-width: 0; padding: 14px 16px; border-right: 1px solid var(--line); }
.sse-result-grid > div:last-child { border-right: 0; }
.sse-result-grid span, .sse-result-grid small { display: block; color: var(--muted); font-size: 12px; }
.sse-result-grid strong { display: block; margin: 4px 0 3px; color: var(--sse-blue-dark); font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.sse-note { margin: 10px 0 0; color: #6c7688; font-size: 12px; }
.sse-method-details { margin-top: 12px; color: #4f5b6e; font-size: 13px; border-top: 1px solid #dbe5ef; }
.sse-method-details summary { padding-top: 11px; color: var(--sse-blue-dark); font-weight: 600; cursor: pointer; }
.sse-method-details div { padding: 4px 0 1px; }
.sse-method-details p { margin: 7px 0; }
.sse-method-details code { color: #304968; }
.sse-method-details a { color: var(--sse-blue); }

.detail-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 18px; }
.info-card { padding: 24px; }
.card-heading { margin-bottom: 14px; }
.kicker { margin: 0 0 2px; color: var(--sse-blue); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.card-heading h2, .iv-card h2, .method-note h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 22px; }

.greeks-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 10px 9px; text-align: right; border-bottom: 1px solid #e8ebef; font-variant-numeric: tabular-nums; }
.data-table thead th { color: #5f6a7c; font-weight: 600; background: #f6f8fa; }
.data-table th:first-child { text-align: left; }
.data-table td:last-child, .data-table th:last-child { color: var(--muted); font-size: 12px; }

.text-button { padding: 7px 11px; color: var(--sse-blue); font-weight: 600; border: 1px solid #aac9e4; border-radius: 4px; background: #fff; }
.text-button:hover { background: var(--sse-blue-soft); }
.card-copy { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.verification-list { border-top: 1px solid var(--line); }
.verification-list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
.verification-list span { color: var(--muted); }
.verification-list strong { font-variant-numeric: tabular-nums; text-align: right; }
.verification-note { margin: 12px 0 0; color: #7a8494; font-size: 12px; }

.iv-card { margin-top: 18px; padding: 25px; display: grid; grid-template-columns: 1.05fr 1.35fr .65fr; align-items: end; gap: 28px; }
.iv-card > div:first-child p:last-child { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.iv-form { display: grid; grid-template-columns: 1fr 1.15fr auto; align-items: end; gap: 12px; }
.iv-form label > span:first-child { display: block; margin-bottom: 5px; color: #445066; font-size: 13px; font-weight: 600; }
.iv-form select { width: 100%; height: 42px; padding: 7px 30px 7px 10px; color: var(--ink); border: 1px solid #aeb7c4; background: #fff; }
.primary-button.compact { min-width: auto; height: 42px; padding: 7px 17px; }
.iv-result { min-height: 78px; padding-left: 20px; border-left: 1px solid var(--line); }
.iv-result span, .iv-result small { display: block; color: var(--muted); font-size: 12px; }
.iv-result strong { display: block; color: var(--sse-blue-dark); font-family: Georgia, "Times New Roman", serif; font-size: 30px; line-height: 1.25; font-variant-numeric: tabular-nums; }

.method-note { margin-top: 18px; padding: 22px 25px; border-top: 3px solid var(--sse-blue); box-shadow: none; }
.method-note-title { display: flex; align-items: center; gap: 10px; }
.method-note-title > span { width: 25px; height: 25px; display: grid; place-items: center; color: #fff; font-family: Georgia, serif; font-style: italic; border-radius: 50%; background: var(--sse-blue); }
.method-note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 14px; }
.method-note-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.volatility-dialog { width: min(850px, calc(100% - 32px)); max-height: min(780px, calc(100vh - 32px)); padding: 0; color: var(--ink); border: 1px solid #bcc9d7; border-radius: 6px; box-shadow: 0 24px 80px rgba(20, 37, 62, .3); }
.volatility-dialog::backdrop { background: rgba(18, 31, 49, .62); }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 22px 26px 17px; border-bottom: 1px solid var(--line); }
.dialog-heading h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 24px; }
.dialog-close { width: 34px; height: 34px; display: grid; place-items: center; padding: 0; color: var(--sse-blue-dark); font-size: 30px; line-height: 1; border: 0; border-radius: 50%; background: transparent; }
.dialog-close:hover { background: var(--sse-blue-soft); }
.dialog-copy { margin: 0; padding: 15px 26px 8px; color: var(--muted); font-size: 13px; }
.history-meta { margin: 4px 26px 13px; padding: 10px 12px; color: #42516a; font-size: 13px; border-left: 3px solid var(--sse-blue); background: #f1f6fb; }
.history-table-wrap { margin: 0 26px; overflow: auto; border: 1px solid var(--line); }
.history-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.history-table th, .history-table td { padding: 9px 12px; text-align: right; white-space: nowrap; border-bottom: 1px solid #e6eaf0; font-variant-numeric: tabular-nums; }
.history-table th { color: #536078; font-weight: 600; background: #f6f8fa; }
.history-table th:first-child, .history-table td:first-child { width: 58px; text-align: center; }
.history-table th:nth-child(2), .history-table td:nth-child(2) { text-align: left; }
.history-table tr:last-child td { border-bottom: 0; }
.history-table tbody tr:hover { background: #f7fbff; }
.history-table input { width: 17px; height: 17px; accent-color: var(--sse-blue); }
.history-table .incomplete { color: #9a5d16; }
.history-note { margin: 12px 26px 0; color: #667185; font-size: 12px; }
.history-method { margin: 13px 26px 0; color: #4d5a70; font-size: 13px; border-top: 1px solid var(--line); }
.history-method summary { padding: 10px 0 2px; color: var(--sse-blue-dark); font-weight: 600; cursor: pointer; }
.history-method p { margin: 7px 0; }
.history-method code { color: #304968; }
.dialog-links { display: flex; flex-wrap: wrap; gap: 18px; margin: 11px 26px 0; font-size: 13px; }
.dialog-links a { color: var(--sse-blue); }
.dialog-actions { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 12px; margin-top: 18px; padding: 15px 26px; border-top: 1px solid var(--line); background: rgba(255,255,255,.97); }
.dialog-actions button:disabled { cursor: not-allowed; opacity: .5; }
.help-dialog { width: min(790px, calc(100% - 32px)); }
.help-step-list { display: grid; gap: 0; margin: 8px 26px 0; padding: 0; list-style: none; border: 1px solid var(--line); }
.help-step-list li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 13px; padding: 14px 16px; border-bottom: 1px solid #e6eaf0; }
.help-step-list li:last-child { border-bottom: 0; }
.help-step-number { width: 28px; height: 28px; display: grid; place-items: center; margin-top: 1px; color: #fff; font-family: Georgia, serif; font-size: 15px; font-weight: 700; border-radius: 50%; background: var(--sse-blue); }
.help-step-list h3 { margin: 0 0 3px; color: #24324a; font-size: 15px; }
.help-step-list p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.help-step-list strong { color: var(--sse-blue-dark); }
.help-tip { display: grid; grid-template-columns: auto 1fr; gap: 10px; margin: 14px 26px 0; padding: 10px 13px; color: #4e5b70; font-size: 13px; border-left: 3px solid #e8b347; background: #fffbef; }
.help-tip strong { color: #775712; }
.help-tip p { margin: 0; }

footer { padding: 26px 20px 34px; color: #788295; text-align: center; font-size: 13px; }
footer p { margin: 0; }
footer code { color: #59657a; }

@media (max-width: 980px) {
  .form-grid { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; max-width: none; }
  .detail-grid { grid-template-columns: 1fr; }
  .iv-card { grid-template-columns: 1fr; gap: 18px; }
  .iv-result { padding: 0; border: 0; }
  .method-note-grid { grid-template-columns: 1fr; gap: 12px; }
  .sse-result-grid { grid-template-columns: 1fr; }
  .sse-result-grid > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .sse-result-grid > div:last-child { border-bottom: 0; }
  .results-heading { align-items: flex-start; }
  .results-heading-tools { align-items: flex-end; flex-direction: column; gap: 8px; }
}

@media (max-width: 680px) {
  .header-inner, .page-shell { width: min(100% - 24px, 1160px); }
  .header-inner { min-height: 96px; }
  .brand-mark { width: 42px; height: 42px; flex-basis: 42px; font-size: 23px; }
  .offline-badge { padding: 6px 9px; font-size: 12px; }
  .eyebrow { display: none; }
  .site-header h1 { font-size: 21px; }
  .section-title { align-items: flex-start; }
  .section-title-main { align-items: flex-start; flex-direction: column; gap: 7px; }
  .calculator-help-button { padding: 3px 9px; font-size: 12px; }
  .notice { grid-template-columns: 1fr; gap: 3px; }
  #pricing-form, .results { padding: 22px 16px; }
  .field { grid-template-columns: 1fr; gap: 5px; }
  .field > small { grid-column: auto; }
  .volatility-field > .volatility-label,
  .volatility-field > .inline-link,
  .volatility-field > .input-wrap,
  .volatility-field > small { grid-column: 1; }
  .volatility-field > .volatility-label { grid-row: 1; }
  .volatility-field > .inline-link { grid-row: 2; }
  .volatility-field > .input-wrap { grid-row: 3; }
  .volatility-field > small { grid-row: 4; }
  .security-result { grid-template-columns: minmax(110px, 1fr) auto; gap: 8px; }
  .security-result small { display: none; }
  .price-grid { grid-template-columns: 1fr; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid div:nth-child(2) { border-right: 0; }
  .metric-grid div:nth-child(-n+2) { border-bottom: 1px dotted #cfd6df; }
  .price-card dl { grid-template-columns: 1fr 1fr; }
  .price-value-row { align-items: flex-start; flex-direction: column; gap: 8px; }
  .sse-inline-price { width: 100%; padding: 8px 0 0; text-align: left; border-top: 1px solid rgba(40,55,75,.14); border-left: 0; }
  .iv-form { grid-template-columns: 1fr; }
  .primary-button.compact { width: 100%; }
  .results-heading { flex-direction: column; }
  .results-heading-tools { width: 100%; align-items: flex-start; }
  .sse-actions { justify-content: flex-start; }
  .sse-comparison-summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .sse-comparison-summary > span { text-align: left; }
  .volatility-dialog { width: calc(100% - 20px); max-height: calc(100vh - 20px); }
  .dialog-heading, .dialog-copy, .dialog-actions { padding-left: 16px; padding-right: 16px; }
  .history-meta, .history-table-wrap, .history-note, .history-method, .dialog-links, .help-step-list, .help-tip { margin-left: 16px; margin-right: 16px; }
  .history-table th, .history-table td { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
