:root {
  --ink: #102b2d;
  --muted: #5f7273;
  --paper: #f7f3ea;
  --white: #fffdf8;
  --teal: #0c6667;
  --teal-deep: #073f43;
  --mint: #b9ded4;
  --lime: #d9ea83;
  --orange: #ed7b49;
  --line: rgba(16,43,45,.15);
  --shadow: 0 22px 60px rgba(7,63,67,.12);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.eyebrow { margin: 0 0 12px; color: var(--teal); font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.kicker { max-width: 680px; color: var(--muted); font-size: 1.08rem; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247,243,234,.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { order: 1; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 850; letter-spacing: -.03em; }
.brand-logo-wrap { width: 76px; height: 40px; display: grid; place-items: center; padding: 5px 8px; border-radius: 10px; background: var(--teal-deep); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.brand-logo { width: 100%; height: 100%; object-fit: contain; display: block; }
.nav-links { order: 2; margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .93rem; font-weight: 700; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-toggle { order: 4; display: none; border: 0; background: transparent; font-size: 1.5rem; }
.language-select { order: 3; min-height: 40px; margin-left: 2px; padding: 0 32px 0 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: .82rem; font-weight: 800; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; background: var(--teal); color: white; text-decoration: none; font-weight: 800; transition: transform .18s, background .18s; }
.button:hover { transform: translateY(-2px); background: var(--teal-deep); }
.button.secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button.small { min-height: 40px; padding: 0 16px; font-size: .88rem; }
.nav-links a.button { background: var(--lime); border-color: #b5cc4b; color: var(--teal-deep); box-shadow: 0 5px 14px rgba(8,47,50,.14); }
.nav-links a.button:hover, .nav-links a.button[aria-current="page"] { background: #c8df5e; color: #082f32; }

.hero { padding: 90px 0 56px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.045em; }
h1 { margin: 0; max-width: 760px; font-size: clamp(3rem, 6vw, 6.7rem); }
h2 { margin: 0; font-size: clamp(2.1rem, 4vw, 4rem); }
h3 { margin: 0; font-size: 1.35rem; }
.hero p { max-width: 670px; margin: 28px 0; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.trust-row span::before { content: "✓"; color: var(--teal); margin-right: 7px; }

.film-stage { position: relative; min-height: 530px; display: grid; place-items: center; }
.film-roll { position: relative; width: min(440px, 90vw); height: 310px; transform: rotate(-8deg); }
.film-sheet { position: absolute; inset: 34px 0 0 64px; border-radius: 38% 8% 8% 38%; background: linear-gradient(120deg, rgba(255,255,255,.88), rgba(185,222,212,.42) 45%, rgba(12,102,103,.25)); border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow); overflow: hidden; }
.film-sheet::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(98deg, transparent 0 44px, rgba(255,255,255,.34) 45px 46px); }
.film-core { position: absolute; left: 0; top: 23px; width: 112px; height: 112px; border-radius: 50%; background: radial-gradient(circle, var(--paper) 0 24%, #b88959 25% 43%, #d4b18b 44% 55%, #a36f43 56% 100%); box-shadow: 0 18px 40px rgba(16,43,45,.25); }
.spec-chip { position: absolute; padding: 12px 15px; border-radius: 14px; background: var(--white); box-shadow: 0 12px 30px rgba(16,43,45,.12); font-size: .83rem; font-weight: 800; }
.chip-a { top: 35px; right: 10px; }
.chip-b { bottom: 40px; left: 20px; }
.chip-c { bottom: 8px; right: 70px; background: var(--lime); }

.metric-strip { margin: 0 0 90px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--teal-deep); color: white; border-radius: var(--radius); overflow: hidden; }
.metric { padding: 30px; border-right: 1px solid rgba(255,255,255,.14); }
.metric:last-child { border: 0; }
.metric strong { display: block; color: var(--lime); font-size: 1.7rem; line-height: 1; }
.metric span { display: block; margin-top: 8px; color: rgba(255,255,255,.7); font-size: .85rem; }

.section { padding: 86px 0; }
.section.tint { background: #e9f1ea; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 42px; }
.section-head .kicker { margin: 0; }
.application-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.application-card { min-height: 330px; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; transition: transform .2s, box-shadow .2s; }
.application-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.application-card:nth-child(2) { background: var(--mint); }
.application-card:nth-child(3) { background: var(--lime); }
.application-card:nth-child(4) { background: #f2c5aa; }
.app-number { font-weight: 900; opacity: .5; }
.application-card p { color: rgba(16,43,45,.72); }
.application-card a { font-weight: 850; text-decoration: none; }

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card { position: relative; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); overflow: hidden; }
.product-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--teal); }
.product-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.tag { padding: 5px 9px; border-radius: 999px; background: #edf2eb; color: var(--teal-deep); font-size: .76rem; font-weight: 800; }
.product-card p { color: var(--muted); font-size: .93rem; }
.product-card .card-link { border: 0; padding: 0; background: transparent; color: var(--teal); font-weight: 850; }
.availability { display: inline-flex; align-items: center; gap: 7px; color: var(--teal); font-size: .78rem; font-weight: 800; }
.availability::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2cbb84; box-shadow: 0 0 0 4px rgba(44,187,132,.15); }

.filters { display: grid; grid-template-columns: 1.4fr repeat(3, .8fr); gap: 12px; margin: 30px 0; }
.field, .filters input, .filters select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--ink); }
.result-count { margin-bottom: 18px; color: var(--muted); font-size: .9rem; }

.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.process-step { min-height: 220px; padding: 28px; background: var(--white); border-right: 1px solid var(--line); }
.process-step:last-child { border: 0; }
.process-step strong { display: block; margin-bottom: 42px; color: var(--orange); }
.process-step p { color: var(--muted); font-size: .92rem; }

.callout { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; padding: 48px; border-radius: var(--radius); background: var(--teal-deep); color: white; }
.callout h2 { max-width: 760px; }
.callout p { color: rgba(255,255,255,.7); }
.callout .button { background: var(--lime); color: var(--ink); }

.page-hero { padding: 80px 0 30px; }
.page-hero h1 { max-width: 900px; font-size: clamp(3rem, 6vw, 6rem); }
.page-hero .kicker { margin-top: 22px; }
.split { display: grid; grid-template-columns: .78fr 1.22fr; gap: 72px; }
.aside-card { position: sticky; top: 104px; padding: 28px; border-radius: var(--radius); background: var(--teal-deep); color: white; }
.aside-card p { color: rgba(255,255,255,.7); }
.application-detail { padding: 32px 0; border-top: 1px solid var(--line); }
.application-detail:first-child { border-top: 0; }
.application-detail ul { padding-left: 20px; color: var(--muted); }

.rfq-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 42px; align-items: start; }
.rfq-panel { padding: 34px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 7px; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-size: .82rem; font-weight: 800; }
.form-row input, .form-row select, .form-row textarea { min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.form-row textarea { min-height: 120px; resize: vertical; }
.form-note { color: var(--muted); font-size: .8rem; }
.success-box { display: none; margin-top: 20px; padding: 20px; border-radius: 14px; background: #e4f4ed; }
.success-box.show { display: block; }
.rfq-output { width: 100%; min-height: 220px; margin-top: 10px; padding: 14px; border: 1px solid rgba(16,43,45,.15); border-radius: 10px; background: white; }
.rfq-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.button.secondary { border-color: var(--teal); background: transparent; color: var(--teal); }
.button.secondary:hover { background: var(--teal); color: white; }
.contact-card { margin-top: 24px; padding: 24px; scroll-margin-top: 90px; border-radius: var(--radius); background: var(--teal-deep); color: white; }
.contact-card .eyebrow { color: #d9ea83; }
.contact-card h3 { margin-bottom: 8px; }
.contact-card p { color: rgba(255,255,255,.72); }
.contact-details { display: grid; gap: 13px; margin: 20px 0 22px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.16); }
.contact-details div { display: grid; gap: 3px; }
.contact-details span { color: #d9ea83; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-details a, .contact-details strong, .contact-details address { color: white; font-style: normal; font-weight: 700; line-height: 1.55; overflow-wrap: anywhere; }
.wechat-qr { display: block; width: min(100%, 280px); margin: 0 auto 16px; border-radius: 14px; background: white; }

.notice { margin: 34px 0 0; padding: 18px 20px; border-left: 4px solid var(--orange); background: rgba(237,123,73,.09); color: var(--muted); font-size: .9rem; }

.calculator-hero { padding-bottom: 24px; }
.calculator-section { padding-top: 34px; }
.calculator-layout { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: start; }
.calculator-panel, .calculator-results { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 16px 45px rgba(7,63,67,.08); }
.calculator-results { position: sticky; top: 98px; background: var(--teal-deep); color: white; }
.calculator-results .eyebrow { color: var(--lime); }
.calculator-results h2 { margin-bottom: 24px; font-size: 2.25rem; }
.mobile-results-heading { display: block; }
.mobile-edit-link, .mobile-calc-bar { display: none; }
.calculator-heading, .layer-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.calculator-heading { margin-bottom: 24px; }
.calculator-heading h2 { font-size: 2.4rem; }
.calculator-version { padding: 6px 10px; border-radius: 999px; background: #edf2eb; color: var(--teal-deep); font-size: .75rem; font-weight: 850; }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-fields > label, .layer-row label { display: grid; gap: 6px; color: var(--muted); font-size: .79rem; font-weight: 800; }
.input-unit { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 48px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: white; }
.input-unit:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(12,102,103,.12); }
.input-unit input { width: 100%; min-width: 0; padding: 11px 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font-weight: 750; }
.input-unit b { padding: 0 12px; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.calc-help { margin: 12px 0 24px; color: var(--muted); font-size: .8rem; }
.layer-heading { margin: 22px 0 12px; }
.layer-heading .eyebrow { margin-bottom: 6px; }
.layer-list { display: grid; gap: 10px; }
.layer-row { display: grid; grid-template-columns: auto 1fr 1fr 1fr auto; gap: 10px; align-items: end; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #f8faf5; }
.layer-row select { width: 100%; min-height: 48px; padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); }
.layer-number { align-self: center; min-width: 52px; color: var(--teal); font-size: .78rem; font-weight: 900; }
.remove-layer { width: 42px; height: 48px; border: 1px solid rgba(237,123,73,.35); border-radius: 11px; background: rgba(237,123,73,.08); color: #a34322; font-size: 1.3rem; font-weight: 900; }
.calculator-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.calc-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc-metric { min-height: 112px; padding: 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 14px; background: rgba(255,255,255,.07); }
.calc-metric.featured { grid-column: 1 / -1; background: var(--lime); color: var(--ink); }
.calc-metric span, .calc-metric small { display: block; color: inherit; opacity: .72; font-size: .75rem; font-weight: 750; }
.calc-metric strong { display: inline-block; margin: 8px 5px 0 0; color: inherit; font-size: 2rem; line-height: 1; }
.calc-metric.featured strong { font-size: 3rem; }
.calc-metric small { display: inline; }
.reverse-result, .formula-note { margin-top: 14px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.08); }
.reverse-result span { display: block; color: rgba(255,255,255,.65); font-size: .75rem; font-weight: 800; }
.reverse-result strong { display: block; margin-top: 4px; color: var(--lime); }
.formula-note p { margin: 6px 0 0; color: rgba(255,255,255,.68); font-size: .8rem; }
.history-block { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.15); }
.history-block summary { color: white; font-size: 1rem; font-weight: 850; cursor: pointer; }
.history-inner { position: relative; padding-top: 12px; }
.history-inner > .text-button { position: absolute; top: -30px; right: 24px; }
.text-button { border: 0; background: transparent; color: var(--lime); font-weight: 800; }
.history-list { display: grid; gap: 8px; }
.history-item { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.07); }
.history-item strong { color: var(--lime); }
.history-item span { color: rgba(255,255,255,.78); font-size: .78rem; text-align: right; }
.history-item small { grid-column: 1 / -1; color: rgba(255,255,255,.45); }
.empty-history { color: rgba(255,255,255,.58); font-size: .85rem; }

.site-footer { padding: 58px 0 28px; background: #082f32; color: white; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 40px; }
.footer-grid p, .footer-grid a { color: rgba(255,255,255,.64); }
.footer-links { display: grid; gap: 8px; }
.footer-links a { text-decoration: none; }
.footer-bottom { margin-top: 42px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: rgba(255,255,255,.45); font-size: .78rem; }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; left: 20px; right: 20px; top: 67px; margin-left: 0; padding: 20px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); flex-direction: column; align-items: stretch; }
  .nav-links.open { display: flex; }
  .language-select { margin-left: auto; max-width: 132px; }
  .hero-grid, .split, .rfq-layout, .calculator-layout { grid-template-columns: 1fr; }
  .hero { padding-top: 65px; }
  .film-stage { min-height: 410px; }
  .metrics, .application-grid, .product-grid, .process { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2), .process-step:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2), .process-step:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.14); }
  .filters { grid-template-columns: 1fr 1fr; }
  .aside-card { position: static; }
  .calculator-results { position: static; }
  .callout { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  html, body { overflow-x: hidden; }
  .shell { width: min(100% - 26px, 1180px); }
  .site-header .nav { min-height: 64px; gap: 10px; }
  .brand-logo-wrap { width: 58px; height: 34px; padding: 4px 6px; }
  .brand > span:last-child { display: none; }
  .nav-toggle { width: 44px; height: 44px; padding: 0; border-radius: 10px; background: var(--white); color: var(--teal-deep); }
  .language-select { max-width: 106px; min-height: 44px; padding-left: 10px; font-size: .74rem; }
  .nav-links { top: 61px; left: 13px; right: 13px; max-height: calc(100vh - 78px); overflow-y: auto; gap: 4px; padding: 12px; }
  .nav-links a { display: flex; min-height: 48px; align-items: center; padding: 0 12px; border-radius: 10px; }
  .nav-links a:hover, .nav-links a[aria-current="page"] { background: #edf2eb; }
  .nav-links a.button, .nav-links a.button[aria-current="page"] { justify-content: center; margin-top: 4px; background: var(--lime); color: var(--teal-deep); }
  .hero { padding: 44px 0 30px; }
  h1 { font-size: 2.85rem; }
  .hero p { margin: 20px 0; font-size: 1.02rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .button { width: 100%; }
  .trust-row { gap: 10px 16px; margin-top: 24px; font-size: .78rem; }
  .film-stage { min-height: 270px; }
  .film-roll { transform: scale(.68) rotate(-8deg); }
  .spec-chip { padding: 9px 11px; font-size: .72rem; }
  .metrics, .application-grid, .product-grid, .process, .filters, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .metric-strip { margin-bottom: 48px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric { min-height: 128px; padding: 20px 16px; border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric strong { font-size: 1.45rem; }
  .process-step { min-height: 180px; border-right: 0; border-bottom: 1px solid rgba(16,43,45,.12); }
  .process-step strong { margin-bottom: 24px; }
  .section { padding: 50px 0; }
  .section-head { align-items: start; flex-direction: column; gap: 16px; margin-bottom: 26px; }
  .section-head h2, .callout h2 { font-size: 2.2rem; }
  .application-card { min-height: 220px; padding: 22px; }
  .product-card { padding: 20px; }
  .callout { padding: 24px; gap: 22px; }
  .callout .button { width: 100%; }
  .page-hero { padding: 44px 0 18px; }
  .page-hero h1 { font-size: 2.7rem; }
  .page-hero .kicker { margin-top: 16px; font-size: .98rem; }
  .filters { grid-template-columns: 1fr 1fr; gap: 9px; margin: 18px 0; }
  .filters #product-search, .filters #filter-brand { grid-column: 1 / -1; }
  .filters input, .filters select { min-height: 54px; }
  .split { gap: 28px; }
  .aside-card { padding: 22px; }
  .aside-card .button { width: 100%; }
  .application-detail { padding: 25px 0; }
  .application-detail h2 { font-size: 2rem; }
  .application-detail ul { padding-left: 18px; }
  .rfq-layout { gap: 28px; }
  .rfq-panel { order: -1; padding: 20px; }
  .form-row input, .form-row select { min-height: 54px; }
  .form-row textarea { min-height: 135px; }
  #rfq-form .button { width: 100%; min-height: 54px; }
  .rfq-actions { display: grid; grid-template-columns: 1fr; }
  .rfq-actions .button { width: 100%; }
  .contact-card { padding: 20px; }
  .wechat-qr { width: min(100%, 240px); }
  .form-row.full { grid-column: auto; }
  .site-footer { padding: 42px 0 24px; }
  .footer-grid { gap: 28px; }
  .footer-links a { min-height: 42px; display: flex; align-items: center; }
  .footer-bottom { margin-top: 28px; }
  .calculator-page { padding-bottom: 82px; }
  .calculator-hero { padding: 34px 0 12px; }
  .calculator-hero h1 { font-size: 2.55rem; }
  .calculator-hero .kicker { margin-top: 14px; font-size: .98rem; }
  .calculator-section { padding: 18px 0 38px; }
  .calculator-layout { display: flex; flex-direction: column; gap: 16px; }
  .calculator-panel, .calculator-results { width: 100%; padding: 20px; border-radius: 18px; }
  .calculator-results { order: -1; }
  .calculator-results h2 { margin-bottom: 0; font-size: 1.8rem; }
  .mobile-results-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
  .mobile-edit-link { display: inline-flex; flex: none; min-height: 42px; align-items: center; padding: 0 12px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: var(--lime); text-decoration: none; font-size: .76rem; font-weight: 850; }
  .calculator-heading { align-items: start; }
  .calculator-heading h2 { font-size: 2rem; }
  .calc-fields { grid-template-columns: 1fr; }
  .input-unit { min-height: 54px; }
  .calc-metrics { grid-template-columns: 1fr 1fr; }
  .calc-metric { min-height: 92px; padding: 12px; }
  .calc-metric.featured { grid-column: 1 / -1; }
  .calc-metric strong { font-size: 1.55rem; }
  .calc-metric.featured strong { font-size: 2.65rem; }
  .layer-row { grid-template-columns: 1fr 1fr; align-items: end; }
  .layer-number { grid-column: 1 / -1; }
  .remove-layer { width: 100%; }
  .calculator-actions #calculate-roll { display: none; }
  .calculator-actions .button.secondary { flex: 1 1 130px; }
  .mobile-calc-bar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: block; padding: 10px 13px calc(10px + env(safe-area-inset-bottom)); background: rgba(247,243,234,.95); border-top: 1px solid var(--line); backdrop-filter: blur(16px); }
  .mobile-calc-bar .button { width: 100%; min-height: 54px; box-shadow: 0 8px 24px rgba(7,63,67,.22); }
  .history-block { margin-top: 18px; }
  .history-item { grid-template-columns: 1fr; }
  .history-item span { text-align: left; }
  .history-item small { grid-column: auto; }
}
