:root {
  --ink: #1d252c;
  --muted: #66727d;
  --line: #dfe5ea;
  --surface: #ffffff;
  --surface-soft: #f6f8fa;
  --orange: #ef6c00;
  --orange-dark: #c65300;
  --skf-blue: #006cb7;
  --trial-input-width: clamp(150px, 15vw, 200px);
  --shadow: 0 10px 24px rgba(30, 47, 61, 0.07);
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #f1f4f6; font-family: "Segoe UI", Tahoma, Arial, sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { max-width: 1240px; min-height: 68px; margin: 0 auto; padding: 10px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 16px; min-width: 0; }
.brand img { width: 126px; height: auto; display: block; }
.brand-divider { width: 1px; height: 36px; background: var(--line); }
.brand-copy { display: grid; gap: 4px; }
.brand-copy strong { color: var(--skf-blue); font-size: 1.06rem; letter-spacing: .01em; }
.brand-copy small { color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.header-mark { color: var(--skf-blue); font-size: 1.25rem; font-weight: 800; letter-spacing: .12em; }
.page-shell { max-width: 1240px; margin: 0 auto; padding: 20px 28px 56px; }
.intro { position: relative; z-index: 3; margin-bottom: 14px; }
.intro-title-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.intro-title-row > div { min-width: 0; }
.eyebrow { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .16em; margin: 0 0 6px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 3px; font-size: clamp(1.65rem, 3.5vw, 2.35rem); letter-spacing: -.02em; }
.intro-copy { margin-bottom: 0; color: var(--muted); font-size: .92rem; }
.lookup-panel, .table-section { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.lookup-panel { padding: 18px 22px; }
.search-label { display: block; margin-bottom: 10px; font-size: .8rem; font-weight: 800; color: var(--muted); }
.search-row { display: flex; align-items: center; gap: 18px; }
.search-box { flex: 1; max-width: 720px; display: flex; align-items: center; gap: 10px; min-height: 52px; border: 2px solid var(--skf-blue); border-radius: 6px; padding: 0 14px; background: #fff; }
.search-box:focus-within { box-shadow: 0 0 0 3px rgba(0, 108, 183, .2); }
.search-icon { color: var(--skf-blue); font-size: 1.7rem; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 1rem; }
.clear-button { min-width: 40px; min-height: 40px; border: 0; color: var(--muted); background: transparent; font-size: 1.5rem; line-height: 1; padding: 4px 2px; }
.match-highlight { padding: 1px 3px; border-radius: 3px; color: #8a3d00; background: #ffe0bd; box-shadow: inset 0 -2px 0 var(--orange); font-weight: 800; }
.result-count { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.meta-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 10px 2px 16px; }
.meta-strip > div { min-height: 0; padding: 0; display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.meta-strip span, .meta-strip strong { color: #7b858d; font-size: .72rem; font-weight: 400; white-space: nowrap; }
.meta-strip strong { overflow: hidden; text-overflow: ellipsis; }
.table-section { overflow: hidden; }
.table-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 18px; padding: 14px 22px 10px; }
.table-toolbar h2 { margin-bottom: 3px; font-size: 1.25rem; }
.table-toolbar p { margin-bottom: 0; color: var(--muted); font-size: .8rem; }
.page-size-control { color: var(--muted); display: flex; align-items: center; gap: 8px; font-size: .8rem; white-space: nowrap; }
.page-size-control select { border: 1px solid var(--line); border-radius: 4px; padding: 7px 28px 7px 9px; color: var(--ink); background: var(--surface); }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); background: var(--surface); }
table { width: 100%; table-layout: fixed; border-collapse: collapse; min-width: 780px; }
tbody { background: var(--surface); }
.trial-tools { position: relative; flex: 0 0 auto; border: 0; background: transparent; }
.trial-tools summary { min-height: 38px; padding: 8px 11px; display: flex; align-items: center; gap: 8px; border: 1px solid #cbd6de; border-radius: 4px; color: var(--skf-blue); background: var(--surface); cursor: pointer; list-style: none; }
.trial-tools summary::-webkit-details-marker { display: none; }
.trial-tools summary::before { content: "+"; width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #cbd6de; border-radius: 50%; color: var(--skf-blue); font-size: .95rem; line-height: 1; }
.trial-tools[open] summary::before { content: "−"; }
.trial-tools summary:focus-visible { outline: 3px solid rgba(0, 108, 183, .25); outline-offset: -3px; }
.trial-tools-heading { display: grid; gap: 2px; flex: 1; min-width: 0; }
.trial-tools-heading strong { color: inherit; font-size: .78rem; }
.trial-tools-heading small { display: none; }
.trial-tools-body { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; width: min(900px, calc(100vw - 56px)); overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); box-shadow: var(--shadow); }
.trial-row { display: grid; grid-template-columns: minmax(180px, 1fr) var(--trial-input-width) auto auto; align-items: end; gap: 10px; padding: 10px 14px 12px; background: #fffaf5; }
.sale-trial-row { grid-template-columns: minmax(180px, 1fr) repeat(2, var(--trial-input-width)) auto auto; }
.trial-title { display: grid; gap: 3px; }
.trial-title strong { color: var(--ink); font-size: .9rem; }
.trial-title small { color: var(--muted); font-size: .72rem; }
.trial-row label { display: grid; gap: 5px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.trial-row input { width: 100%; min-height: 36px; border: 1px solid #cfd8de; border-radius: 4px; padding: 6px 8px; color: var(--ink); background: var(--surface); }
.trial-row input:focus { outline: 2px solid rgba(0, 108, 183, .22); border-color: var(--skf-blue); }
.trial-button { min-height: 36px; border: 1px solid #cfd8de; border-radius: 4px; padding: 6px 10px; color: var(--ink); background: var(--surface); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.trial-button-primary { border-color: var(--orange); color: #fff; background: var(--orange); }
.trial-button-primary:hover { background: var(--orange-dark); }
.trial-button:hover:not(:disabled) { border-color: var(--orange); }
.sale-trial-toggle { display: inline-flex; align-items: center; margin: 10px 14px; min-height: 36px; border: 1px solid #cbd6de; border-radius: 4px; padding: 6px 10px; color: var(--skf-blue); background: var(--surface); font-size: .78rem; font-weight: 700; }
.sale-trial-toggle:hover { border-color: var(--skf-blue); background: #f1f7fb; }
.sale-trial-row { border-top: 1px solid var(--line); background: #f6fbfe; }
.trial-row[hidden] { display: none; }
.trial-message { grid-column: 1 / -1; min-height: 0; margin: 0; color: var(--muted); font-size: .76rem; }
.trial-column { display: none; }
.table-section.has-trial .trial-column { display: table-cell; }
.sale-trial-column { display: none; }
.table-section.has-sale-trial .sale-trial-column { display: table-cell; }
.table-section.has-trial table, .table-section.has-sale-trial table { min-width: 920px; }
.table-section.has-trial.has-sale-trial table { min-width: 1060px; }
th { position: relative; padding: 0; text-align: left; background: var(--surface-soft); border-bottom: 1px solid var(--line); color: var(--muted); font-size: .74rem; font-weight: 800; }
th:nth-child(n+2), td:nth-child(n+2) { text-align: right; }
.sort-button { width: 100%; padding: 14px 10px; border: 0; background: transparent; color: inherit; font-size: inherit; font-weight: inherit; text-align: inherit; }
.sort-button span { color: var(--skf-blue); margin-left: 4px; }
.sale-price-header { z-index: 2; }
.formula-tooltip { position: absolute; z-index: 10; top: calc(100% + 10px); right: 12px; width: min(310px, calc(100vw - 40px)); padding: 16px 18px; display: grid; gap: 7px; border: 1px solid #d8e0e6; border-radius: 8px; background: #fff; box-shadow: 0 14px 30px rgba(30, 47, 61, .18); color: var(--ink); text-align: left; font-size: .84rem; font-weight: 400; line-height: 1.45; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .16s ease, transform .16s ease, visibility .16s ease; pointer-events: none; }
.formula-tooltip::before { content: ""; position: absolute; top: -7px; right: 28px; width: 12px; height: 12px; border-top: 1px solid #d8e0e6; border-left: 1px solid #d8e0e6; background: #fff; transform: rotate(45deg); }
.formula-tooltip strong { color: var(--skf-blue); font-size: .9rem; }
.formula-tooltip > span { color: var(--orange-dark); font-size: 1rem; font-weight: 800; }
.formula-tooltip small { color: var(--muted); font-size: .76rem; }
.sale-price-header:hover .formula-tooltip, .sale-price-header:focus-within .formula-tooltip { opacity: 1; visibility: visible; transform: translateY(0); }
td { padding: 12px 10px; border-bottom: 1px solid #edf0f2; font-size: .88rem; }
tbody tr:hover { background: #fff8f1; }
td:first-child { color: var(--skf-blue); font-weight: 700; }
.sale-price { color: var(--orange); font-weight: 800; }
.trial-value, .sale-trial-value { color: var(--orange-dark); font-weight: 700; }
.money { font-variant-numeric: tabular-nums; }
.empty-state { min-height: 220px; display: grid; place-content: center; gap: 8px; text-align: center; color: var(--muted); }
.empty-state strong { color: var(--ink); font-size: 1.05rem; }
.empty-state span { font-size: .85rem; }
.pagination { min-height: 70px; padding: 16px 22px; display: flex; justify-content: center; align-items: center; gap: 18px; color: var(--muted); font-size: .85rem; }
.page-button { width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 4px; color: var(--skf-blue); background: var(--surface); font-size: 1.15rem; }
.page-button:disabled { cursor: not-allowed; color: #acb5bc; background: var(--surface-soft); }
.site-footer { padding: 0 28px 28px; color: var(--muted); text-align: center; font-size: .75rem; }
.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; }
@media (min-width: 721px) {
  th:nth-child(n+2), td:nth-child(n+2) { text-align: center; }
  th { font-size: .82rem; }
  td { font-size: 1rem; }
}
@media (max-width: 720px) {
  .header-inner, .page-shell { padding-left: 16px; padding-right: 16px; }
  .header-inner { min-height: 64px; }
  .brand img { width: 108px; }
  .brand-divider, .brand-copy small, .header-mark { display: none; }
  .brand-copy strong { font-size: .95rem; }
  .page-shell { padding-top: 16px; }
  .intro-title-row { align-items: start; gap: 10px; }
  .trial-tools summary { min-height: 36px; padding: 7px 9px; }
  .trial-tools-heading strong { font-size: .74rem; }
  .trial-tools-body { width: calc(100vw - 32px); }
  .lookup-panel { padding: 16px; }
  .search-row { display: block; }
  .result-count { margin-top: 10px; }
  .meta-strip { grid-template-columns: repeat(2, 1fr); gap: 8px 14px; margin-top: 10px; }
  .table-toolbar { align-items: start; padding: 14px 16px 12px; }
  .table-toolbar h2 { font-size: 1.05rem; }
  .page-size-control { flex-direction: column; align-items: flex-end; gap: 4px; }
  .trial-row { grid-template-columns: 1fr; padding: 12px 16px 14px; }
  .trial-title, .trial-message { grid-column: 1 / -1; }
  .trial-button { width: 100%; }
  .sale-trial-toggle { width: calc(100% - 32px); margin: 0 16px 12px; }
  .pagination { padding-left: 16px; padding-right: 16px; }
}
@media (min-width: 721px) and (max-width: 900px) {
  .sale-trial-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sale-trial-row .trial-title, .sale-trial-row .trial-message { grid-column: 1 / -1; }
}
