:root {
  color-scheme: light;
  --ink: #193246;
  --ink-soft: #526779;
  --muted: #748596;
  --navy: #183d5a;
  --navy-deep: #102b41;
  --mint: #b8f1d7;
  --mint-deep: #2b8e78;
  --sky: #c8e8f4;
  --paper: #f5f7f6;
  --surface: #fff;
  --surface-soft: #eef3f2;
  --stroke: #dce5e4;
  --stroke-strong: #c9d7d6;
  --warning: #8b5b1d;
  --danger: #a73838;
  --shadow: 0 22px 70px rgba(20, 49, 68, .10);
  --radius: 22px;
  --radius-small: 14px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); line-height: 1.55; }
button, input, select, textarea { font: inherit; }
button, select, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid #3187a8; outline-offset: 3px; }
.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; }
.skip-link { position: fixed; left: 14px; top: 10px; z-index: 100; padding: 10px 14px; background: var(--surface); border-radius: 10px; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid rgba(203, 218, 219, .72); background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-size: 15px; font-weight: 830; letter-spacing: .105em; }
.brand-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: #c8f6e1; background: var(--navy); font-size: 17px; letter-spacing: -.04em; }
.brand-period { color: #3aa584; }
.desktop-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; margin-right: 28px; }
.desktop-nav a, .mobile-nav a { text-decoration: none; color: var(--ink-soft); font-size: 13px; font-weight: 650; transition: color .18s ease; }
.desktop-nav a:hover, .mobile-nav a:hover { color: var(--mint-deep); }
.header-tools { display: flex; align-items: center; gap: 9px; }
.locale-control select { max-width: 114px; border: 0; border-radius: 10px; padding: 8px 7px; background: transparent; color: var(--ink-soft); font-size: 11px; }
.icon-action, .mobile-menu-button { display: inline-grid; place-items: center; min-width: 38px; min-height: 38px; border: 1px solid var(--stroke); border-radius: 12px; background: var(--surface); color: var(--navy); cursor: pointer; transition: transform .18s ease, border-color .18s ease, background .18s ease; }
.icon-action { font-size: 20px; }
.icon-action:hover, .mobile-menu-button:hover { border-color: var(--mint-deep); transform: translateY(-1px); }
.mobile-menu-button, .mobile-nav { display: none; }

.section-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.hero { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr); align-items: center; gap: clamp(36px, 7vw, 92px); padding-top: 82px; padding-bottom: 78px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: #357962; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow-pulse { width: 8px; height: 8px; border-radius: 50%; background: #45b58d; box-shadow: 0 0 0 4px rgba(69, 181, 141, .13); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin: 19px 0 18px; color: var(--navy-deep); font-size: clamp(48px, 6vw, 76px); line-height: .99; letter-spacing: -.07em; font-weight: 760; }
.hero h1 span { color: #3b8e79; }
.hero-intro { max-width: 520px; margin-bottom: 28px; color: var(--ink-soft); font-size: 16px; line-height: 1.7; }
.search-form { max-width: 592px; padding: 18px; border: 1px solid var(--stroke); border-radius: 19px; background: var(--surface); box-shadow: 0 14px 44px rgba(28, 62, 83, .07); }
.search-form label { display: block; margin-bottom: 10px; color: var(--ink); font-size: 12px; font-weight: 750; }
.search-input-wrap { display: flex; align-items: center; gap: 9px; min-height: 53px; padding: 5px; border: 1px solid var(--stroke); border-radius: 13px; background: #fbfdfc; }
.search-icon { padding-left: 10px; color: #688091; font-size: 27px; line-height: 1; transform: rotate(-20deg); }
.search-input-wrap input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 14px; }
.search-input-wrap input::placeholder { color: #8b9aa5; }
.search-input-wrap:focus-within { border-color: #58a991; box-shadow: 0 0 0 3px rgba(72, 161, 132, .12); }
.search-submit { min-height: 41px; padding: 0 15px; border: 0; border-radius: 10px; color: white; background: var(--navy); font-size: 12px; font-weight: 750; cursor: pointer; transition: background .18s ease; }
.search-submit:hover { background: #245472; }
.search-submit span { margin-left: 10px; color: var(--mint); }
.search-hint { margin: 10px 2px 0; color: var(--muted); font-size: 10px; }
.quick-searches { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 15px; color: var(--muted); font-size: 11px; }
.quick-searches button { padding: 5px 10px; border: 1px solid var(--stroke); border-radius: 999px; background: transparent; color: var(--ink-soft); font-size: 10px; cursor: pointer; }
.quick-searches button:hover { border-color: var(--mint-deep); color: var(--mint-deep); }

.hero-art { position: relative; display: grid; place-items: center; min-height: 400px; overflow: hidden; border: 1px solid rgba(176, 201, 200, .6); border-radius: 30px; background: radial-gradient(ellipse at 54% 45%, #e8f4ed 0, #e4eff1 38%, #dce8ec 100%); isolation: isolate; }
.hero-art::before { content: ""; position: absolute; inset: 0; opacity: .34; background-image: linear-gradient(rgba(63, 118, 131, .17) 1px, transparent 1px), linear-gradient(90deg, rgba(63, 118, 131, .17) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(135deg, black, transparent 82%); }
.hero-orbit { position: absolute; border: 1px solid rgba(56, 120, 132, .19); border-radius: 50%; }
.orbit-a { width: 360px; height: 360px; }
.orbit-b { width: 275px; height: 275px; border-style: dashed; }
.math-card { position: relative; z-index: 2; width: min(340px, 77%); padding: 22px 23px 18px; border: 1px solid rgba(255,255,255,.8); border-radius: 21px; background: rgba(255,255,255,.93); box-shadow: 0 27px 64px rgba(24, 55, 74, .16); transform: rotate(-3deg); animation: card-float 5s ease-in-out infinite; }
.math-card-top { display: flex; justify-content: space-between; color: #82929c; font-size: 9px; font-weight: 800; letter-spacing: .14em; }
.math-card-status { color: #37866e; }
.math-equation { display: flex; align-items: center; justify-content: center; gap: 13px; margin: 29px 0 24px; }
.equation-input { padding: 11px 16px; border: 1px solid #dce8e5; border-radius: 12px; color: var(--navy); background: #f7fbf9; font-size: 22px; font-weight: 700; }
.equation-op { color: #54a489; font-size: 21px; }
.math-divider { height: 1px; background: var(--stroke); }
.math-result { display: flex; align-items: end; justify-content: space-between; padding: 18px 0 13px; }
.math-result span { color: #78908d; font-size: 9px; font-weight: 800; letter-spacing: .13em; }
.math-result strong { color: var(--navy-deep); font-size: 34px; letter-spacing: -.055em; }
.math-result small { color: #728a8b; font-size: 16px; font-weight: 600; }
.math-card-footer { display: flex; justify-content: space-between; padding-top: 11px; border-top: 1px solid #edf2f0; color: #6b817f; font-size: 10px; }
.check-mark { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #277b62; background: #d9f5e7; font-weight: 800; }
.hero-note { position: absolute; z-index: 3; top: 38px; right: 35px; display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid rgba(169, 194, 192, .6); border-radius: 999px; color: #557176; background: rgba(255,255,255,.7); font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.note-dot { width: 6px; height: 6px; border-radius: 50%; background: #4bb68e; }
.orbit-label { position: absolute; z-index: 3; color: #587278; font-size: 8px; font-weight: 800; letter-spacing: .11em; }
.orbit-label span { display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 7px; border-radius: 7px; color: #317c67; background: #cceee0; font-size: 9px; }
.label-left { left: 23px; top: 48%; }
.label-right { right: 17px; top: 63%; }
.hero-badge { position: absolute; bottom: 26px; left: 50%; display: flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 999px; color: #496c6c; background: rgba(255,255,255,.65); font-size: 8px; font-weight: 800; letter-spacing: .12em; transform: translateX(-50%); }
.hero-badge span { color: #40977b; font-size: 12px; }
@keyframes card-float { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-7px) rotate(-2deg); } }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 22px 0; border-top: 1px solid var(--stroke); border-bottom: 1px solid var(--stroke); }
.trust-strip > div { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 11px; font-weight: 600; }
.trust-icon { display: grid; place-items: center; width: 29px; height: 29px; flex: none; border-radius: 9px; color: #3d8a72; background: #e2f2eb; font-size: 14px; }

.tools-section { padding-top: 93px; padding-bottom: 99px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 29px; }
.section-heading h2, .workflow-intro h2, .capability-heading h2, .feedback-section h2 { margin: 11px 0 0; color: var(--navy-deep); font-size: clamp(30px, 4vw, 44px); line-height: 1.12; letter-spacing: -.055em; }
.section-heading > p { max-width: 380px; margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 19px; }
.category-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.category-tab { min-height: 34px; padding: 0 12px; border: 1px solid var(--stroke); border-radius: 999px; color: var(--ink-soft); background: transparent; font-size: 10px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.category-tab:hover { border-color: #70b29c; color: #28785f; }
.category-tab[aria-pressed="true"] { border-color: var(--navy); color: #fff; background: var(--navy); }
.text-link, .secondary-link { color: #28775e; font-size: 11px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.text-link span, .secondary-link span { margin-left: 5px; }
.text-link:hover, .secondary-link:hover { text-decoration: underline; }
.calculator-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.calculator-card { position: relative; display: flex; min-height: 218px; flex-direction: column; padding: 20px; border: 1px solid var(--stroke); border-radius: 18px; background: var(--surface); text-decoration: none; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.calculator-card:hover { transform: translateY(-3px); border-color: #a8cfc0; box-shadow: 0 16px 32px rgba(29, 69, 80, .08); }
.calculator-card:focus-visible { outline-offset: 4px; }
.card-topline { display: flex; align-items: center; justify-content: space-between; margin-bottom: 21px; }
.card-symbol { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: #28775e; background: #e3f4eb; font-size: 18px; font-weight: 750; }
.card-risk { padding: 5px 8px; border: 1px solid #d7ebe2; border-radius: 999px; color: #4c806f; font-size: 8px; font-weight: 800; letter-spacing: .1em; }
.calculator-card h3 { margin: 0 0 7px; color: var(--navy-deep); font-size: 16px; letter-spacing: -.025em; }
.calculator-card p { margin: 0 0 17px; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #edf1f0; color: #71848e; font-size: 9px; }
.card-arrow { color: #35866c; font-size: 16px; }
.empty-state { padding: 24px; border: 1px dashed var(--stroke-strong); border-radius: 14px; color: var(--ink-soft); text-align: center; font-size: 13px; }
.catalog-footnote { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; color: #73848b; font-size: 10px; line-height: 1.6; }
.ad-placement:not(:empty) { min-height: 80px; margin-top: 17px; padding: 14px; border: 1px solid var(--stroke); border-radius: 14px; background: var(--surface); }
.ad-placement-active::before { content: "Sponsored"; display: block; margin-bottom: 7px; color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.status-dot { width: 8px; height: 8px; flex: none; margin-top: 3px; border-radius: 50%; background: #43a17e; }

.workflow-section { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: clamp(38px, 8vw, 105px); padding-top: 70px; padding-bottom: 84px; border-top: 1px solid var(--stroke); }
.workflow-intro p { max-width: 420px; margin: 18px 0 22px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; }
.workflow-visual { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; gap: 15px; min-height: 275px; padding: 25px 20px 53px; border: 1px solid #d7e3e1; border-radius: 23px; background: linear-gradient(145deg, #fdfefe, #edf5f2); overflow: hidden; }
.workflow-connectors { position: absolute; top: 47%; left: 18%; right: 18%; display: flex; justify-content: space-between; height: 1px; background: #b7d8cc; }
.workflow-connectors span { position: relative; width: 50%; }
.workflow-connectors span::after { content: "›"; position: absolute; top: -13px; right: 0; color: #4e9e83; font-size: 20px; }
.workflow-node { position: relative; z-index: 2; display: flex; min-height: 138px; flex-direction: column; justify-content: flex-end; padding: 14px; border: 1px solid #e0e9e6; border-radius: 15px; background: var(--surface); box-shadow: 0 10px 25px rgba(23, 59, 74, .06); }
.node-number { position: absolute; top: 11px; right: 12px; color: #91a3a3; font-size: 9px; font-weight: 800; }
.node-icon { display: grid; place-items: center; width: 35px; height: 35px; margin-bottom: 14px; border-radius: 11px; color: #357f69; background: #e2f3ea; font-size: 18px; }
.workflow-node strong { color: var(--navy); font-size: 10px; }
.workflow-node small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.workflow-caption { position: absolute; bottom: 16px; left: 20px; display: flex; align-items: center; gap: 7px; color: #638078; font-size: 9px; }
.caption-check { display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; color: #26765e; background: #d7f0e3; font-weight: 800; }

.field-section { padding-top: 81px; padding-bottom: 82px; border-top: 1px solid var(--stroke); }
.field-heading { margin-bottom: 23px; }
.field-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.field-toolbar p { margin: 0; color: var(--muted); font-size: 10px; }
.text-button { border: 0; padding: 6px 0; color: #28775e; background: transparent; font-size: 10px; font-weight: 750; cursor: pointer; }
.text-button:hover { text-decoration: underline; }
.field-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; }
.field-card { display: flex; min-height: 72px; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--stroke); border-radius: 13px; background: rgba(255,255,255,.6); }
.field-card[hidden] { display: none; }
.field-index { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 9px; color: #45846f; background: #e4f1e9; font-size: 9px; font-weight: 800; }
.field-copy { min-width: 0; }
.field-copy strong { display: block; color: var(--ink); font-size: 9px; line-height: 1.35; }
.field-copy small { display: block; margin-top: 4px; color: #87969b; font-size: 8px; }
.field-card.has-tools { border-color: #bddccf; background: #fbfefc; }
.field-card.has-tools .field-copy small { color: #3d856d; }
.research-note { display: flex; gap: 13px; margin-top: 20px; padding: 17px; border: 1px solid #d8e4e3; border-radius: 15px; background: #eef4f3; }
.research-note-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 50%; color: #fff; background: #557b83; font-size: 12px; font-weight: 700; }
.research-note strong { color: #2f5261; font-size: 11px; }
.research-note p { margin: 4px 0 0; color: #637881; font-size: 10px; line-height: 1.6; }

.capability-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: 55px; padding-top: 75px; padding-bottom: 86px; border-top: 1px solid var(--stroke); }
.capability-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.capability-card { display: flex; gap: 12px; min-height: 121px; padding: 17px; border: 1px solid var(--stroke); border-radius: 16px; background: var(--surface); }
.capability-symbol { display: grid; place-items: center; width: 31px; height: 31px; flex: none; border-radius: 10px; color: #328269; background: #e3f3eb; font-size: 16px; }
.capability-card h3 { margin: 1px 0 6px; color: var(--navy); font-size: 12px; }
.capability-card p { margin: 0; color: var(--ink-soft); font-size: 9px; line-height: 1.65; }

.feedback-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 65px; align-items: start; padding-top: 60px; padding-bottom: 68px; border-top: 1px solid var(--stroke); }
.feedback-section > div > p { max-width: 390px; margin: 15px 0 0; color: var(--ink-soft); font-size: 11px; line-height: 1.7; }
.feedback-form { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 21px; border: 1px solid var(--stroke); border-radius: 18px; background: var(--surface); }
.feedback-form label { margin-top: 5px; color: var(--ink); font-size: 10px; font-weight: 750; }
.feedback-form select, .feedback-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--stroke); border-radius: 10px; color: var(--ink); background: var(--surface); font-size: 11px; }
.feedback-form textarea { resize: vertical; }
.feedback-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.form-status { min-height: 18px; margin: 0; color: #347b63; font-size: 10px; }

.site-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px 28px; padding: 26px max(24px, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--stroke); background: #edf2f0; }
.site-footer > p { margin: 0; color: var(--ink-soft); font-size: 10px; }
.footer-links { display: flex; gap: 15px; }
.footer-links a { color: var(--ink-soft); font-size: 9px; text-decoration: none; }
.footer-links a:hover { color: #26765e; }
.site-footer > small { grid-column: 1 / -1; color: #7a8b8d; font-size: 8px; }
.compact-footer { grid-template-columns: auto 1fr; }
.compact-footer > small { grid-column: auto; justify-self: end; }

.tool-page { padding-top: 32px; padding-bottom: 84px; }
.breadcrumbs { display: flex; gap: 9px; align-items: center; margin: 0 0 30px; color: var(--muted); font-size: 10px; }
.breadcrumbs a { color: #387d68; text-decoration: none; }
.tool-page-heading { display: flex; justify-content: space-between; align-items: start; gap: 25px; margin-bottom: 26px; }
.tool-page-heading h1 { margin: 9px 0 9px; color: var(--navy-deep); font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -.06em; }
.tool-page-heading p { max-width: 670px; margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.7; }
.verified-pill { display: flex; align-items: center; gap: 8px; flex: none; padding: 9px 12px; border: 1px solid #d2e8de; border-radius: 999px; color: #42806b; background: #f2faf5; font-size: 9px; font-weight: 750; }
.calculator-runtime { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(290px, .98fr); gap: 17px; }
.calculator-form-card, .result-card, .unit-converter-card { padding: 24px; border: 1px solid var(--stroke); border-radius: 19px; background: var(--surface); box-shadow: 0 13px 36px rgba(27, 58, 74, .045); }
.runtime-card-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 18px; }
.runtime-card-heading h2 { margin: 0 0 4px; color: var(--navy); font-size: 17px; letter-spacing: -.03em; }
.runtime-card-heading p { margin: 0; color: var(--muted); font-size: 10px; }
.risk-label { padding: 5px 8px; border-radius: 999px; color: #4b806f; background: #e8f5ee; font-size: 8px; font-weight: 800; letter-spacing: .08em; white-space: nowrap; }
.calculator-form { display: grid; gap: 13px; }
.quantity-control { display: grid; grid-template-columns: minmax(0,1fr) 115px; gap: 8px; align-items: end; }
.quantity-control label { grid-column: 1 / -1; margin-bottom: -4px; color: var(--ink); font-size: 10px; font-weight: 750; }
.quantity-control input, .quantity-control select, .unit-row input, .unit-row select { width: 100%; min-height: 44px; padding: 10px 11px; border: 1px solid var(--stroke); border-radius: 10px; color: var(--ink); background: var(--surface); font-size: 12px; }
.quantity-control input:focus, .quantity-control select:focus, .unit-row input:focus, .unit-row select:focus { border-color: #66a991; }
.field-help { grid-column: 1 / -1; margin: -2px 0 0; color: var(--muted); font-size: 9px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 15px; border: 1px solid transparent; border-radius: 10px; font-size: 10px; font-weight: 750; cursor: pointer; text-decoration: none; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { color: #fff; background: var(--navy); }
.button-primary:hover { background: #275572; }
.button-secondary { border-color: #d2e6dc; color: #286f59; background: #f1faf5; }
.button-secondary:hover { background: #e4f4eb; }
.button-quiet { border-color: var(--stroke); color: var(--ink-soft); background: var(--surface); }
.button-danger { border-color: #f0d4d4; color: #a33e3e; background: #fff8f8; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.calculation-error { margin: 0; padding: 10px 12px; border: 1px solid #efcbcb; border-radius: 10px; color: #943d3d; background: #fff6f5; font-size: 10px; }
.result-card { min-height: 270px; }
.result-empty { display: grid; min-height: 206px; place-items: center; align-content: center; text-align: center; }
.result-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 15px; color: #42856d; background: #e5f4ec; font-size: 23px; }
.result-empty strong { color: var(--navy); font-size: 13px; }
.result-empty p { max-width: 235px; margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.result-ready-label { display: flex; align-items: center; gap: 7px; color: #43816b; font-size: 9px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.result-ready-label .status-dot { margin: 0; }
.result-main { margin: 15px 0; padding: 17px; border-radius: 14px; background: #f2f8f5; }
.result-main-label { display: block; color: #648078; font-size: 9px; font-weight: 750; }
.result-main strong { display: block; margin-top: 3px; color: var(--navy-deep); font-size: clamp(25px, 3vw, 36px); line-height: 1.2; letter-spacing: -.055em; overflow-wrap: anywhere; }
.result-subgrid { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.result-subitem { padding: 11px; border: 1px solid var(--stroke); border-radius: 11px; }
.result-subitem span { display: block; color: var(--muted); font-size: 8px; }
.result-subitem strong { display: block; margin-top: 3px; color: var(--ink); font-size: 12px; overflow-wrap: anywhere; }
.output-unit-control { display: flex; align-items: center; gap: 7px; margin-top: 8px; }
.output-unit-control label { color: var(--muted); font-size: 8px; }
.output-unit-control select { max-width: 110px; padding: 4px 7px; border: 1px solid var(--stroke); border-radius: 7px; color: var(--ink-soft); background: var(--surface); font-size: 9px; }
.result-warnings { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; color: #7a551d; background: #fff5e3; font-size: 9px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.result-details { margin-top: 17px; border-top: 1px solid var(--stroke); }
.result-details details { padding: 11px 0; border-bottom: 1px solid var(--stroke); }
.result-details summary { color: #426674; font-size: 10px; font-weight: 750; cursor: pointer; }
.details-copy { margin: 9px 0 0; color: var(--ink-soft); font-size: 9px; line-height: 1.7; }
.details-copy a { color: #2f7b63; }
.intermediate-list { display: grid; gap: 5px; margin: 8px 0 0; padding-left: 17px; color: var(--ink-soft); font-size: 9px; }
.handoff-list { display: grid; gap: 8px; margin-top: 10px; }
.handoff-button { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 10px 12px; border: 1px solid #cfe5d9; border-radius: 10px; color: #286f59; background: #f5fbf7; text-align: left; font-size: 9px; font-weight: 700; cursor: pointer; }
.handoff-button:hover { background: #e9f7ef; }
.workflow-provenance { margin-top: 11px; padding: 10px 12px; border-left: 3px solid #55a788; color: #4e7167; background: #f2faf5; font-size: 9px; }
.unit-converter-card { max-width: 850px; padding: clamp(20px, 4vw, 34px); }
.unit-category-control { margin-bottom: 20px; }
.unit-category-control label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 10px; font-weight: 750; }
.unit-category-control select { width: 100%; max-width: 420px; min-height: 42px; padding: 9px 11px; border: 1px solid var(--stroke); border-radius: 10px; color: var(--ink); background: var(--surface); font-size: 11px; }
.unit-row { display: grid; grid-template-columns: 1fr 40px 1fr; gap: 13px; align-items: end; }
.unit-row label { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 9px; font-weight: 750; }
.unit-group { display: grid; gap: 8px; }
.swap-units { display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 3px; border: 1px solid var(--stroke); border-radius: 11px; color: #3b826b; background: #f5fbf7; font-size: 18px; cursor: pointer; }
.unit-result { margin-top: 22px; padding: 18px; border-radius: 15px; background: #f1f8f5; }
.unit-result-label { color: #638078; font-size: 9px; font-weight: 750; }
.unit-result strong { display: block; margin-top: 3px; color: var(--navy); font-size: clamp(24px,4vw,36px); letter-spacing: -.05em; overflow-wrap: anywhere; }
.unit-error { min-height: 17px; margin: 8px 0 0; color: var(--danger); font-size: 10px; }
.tool-method-info { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; margin-top: 26px; padding: 22px; border: 1px solid var(--stroke); border-radius: 16px; background: #eef4f2; }
.tool-method-info h2 { margin: 0 0 7px; color: var(--navy); font-size: 14px; }
.tool-method-info p { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.7; }
.method-source { display: grid; gap: 5px; align-content: start; }
.method-source a { color: #2d795f; font-size: 10px; font-weight: 700; }
.method-source small { color: var(--muted); font-size: 8px; }
.back-link { display: inline-block; margin-top: 25px; color: #347c65; font-size: 10px; font-weight: 700; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.seo-list { display: grid; gap: 6px; margin: 9px 0 0; padding-left: 17px; color: var(--ink-soft); font-size: 9px; line-height: 1.6; }
.seo-list a { color: #2d795f; }

.app-dialog { width: min(620px, calc(100vw - 28px)); max-height: min(80vh, 800px); padding: 24px; border: 1px solid var(--stroke); border-radius: 20px; color: var(--ink); background: var(--surface); box-shadow: var(--shadow); }
.app-dialog::backdrop { background: rgba(15, 35, 49, .45); backdrop-filter: blur(3px); }
.dialog-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.dialog-heading h2 { margin: 7px 0 0; color: var(--navy); font-size: 22px; letter-spacing: -.04em; }
.dialog-description { margin: 12px 0 17px; color: var(--ink-soft); font-size: 10px; line-height: 1.6; }
.history-setting { display: flex; gap: 11px; padding: 13px; border: 1px solid var(--stroke); border-radius: 13px; background: var(--surface-soft); cursor: pointer; }
.history-setting input { width: 16px; height: 16px; accent-color: #338166; }
.history-setting strong, .history-setting small { display: block; }
.history-setting strong { color: var(--ink); font-size: 10px; }
.history-setting small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.history-list { display: grid; gap: 9px; max-height: 360px; overflow: auto; margin: 15px 0; }
.history-empty { padding: 23px 12px; border: 1px dashed var(--stroke-strong); border-radius: 12px; color: var(--muted); text-align: center; font-size: 10px; }
.history-entry { padding: 13px; border: 1px solid var(--stroke); border-radius: 13px; }
.history-entry-top { display: flex; justify-content: space-between; gap: 12px; }
.history-entry strong { color: var(--navy); font-size: 11px; }
.history-entry small { color: var(--muted); font-size: 8px; }
.history-entry-summary { margin: 7px 0 10px; color: var(--ink-soft); font-size: 9px; }
.history-entry-actions { display: flex; gap: 7px; flex-wrap: wrap; }
.history-entry-actions .button { min-height: 32px; padding: 0 10px; font-size: 8px; }
.dialog-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; }
.small-dialog { max-width: 420px; }
.small-dialog > p { margin: 13px 0; color: var(--ink-soft); font-size: 11px; line-height: 1.6; }
.saved-result-list { display: grid; gap: 8px; margin: 17px 0; }
.saved-result-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--stroke); border-radius: 10px; font-size: 10px; }
.saved-result-row span { color: var(--muted); }
.saved-result-row strong { color: var(--navy); text-align: right; }
.toast { position: fixed; z-index: 50; right: 22px; bottom: 22px; max-width: min(360px, calc(100vw - 36px)); padding: 12px 16px; border-radius: 12px; color: #fff; background: var(--navy-deep); box-shadow: 0 12px 35px rgba(15, 43, 65, .22); font-size: 10px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .22s ease, transform .22s ease; }
.toast.show { opacity: 1; transform: translateY(0); }

body[data-theme="dark"] { color-scheme: dark; --ink: #e2ecee; --ink-soft: #b3c4cb; --muted: #9aacb4; --navy: #c2f1df; --navy-deep: #e5f2f1; --paper: #10202b; --surface: #172d3a; --surface-soft: #1c3542; --stroke: #294452; --stroke-strong: #3b5b67; --shadow: 0 22px 70px rgba(0,0,0,.3); }
body[data-theme="dark"] .site-header { background: rgba(16,32,43,.92); }
body[data-theme="dark"] .site-footer, body[data-theme="dark"] .tool-method-info { background: #132935; }
body[data-theme="dark"] .hero h1, body[data-theme="dark"] .section-heading h2, body[data-theme="dark"] .workflow-intro h2, body[data-theme="dark"] .capability-heading h2, body[data-theme="dark"] .feedback-section h2, body[data-theme="dark"] .tool-page-heading h1 { color: #e5f2f1; }
body[data-theme="dark"] .hero-art { background: radial-gradient(ellipse at 54% 45%, #234a52 0, #203d4c 48%, #1c3547 100%); }
body[data-theme="dark"] .math-card, body[data-theme="dark"] .calculator-card, body[data-theme="dark"] .calculator-form-card, body[data-theme="dark"] .result-card, body[data-theme="dark"] .unit-converter-card, body[data-theme="dark"] .capability-card, body[data-theme="dark"] .feedback-form { background: var(--surface); }
body[data-theme="dark"] .math-card { border-color: #37515b; }
body[data-theme="dark"] .math-result strong, body[data-theme="dark"] .math-card-top, body[data-theme="dark"] .math-card-footer, body[data-theme="dark"] .calculator-card h3, body[data-theme="dark"] .runtime-card-heading h2 { color: var(--ink); }
body[data-theme="dark"] .equation-input, body[data-theme="dark"] .search-input-wrap, body[data-theme="dark"] .result-main, body[data-theme="dark"] .unit-result { background: #203a46; }
body[data-theme="dark"] .field-card, body[data-theme="dark"] .workflow-visual, body[data-theme="dark"] .workflow-node { background: #172e3b; }
body[data-theme="dark"] .research-note { background: #1a3440; }
body[data-theme="dark"] .search-input-wrap input { color: var(--ink); }
body[data-theme="dark"] .search-submit { color: #fff; background: #28634f; }
body[data-theme="dark"] .button-primary { color: #102a39; background: #a7e6cc; }
body[data-theme="dark"] .button-primary:hover { background: #c0f4dc; }
body[data-theme="dark"] .verified-pill, body[data-theme="dark"] .risk-label { color: #b9ebd1; background: #1f443c; border-color: #376452; }
body[data-theme="dark"] .result-main strong, body[data-theme="dark"] .unit-result strong { color: #e5f2f1; }

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(330px, .9fr); gap: 35px; }
  .hero-art { min-height: 350px; }
  .label-left, .label-right { font-size: 7px; }
  .calculator-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .workflow-section { gap: 34px; }
  .capability-section { gap: 32px; }
}
@media (max-width: 760px) {
  .site-header { min-height: 66px; padding: 0 18px; }
  .desktop-nav { display: none; }
  .mobile-menu-button { display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; font-size: 10px; font-weight: 700; }
  .mobile-nav:not([hidden]) { position: sticky; top: 66px; z-index: 19; display: grid; gap: 0; padding: 6px 18px 12px; border-bottom: 1px solid var(--stroke); background: var(--paper); }
  .mobile-nav a { padding: 11px 4px; border-bottom: 1px solid var(--stroke); }
  .section-shell { width: min(100% - 36px, 610px); }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 50px; padding-bottom: 43px; }
  .hero h1 { font-size: clamp(47px, 12vw, 66px); }
  .hero-art { min-height: 330px; }
  .trust-strip { width: min(100% - 36px, 610px); grid-template-columns: repeat(2,1fr); gap: 14px 18px; }
  .tools-section { padding-top: 65px; padding-bottom: 64px; }
  .section-heading { display: block; }
  .section-heading > p { margin-top: 13px; }
  .catalog-toolbar { align-items: start; flex-direction: column; }
  .workflow-section { grid-template-columns: 1fr; gap: 25px; padding-top: 55px; padding-bottom: 60px; }
  .workflow-visual { min-height: 260px; }
  .field-section { padding-top: 57px; padding-bottom: 60px; }
  .field-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .capability-section { grid-template-columns: 1fr; gap: 25px; padding-top: 55px; padding-bottom: 60px; }
  .feedback-section { grid-template-columns: 1fr; gap: 22px; padding-top: 48px; padding-bottom: 55px; }
  .site-footer { grid-template-columns: auto 1fr; padding: 23px 18px; }
  .site-footer > p { grid-column: 1 / -1; grid-row: 2; }
  .footer-links { grid-column: 1 / -1; }
  .site-footer > small { grid-column: 1 / -1; }
  .compact-footer { grid-template-columns: 1fr; }
  .compact-footer > small { justify-self: start; }
  .tool-page { padding-top: 23px; }
  .tool-page-heading { display: block; }
  .verified-pill { display: inline-flex; margin-top: 17px; }
  .calculator-runtime { grid-template-columns: 1fr; }
  .tool-method-info { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 520px) {
  .header-tools { gap: 5px; }
  .locale-control select { max-width: 78px; font-size: 9px; }
  .icon-action { min-width: 34px; min-height: 34px; border-radius: 10px; font-size: 18px; }
  .mobile-menu-button { min-height: 34px; min-width: 0; }
  .section-shell, .trust-strip { width: calc(100% - 30px); }
  .hero { padding-top: 40px; }
  .hero-intro { font-size: 14px; }
  .search-form { padding: 13px; }
  .search-input-wrap { min-height: 48px; }
  .search-submit { min-height: 38px; padding: 0 10px; font-size: 10px; }
  .search-submit span { margin-left: 3px; }
  .hero-art { min-height: 300px; }
  .math-card { width: 77%; padding: 18px; }
  .hero-note { top: 19px; right: 13px; font-size: 7px; }
  .label-left { left: 10px; }
  .label-right { right: 8px; }
  .orbit-label { font-size: 6px; letter-spacing: .04em; }
  .orbit-label span { width: 17px; height: 17px; margin-right: 2px; font-size: 7px; }
  .hero-badge { bottom: 17px; font-size: 7px; white-space: nowrap; }
  .trust-strip { gap: 12px 8px; }
  .trust-strip > div { align-items: start; font-size: 9px; }
  .trust-icon { width: 25px; height: 25px; font-size: 12px; }
  .calculator-grid { grid-template-columns: 1fr; }
  .calculator-card { min-height: 190px; }
  .category-tabs { gap: 6px; }
  .category-tab { padding: 0 9px; font-size: 9px; }
  .workflow-visual { grid-template-columns: 1fr; gap: 9px; padding: 16px 15px 49px; }
  .workflow-connectors { top: 22%; bottom: 33%; left: 34px; right: auto; width: 1px; height: auto; flex-direction: column; }
  .workflow-connectors span { width: 1px; height: 50%; }
  .workflow-connectors span::after { top: auto; right: -8px; bottom: -8px; transform: rotate(90deg); }
  .workflow-node { min-height: 73px; padding: 10px 12px 10px 57px; justify-content: center; }
  .node-icon { position: absolute; left: 12px; top: 18px; margin: 0; }
  .node-number { top: 10px; right: 10px; }
  .workflow-caption { left: 14px; right: 12px; bottom: 13px; font-size: 8px; }
  .field-grid { gap: 7px; }
  .field-card { min-height: 67px; gap: 7px; padding: 8px; }
  .field-index { width: 24px; height: 24px; font-size: 8px; }
  .field-copy strong { font-size: 8px; }
  .capability-grid { grid-template-columns: 1fr; }
  .feedback-form { padding: 15px; }
  .calculator-form-card, .result-card, .unit-converter-card { padding: 17px; }
  .quantity-control { grid-template-columns: minmax(0,1fr) 92px; }
  .result-main strong { font-size: 28px; }
  .unit-row { grid-template-columns: 1fr 34px 1fr; gap: 7px; }
  .unit-row input, .unit-row select { min-height: 42px; padding: 8px; font-size: 10px; }
  .swap-units { width: 32px; height: 36px; }
  .tool-method-info { padding: 16px; }
  .app-dialog { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
