:root {
  --bg: #f4f8fc;
  --bg-soft: #eaf2fb;
  --card: #ffffff;
  --card-soft: #f8fbff;
  --text: #0f172a;
  --muted: #475569;
  --line: #d7e3f4;
  --brand: #2563eb;
  --brand-2: #0ea5e9;
  --brand-soft: #dbeafe;
  --success: #16a34a;
  --success-soft: #dcfce7;
  --warn: #d97706;
  --warn-soft: #ffedd5;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --shadow: 0 18px 45px rgba(37, 99, 235, 0.08);
  --radius: 24px;
  --radius-sm: 18px;
  --header-offset: 92px;
  --max: 1700px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body {
  overflow-x: hidden;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(14,165,233,0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(37,99,235,0.07), transparent 32%),
    linear-gradient(180deg, var(--bg) 0%, #eef5fd 100%);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { display:block; max-width:100%; }
button, input, select { font: inherit; }
.skip-link { position:absolute; left:-9999px; top:auto; }
.skip-link:focus { left: 16px; top: 16px; z-index: 1000; padding: 10px 14px; border-radius: 12px; background: var(--card); box-shadow: var(--shadow); }
.topbar {
  position: sticky; top:0; z-index:100;
  backdrop-filter: blur(12px);
  background: rgba(244,248,252,0.94);
  border-bottom: 1px solid rgba(215,227,244,0.96);
}
.topbar-inner {
  width:min(var(--max), 100%);
  margin:0 auto;
  min-height:72px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:10px 12px;
}
.brand { display:inline-flex; align-items:center; gap:12px; min-width:0; font-weight:800; letter-spacing:-0.02em; }
.brand-logo {
  width:42px; height:42px; border-radius:14px; padding:8px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 12px 28px rgba(37,99,235,0.18);
  flex:0 0 auto;
}
.brand-text { min-width:0; }
.brand small { display:block; font-size:0.78rem; color: var(--muted); font-weight:700; margin-top:1px; }
.menu-toggle {
  display:none;
  width:46px;
  min-width:46px;
  min-height:46px;
  padding:0;
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--card);
  color:var(--text);
  font-weight:800;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.menu-toggle-lines {
  display:block;
  width:20px;
  height:2.5px;
  border-radius:999px;
  background: currentColor;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.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;
}
.nav-shell { display:flex; align-items:center; }
.nav { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.nav a {
  padding:10px 12px; border-radius:999px; color: var(--muted); font-size:0.94rem; font-weight:700; transition:0.18s ease;
}
.nav a:hover, .nav a:focus-visible, .button:hover, .button:focus-visible { outline:none; }
.nav a:hover, .nav a:focus-visible { color:var(--text); background: rgba(37,99,235,0.08); }
.page-shell {
  width:min(var(--max), 100%);
  margin:0 auto;
  padding: 24px 12px 64px;
}
.page-grid { display:grid; grid-template-columns: 1fr; gap:20px; align-items:start; }
.content-stack { min-width:0; display:grid; gap:20px; }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.98));
  border:1px solid rgba(215,227,244,0.98);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-card, .content-card, .faq-card, .panel-card, .mini-page-card { padding: clamp(18px, 2.6vw, 30px); }
.promo-inline { padding: clamp(18px, 2.6vw, 24px); }
.hero-grid { display:grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,0.9fr); gap:20px; align-items:start; }
.hero-side-stack { display:grid; gap:18px; align-items:start; }
.badge-row { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
.badge {
  display:inline-flex; align-items:center; min-height:36px; padding:0 12px; border-radius:999px; font-size:0.86rem; font-weight:800; letter-spacing:0.01em;
}
.badge-primary { background: var(--brand-soft); color:#1d4ed8; border:1px solid #bfdbfe; }
.badge-neutral { background:#eef4ff; color:#334155; border:1px solid #d9e6fb; }
h1,h2,h3 { line-height:1.14; letter-spacing:-0.03em; margin:0 0 10px; }
h1 { font-size: clamp(2rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.2rem); }
h3 { font-size: clamp(1.02rem, 2vw, 1.24rem); }
p { margin:0; }
.lead { font-size: clamp(1rem, 1.4vw, 1.1rem); color: var(--muted); max-width: 64ch; }
.keyword-list { margin:16px 0 0; padding:0; list-style:none; display:flex; flex-wrap:wrap; gap:10px; }
.keyword-list li {
  display:inline-flex; align-items:center; min-height:36px; padding:0 12px; border-radius:999px; background:#f3f7ff; border:1px solid #dbe7fb; color:#334155; font-size:0.9rem; font-weight:700;
}
.summary-box {
  margin-top:0; padding:16px; border-radius:20px; background: linear-gradient(180deg, #f6faff 0%, #eef5ff 100%); border:1px solid #dce9fb;
}
.summary-box strong { display:block; margin-bottom:6px; }
.hero-copy-card { padding: clamp(20px, 2.6vw, 28px); }
.tool-grid { display:grid; grid-template-columns: minmax(0,1.08fr) minmax(300px,0.92fr); gap:18px; align-items:stretch; margin-top: 18px; }
.tool-panel, .live-panel { padding: clamp(18px, 2.4vw, 24px); }
.panel-subtle { border-radius: var(--radius-sm); background: linear-gradient(180deg, rgba(226, 238, 255, 0.98), rgba(214, 231, 255, 0.98)); border:1px solid rgba(175, 201, 242, 0.98); }
.tool-toolbar { display:block; margin-bottom:16px; }
.field { display:grid; gap:7px; }
.field label, .metric .label, .display-item .name, .slot-label { display:block; font-size:0.82rem; color: var(--muted); font-weight:800; margin-bottom:6px; }
.field input, .field select {
  width:100%; min-height:52px; padding:0 14px; border-radius:14px; border:1px solid #d7e3f4; background:#fff; color: var(--text); outline:none; transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field select:focus {
  border-color:#93c5fd; box-shadow: 0 0 0 4px rgba(37,99,235,0.10);
}
.field input::placeholder { color:#94a3b8; }
.metric-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.metric { padding:16px; border-radius:18px; background: var(--card); border:1px solid #dde8f8; }
.metric .value { display:block; font-size: clamp(1.1rem,2vw,1.45rem); font-weight:900; letter-spacing:-0.02em; word-break: break-word; }
.rows { display:grid; gap:12px; }
.person-row { display:grid; grid-template-columns: 1.2fr 0.9fr auto; gap:10px; align-items:end; }
.remove-person {
  min-width:52px; min-height:52px; border-radius:14px; border:1px solid #fecaca; background: var(--danger-soft); color:#b91c1c; font-size:1.1rem; font-weight:900; cursor:pointer;
}
.remove-person:disabled, .button:disabled { opacity:0.55; cursor:not-allowed; }
.action-row, .timer-actions { display:flex; flex-wrap:wrap; gap:10px; }
.action-row { margin-top:14px; }
.timer-actions { margin-top:16px; }
.button {
  display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:0 16px; border-radius:14px; border:1px solid transparent; font-weight:800; cursor:pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button-primary { color:#fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); box-shadow: 0 12px 26px rgba(37,99,235,0.18); }
.button-secondary { color:#1e293b; background:#f1f6fd; border-color:#d7e3f4; }
.button-success { color:#166534; background: var(--success-soft); border-color:#bbf7d0; }
.button-warn { color:#9a3412; background: var(--warn-soft); border-color:#fed7aa; }
.button-danger { color:#b91c1c; background: var(--danger-soft); border-color:#fecaca; }
.display-shell { display:grid; gap:14px; }
.display-card {
  padding:18px; border-radius:22px; background: radial-gradient(circle at top right, rgba(37,99,235,0.08), transparent 35%), linear-gradient(180deg, #fff 0%, #f7fbff 100%); border:1px solid #dbe7fa;
}
.display-topline { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:14px; }
.display-topline span { font-size:0.84rem; color: var(--muted); font-weight:800; }
.live-pill {
  display:inline-flex; align-items:center; gap:8px; min-height:34px; padding:0 12px; border-radius:999px; background:#ecfdf5; border:1px solid #bbf7d0; color:#166534; font-size:0.82rem; font-weight:900;
}
.dot { width:8px; height:8px; border-radius:999px; background: var(--success); box-shadow: 0 0 0 5px rgba(22,163,74,0.10); }
.display-stack { display:grid; gap:12px; }
.display-item { padding:16px; border-radius:18px; background:#fff; border:1px solid #dfe9f8; }
.display-item .big { display:block; font-size: clamp(1.45rem, 3vw, 2.4rem); line-height:1.04; font-weight:900; letter-spacing:-0.03em; word-break: break-word; }
.display-item.is-cost .big { color:#1d4ed8; }
.inline-fullscreen-button { width:100%; margin-top:12px; }
.note-box {
  padding:16px; border-radius:18px; background:#f8fbff; border:1px solid #dbe7fa; color: var(--muted); font-size:0.95rem;
}
.note-box strong, .step b, .example-card b, .formula-card b { display:block; margin-bottom:6px; color: var(--text); }
.checklist, .audience-list { margin:14px 0 0; padding:0; list-style:none; display:grid; gap:10px; }
.checklist li, .audience-list li { display:grid; grid-template-columns: auto 1fr; gap:10px; align-items:start; }
.checkmark { width:24px; height:24px; border-radius:999px; display:grid; place-items:center; background: var(--brand-soft); color:#1d4ed8; font-size:0.86rem; font-weight:900; margin-top:2px; }
.section-head { margin-bottom: 16px; }
.section-head p { color: var(--muted); max-width: 70ch; }
.two-col { display:grid; grid-template-columns: minmax(0,1fr) minmax(280px,0.9fr); gap:18px; align-items:start; }
.steps { display:grid; gap:12px; }
.step { padding:16px; border-radius:18px; border:1px solid #dbe7fa; background:#fff; }
.formula-grid, .example-grid, .info-grid, .page-info-grid { display:grid; gap:16px; }
.formula-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.example-grid, .info-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.formula-card, .example-card, .info-card {
  padding:20px; border-radius:22px; background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.98)); border:1px solid rgba(215,227,244,0.98); box-shadow: var(--shadow);
}
.formula-card code {
  display:block; margin-top:8px; padding:12px; border-radius:14px; background:#f8fbff; border:1px solid #dbe7fa; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; white-space: normal;
}
.icon { width:42px; height:42px; border-radius:14px; display:grid; place-items:center; margin-bottom:12px; background: var(--brand-soft); color:#1d4ed8; font-size:1.15rem; }
.sponsored-rail { position: sticky; top: calc(var(--header-offset) + 8px); display:grid; gap:16px; }
.sponsor-card {
  padding:12px; border-radius:20px; background: rgba(255,255,255,0.94); border:1px solid rgba(215,227,244,0.98); box-shadow: var(--shadow);
}
.slot-label { margin-bottom:8px; text-transform:uppercase; letter-spacing:0.08em; font-size:0.74rem; }
.sponsor-slot {
  display:flex; align-items:center; justify-content:center; width:100%; border-radius:16px; border:1px dashed #bfd3ee; background: repeating-linear-gradient(135deg, rgba(219,234,254,0.55), rgba(219,234,254,0.55) 12px, rgba(239,246,255,0.95) 12px, rgba(239,246,255,0.95) 24px); color:#5f738f; text-align:center; font-weight:800; padding:14px;
}
.sponsor-slot span { display:inline-block; font-size:0.84rem; line-height:1.4; }
 .slot-tall { min-height: 620px; }
 .slot-rect { min-height: 300px; }
 .slot-wide { min-height: 180px; }
.slot-medium { min-height: 150px; }
.mobile-slot { display:none; }
.breadcrumbs { display:flex; flex-wrap:wrap; gap:8px; margin-bottom: 16px; color: var(--muted); font-size:0.92rem; }
.breadcrumbs a { color: #1d4ed8; }
.faq-list { display:grid; gap:14px; }
details { border-radius:20px; background:#fff; border:1px solid #dbe7fa; padding:0 18px; }
details[open] { background:#fbfdff; }
summary { list-style:none; cursor:pointer; padding:18px 0; font-weight:800; }
summary::-webkit-details-marker { display:none; }
details p { padding-bottom:18px; color: var(--muted); }
.footer-wrap, .site-footer {
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:14px; padding: 6px 2px 0;
}
.footer, .site-footer p { color: var(--muted); font-size: 0.9rem; }
.footer-actions { display:flex; flex-wrap:wrap; gap:10px; }
.footer-link { min-height:44px; }
.link-list { margin: 12px 0 0; padding-left: 18px; }
.link-list li + li { margin-top: 8px; }
.callout-link { color: #1d4ed8; font-weight: 700; }
.fullscreen {
  position: fixed; inset:0; display:none; align-items:center; justify-content:center; flex-direction:column; text-align:center; padding:24px; background: linear-gradient(180deg, #f8fbff 0%, #eef5fd 100%); z-index:9999;
}
.fullscreen.is-open { display:flex; }
.fullscreen-time { font-size: clamp(4rem, 12vw, 12rem); font-weight:900; line-height:1; letter-spacing:-0.04em; margin-bottom:18px; }
.fullscreen-cost { font-size: clamp(5rem, 16vw, 16rem); font-weight:900; line-height:1; letter-spacing:-0.05em; color:#1d4ed8; margin-bottom:22px; word-break: break-word; }
.fullscreen-meta { font-size: clamp(1.15rem, 2vw, 1.6rem); color: var(--muted); font-weight:800; }
.fullscreen-close { position:absolute; top:18px; right:18px; z-index: 5; }

.fullscreen-title{ position:absolute; top:18px; left:24px; right:24px; text-align:center; font-weight:900; letter-spacing:-0.02em; font-size: clamp(1.25rem, 3.6vw, 2.2rem); color: var(--text); pointer-events:none; }
.fullscreen-title[hidden]{ display:none; }
.fullscreen-controls{ position:absolute; bottom:18px; left:24px; right:24px; display:flex; justify-content:center; gap:12px; flex-wrap:wrap; }
.fullscreen-controls .button{ min-width: 160px; }

.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;
}
#calculator, #how-it-works, #formula, #examples, #use-cases, #faq { scroll-margin-top: var(--header-offset); }

@media (max-width: 1024px) {
  .page-shell, .topbar-inner { width: 100%; max-width: 100%; }
  .hero-grid, .tool-grid, .two-col, .formula-grid, .example-grid, .info-grid, .page-info-grid, .report-grid { grid-template-columns: 1fr; }
  .report-grid { gap: 14px; }
}

@media (max-width: 900px) {
  :root { --header-offset: 84px; }

  
  h1 { font-size: clamp(1.85rem, 7.2vw, 2.65rem); }
  h2 { font-size: clamp(1.25rem, 5.2vw, 1.75rem); }
  .lead { font-size: 0.98rem; }
  .badge { min-height: 32px; padding: 0 10px; font-size: 0.82rem; }
  .keyword-list li { min-height: 32px; padding: 0 10px; font-size: 0.84rem; }

  .topbar-inner { min-height: 68px; flex-wrap: wrap; gap: 12px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav-shell { width: 100%; display: none; padding-top: 6px; }
  .nav-shell.is-open { display: block; }
  .nav { width: 100%; display: grid; gap: 8px; padding: 10px; border-radius: 18px; background: rgba(255,255,255,0.92); border: 1px solid rgba(215,227,244,0.98); }
  .nav a { width: 100%; border-radius: 14px; padding: 12px 14px; background: #f8fbff; }

  .page-shell { padding: 16px 10px 56px; }

  
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .metric-grid .metric:last-child { grid-column: 1 / -1; }

  .person-row { grid-template-columns: 1fr; align-items: stretch; }

  
  .save-row { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .save-row .field { grid-column: 1 / -1; }
  .save-row .button { width: 100%; }

  
  .action-row { display: grid; grid-template-columns: 1fr; }
  .timer-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .remove-person, .button { width: 100%; }
  .keyword-list { display: grid; }

  .display-topline { align-items: flex-start; flex-direction: column; }
  .footer-wrap, .site-footer { align-items: flex-start; }

  .modal { padding: 12px; }
  .modal-dialog { width: 100%; max-height: calc(100% - 24px); }

  .fullscreen-controls { left: 18px; right: 18px; }
  .fullscreen-controls .button { width: 100%; min-width: 0; }
  .fullscreen-title { top: 16px; left: 18px; right: 18px; }
}

@media (max-width: 520px) {
  .page-shell { padding-left: 8px; padding-right: 8px; }
  .hero-card, .content-card, .faq-card, .panel-card, .mini-page-card { padding: 16px; }
  .promo-inline, .report-card { padding: 16px; }
  .modal { padding: 8px; }
  .modal-header { padding: 14px 14px; }
  .modal-body { padding: 14px 14px 16px; }

  
  .data-table { min-width: 460px; }
  .data-table thead th, .data-table tbody td { padding: 10px 10px; font-size: 0.88rem; }
  .data-table thead th:first-child, .data-table tbody td:first-child { white-space: normal; min-width: 170px; }
}

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

.report-card { padding: clamp(18px, 2.6vw, 28px); }
.report-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.report-panel { padding: 18px; }
.insights-summary p { margin: 0 0 10px; }
.report-summary p { margin: 0 0 10px; }
.table-wrap { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-sm); border: 1px solid rgba(215, 227, 244, 0.98); background: var(--card); }
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 520px; }
.data-table thead th {
  text-align: left;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
  background: #f2f7ff;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(215, 227, 244, 0.98);
}
.data-table tbody td {
  padding: 12px 12px;
  border-bottom: 1px solid rgba(215, 227, 244, 0.65);
  vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.muted-cell { color: var(--muted); font-weight: 700; }
.action-cell { display: flex; gap: 8px; flex-wrap: wrap; }
.report-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.save-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: end;
  margin-top: 18px;
}

.save-row-top {
  margin-top: 0;
  margin-bottom: 16px;
}
.save-name-field { width: 100%; }
.small-button { min-height: 38px; padding: 0 12px; border-radius: 12px; font-size: 0.9rem; }
.detail-title { margin: 12px 0 10px; }
.detail-panels { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 10px; }
.detail-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 18px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, 0.45); }
.modal-dialog {
  position: relative;
  width: min(980px, calc(100% - 28px));
  max-height: calc(100% - 40px);
  overflow: auto;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid rgba(215, 227, 244, 0.98);
  box-shadow: 0 30px 80px rgba(2, 6, 23, 0.25);
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(215, 227, 244, 0.98);
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}
.modal-body { padding: 16px 18px 18px; }
.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(215, 227, 244, 0.98);
  background: #f1f6fd;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  font-size: 1.25rem;
  line-height: 1;
}
.icon-button:hover { transform: translateY(-1px); }
.empty-state { padding: 14px 0; }
.muted.small { font-size: 0.95rem; color: var(--muted); }

.note-box a,
.callout-link {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 900px) {
  .report-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 100%;
  }

  .report-grid > * {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .report-panel,
  .table-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .brand {
    max-width: calc(100% - 58px);
    gap: 10px;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    padding: 7px;
  }

  .brand-text {
    font-size: 1rem;
    line-height: 1.15;
  }

  .brand small {
    line-height: 1.25;
    max-width: 30ch;
  }

  .tool-panel,
  .live-panel,
  .report-panel,
  .display-card,
  .display-item,
  .metric,
  .summary-box,
  .note-box,
  .step,
  .formula-card,
  .example-card,
  .info-card {
    padding: 16px;
  }

  .section-head p,
  .site-footer p {
    max-width: none;
  }

  .report-actions,
  .detail-actions,
  .footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .report-actions .button,
  .detail-actions .button,
  .footer-actions .button {
    width: 100%;
  }

  .fullscreen {
    padding: 72px 14px 118px;
  }

  .fullscreen-time {
    font-size: clamp(2.5rem, 15vw, 5.5rem);
    margin-bottom: 12px;
  }

  .fullscreen-cost {
    font-size: clamp(3rem, 18vw, 6.4rem);
    margin-bottom: 16px;
  }

  .fullscreen-meta {
    max-width: 22ch;
    margin: 0 auto;
    line-height: 1.35;
    font-size: clamp(0.98rem, 4.3vw, 1.2rem);
  }
}

@media (max-width: 560px) {
  :root {
    --radius: 20px;
    --radius-sm: 16px;
  }

  .topbar-inner {
    min-height: 64px;
    padding: 10px 10px 12px;
  }

  .brand small {
    display: none;
  }

  .nav {
    padding: 8px;
    gap: 7px;
  }

  .nav a {
    padding: 11px 12px;
  }

  .metric-grid,
  .save-row,
  .timer-actions,
  .report-actions,
  .detail-actions,
  .footer-actions {
    grid-template-columns: 1fr;
  }

  .metric-grid .metric:last-child {
    grid-column: auto;
  }

  .hero-card,
  .content-card,
  .faq-card,
  .panel-card,
  .mini-page-card,
  .promo-inline,
  .report-card,
  .tool-panel,
  .live-panel,
  .report-panel,
  .display-card,
  .display-item,
  .metric,
  .summary-box,
  .note-box,
  .step,
  .formula-card,
  .example-card,
  .info-card {
    padding: 14px;
  }

  .button,
  .remove-person {
    min-height: 46px;
  }

  .breadcrumbs {
    font-size: 0.86rem;
  }

  .modal-dialog {
    width: calc(100% - 16px);
    max-height: calc(100% - 16px);
    border-radius: 18px;
  }

  .fullscreen {
    padding: 66px 12px 112px;
  }

  .fullscreen-close {
    top: 12px;
    right: 12px;
  }

  .fullscreen-title {
    top: 12px;
    left: 14px;
    right: 14px;
  }

  .data-table {
    min-width: 430px;
  }

  .data-table thead th:first-child,
  .data-table tbody td:first-child {
    min-width: 150px;
  }
}

@media (max-width: 380px) {
  .brand {
    gap: 8px;
  }

  .brand-text {
    font-size: 0.95rem;
  }

  .menu-toggle {
    width: 44px;
    min-width: 44px;
    min-height: 44px;
  }

  .page-shell {
    padding-left: 6px;
    padding-right: 6px;
  }

  .hero-card,
  .content-card,
  .faq-card,
  .panel-card,
  .mini-page-card,
  .promo-inline,
  .report-card,
  .tool-panel,
  .live-panel,
  .report-panel,
  .display-card,
  .display-item,
  .metric,
  .summary-box,
  .note-box,
  .step,
  .formula-card,
  .example-card,
  .info-card {
    padding: 12px;
  }

  .data-table {
    min-width: 400px;
  }

  .fullscreen {
    padding: 62px 10px 104px;
  }

  .fullscreen-time {
    font-size: clamp(2.2rem, 14vw, 4.2rem);
  }

  .fullscreen-cost {
    font-size: clamp(2.6rem, 15vw, 5rem);
  }

  .fullscreen-controls {
    left: 12px;
    right: 12px;
    bottom: 12px;
    gap: 8px;
  }
}

.confirm-dialog {
  width: min(560px, calc(100% - 28px));
}

.confirm-body {
  display: grid;
  gap: 14px;
}

.confirm-copy {
  font-size: 1.02rem;
  font-weight: 700;
}

.confirm-note {
  margin-top: -4px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.confirm-actions .button {
  width: 100%;
}

@media (min-width: 640px) {
  .confirm-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .confirm-actions .button:last-child {
    grid-column: 1 / -1;
  }
}


.nav a.lang-link {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  color: var(--text);
}
.nav a.lang-link:hover,
.nav a.lang-link:focus-visible {
  background: rgba(37,99,235,0.12);
}
