/* weldtools.pl – arkusz stylów, wersja 3 (12.11.2026): „stół roboczy”.
   Paleta: grafit + pomarańcz (bez zmian). Układ: stały nagłówek, pasek narzędzi,
   na dużym ekranie trzy kolumny na całą wysokość okna: Dane | Wynik | Ściąga. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/Inter-Regular.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/Inter-Medium.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/Inter-SemiBold.woff') format('woff'); }
@font-face { font-family: 'Inter'; font-style: italic; font-weight: 400; font-display: swap; src: url('../fonts/Inter-Italic.woff') format('woff'); }

/* =========================== tokeny =========================== */
:root {
  --ink: #14171C;
  --body: #2E333B;
  --text2: #4F5662;
  --text3: #666E7A;
  --border-input: #8A847B;
  --line: #E4E0DA;
  --canvas: #EEEBE6;
  --surface: #FFFFFF;
  --soft: #F7F5F2;
  --chip: #E6E2DC;
  --primary: #B84A0C;
  --primary-hover: #9A3E0A;
  --tint: #FFF1E8;
  --halo: #FCD9C2;
  --band-outer: #F6D9C6;
  --band-inner: #F0A06A;
  --success: #177245; --success-bg: #E6F4EC; --success-text: #0F5132;
  --warn: #9A5B00; --warn-bg: #FDF3E3; --warn-line: #EBCB95; --warn-text: #6E4100;
  --error: #C0352B; --error-bg: #FBEAE8; --error-text: #8E2219;
  --accent: #F26B1D;
  --accent-hi: #FF8A3D;
  --graphite: #1B1E23;
  --graphite-2: #23272D;
  --graphite-3: #2C3138;
  --graphite-line: #353A44;
  --r-sm: 8px; --r-md: 10px; --r-lg: 14px;
  --field-h: 48px;
  --head-h: 56px;
  --strip-h: 48px;
  --gap: 12px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}
@media (min-width: 900px) { :root { --field-h: 42px; } }

/* ciemne obszary przedefiniowują tokeny – komponenty dopasowują się same */
.site-header, .strip, .hero, .result, .quick-out, .drawer-head {
  --ink: #F1F2F4; --body: #D5D8DD; --text2: #A9AFB8; --text3: #8D939D;
  --surface: var(--graphite); --canvas: var(--graphite-2); --soft: var(--graphite-2); --chip: var(--graphite-3);
  --line: var(--graphite-line); --border-input: #4A505B;
  --primary: var(--accent-hi); --primary-hover: #FFA766; --tint: #3A2A20; --halo: rgba(242, 107, 29, .35);
  --band-outer: #4A3628; --band-inner: #C8642A;
  --success: #5FCB8E; --success-bg: #173A28; --success-text: #8FE0B1;
  --error: #FF7A6E; --error-bg: #46201D; --error-text: #FFB0A8;
  --warn: #F2B35E; --warn-bg: #3D2F18; --warn-line: #6B5226; --warn-text: #F6CF8F;
  color: var(--ink);
}

/* =========================== podstawy =========================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  font-feature-settings: 'tnum' 1;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
svg { flex: none; }
i { font-style: italic; }
a { color: var(--primary); text-underline-offset: 2px; }
a:hover { color: var(--primary-hover); }
h1, h2, h3 { margin: 0; line-height: 1.25; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
* { scrollbar-width: thin; scrollbar-color: #C9C3BB transparent; }
.result, .strip { scrollbar-color: #4A505B transparent; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 10px; color: #fff; }
.muted { color: var(--text2); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.print-only { display: none; }
.strong { font-weight: 600; }

/* =========================== nagłówek =========================== */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--graphite); }
.header-in { height: var(--head-h); padding: 0 16px; display: flex; align-items: center; gap: 20px; }
@media (min-width: 900px) { .header-in { padding: 0 20px; } }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; flex: none; min-height: 44px; }
.brand:hover { color: var(--ink); }
.brand .logo { border-radius: 7px; }
.wordmark { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.wordmark .dot { color: var(--accent); }
.wordmark .tld { font-weight: 400; color: var(--text2); }

.main-nav { display: none; align-self: stretch; gap: 4px; font-size: 14px; font-weight: 500; }
.main-nav a { display: flex; align-items: center; padding: 0 12px; color: var(--text2); text-decoration: none; box-shadow: inset 0 -2px 0 transparent; }
.main-nav a:hover { color: var(--ink); }
.main-nav a[aria-current='page'] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
@media (min-width: 700px) { .main-nav { display: flex; } }

.lang { display: flex; padding: 3px; background: var(--chip); border-radius: var(--r-sm); flex: none; margin-left: auto; }
.lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 32px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--text2); text-decoration: none; }
.lang a[aria-current='true'] { background: #3F444E; color: #fff; font-weight: 600; }
.lang a:hover { color: var(--ink); }

.header-search { flex: 0 1 440px; margin-left: auto; display: none; }
.header-search + .lang { margin-left: 0; }
@media (min-width: 900px) { .header-search { display: block; } }

/* nagłówek narzędzia na telefonie */
.tool-bar { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.icon-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--r-sm); background: transparent; color: var(--ink); text-decoration: none; flex: none; }
.icon-btn:hover { background: var(--canvas); color: var(--ink); }
.tool-bar-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-tool .header-in { padding: 0 4px; gap: 4px; }
.page-tool .brand, .page-tool .header-in > .lang, .page-tool .main-nav { display: none; }
@media (min-width: 900px) {
  .page-tool .header-in { padding: 0 20px; gap: 20px; }
  .page-tool .brand, .page-tool .header-in > .lang, .page-tool .main-nav { display: flex; }
  .tool-bar { display: none; }
}

/* =========================== pasek narzędzi =========================== */
.strip { background: var(--graphite-2); border-top: 1px solid var(--graphite-line); border-bottom: 1px solid #111317; }
.strip-in { display: flex; align-items: stretch; height: var(--strip-h); padding: 0 12px; overflow-x: auto; scrollbar-width: none; }
.strip-in::-webkit-scrollbar { display: none; }
.strip-group { display: flex; align-items: stretch; flex: none; }
.strip-group + .strip-group { margin-left: 9px; padding-left: 9px; position: relative; }
.strip-group + .strip-group::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--graphite-line); }
.strip-link { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--text2); font-size: 14px; font-weight: 500; white-space: nowrap; text-decoration: none; box-shadow: inset 0 -2px 0 transparent; }
.strip-link svg { color: var(--text3); }
.strip-link:hover { color: var(--ink); background: var(--graphite-3); }
.strip-link[aria-current='page'] { color: #fff; box-shadow: inset 0 -3px 0 var(--accent); background: var(--graphite-3); }
.strip-link[aria-current='page'] svg { color: var(--accent); }
@media (min-width: 900px) { .strip-in { padding: 0 8px; } }
@media (min-width: 1200px) { .strip-in { justify-content: flex-start; } }

/* =========================== wyszukiwarka =========================== */
.search { position: relative; }
.search-box { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 8px 0 12px; background: var(--surface); border: 1px solid var(--border-input); border-radius: var(--r-md); color: var(--text2); }
.site-header .search-box, .hero .search-box { background: var(--graphite-2); border-color: var(--graphite-line); }
.search-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--halo); }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font-size: 15px; color: var(--ink); outline: none; }
.search-box input::placeholder { color: var(--text3); opacity: 1; }
.search-box input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search kbd { flex: none; padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-size: 12px; color: var(--text2); }
.search--lg .search-box { height: 54px; padding: 0 10px 0 16px; border-radius: var(--r-lg); }
.search--lg .search-box input { font-size: 17px; }
.search-pop {
  position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; overflow: hidden;
  background: #fff; border: 1px solid #E4E0DA; border-radius: var(--r-lg); box-shadow: 0 18px 44px -12px rgba(20, 23, 28, .35);
  --ink: #14171C; --text2: #4F5662; --text3: #666E7A; --line: #E4E0DA; --canvas: #F4F2EF; --tint: #FFF1E8; --primary: #B84A0C; color: var(--ink);
}
.search-list { list-style: none; margin: 0; padding: 4px 0; max-height: min(60vh, 420px); overflow-y: auto; }
.search-opt a { display: flex; align-items: center; gap: 12px; padding: 10px 16px; color: var(--ink); text-decoration: none; }
.search-opt a:hover, .search-opt[aria-selected='true'] a { background: var(--tint); }
.search-opt .tile { width: 36px; height: 36px; border-radius: 9px; }
.search-opt-name { display: block; font-size: 15px; font-weight: 600; }
.search-opt-cat { display: block; font-size: 13px; color: var(--text3); }
.search-none { padding: 16px; font-size: 14px; color: var(--text2); }
.search-foot { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 16px; border-top: 1px solid var(--line); background: var(--canvas); font-size: 12px; color: var(--text2); }
.search-foot .count { margin-left: auto; }
@media (hover: none), (pointer: coarse) { .search kbd, .search-foot .keys { display: none; } }

.tile { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--tint); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }

/* =========================== boczne menu narzędzi =========================== */
.app { display: flex; align-items: stretch; min-height: calc(100vh - var(--head-h)); }
.sidenav { display: none; }
@media (min-width: 900px) {
  .sidenav { display: block; flex: none; width: 64px; background: var(--graphite); border-top: 1px solid var(--graphite-line); }
  .sidenav-in { position: sticky; top: var(--head-h); padding: 10px 0 16px; }
}
@media (min-width: 1100px) { .sidenav { width: 236px; } }
.sidenav .nav-group { padding: 16px 20px 6px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: #8D939D; }
.sidenav .nav-group:first-child { padding-top: 8px; }
.sidenav .nav-link { display: flex; align-items: center; gap: 12px; min-height: 42px; margin: 1px 10px; padding: 0 10px; background: transparent; border: 0; border-radius: var(--r-sm); color: #C9CDD4; font-size: 14px; font-weight: 500; text-decoration: none; }
.sidenav .nav-link svg { color: #8D939D; }
.sidenav .nav-link span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidenav .nav-link:hover { background: var(--graphite-2); color: #fff; }
.sidenav .nav-link[aria-current='page'] { background: var(--graphite-3); color: #fff; font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.sidenav .nav-link[aria-current='page'] svg { color: var(--accent); }
@media (min-width: 900px) and (max-width: 1099px) {
  .sidenav .nav-group { height: 1px; margin: 10px 16px; padding: 0; background: var(--graphite-line); font-size: 0; color: transparent; overflow: hidden; }
  .sidenav .nav-group:first-child { background: transparent; margin-top: 0; }
  .sidenav .nav-link { justify-content: center; padding: 0; margin: 1px 8px; }
  .sidenav .nav-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* =========================== strona narzędzia =========================== */
.tool-main { flex: 1 1 auto; min-width: 0; padding: 14px 16px 120px; }
@media (min-width: 900px) { .tool-main { padding: 16px 20px 32px; } }
.tool-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 14px; margin-bottom: 10px; }
.how-link { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; min-height: 32px; padding: 0 10px; border-radius: var(--r-sm); font-size: 14px; font-weight: 500; color: var(--text2); text-decoration: none; align-self: center; }
.how-link svg { color: var(--primary); }
.how-link:hover { background: var(--surface); color: var(--ink); }
.result .assume { display: none; }
.tool-head h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; color: var(--ink); }
@media (min-width: 900px) { .tool-head h1 { font-size: 24px; letter-spacing: -0.02em; } }
.crumbs { display: none; flex-basis: 100%; font-size: 13px; color: var(--text3); }
.crumbs a { color: var(--body); text-decoration: underline; text-decoration-color: var(--border-input); }
.crumbs a:hover { text-decoration-color: currentColor; }
@media (min-width: 900px) { .crumbs { display: block; } }
.scope { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--primary-hover); font-size: 13px; font-weight: 500; }

/* tryby obliczeń – zakładki na całą szerokość stołu */
.modes { display: flex; flex-wrap: nowrap; gap: 0 4px; overflow-x: auto; scrollbar-width: none; margin-bottom: var(--gap); border-bottom: 1px solid #D8D3CC; }
.modes::-webkit-scrollbar { display: none; }
.tab { flex: none; position: relative; min-height: 42px; padding: 0 14px; border: 0; background: transparent; font-size: 14px; font-weight: 500; color: var(--text2); white-space: nowrap; border-radius: var(--r-sm) var(--r-sm) 0 0; }
.tab:hover { color: var(--ink); background: rgba(20, 23, 28, .04); }
.tab[aria-selected='true'] { color: var(--ink); font-weight: 600; background: var(--surface); box-shadow: inset 0 -3px 0 var(--accent); }
.tool:not(:has(.modes)) { padding-top: 0; }
/* zakładki jako wyraźne przyciski z podpisem – widać od razu, że są inne tryby */
.modes-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; margin-bottom: var(--gap); }
.modes-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); }
.modes-row .modes { display: flex; gap: 4px; margin: 0; padding: 4px; max-width: 100%; border: 1px solid #D8D3CC; border-bottom: 1px solid #D8D3CC; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(20, 23, 28, .06); }
.modes-row .tab { min-height: 40px; padding: 0 16px; border-radius: 9px; color: var(--body); font-weight: 500; }
.modes-row .tab:hover { background: var(--soft); color: var(--ink); }
.modes-row .tab[aria-selected='true'] { background: var(--graphite); color: #fff; font-weight: 600; box-shadow: inset 0 -3px 0 var(--accent); }
@media (max-width: 899px) { .modes-label { display: none; } .modes-row .modes { width: 100%; } }
@media (min-width: 1200px) and (min-height: 620px) { .modes-row { flex: none; } }

/* ---------- stół: kolumny ---------- */
.tool-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-items: start; }
.tool-col { display: contents; }
.tool-col > .inputs { order: 1; }
.tool-grid > .result { order: 2; }
.tool-col > .tool-aside { order: 3; }
.tool-grid > .pane--ref { order: 4; }
.tool-aside:empty { display: none; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.inputs { padding: 14px; }
@media (min-width: 900px) { .inputs { padding: 16px 20px 20px; } }

/* nagłówki paneli – jeden styl w całej aplikacji */
.inputs-head, .result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 12px; }
.card-title, .pane-title, .section-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); }
.card-title:focus { outline: none; }
.card-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.link-btn { min-height: 32px; padding: 0 8px; margin-right: -8px; border: 0; border-radius: 6px; background: transparent; color: var(--primary); font-size: 14px; font-weight: 500; }
.link-btn:hover { background: var(--tint); color: var(--primary-hover); }

/* 900–1199: dwie kolumny, ściąga pod spodem */
@media (min-width: 900px) {
  .tool-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
  .tool-col { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }
  .tool-grid > .pane--ref { grid-column: 1 / -1; }
  .result.is-sticky { position: sticky; top: calc(var(--head-h) + 12px); }
  .tool-grid--wide { grid-template-columns: minmax(0, 1fr); }
}

/* ≥1200 i wystarczająco wysoki ekran: stół na całą wysokość okna, każda kolumna przewija się osobno */
@media (min-width: 1200px) and (min-height: 620px) {
  body.page-tool { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
  .page-tool .site-header { position: static; flex: none; }
  .page-tool .app { flex: 1 1 auto; min-height: 0; }
  .page-tool .sidenav { overflow-y: auto; }
  .page-tool .sidenav-in { position: static; }
  .page-tool .tool-main { min-height: 0; display: flex; flex-direction: column; padding: 14px 20px 18px; }
  .tool-head { flex: none; margin-bottom: 8px; }
  .crumbs { display: none; }
  .tool { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .modes { flex: none; }
  .tool-grid, .tool-grid--wide {
    flex: 1 1 auto; min-height: 0; align-items: stretch;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .tool-grid--wide { grid-template-columns: minmax(340px, .55fr) minmax(0, 1.45fr); }
  .pane { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .tool-col { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
  .tool-col > .card { border: 0; border-radius: 0; background: transparent; }
  .tool-col > .tool-aside:not(:empty) { border-top: 1px solid var(--line); }
  .result.is-sticky { position: relative; top: auto; }
  .result { display: flex; flex-direction: column; }
  .result-head { position: sticky; top: 0; z-index: 2; background: var(--graphite); margin: 0; padding-bottom: 10px; }
  .result-body { flex: 1 0 auto; }
  .result-actions { position: sticky; bottom: 0; z-index: 2; background: var(--graphite); border-top: 1px solid var(--graphite-line); }
  .pane--ref { padding: 0 2px 0 0; }
}
.tool-col > .tool-foot { order: 5; padding: 0 4px; }
@media (min-width: 1680px) { :root { --gap: 16px; } }
@media (min-width: 1200px) and (min-height: 620px) {
  .tool-col > .tool-foot { margin-top: auto; padding: 14px 20px 16px; border-top: 1px solid var(--line); }
}

/* =========================== pola =========================== */
.stack { display: flex; flex-direction: column; gap: 18px; }
.group { display: flex; flex-direction: column; gap: 8px; }
.group > .seg { align-self: flex-start; }
.group-head { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; }
.group-label { font-size: 14px; font-weight: 600; color: var(--body); }
.group-note { font-size: 12px; color: var(--text3); }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
.fields--1 { grid-template-columns: minmax(0, 240px); }
.fields--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fields--chem { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 12px 10px; }
@media (min-width: 900px) { .fields { gap: 14px 16px; } }
.field { min-width: 0; display: flex; flex-direction: column; }
.field > .input-box { flex: none; }
.field--wide { grid-column: 1 / -1; }
.field-label { display: flex; justify-content: space-between; gap: 6px; font-size: 13px; font-weight: 500; color: var(--body); margin-bottom: 6px; }
.field-label .sym { font-weight: 400; color: var(--text2); }
.field-name { display: inline-flex; align-items: baseline; }
.req-mark { margin-left: 2px; color: var(--primary); font-weight: 700; }
.field-hint { margin: 5px 0 0; font-size: 12px; color: var(--text3); }
.field-row { display: flex; gap: 8px; align-items: center; }
.input-box { flex: 1; min-width: 0; display: flex; align-items: center; height: var(--field-h); border: 1px solid var(--border-input); border-radius: var(--r-sm); background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.input-box:hover { border-color: #6F6A62; }
.input-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--halo); }
.input { flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0 4px 0 12px; border: 0; background: transparent; font-size: 18px; font-weight: 500; text-align: right; color: var(--ink); outline: none; }
@media (min-width: 900px) { .input { font-size: 17px; } }
.input::placeholder { color: var(--text3); font-weight: 400; opacity: 1; }
.unit { flex: none; min-width: 34px; padding: 0 12px 0 6px; font-size: 13px; color: var(--text2); white-space: nowrap; }
.input-box:not(:has(.unit)) .input { padding-right: 12px; }
.is-invalid .field-label { color: var(--error); font-weight: 600; }
.is-invalid .input-box, .bare:has(.field-err:not([hidden])) .input-box { border: 2px solid var(--error); }
.is-warn .input-box, .bare:has(.field-warn:not([hidden])) .input-box { border-color: var(--warn); box-shadow: inset 0 0 0 1px var(--warn); }
.field-err, .field-warn { display: flex; gap: 6px; align-items: flex-start; margin-top: 6px; font-size: 13px; line-height: 1.35; }
.field-err { color: var(--error); }
.field-warn { color: var(--warn-text); }
.field-err svg, .field-warn svg { margin-top: 2px; }
.field-warn svg { color: var(--warn); }
.field-err--compact { font-size: 12px; margin-top: 4px; }
.bare { min-width: 0; }
.input-box--sm { height: 42px; }
.input-box--sm .input { font-size: 16px; padding-right: 10px; }

.seg { display: inline-flex; flex: none; padding: 3px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-sm); }
.seg-btn { min-width: 44px; min-height: 34px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; font-size: 13px; font-weight: 500; color: var(--text2); white-space: nowrap; }
.seg-btn:hover { color: var(--ink); }
.seg-btn[aria-checked='true'] { background: var(--graphite); color: #fff; font-weight: 600; }
@media (max-width: 420px) { .field-row:has(.seg) { flex-wrap: wrap; } .field-row:has(.seg) .input-box { flex-basis: 100%; } }

.opt-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.opt-card { min-height: 52px; padding: 7px 10px; border: 0; border-radius: 0; background: var(--surface); box-shadow: inset -1px -1px 0 var(--line); text-align: left; color: var(--ink); }
.opt-card:hover { background: var(--soft); }
.opt-card[aria-checked='true'] { background: var(--graphite); color: #fff; box-shadow: inset 0 -3px 0 var(--accent); }
.opt-title { display: block; font-size: 14px; font-weight: 600; }
.opt-sub { display: block; margin-top: 2px; font-size: 12px; color: var(--text3); }
.opt-card[aria-checked='true'] .opt-sub { color: #FFB27F; }
@media (max-width: 520px) { .opt-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

.select-wrap { position: relative; display: flex; }
.select { appearance: none; -webkit-appearance: none; width: 100%; height: var(--field-h); padding: 0 40px 0 12px; border: 1px solid var(--border-input); border-radius: var(--r-sm); background: var(--surface); font-size: 16px; font-weight: 500; color: var(--ink); }
.select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--halo); }
.select-wrap svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--text2); }

.switch { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 0; border: 0; background: transparent; text-align: left; }
.switch-track { position: relative; flex: none; width: 44px; height: 26px; border-radius: 13px; background: var(--border-input); transition: background .15s; }
.switch-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: left .15s; }
.switch[aria-checked='true'] .switch-track { background: var(--accent); }
.switch[aria-checked='true'] .switch-knob { left: 21px; }
.switch-label { display: block; font-size: 14px; font-weight: 600; }
.switch-desc { display: block; font-size: 13px; color: var(--text2); }
.switch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.switch-row .switch { width: auto; flex: 1 1 260px; }

/* tabela min–max: etykieta tuż przy polach, pola rozciągają się na resztę szerokości */
.range-table { display: grid; grid-template-columns: minmax(110px, max-content) minmax(84px, 1fr) minmax(84px, 1fr); gap: 8px 14px; align-items: start; }
.range-table--chem { grid-template-columns: minmax(90px, max-content) minmax(90px, 1fr) minmax(90px, 1fr); }
.rt-head { text-align: left !important; padding: 0 0 0 2px !important; }
.range-table--chem .rt-label b { font-size: 15px; }
.rt-head { font-size: 12px; font-weight: 600; color: var(--text3); text-align: right; padding-right: 10px; }
.rt-label { font-size: 14px; color: var(--body); padding-top: 10px; }
.rt-unit { font-size: 12px; color: var(--text3); }
.range-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px 12px; flex-wrap: wrap; margin-top: 4px; }

.fields--chem .field-label { align-items: baseline; font-size: 15px; font-weight: 600; color: var(--ink); }
.fields--chem .field-label > span:first-child { flex: none; }
.fields--chem .input { font-size: 17px; padding-left: 8px; }
.fields--chem .unit { min-width: 0; padding: 0 10px 0 2px; }
.req { font-size: 12px; font-style: normal; color: var(--text3); }
.el-name { font-size: 12px; font-style: normal; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.flash { display: none; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 9px 12px; border-radius: var(--r-md); background: var(--tint); color: #6B2A06; font-size: 13px; line-height: 1.4; }
.flash.is-on { display: flex; }
.flash svg { flex: none; margin-top: 1px; color: var(--primary); }

/* wklejanie składu, sekcje zwijane */
.fold > summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary > span:first-child, .fold > summary h2 { flex: 1; }
.fold-chev { flex: none; color: var(--text2); transition: transform .15s; }
.fold[open] > summary .fold-chev { transform: rotate(180deg); }
.fold-badge { flex: none; font-size: 12px; font-weight: 400; color: var(--text3); }
@media (max-width: 559px) { .fold-badge { display: none; } }
.fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.fold--paste { border-top: 1px solid var(--line); padding-top: 4px; }
.fold--paste > summary { font-weight: 500; color: var(--primary); }
.paste { display: flex; flex-direction: column; gap: 10px; padding-bottom: 4px; }
.paste-area { width: 100%; min-height: 72px; padding: 10px 12px; border: 1px solid var(--border-input); border-radius: var(--r-sm); background: var(--surface); font: 14px/1.5 ui-monospace, 'Cascadia Mono', Consolas, monospace; color: var(--ink); resize: vertical; }
.paste-area:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--halo); }

/* tabele pomocnicze w kolumnie danych */
.aside-card { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 900px) { .aside-card { padding: 16px 20px 20px; } }
.aside-card .group-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.fold--card { padding: 4px 18px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.quick-table { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 6px; }
.quick-cell { min-height: 52px; padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); text-align: left; font-size: 13px; color: var(--text2); }
.quick-cell b { display: block; font-size: 15px; color: var(--ink); }
.quick-cell:hover { border-color: var(--border-input); }
.quick-cell[aria-pressed='true'] { border-color: var(--accent); background: var(--tint); box-shadow: inset 0 0 0 1px var(--accent); }

.btn--icon { width: 44px; min-height: 44px; padding: 0; flex: none; }
.gas-pair { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-items: end; }
.gas-pair .btn--icon { justify-self: center; transform: rotate(90deg); }
@media (min-width: 560px) { .gas-pair { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); } .gas-pair .btn--icon { transform: none; margin-bottom: calc((var(--field-h) - 44px) / 2); } }

/* =========================== wynik (ciemny panel) =========================== */
.result { background: var(--graphite); border: 0; border-radius: var(--r-lg); box-shadow: 0 18px 40px -24px rgba(27, 30, 35, .6); overflow: hidden; }
@media (min-width: 1200px) and (min-height: 620px) { .result { overflow-y: auto; } }
.result-head { padding: 14px 16px 0 18px; margin-bottom: 0; }
@media (min-width: 900px) { .result-head { padding: 14px 18px 0 22px; } }
.result-title { display: flex; align-items: center; gap: 10px; min-width: 0; }
.example-chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: #3A3F48; color: #F1F2F4; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.result-body { padding: 10px 16px 0 18px; }
@media (min-width: 900px) { .result-body { padding: 12px 22px 0; } }
.result-body > * + * { margin-top: 16px; }
.result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 16px 16px; margin-top: 18px; }
@media (min-width: 900px) { .result-actions { padding: 14px 22px 16px; } }
.result .seg { background: var(--graphite-2); border-color: var(--graphite-line); }
.result .seg-btn[aria-checked='true'] { background: #3F444E; color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--border-input); border-radius: var(--r-md); background: transparent; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.btn:hover { background: var(--canvas); color: var(--ink); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: #14171C; font-weight: 600; }
.btn--primary:hover { background: var(--accent-hi); border-color: var(--accent-hi); color: #14171C; }
.result-actions .btn--ghost { border-color: transparent; }
@media (max-width: 899px) {
  .result-actions .btn { flex: 1 1 140px; min-height: 48px; font-size: 15px; }
  .result-actions .btn--ghost { flex: 0 0 auto; }
  .result-actions .btn--ghost .btn-text { display: none; }
}
.copy-status { flex-basis: 100%; font-size: 13px; color: var(--success); overflow-wrap: anywhere; }
.copy-status:empty { display: none; }
.copy-status--err { color: var(--error); }

.big-label { font-size: 14px; color: var(--text2); }
.big-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.big-num { font-size: 46px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--accent); }
@media (min-width: 900px) { .big-num { font-size: 64px; } }
.big-value--text .big-num { font-size: 28px; letter-spacing: -0.02em; line-height: 1.2; }
@media (min-width: 900px) { .big-value--text .big-num { font-size: 34px; } }
.big-unit { font-size: 18px; font-weight: 500; color: var(--text2); }
.big-alt { flex-basis: 100%; font-size: 14px; font-weight: 500; color: var(--text2); }
.big-sub { margin-top: 4px; font-size: 14px; color: var(--text2); }
.tone-ok .big-num { color: var(--success); }
.tone-bad .big-num { color: var(--error); }
.tone-warn .big-num { color: var(--warn); }
.big-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.big-side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding-bottom: 8px; }
.big-side .badge { height: 30px; padding: 0 12px; font-size: 14px; }

.rows { margin: 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.row:last-child { padding-bottom: 0; }
.row dt { color: var(--text2); }
.row dd { margin: 0; font-size: 16px; font-weight: 600; text-align: right; }
.row-unit { font-size: 14px; font-weight: 500; color: var(--text2); }
.row--strong dd { font-size: 18px; }

.band-title { font-size: 13px; font-weight: 600; color: var(--body); margin-bottom: 10px; }
.band-track { position: relative; height: 22px; }
.band-outer { position: absolute; left: 0; right: 0; top: 7px; height: 8px; border-radius: 4px; background: var(--band-outer); }
.band-inner { position: absolute; left: 20%; width: 60%; top: 7px; height: 8px; background: var(--band-inner); }
.band-marker { position: absolute; top: -3px; width: 4px; height: 28px; margin-left: -2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 2px var(--graphite); }
.band-ticks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 6px; font-size: 13px; }
.band-tick { text-align: center; }
.band-tick:first-child { text-align: left; }
.band-tick:last-child { text-align: right; }
.band-tick--mid { font-weight: 600; }
.band-tick-label { display: block; font-size: 12px; font-weight: 400; color: var(--text3); }

.assume { padding: 12px 14px; border-radius: var(--r-md); background: var(--canvas); font-size: 13px; line-height: 1.6; color: var(--body); }
.assume-title { font-weight: 600; margin-bottom: 2px; }
.assume-formula { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }

.notice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: var(--r-md); font-size: 13px; line-height: 1.45; }
.notice svg { margin-top: 1px; flex: none; }
.notice--info { background: var(--tint); color: #6B2A06; }
.result .notice--info { background: var(--canvas); color: var(--body); }
.result .notice--info svg { color: var(--primary); }
.notice--warn { background: var(--warn-bg); color: var(--warn-text); }
.notice--check b { display: block; margin-bottom: 2px; }
.notice--check ul { margin: 0; padding-left: 18px; }
.notice--check svg { color: var(--warn); }

.empty { display: flex; gap: 12px; padding: 14px 16px; margin-bottom: 4px; border-radius: var(--r-md); background: var(--warn-bg); color: var(--warn-text); font-size: 14px; }
.empty svg { margin-top: 1px; }
.empty-title { font-size: 15px; font-weight: 600; }

.verdicts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.verdict { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-md); font-size: 14px; }
.verdict-title { display: block; font-size: 12px; }
.verdict--ok { background: var(--success-bg); color: var(--success-text); }
.verdict--bad { background: var(--error-bg); color: var(--error-text); }

.table-wrap { overflow-x: auto; }
.table-wrap:focus-visible { outline-offset: 0; }
.table { width: 100%; min-width: 320px; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 8px 6px; text-align: right; }
.table th:first-child, .table td:first-child { padding-left: 0; text-align: left; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table thead th { font-size: 12px; font-weight: 500; color: var(--text3); padding-top: 4px; padding-bottom: 6px; }
.table tbody tr { border-top: 1px solid var(--line); }
.table tbody th { font-weight: 600; }
.table td { color: var(--text2); }
.table td.strong { color: var(--ink); font-weight: 600; }
.table .is-hit td, .table .is-hit th { background: var(--error-bg); }
.table--plain td { color: var(--ink); }
.cell-sub { display: block; font-size: 12px; font-weight: 400; color: var(--text3); }
.table--gas tbody th { font-weight: 500; }
.table--gas tr.is-real th, .table--gas tr.is-real td { background: var(--tint); }
.table--gas tr.is-real .cell-sub { color: var(--text2); }
.table--gas tr.is-cal th, .table--gas tr.is-cal td { background: var(--soft); }
.table--gas td:last-child { width: 1%; }

.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge--ok { background: var(--success-bg); color: var(--success-text); }
.badge--bad { background: var(--error-bg); color: var(--error-text); }
.badge--warn { background: var(--warn-bg); color: var(--warn-text); }
.badge--muted { background: var(--chip); color: var(--body); }
.badge--primary { background: var(--tint); color: var(--primary-hover); }

.scale-track { position: relative; padding: 4px 0; }
.scale-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; }
.scale-bar span { flex: 1; }
.scale-pin { position: absolute; top: 0; width: 4px; height: 18px; margin-left: -2px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--graphite); }
.scale-span { position: absolute; top: 2px; height: 14px; border-radius: 3px; background: rgba(255, 255, 255, .35); box-shadow: inset 0 0 0 2px #fff; }
.scale-labels { display: grid; margin-top: 4px; font-size: 12px; line-height: 1.3; color: var(--text2); }
.scale-labels--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.scale-labels span { text-align: center; padding: 0 2px; }
.scale-edges { position: relative; height: 16px; font-size: 12px; color: var(--text3); }
.scale-edges span { position: absolute; top: 0; transform: translateX(-50%); }
.scale-note { margin-top: 8px; font-size: 12px; color: var(--text2); }
.weld-range-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.stacked { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--chip); }
.stacked span { display: block; height: 100%; }
.legend { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; }
.legend .num { font-weight: 600; text-align: right; }
.legend .pct { min-width: 52px; text-align: right; color: var(--text2); }

.rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.rule-list li { padding: 7px 10px; border-radius: var(--r-sm); color: var(--text2); background: var(--canvas); }
.rule-list li.is-on { color: var(--primary-hover); background: var(--tint); font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }

.qbar-track { position: relative; height: 46px; margin-top: 4px; }
.qbar-axis { position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: var(--line); }
.qbar-band { position: absolute; top: 25px; height: 12px; border-radius: 3px; background: var(--band-inner); }
.qbar-band.is-open { border-radius: 3px 0 0 3px; background: linear-gradient(90deg, var(--band-inner) 70%, var(--band-outer)); }
.qbar-mark { position: absolute; top: 20px; width: 3px; height: 22px; margin-left: -1.5px; border-radius: 2px; background: var(--ink); box-shadow: 0 0 0 2px var(--graphite); }
.qbar-mark-lab { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 600; white-space: nowrap; }
.qbar-mark-lab.is-end { left: auto; right: 0; transform: none; }
.qbar-ticks { display: flex; justify-content: space-between; font-size: 12px; color: var(--text3); }

/* krok po kroku */
.fold--steps { border-top: 1px solid var(--line); }
.steps { margin: 0 0 6px; padding-left: 20px; display: grid; gap: 8px; font-size: 13.5px; line-height: 1.55; color: var(--body); overflow-wrap: anywhere; }
.steps b { color: var(--ink); font-weight: 600; }
.steps li::marker { color: var(--text3); font-size: 12px; }

/* zapisane warianty */
.variants { margin: 0 16px 16px; padding: 12px 14px; border-radius: 12px; background: var(--canvas); }
@media (min-width: 900px) { .variants { margin: 0 22px 18px; } }
.variants-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 8px; }
.variants-head h3 { font-size: 13px; font-weight: 600; color: var(--ink); }
.variants-count { display: inline-flex; min-width: 20px; justify-content: center; padding: 0 6px; border-radius: 10px; background: #3A3F48; font-size: 12px; }
.variants-hint { font-size: 12px; color: var(--text3); }
.variants-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.variants-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 36px; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.variants-list li:first-child { border-top: 0; }
.variants-list li.is-current .variant-value { color: var(--accent); }
.variant-no { font-size: 12px; color: var(--text3); text-align: center; }
.variant-main { min-width: 0; display: flex; flex-direction: column; }
.variant-value { font-size: 16px; font-weight: 600; color: var(--ink); }
.variant-unit { font-size: 13px; font-weight: 500; color: var(--text2); }
.variant-text { font-size: 12px; color: var(--text2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.variant-open { font-size: 13px; font-weight: 500; text-decoration: none; padding: 8px 4px; }
.variant-open:hover { text-decoration: underline; }
.variant-del { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--text2); }
.variant-del:hover { background: var(--graphite-2); color: var(--ink); }

/* =========================== wykresy =========================== */
.chart { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); }
.figure { margin: 0; }
.figure figcaption { margin-top: 6px; font-size: 12px; color: var(--text3); }
/* wykres w ciemnym panelu – na jasnym polu, żeby zachować czytelność */
.result .figure, .result .chart--sch, .result .chart--fillet {
  --ink: #14171C; --body: #2E333B; --text2: #4F5662; --text3: #666E7A; --surface: #FFFFFF; --canvas: #F4F2EF;
  --line: #E2DFDA; --border-input: #8A847B; --primary: #B84A0C; --primary-hover: #9A3E0A; --tint: #FFF1E8; --halo: #FCD9C2;
  --error: #C0352B; --error-bg: #FBEAE8; --warn: #9A5B00; --warn-bg: #FDF3E3; --warn-text: #6E4100;
  color: var(--ink);
}
.result .figure { background: #fff; border-radius: 12px; padding: 12px; }
.result .figure figcaption { padding: 0 2px; }

.split { display: grid; gap: 18px; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; gap: 24px; } }
.chart--sch { max-width: 520px; }
.figure--sch .chart--sch { max-width: none; }
@media (min-width: 1200px) and (min-height: 620px) { .figure--sch .chart--sch { max-height: calc(100dvh - 300px); } }
.ch-reg { fill: #F1F3F6; stroke: none; }
.ch-reg.is-on { fill: var(--halo); }
.ch-grid { stroke: #FFFFFF; stroke-width: 1; }
.ch-edge { fill: none; stroke: var(--text3); stroke-width: 1.25; stroke-linejoin: round; }
.ch-frame { fill: none; stroke: var(--border-input); stroke-width: 1; }
.ch-frame.is-out { stroke: var(--warn); stroke-width: 2; stroke-dasharray: 6 4; }
.ch-tick { font-size: 11px; fill: var(--text3); }
.ch-axis { font-size: 12px; fill: var(--text2); }
.ch-lab { font-size: 13px; font-weight: 500; fill: var(--text2); }
.ch-lab.is-on { font-weight: 700; fill: var(--primary-hover); }
.ch-pt { fill: var(--primary); stroke: #fff; stroke-width: 3; }
.ch-ptlab { font-size: 13px; font-weight: 600; fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.ch-out-arrow { fill: var(--warn); stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.chart--sch polyline, .chart--sch .ch-line { fill: none; stroke: var(--text3); stroke-width: 1.5; }

.chart--fillet { max-width: 320px; }
.fl-plate { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: square; }
.fl-weld { fill: var(--halo); stroke: var(--primary); stroke-width: 2; stroke-linejoin: round; }
.fl-dim { stroke: var(--primary-hover); stroke-width: 1.5; }
.fl-lab { font-size: 15px; font-style: italic; fill: var(--primary-hover); font-weight: 600; }
.fl-val { font-size: 14px; fill: var(--ink); font-weight: 500; }

.sg-base { stroke: var(--border-input); stroke-width: 1; }
.sg-weld { fill: var(--primary); }
.sg-weld.is-hit { fill: var(--error); }
.sg-wlab { font-size: 11px; font-weight: 600; fill: #fff; }
.sg-obs { fill: var(--warn-bg); stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 4 3; }
.sg-obs-lab { font-size: 11px; fill: var(--warn-text); }
.sg-tick { stroke: var(--border-input); }
.sg-tlab { font-size: 12px; fill: var(--text3); }

/* =========================== ściąga (wzory i zasady) =========================== */
.pane--ref { display: flex; flex-direction: column; gap: var(--gap); }
.tool-info { display: grid; gap: 10px; }
@media (min-width: 900px) and (max-width: 1199px) { .tool-info { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .info-head { grid-column: 1 / -1; } }
.info-head { padding: 4px 2px 0; }
.info-head .pane-title { margin-bottom: 6px; }
.info-lead { font-size: 14px; line-height: 1.55; color: var(--text2); }
.info-card { padding: 4px 16px 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); font-size: 14px; line-height: 1.6; color: var(--body); }
.info-card > summary h2 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.info-card .fold-body { padding-bottom: 12px; }
.info-card ul { margin: 0; padding-left: 18px; }
.info-card li + li { margin-top: 5px; }
.formula { font-size: 15px; overflow-wrap: anywhere; }
.tool-info .formula { padding: 8px 12px; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 8px 8px 0; }
.formula + .formula { margin-top: 6px; }
.info-more { margin-top: 10px; }
.info-more a { font-weight: 500; text-decoration: none; }
.info-more a:hover { text-decoration: underline; }
.tool-foot { padding: 0 4px 4px; font-size: 12px; line-height: 1.5; color: var(--text3); }
/* skrypt jeszcze nie wstawił kalkulatora – ściąga czeka, żeby nie przeskakiwała (CLS) */
.js .tool:not(.is-mounted) ~ .tool-info, .js .tool:not(.is-mounted) ~ .tool-foot { display: none; }

/* =========================== pasek wyniku (telefon) =========================== */
.mbar { position: fixed; z-index: 15; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; background: var(--graphite); color: #fff; border-radius: 14px; box-shadow: 0 -8px 24px -6px rgba(238, 235, 230, .95), 0 12px 28px -12px rgba(20, 23, 28, .5); transition: transform .2s, opacity .2s; }
.mbar--away { transform: translateY(140%); opacity: 0; pointer-events: none; }
.mbar--check { box-shadow: 0 -8px 24px -6px rgba(238, 235, 230, .95), inset 0 0 0 2px #F2B35E; }
.mbar-text { flex: 1; min-width: 0; }
.mbar-label { display: block; font-size: 12px; color: #B9BEC6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar-value { font-size: 22px; font-weight: 600; color: var(--accent); }
.mbar-unit { font-size: 14px; font-weight: 500; color: #B9BEC6; }
.mbar-sub { margin-left: 10px; font-size: 13px; font-weight: 400; color: #B9BEC6; }
.mbar-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; }
.mbar--warn { background: var(--warn-bg); color: var(--warn-text); border: 1px solid var(--warn-line); }
.mbar--warn .mbar-label { color: var(--warn-text); white-space: normal; font-size: 13px; }
.mbar-value--warn { display: block; font-size: 15px; color: inherit; }
@media (min-width: 900px) { .mbar { display: none; } }
@media (max-width: 899px) { .site-footer { padding-bottom: 96px; } }

/* =========================== szuflada (telefon) =========================== */
.drawer { position: fixed; inset: 0; z-index: 40; width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 0; border: 0; background: var(--canvas); color: var(--ink); }
.drawer::backdrop { background: rgba(20, 23, 28, .4); }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 4px 0 16px; background: var(--graphite); }
.drawer-title { flex: 1; font-size: 16px; font-weight: 600; }
.drawer-body { padding: 14px 16px 32px; }
.drawer-body .search { margin-bottom: 16px; }
.nav-group { padding: 16px 2px 6px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--text3); }
.nav-link { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; min-height: 52px; padding: 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); color: var(--body); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav-link[aria-current='page'] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); color: var(--ink); font-weight: 600; }
.nav-link .tile { width: 36px; height: 36px; border-radius: 9px; }
.drawer-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.drawer-foot .lang { margin-left: 0; background: var(--chip); }
.drawer-foot .lang a[aria-current='true'] { background: var(--surface); color: var(--ink); }

/* =========================== strona główna =========================== */
.hero { background: var(--graphite); border-top: 1px solid var(--graphite-line); background-image: radial-gradient(1200px 300px at 85% 120%, rgba(242, 107, 29, .16), transparent 60%); }
.hero-in { max-width: 1760px; margin: 0 auto; padding: 28px 16px 30px; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 48px; }
@media (min-width: 900px) { .hero-in { padding: 40px 32px 40px; } }
.hero-text { flex: 1 1 460px; min-width: 0; }
.hero h1 { font-size: 28px; font-weight: 600; letter-spacing: -0.025em; color: #fff; }
@media (min-width: 900px) { .hero h1 { font-size: 40px; } }
.hero-lead { margin-top: 8px; max-width: 64ch; font-size: 15px; line-height: 1.55; color: var(--text2); }
@media (min-width: 900px) { .hero-lead { font-size: 16px; } }
.hero-search { flex: 1 1 420px; max-width: 640px; }

.home { max-width: 1760px; margin: 0 auto; padding: 20px 16px 40px; display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .home { padding: 28px 32px 48px; } }
.home-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.section-title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.section-count { display: inline-flex; min-width: 22px; height: 20px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 10px; background: var(--chip); font-size: 12px; letter-spacing: 0; color: var(--body); }
.tool-grid-home { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--gap); }
@media (min-width: 1500px) { .tool-grid-home { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tool-grid-home li { display: flex; }
.tool-card { position: relative; flex: 1; display: flex; flex-direction: column; gap: 6px; min-height: 168px; padding: 18px 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; transition: border-color .12s, box-shadow .12s, transform .12s; }
.tool-card:hover { color: var(--ink); border-color: var(--accent); box-shadow: 0 14px 30px -20px rgba(184, 74, 12, .55); transform: translateY(-1px); }
.tool-card:active { background: var(--tint); }
.tool-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.tool-card-cat { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text3); }
.tool-card-name { display: block; font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; padding-right: 20px; }
.tool-card-desc { display: block; font-size: 14px; color: var(--text2); }
.tool-card-go { position: absolute; right: 16px; bottom: 18px; color: var(--text3); transform: rotate(-90deg); transition: color .12s, transform .12s; }
.tool-card:hover .tool-card-go { color: var(--accent); transform: rotate(-90deg) translateY(3px); }
.tool-card--doc { background: var(--soft); border-style: dashed; }
.tool-card--doc .tile { background: var(--chip); color: var(--body); }
@media (max-width: 599px) { .tool-card { min-height: 0; padding: 14px 16px; } .tool-card-top { margin-bottom: 2px; } .tool-card-go { display: none; } }

.recent { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.recent-title { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); }
.recent-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.recent-link { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; }
.recent-link svg { color: var(--primary); }
.recent-link:hover { border-color: var(--accent); color: var(--ink); }

.quick { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 18px 40px -30px rgba(27, 30, 35, .5); }
@media (min-width: 1100px) { .quick { position: sticky; top: calc(var(--head-h) + 16px); } }
.quick-head { padding: 16px 18px 0; }
.quick-head h2 { margin-bottom: 10px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); }
.quick .modes { margin-bottom: 14px; }
.quick .tab[aria-selected='true'] { background: transparent; }
.quick-body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.quick-body .opt-cards { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.quick-body .opt-card { min-height: 46px; padding: 4px; text-align: center; }
.quick-body .opt-title { font-size: 13px; }
.quick-body .opt-sub { font-size: 11px; margin-top: 0; }
.quick-body .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.quick-body .fields .field:nth-child(3) { grid-column: 1 / -1; }
.quick-body .field-label { font-size: 13px; }
.quick-body .input-box { height: 44px; }
.quick-body .input { font-size: 16px; padding-left: 8px; }
.quick-body .unit { padding: 0 8px 0 2px; font-size: 12px; min-width: 0; }
.quick-out { padding: 16px 18px 14px; background: var(--graphite); }
.quick-out-label { font-size: 13px; color: var(--text2); }
.quick-out-value { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; color: var(--accent); }
.quick-out-value .u { font-size: 16px; font-weight: 500; color: var(--text2); }
.quick-out-value.is-empty { font-size: 15px; font-weight: 500; letter-spacing: 0; line-height: 1.4; color: var(--warn-text); padding: 6px 0; }
.quick-link { display: inline-flex; align-items: center; min-height: 40px; font-size: 14px; font-weight: 500; text-decoration: none; }
.quick-link:hover { text-decoration: underline; }

/* =========================== metodyka =========================== */
.doc { max-width: 1440px; margin: 0 auto; padding: 20px 16px 48px; display: grid; gap: 24px; }
@media (min-width: 1000px) { .doc { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 28px 32px 64px; } }
.doc-toc { font-size: 14px; }
@media (min-width: 1000px) { .doc-toc { position: sticky; top: calc(var(--head-h) + 20px); align-self: start; } }
.doc-toc h2 { margin-bottom: 8px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); }
.doc-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.doc-toc a { display: block; padding: 7px 10px; border-radius: var(--r-sm); color: var(--body); text-decoration: none; }
.doc-toc a:hover { background: var(--surface); color: var(--ink); }
.doc-body { max-width: 900px; }
.doc-body h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
@media (min-width: 900px) { .doc-body h1 { font-size: 32px; } }
.doc-lead { color: var(--text2); font-size: 16px; margin-bottom: 24px; max-width: 70ch; }
.doc-sec { padding: 20px 22px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); scroll-margin-top: 80px; }
.doc-sec h2 { display: flex; align-items: center; gap: 12px; font-size: 19px; font-weight: 600; margin-bottom: 12px; }
.doc-sec h2 .tile { width: 36px; height: 36px; border-radius: 9px; }
.doc-sec h3 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); margin: 18px 0 6px; }
.doc-sec p, .doc-sec li { font-size: 15px; line-height: 1.65; color: var(--body); }
.doc-sec ul { margin: 0; padding-left: 20px; }
.doc-sec li + li { margin-top: 4px; }
.doc-sec .formula { padding: 10px 12px; border-left: 3px solid var(--accent); background: var(--soft); border-radius: 0 10px 10px 0; }
.doc-sec .more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; font-weight: 500; text-decoration: none; }
.doc-sec .more:hover { text-decoration: underline; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th, .doc-table td { padding: 8px 10px 8px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.doc-table thead th { border-top: 0; font-size: 12px; font-weight: 500; color: var(--text3); }

/* =========================== 404 i stopka =========================== */
.nf { max-width: 640px; margin: 0 auto; padding: 64px 16px; }
.nf h1 { font-size: 28px; margin-bottom: 10px; }
.nf p { color: var(--text2); margin-bottom: 20px; }
.nf-actions { margin-top: 20px; }
.nf-actions .btn { background: var(--surface); }
.nf-en { margin-top: 28px; }

.site-footer { border-top: 1px solid var(--line); }
.footer-in { max-width: 1760px; margin: 0 auto; padding: 18px 16px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--text3); }
@media (min-width: 900px) { .footer-in { padding: 18px 32px; } }
.footer-in a { color: var(--text2); }
.footer-in nav { margin-left: auto; display: flex; gap: 16px; }

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

@media (forced-colors: active) {
  .seg-btn[aria-checked='true'], .tab[aria-selected='true'], .opt-card[aria-checked='true'], .quick-cell[aria-pressed='true'], .strip-link[aria-current='page'] { outline: 2px solid CanvasText; }
  .band-inner, .band-outer, .band-marker, .scale-pin, .switch-track { forced-color-adjust: none; }
}

/* =========================== wydruk =========================== */
@media print {
  @page { size: A4; margin: 14mm 14mm 16mm; }
  body, body.page-tool { background: #fff; font-size: 11pt; height: auto !important; overflow: visible !important; display: block !important; }
  .site-header, .strip, .mbar, .modes, .result-actions, .link-btn, .skip, .drawer, .pane--ref, .tool-info, .tool-aside, .variants, .fold--paste, .flash, .example-chip, .site-footer, .crumbs { display: none !important; }
  .tool-main, .tool { display: block !important; padding: 0 !important; }
  .seg { background: none; padding: 0; border: 0; }
  .seg-btn:not([aria-checked='true']) { display: none; }
  .seg-btn { box-shadow: none !important; padding: 0 4px; background: none !important; color: #14171C !important; }
  .print-only { display: block; }
  .print-head { margin-bottom: 8mm; padding-bottom: 3mm; border-bottom: 1px solid #999; font-size: 9pt; color: #333; }
  .print-url { overflow-wrap: anywhere; }
  .tool-head h1 { font-size: 16pt; }
  .tool-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 6mm; }
  .tool-col { display: block !important; border: 0 !important; overflow: visible !important; }
  .pane { overflow: visible !important; }
  .card, .result { box-shadow: none; border: 1px solid #999 !important; break-inside: avoid; position: static !important; }
  .result, .quick-out { background: #fff; color: #14171C; --ink: #14171C; --text2: #4F5662; --text3: #666E7A; --body: #2E333B; --line: #CCCCCC; --canvas: #F4F4F4; --surface: #fff; }
  .result-head, .result-actions { position: static !important; background: #fff !important; }
  .result .big-num { color: #14171C; font-size: 28pt; }
  .input-box, .select { border: 1px solid #999; box-shadow: none !important; }
  .opt-card:not([aria-checked='true']) { display: none; }
  .opt-card[aria-checked='true'] { background: #fff; color: #14171C; box-shadow: none; }
  .opt-cards { grid-template-columns: 1fr !important; border: 0; }
  .fold--steps { border: 0; }
  a { color: inherit; text-decoration: none; }
}

/* duży monitor: większa skala pól i wyniku – czytelne z odległości, mniej pustego miejsca */
@media (min-width: 1600px) and (min-height: 860px) {
  :root { --field-h: 52px; }
  .inputs { padding: 22px 28px 26px; }
  .stack { gap: 24px; }
  .group-label { font-size: 15px; }
  .field-label { font-size: 14px; margin-bottom: 8px; }
  .input { font-size: 20px; }
  .unit { font-size: 14px; }
  .fields { gap: 18px 20px; }
  .opt-card { min-height: 64px; padding: 10px 14px; }
  .opt-title { font-size: 16px; }
  .opt-sub { font-size: 13px; }
  .seg-btn { min-height: 42px; padding: 0 14px; font-size: 14px; }
  .result-head { padding: 20px 28px 0; }
  .result-body { padding: 16px 28px 0; }
  .result-body > * + * { margin-top: 22px; }
  .result-actions { padding: 16px 28px 18px; }
  .big-label { font-size: 16px; }
  .big-num { font-size: 92px; }
  .big-unit { font-size: 22px; }
  .big-value--text .big-num { font-size: 42px; }
  .row { padding: 12px 0; font-size: 15px; }
  .row dd { font-size: 18px; }
  .tab { min-height: 46px; font-size: 15px; padding: 0 18px; }
  .tool-head h1 { font-size: 28px; }
}

/* strona główna: kafelki wypełniają ekran */
body.page-home { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.page-home .home { flex: 1 0 auto; width: 100%; }
}
.tool-col > .tool-aside > .fold--card, .tool-col > .tool-aside > .card { border: 0; border-radius: 0; }

/* panel wyniku: nazwa i liczba blisko siebie (bez „kilometra” pustego miejsca na szerokim ekranie) */
.result .rows, .result .legend, .result .verdicts, .result .rule-list { max-width: 560px; }
.result .table-wrap { max-width: 760px; }

/* jednostka wyniku (kJ/mm | kJ/cm): podpisana, większa, zaznaczenie pomarańczowe */
.result-head { flex-wrap: wrap; row-gap: 10px; }
.result-tools .group { flex-direction: row; align-items: center; gap: 10px; }
.result-tools .group-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--text2); }
.result .result-tools .seg { padding: 4px; background: var(--graphite-2); border: 1px solid #4A505B; border-radius: 10px; }
.result .result-tools .seg-btn { min-height: 40px; padding: 0 16px; font-size: 15px; font-weight: 600; color: var(--body); border-radius: 7px; }
.result .result-tools .seg-btn:hover { color: #fff; background: var(--graphite-3); }
.result .result-tools .seg-btn[aria-checked='true'] { background: var(--accent); color: #14171C; }
@media print { .result-tools .seg-btn[aria-checked='true'] { background: none !important; color: #14171C !important; } .result-tools .group-label { display: none; } }

/* ---------- część testowa /beta/ ---------- */
.beta-flag { margin-left: 8px; padding: 2px 6px; border-radius: 4px; background: var(--accent); color: #1B1E23; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; vertical-align: middle; }
.beta-badge { margin-left: auto; padding: 1px 6px; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent); font-size: 11px; font-weight: 600; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.04em; }
.tool-card-name .beta-badge { margin-left: 4px; vertical-align: 2px; }
.links-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); font-size: 13px; font-weight: 500; text-decoration: none; }
.tool-link:hover { border-color: var(--accent); color: var(--ink); }
.tool-link svg { color: var(--accent); }
.tool-link .beta-badge { margin-left: 2px; }
.beta-switch { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.beta-switch svg { flex: none; }
.runs-table { display: grid; grid-template-columns: 28px repeat(3, minmax(70px, 1fr)); gap: 8px 10px; align-items: start; }
.runs-table .rt-label { padding-top: 10px; font-weight: 600; color: var(--text2); }
.ch-mixline { stroke: var(--text2); stroke-width: 1.5; stroke-dasharray: 5 4; }
.ch-mixpt { fill: var(--surface, #fff); stroke: var(--text2); stroke-width: 2; }
.ch-mixlab { font-size: 13px; font-weight: 700; fill: var(--ink); }

/* strona główna – kompaktowe kafelki w grupach (13.11.2026) */
.tool-groups { display: grid; gap: 26px; }
.tool-group .section-title { margin-bottom: 10px; }
.tool-grid-home { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; }
@media (min-width: 1500px) { .tool-grid-home { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tool-card { flex-direction: row; align-items: center; gap: 14px; min-height: 0; padding: 14px 40px 14px 14px; }
.tool-card .tile { width: 44px; height: 44px; border-radius: 11px; }
.tool-card-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tool-card-name { font-size: 15.5px; padding-right: 0; }
.tool-card-desc { font-size: 13.5px; line-height: 1.4; }
.tool-card-go { top: 50%; bottom: auto; right: 14px; margin-top: -9px; }
@media (max-width: 599px) { .tool-card { padding: 12px 14px; } .tool-card .tile { width: 40px; height: 40px; } }
