:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #172033;
  --muted: #657087;
  --line: #dfe4ea;
  --accent: #1f6f5c;
  --accent-soft: #eaf4f1;
  --danger: #a43c3c;
  --shadow: 0 12px 35px rgba(20, 31, 48, .08);
}
* { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); background: var(--bg); }
a { color: inherit; }
.site-header, main, .site-footer { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-size: 20px; font-weight: 800; text-decoration: none; letter-spacing: -.03em; }
.top-nav { display: flex; gap: 20px; }
.top-nav a { color: var(--muted); text-decoration: none; }
.hero { padding: 72px 0 36px; max-width: 820px; }
.home-hero { padding-bottom: 48px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
h1 { margin: 10px 0 18px; font-size: clamp(40px, 7vw, 72px); line-height: 1.02; letter-spacing: -.055em; }
h2 { letter-spacing: -.025em; }
.lede { max-width: 760px; color: var(--muted); font-size: 20px; }
.tool-grid, .related-grid, .compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool-card, .related-link, .compare-grid article, .tool-shell, .download-panel, .content-section { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.tool-card { padding: 28px; text-decoration: none; transition: transform .15s ease; }
.tool-card:hover { transform: translateY(-2px); }
.tool-card h2 { margin: 10px 0; }
.tool-card p, .related-link span { color: var(--muted); }
.card-link { display: block; margin-top: 22px; color: var(--accent); font-weight: 700; }
.tool-shell { padding: 24px; }
.tool-app { min-height: 220px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 650; }
.field small { color: var(--muted); }
input, select, button { font: inherit; }
input, select { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; color: var(--text); background: white; }
input:focus, select:focus { outline: 3px solid rgba(31,111,92,.16); border-color: var(--accent); }
.results { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.result { background: var(--accent-soft); border-radius: 12px; padding: 16px; }
.result span { display: block; color: var(--muted); font-size: 13px; }
.result strong { display: block; margin-top: 3px; font-size: 24px; }
.error { margin-top: 14px; color: var(--danger); font-weight: 650; }
.download-panel { margin-top: 20px; padding: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.download-panel h2 { margin: 6px 0; }
.download-panel p { margin: 0; color: var(--muted); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border-radius: 11px; text-decoration: none; font-weight: 750; white-space: nowrap; }
.button.primary { background: var(--accent); color: white; }
.compare-grid { margin-top: 20px; }
.compare-grid article { padding: 26px; box-shadow: none; }
.compare-grid li { margin: 8px 0; }
.content-section { margin-top: 20px; padding: 32px; box-shadow: none; }
.content-section.narrow { max-width: 840px; }
.content-section p, .content-section li { color: #39445a; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; }
.related-link { display: grid; gap: 8px; padding: 22px; text-decoration: none; box-shadow: none; }
.site-footer { padding: 48px 0 64px; color: var(--muted); font-size: 14px; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; min-width: 720px; border-collapse: collapse; }
.data-table th, .data-table td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.data-table th { font-size: 13px; color: var(--muted); }
.data-table input, .data-table select { min-width: 120px; }
.table-actions { display: flex; gap: 10px; margin: 14px 0; }
button { border: 0; border-radius: 10px; padding: 10px 14px; cursor: pointer; font-weight: 700; background: var(--accent); color: white; }
button.secondary { background: var(--accent-soft); color: var(--accent); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--accent-soft); border-radius: 12px; padding: 16px; }
.kpi span { display: block; color: var(--muted); font-size: 13px; }
.kpi strong { display: block; font-size: 22px; margin-top: 3px; }
@media (max-width: 760px) {
  .tool-grid, .related-grid, .compare-grid, .form-grid { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .download-panel { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .hero { padding-top: 48px; }
}

/* Shared currency selector for every browser tool. */
.currency-selector { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 24px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.currency-selector label { font-weight: 700; }
.currency-selector select { width: auto; min-width: 130px; }
.currency-selector small { color: var(--muted); flex-basis: 100%; }
