/* Copied from design/bundle.css by scripts/gen-tokens.mjs. Do not edit; change the design system. */
body { margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 22px; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; }
.pf-row { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding: var(--space-4); }
.pf-stack { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.pf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--card-min)), 1fr)); gap: var(--space-4); }
.pf-label { font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.pf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:where(.pf-btn, .pf-chip, .pf-card, .pf-page, .pf-launcher, .pf-chat-close, .pf-search-clear, .pf-icon-btn, .pf-select select):focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:where(.pf-btn, .pf-chip, .pf-page, .pf-launcher, .pf-icon-btn, .pf-chat-close, .pf-search-clear) svg { flex: none; }

/* Button */
.pf-btn { font: inherit; font-weight: 600; font-size: 15px; min-height: var(--tap-min); padding: 0 var(--space-4); display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); border-radius: var(--radius-md); border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); cursor: pointer; text-decoration: none; transition: background 150ms ease-out, opacity 150ms ease-out; }
.pf-btn:hover { background: var(--surface-sunken); }
.pf-btn-primary { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.pf-btn-primary:hover { background: var(--pine); opacity: .9; }
.pf-btn-ghost { border-color: transparent; background: transparent; color: var(--link); padding: 0 var(--space-2); }
.pf-btn-ghost:hover { background: var(--pine-soft); }
.pf-btn-sm { min-height: 32px; font-size: 13px; padding: 0 var(--space-3); }
.pf-btn[disabled] { opacity: .45; cursor: not-allowed; }
.pf-btn svg { width: 18px; height: 18px; }

/* Badge */
.pf-badge { display: inline-flex; align-items: center; gap: var(--space-1); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--surface-sunken); color: var(--ink-muted); white-space: nowrap; }
.pf-badge-new { background: var(--pine-soft); color: var(--pine); }
.pf-badge-warn { background: var(--warn-soft); color: var(--warn); }
.pf-badge-danger { background: var(--danger-soft); color: var(--danger); }

/* SearchField */
.pf-search { display: flex; align-items: center; gap: var(--space-2); min-height: var(--tap-min); padding: 0 var(--space-2) 0 var(--space-3); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-md); color: var(--ink-muted); }
.pf-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.pf-search > svg { width: 20px; height: 20px; flex: none; }
.pf-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 16px; line-height: 22px; padding: 10px 0; -webkit-appearance: none; appearance: none; }
.pf-search input::placeholder { color: var(--ink-muted); }
.pf-search input::-webkit-search-cancel-button { display: none; }
.pf-search-clear { width: 36px; height: 36px; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--ink-muted); display: grid; place-items: center; cursor: pointer; }
.pf-search-clear:hover { background: var(--surface-sunken); color: var(--ink); }
.pf-search-clear svg { width: 18px; height: 18px; }

/* Select */
.pf-select { display: inline-flex; align-items: center; gap: var(--space-2); font-size: 14px; color: var(--ink-muted); }
.pf-select-box { position: relative; display: inline-flex; align-items: center; }
.pf-select select { font: inherit; font-size: 15px; font-weight: 500; color: var(--ink); min-height: var(--tap-min); padding: 0 36px 0 var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); -webkit-appearance: none; appearance: none; cursor: pointer; }
.pf-select-box svg { position: absolute; right: 10px; width: 18px; height: 18px; pointer-events: none; color: var(--ink-muted); }

/* Chip: chat quick replies, datasheet section links, active filters */
.pf-chip { font: inherit; font-size: 14px; font-weight: 500; min-height: 36px; padding: 0 var(--space-3); display: inline-flex; align-items: center; gap: var(--space-1); border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface-raised); color: var(--ink); cursor: pointer; white-space: nowrap; text-decoration: none; transition: background 150ms ease-out; position: relative; }
.pf-chip::after { content: ""; position: absolute; inset: -4px 0; }
.pf-chip:hover { background: var(--surface-sunken); }
.pf-chip[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.pf-chip svg { width: 16px; height: 16px; }
.pf-count { font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }

/* Filter panel and sections */
.pf-fpanel { display: flex; flex-direction: column; }
.pf-fpanel-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: var(--space-2); }
.pf-fpanel-title { font-size: 17px; line-height: 24px; font-weight: 600; }
.pf-fsec { border-top: 1px solid var(--line); }
.pf-fsec:last-child { border-bottom: 1px solid var(--line); }
.pf-fsec-h { margin: 0; }
.pf-fsec-h button { font: inherit; width: 100%; min-height: 48px; display: flex; align-items: center; gap: var(--space-2); padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left; }
.pf-fsec-h button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.pf-fsec-title { flex: 1; font-size: 15px; font-weight: 600; }
.pf-fsec-sum { font-size: 13px; font-weight: 500; color: var(--pine); font-variant-numeric: tabular-nums; max-width: 55%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-fsec-h svg { width: 18px; height: 18px; color: var(--ink-muted); transition: transform 150ms ease-out; }
.pf-fsec.is-open .pf-fsec-h svg { transform: rotate(180deg); }
.pf-fsec-body { padding: 0 0 var(--space-4); display: flex; flex-direction: column; gap: var(--space-4); }
.pf-ffield { display: flex; flex-direction: column; gap: var(--space-2); }
.pf-ffield-label { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.pf-ffield-note { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }

/* RangeSlider */
.pf-range { display: flex; flex-direction: column; gap: var(--space-1); padding: 0 11px; }
.pf-range-readout { margin: 0 -11px; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-range-readout.is-any { color: var(--ink-muted); font-weight: 500; }
.pf-range-dash { color: var(--ink-muted); font-weight: 400; }
.pf-range-any { color: var(--ink-muted); font-weight: 500; }
.pf-hist { display: flex; align-items: flex-end; gap: 1px; height: 40px; margin-top: var(--space-2); }
.pf-hist i { flex: 1; background: var(--line); border-radius: 1px 1px 0 0; }
.pf-hist i.in { background: var(--pine); }
.pf-range-track { position: relative; height: 44px; }
.pf-range-track::before { content: ""; position: absolute; left: -11px; right: -11px; top: 20px; height: 4px; border-radius: 2px; background: var(--line); }
.pf-range-track::after { content: ""; position: absolute; left: var(--lo); right: calc(100% - var(--hi)); top: 20px; height: 4px; background: var(--pine); }
.pf-range input[type=range] { position: absolute; left: -11px; width: calc(100% + 22px); top: 0; height: 44px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 1; }
.pf-range input[type=range]::-webkit-slider-runnable-track { height: 44px; background: none; }
.pf-range input[type=range]::-moz-range-track { background: none; }
.pf-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 11px; border-radius: 50%; background: var(--surface-raised); border: 2px solid var(--pine); box-shadow: var(--shadow-card); cursor: grab; }
.pf-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-raised); border: 2px solid var(--pine); cursor: grab; }
.pf-range input[type=range]:focus-visible { outline: none; }
.pf-range input[type=range]:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--focus); outline-offset: 2px; }
.pf-range input[type=range]:focus-visible::-moz-range-thumb { outline: 2px solid var(--focus); outline-offset: 2px; }
.pf-range-ticks { position: relative; height: 16px; margin-top: -10px; font-size: 12px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pf-range-ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.pf-range-ticks span.is-first { transform: translateX(-11px); }
.pf-range-ticks span.is-last { transform: translateX(calc(-100% + 11px)); }

/* CheckboxList */
.pf-checks ul { list-style: none; margin: 0; padding: 0; }
.pf-check { display: flex; align-items: center; gap: var(--space-3); min-height: 40px; cursor: pointer; font-size: 15px; }
.pf-check.is-disabled { color: var(--ink-muted); cursor: not-allowed; }
.pf-check input { -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-raised); display: grid; place-content: center; cursor: inherit; }
.pf-check input:checked { background: var(--pine); border-color: var(--pine); }
.pf-check input:checked::after { content: ""; width: 10px; height: 5px; border: solid var(--on-pine); border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); }
.pf-check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pf-check-label { flex: 1; min-width: 0; }
.pf-checks-search { display: flex; align-items: center; gap: var(--space-2); height: 40px; padding: 0 var(--space-3); margin-bottom: var(--space-1); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink-muted); }
.pf-checks-search:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.pf-checks-search svg { width: 18px; height: 18px; flex: none; }
.pf-checks-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); }
.pf-checks .pf-btn-ghost { align-self: flex-start; margin-left: calc(var(--space-2) * -1); }
.pf-checks-none { margin: var(--space-2) 0; font-size: 13px; color: var(--ink-muted); }

/* Switch */
.pf-switch-row { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; cursor: pointer; font-size: 15px; }
.pf-switch-row.is-disabled { color: var(--ink-muted); cursor: not-allowed; }
.pf-switch-label { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-switch-hint { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.pf-switch { flex: none; position: relative; width: 40px; height: 24px; padding: 0; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--surface-sunken); cursor: inherit; transition: background 150ms ease-out; }
.pf-switch i { position: absolute; top: 2px; left: 2px; width: 17px; height: 17px; border-radius: 50%; background: var(--ink-muted); transition: transform 150ms ease-out, background 150ms ease-out; }
.pf-switch[aria-checked="true"] { background: var(--pine); border-color: var(--pine); }
.pf-switch[aria-checked="true"] i { transform: translateX(16px); background: var(--on-pine); }
.pf-switch:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* SegmentedControl */
.pf-seg { display: flex; padding: 3px; gap: 2px; background: var(--surface-sunken); border-radius: var(--radius-md); }
.pf-seg-opt { flex: 1; min-width: 0; font: inherit; font-size: 14px; font-weight: 500; height: 34px; padding: 0 var(--space-1); border: 0; border-radius: calc(var(--radius-md) - 3px); background: transparent; color: var(--ink-muted); cursor: pointer; white-space: nowrap; font-variant-numeric: tabular-nums; position: relative; }
.pf-seg-opt::after { content: ""; position: absolute; inset: -5px 0; }
.pf-seg-opt:hover { color: var(--ink); }
.pf-seg-opt[aria-checked="true"] { background: var(--pine); color: var(--on-pine); font-weight: 600; }
.pf-seg-opt:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; z-index: 1; }

/* Picture plate */
.pf-plate { flex: none; width: 112px; height: 148px; background: var(--photo-ground); border-radius: var(--radius-md); display: grid; place-items: center; overflow: hidden; }
.pf-plate img { max-width: 100%; max-height: 100%; object-fit: contain; }
[data-theme="dark"] .pf-plate img { filter: brightness(.922); }
.pf-plate-empty { font-size: 13px; color: #5b5d62; padding: var(--space-2); text-align: center; }
.pf-plate-lg { width: 100%; max-width: 280px; height: 228px; }
.pf-plate-lg img { max-width: 160px; max-height: 212px; }

/* PhoneCard */
.pf-card { color: inherit; text-decoration: none; display: flex; gap: var(--space-3); align-items: flex-start; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: var(--space-3); min-width: 0; cursor: pointer; transition: border-color 150ms ease-out; }
.pf-card:hover { border-color: var(--line-strong); }
.pf-card-full { flex-direction: column; align-items: stretch; gap: var(--space-3); padding: var(--space-4); }
.pf-card-top { display: flex; gap: var(--space-3); align-items: flex-start; }
.pf-card-top .pf-plate { width: 84px; height: 112px; border-radius: var(--radius-sm); }
.pf-card-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pf-card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--space-2); }
.pf-card-brand { display: block; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.pf-card-name { margin: 0; font-size: 17px; line-height: 22px; font-weight: 600; overflow-wrap: anywhere; }
.pf-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); font-size: 13px; line-height: 18px; color: var(--ink-muted); margin-top: 2px; }
.pf-card-pricebox { display: flex; align-items: baseline; gap: var(--space-2); margin-top: auto; padding-top: var(--space-2); }
.pf-card-price { font-size: 20px; line-height: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-card-pnote { font-size: 13px; color: var(--ink-muted); }
.pf-card-missing { color: var(--ink-muted); font-style: italic; font-size: 13px; font-weight: 400; }
.pf-card-specs { margin: 0; border-top: 1px solid var(--line); }
.pf-card-row { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-3); padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 18px; }
.pf-card-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pf-card-row dt { color: var(--ink-muted); }
.pf-card-row dd { margin: 0; min-width: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pf-card-val { font-weight: 500; }
.pf-card-detail { display: block; color: var(--ink-muted); }
.pf-card-note { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink); }
.pf-card-compact { padding: var(--space-2); gap: var(--space-3); }
.pf-card-compact .pf-plate { width: 72px; height: 96px; border-radius: var(--radius-sm); }
.pf-card-compact .pf-card-main { gap: var(--space-1); }
.pf-card-compact .pf-card-name { font-size: 15px; line-height: 20px; }
.pf-card-foot { display: flex; align-items: baseline; gap: var(--space-2); }
.pf-card-compact .pf-card-price { font-size: 15px; line-height: 20px; }
.pf-plate-xs { width: 40px; height: 52px; border-radius: 4px; }

/* PhoneTable */
.pf-table-wrap { overflow-x: auto; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.pf-table-wrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pf-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; line-height: 20px; font-variant-numeric: tabular-nums; }
.pf-table th, .pf-table td { padding: var(--space-2) var(--space-3); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); white-space: nowrap; }
.pf-table tbody tr:last-child > * { border-bottom: 0; }
.pf-table thead th { position: sticky; top: 0; background: var(--surface-sunken); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); z-index: 1; }
.pf-table thead th button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; padding: 6px 0; margin: -6px 0; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.pf-table thead th button:hover, .pf-table thead th[aria-sort] button { color: var(--ink); }
.pf-table thead th button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.pf-sort svg { width: 14px; height: 14px; opacity: .6; }
.pf-sort.is-on svg { opacity: 1; color: var(--pine); }
.pf-sort.is-asc svg { transform: rotate(180deg); }
.pf-table .is-num { text-align: right; }
.pf-table .is-num button { flex-direction: row-reverse; }
.pf-table-phone { position: sticky; left: 0; background: var(--surface-raised); z-index: 1; min-width: 200px; border-right: 1px solid var(--line); }
.pf-table thead .pf-table-phone { background: var(--surface-sunken); z-index: 2; }
.pf-table tbody tr:hover > * { background: var(--surface-sunken); }
.pf-table-link { display: flex; align-items: center; gap: var(--space-3); color: inherit; text-decoration: none; font-weight: 400; }
.pf-table-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.pf-table-name { display: block; font-size: 15px; font-weight: 600; color: var(--ink); white-space: normal; }

/* SpecMeter and the datasheet's At a glance */
.pf-glance { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); }
.pf-glance-title { margin: 0 0 var(--space-3); font-size: 15px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 0 var(--space-2); align-items: baseline; }
.pf-glance-title span { font-size: 13px; font-weight: 400; color: var(--ink-muted); }
.pf-glance-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--space-4) var(--space-6); }
.pf-meter { display: flex; flex-direction: column; gap: var(--space-1); }
.pf-meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.pf-meter-label { font-size: 13px; color: var(--ink-muted); }
.pf-meter-value { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pf-meter-hist { position: relative; display: flex; align-items: flex-end; gap: 1px; height: 32px; }
.pf-meter-hist i { flex: 1; background: var(--line); border-radius: 1px 1px 0 0; }
.pf-meter-hist i.at { background: var(--pine); }
.pf-meter-hist b { position: absolute; top: -2px; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink); }
.pf-meter-text { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink); }

/* Pagination */
.pf-pages { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.pf-pages-count { margin: 0; font-size: 13px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pf-pages-row { display: flex; align-items: center; gap: var(--space-1); }
.pf-pages-list { display: flex; align-items: center; gap: var(--space-1); }
.pf-pages-short { display: none; font-size: 15px; font-weight: 500; padding: 0 var(--space-3); font-variant-numeric: tabular-nums; }
.pf-page { font: inherit; font-size: 15px; font-weight: 500; min-width: var(--tap-min); height: var(--tap-min); padding: 0 var(--space-2); border-radius: var(--radius-md); border: 1px solid transparent; background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.pf-page:hover { background: var(--surface-sunken); }
.pf-page[aria-current="page"] { background: var(--pine); color: var(--on-pine); }
.pf-page-step { border-color: var(--line-strong); background: var(--surface-raised); }
.pf-page[disabled] { opacity: .45; cursor: not-allowed; }
.pf-page svg { width: 20px; height: 20px; }
.pf-page-gap { min-width: 24px; text-align: center; color: var(--ink-muted); }
@media (max-width: 599px) { .pf-pages-list { display: none; } .pf-pages-short { display: inline; } }

/* Datasheet */
.pf-sheet { display: flex; flex-direction: column; gap: var(--space-3); }
.pf-sheet-back { margin-left: calc(var(--space-2) * -1); }
.pf-sheet-layout { display: flex; flex-direction: column; gap: var(--space-6); }
.pf-sheet-head { display: flex; flex-direction: column; gap: var(--space-4); }
.pf-sheet-head .pf-plate-lg { max-width: none; }
.pf-sheet-name { margin: 0; font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.pf-sheet-price { margin-top: var(--space-4); padding: var(--space-3) var(--space-4); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.pf-sheet-amount { font-size: 28px; line-height: 32px; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.pf-sheet-body { min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.pf-sheet-nav { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding: 4px 2px; position: sticky; top: 0; background: var(--surface); z-index: 1; }
.pf-sheet-nav .pf-chip { flex: none; }
.pf-spec { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pf-spec-group { scroll-margin-top: 56px; }
.pf-spec-group + .pf-spec-group { border-top: 1px solid var(--line); }
.pf-spec-group h2 { margin: 0; padding: var(--space-2) var(--space-4); font-size: 12px; line-height: 16px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); background: var(--surface-sunken); }
.pf-spec-group dl { margin: 0; }
.pf-spec-row { display: grid; grid-template-columns: minmax(104px, 30%) 1fr; gap: var(--space-3); padding: var(--space-2) var(--space-4); font-size: 14px; line-height: 20px; }
.pf-spec-row + .pf-spec-row { border-top: 1px solid var(--line); }
.pf-spec-row dt { color: var(--ink-muted); }
.pf-spec-row dd { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; white-space: pre-line; }
.pf-spec-row dd.pf-spec-missing { font-weight: 400; color: var(--ink-muted); font-style: italic; }
@media (max-width: 479px) { .pf-spec-row { grid-template-columns: 1fr; gap: 0; } }
@media (min-width: 960px) {
  .pf-sheet-layout { flex-direction: row; align-items: flex-start; }
  .pf-sheet-head { width: 280px; flex: none; position: sticky; top: var(--space-6); }
  .pf-sheet-body { flex: 1; }
  .pf-sheet-name { font-size: 40px; line-height: 44px; }
}

/* ChatLauncher */
.pf-launcher { font: inherit; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 52px; padding: 0 var(--space-6) 0 var(--space-4); border: 1px solid var(--on-volt); border-radius: var(--radius-pill); background: var(--volt); color: var(--on-volt); box-shadow: var(--shadow-sheet); cursor: pointer; }
.pf-launcher svg { width: 20px; height: 20px; }
.pf-launcher:hover { opacity: .92; }
.pf-launcher-floating { position: fixed; right: var(--space-4); bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px)); z-index: 40; }
@media (min-width: 960px) { .pf-launcher-floating { right: var(--space-6); bottom: var(--space-6); } }

/* ChatPanel */
.pf-chat { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; min-height: 0; }
.pf-chat-floating { position: fixed; inset: 0; z-index: 50; border: 0; border-radius: 0; }
@media (min-width: 960px) {
  .pf-chat-floating { inset: 0 0 0 auto; width: var(--chat-panel); border: 0; border-left: 1px solid var(--line); border-radius: 0; }
  .pf-with-chat { padding-right: var(--chat-panel); }
}
.pf-chat-head { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-2) var(--space-3) var(--space-4); background: var(--surface-raised); border-bottom: 1px solid var(--line); }
.pf-avatar { flex: none; width: 32px; height: 32px; box-sizing: border-box; border: 1px solid var(--on-volt); border-radius: var(--radius-pill); background: var(--volt); color: var(--on-volt); display: grid; place-items: center; }
.pf-avatar svg { width: 16px; height: 16px; }
.pf-chat-title { flex: 1; min-width: 0; font-size: 15px; line-height: 20px; font-weight: 600; }
.pf-chat-sub { font-size: 13px; line-height: 18px; font-weight: 400; color: var(--ink-muted); }
.pf-chat-close { width: var(--tap-min); height: var(--tap-min); border: 0; border-radius: var(--radius-md); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.pf-chat-close:hover { background: var(--surface-sunken); }
.pf-chat-close svg { width: 20px; height: 20px; }
.pf-chat-thread { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.pf-chat-thread > * { flex: none; }
.pf-chat-foot { padding: var(--space-3) var(--space-3) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); }

/* ChatMessage */
.pf-msg { display: flex; }
.pf-msg-user { justify-content: flex-end; }
.pf-msg-body { min-width: 0; max-width: 88%; display: flex; flex-direction: column; gap: var(--space-2); }
.pf-msg-assistant .pf-msg-body { max-width: 100%; }
.pf-bubble { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); font-size: 15px; line-height: 22px; overflow-wrap: anywhere; }
.pf-msg-assistant .pf-bubble { background: var(--surface-raised); border: 1px solid var(--line); border-top-left-radius: var(--space-1); }
.pf-msg-user .pf-bubble { background: var(--surface-sunken); border-top-right-radius: var(--space-1); }
.pf-msg-picks { display: flex; flex-direction: column; gap: var(--space-2); }
.pf-msg-error .pf-bubble { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.pf-typing { display: inline-flex; gap: 4px; padding: var(--space-1) 0; }
.pf-typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-muted); animation: pf-blink 1.2s infinite ease-in-out; }
.pf-typing i:nth-child(2) { animation-delay: .15s; } .pf-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pf-blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pf-typing i { animation: none; opacity: .7; } }

/* ChatComposer */
.pf-composer { display: flex; flex-direction: column; gap: var(--space-2); }
.pf-suggest { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.pf-suggest .pf-chip { flex: none; }
.pf-composer-box { display: flex; align-items: flex-end; gap: var(--space-2); background: var(--surface-raised); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: var(--space-1) var(--space-1) var(--space-1) var(--space-4); }
.pf-composer-box:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.pf-composer textarea { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font: inherit; font-size: 16px; line-height: 22px; padding: 11px 0; max-height: 132px; }
.pf-composer textarea::placeholder { color: var(--ink-muted); }
.pf-composer-note { margin: 0; display: flex; align-items: center; justify-content: center; gap: var(--space-2); min-width: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.pf-composer-note code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); background: var(--surface-sunken); border: 1px solid var(--line); border-radius: 999px; padding: 1px 8px; }
.pf-icon-btn { flex: none; width: var(--tap-min); height: var(--tap-min); border-radius: var(--radius-md); border: 0; background: var(--pine); color: var(--on-pine); display: grid; place-items: center; cursor: pointer; }
.pf-icon-btn[disabled] { background: var(--surface-sunken); color: var(--ink-muted); cursor: not-allowed; }
.pf-icon-btn svg { width: 20px; height: 20px; }

/* Skeleton */
.pf-skel { background: var(--surface-sunken); border-radius: var(--radius-sm); }
.pf-skel-line { display: block; height: 12px; margin: 3px 0; }
.pf-card-loading { cursor: default; }
.pf-card-loading .pf-card-main { gap: 6px; padding-top: 2px; }

/* ActiveFilters */
.pf-active { display: flex; gap: var(--space-2); align-items: center; overflow-x: auto; scrollbar-width: none; padding: 4px 2px; }
.pf-active > * { flex: none; }
.pf-chip-remove svg { width: 16px; height: 16px; margin-left: 2px; }

/* FilterSheet */
.pf-fsheet { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.pf-scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 49; }
.pf-fsheet:focus, .pf-chat:focus { outline: none; }
.pf-fsheet-floating { position: fixed; left: 0; right: 0; bottom: 0; max-height: 88vh; z-index: 50; border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-sheet); }
.pf-fsheet-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4); border-bottom: 1px solid var(--line); background: var(--surface-raised); }
.pf-fsheet-title { margin: 0; font-size: 17px; line-height: 24px; font-weight: 600; }
.pf-fsheet-body { flex: 1; min-height: 0; overflow-y: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-6); }
.pf-fsheet-foot { display: flex; gap: var(--space-2); padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface-raised); }
.pf-fsheet-foot .pf-btn-primary { flex: 1; }

/* EmptyState */
.pf-empty { text-align: center; padding: var(--space-12) var(--space-4); max-width: 440px; margin: 0 auto; }
.pf-empty-title { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; }
.pf-empty-body { margin: var(--space-2) 0 0; color: var(--ink-muted); }
.pf-empty-action { margin-top: var(--space-4); display: flex; justify-content: center; gap: var(--space-2); flex-wrap: wrap; }

/* ChatQuestion */
.pf-ask { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); border-top-left-radius: var(--space-1); padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-3); }
.pf-ask-q { margin: 0; font-size: 15px; line-height: 22px; }
.pf-ask-opts { display: flex; flex-direction: column; gap: var(--space-1); }
.pf-ask-opt { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-2) var(--space-3); border: 1px solid var(--line-strong); border-radius: var(--radius-md); cursor: pointer; font-size: 15px; line-height: 20px; }
.pf-ask-opt.is-on { border-color: var(--pine); box-shadow: 0 0 0 1px var(--pine); }
.pf-ask-opt input { margin: 2px 0 0; accent-color: var(--pine); width: 16px; height: 16px; flex: none; }
.pf-ask-label { display: block; font-weight: 500; }
.pf-ask-hint { display: block; font-size: 13px; color: var(--ink-muted); }
.pf-ask-foot { display: flex; justify-content: flex-end; gap: var(--space-2); }
.pf-ask.is-done { opacity: .7; }

/* CompareTable */
.pf-compare { overflow-x: auto; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.pf-compare:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pf-compare table { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.pf-compare th, .pf-compare td { padding: 6px var(--space-2); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.pf-compare tbody tr:last-child > * { border-bottom: 0; }
.pf-compare thead th { vertical-align: bottom; }
.pf-compare tbody th { font-weight: 400; color: var(--ink-muted); white-space: nowrap; }
.pf-compare-phone { display: flex; align-items: center; gap: var(--space-2); color: inherit; text-decoration: none; }
.pf-compare-phone .pf-table-name { font-size: 14px; }
.pf-compare td.is-best { font-weight: 600; background: var(--pine-soft); }
.pf-best { display: block; font-size: 11px; line-height: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--pine); }
.pf-compare-note { margin: 0; padding: var(--space-2); font-size: 12px; color: var(--ink-muted); border-top: 1px solid var(--line); }

/* BarChart */
.pf-bars { margin: 0; padding: var(--space-3); display: flex; flex-direction: column; gap: var(--space-2); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.pf-bars-title { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink); }
.pf-bars-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pf-bars-row { display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr) auto; align-items: center; gap: var(--space-2); font-size: 13px; line-height: 18px; }
.pf-bars-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-muted); }
.pf-bars-track { height: 10px; background: var(--surface-sunken); border-radius: 2px; overflow: hidden; }
.pf-bars-track i { display: block; height: 100%; background: var(--pine); border-radius: 2px; }
.pf-bars-value { min-width: 4.5em; text-align: right; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink); }
.pf-bars-note { margin: 0; font-size: 12px; line-height: 16px; color: var(--ink-muted); }

/* ChatWelcome */
.pf-welcome { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-6) 0 var(--space-2); }
.pf-avatar-lg { width: 48px; height: 48px; }
.pf-avatar-lg svg { width: 22px; height: 22px; }
.pf-welcome-title { margin: 0; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.pf-welcome-body { margin: 0; color: var(--ink-muted); }
.pf-welcome-starters { align-self: stretch; display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-2); }
.pf-starter { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: var(--space-3); min-height: var(--tap-min); border: 1px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); cursor: pointer; }
.pf-starter:hover { background: var(--surface-sunken); }
.pf-starter:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pf-starter-label { font-size: 15px; font-weight: 600; }
.pf-starter-hint { font-size: 13px; color: var(--ink-muted); }

/* NetworkCombos */
.pf-spec-content { padding: var(--space-3) var(--space-4) var(--space-4); }
.pf-combos b { font-weight: 600; }
.pf-combos { display: flex; flex-direction: column; gap: var(--space-3); }
.pf-combo-note { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.pf-combo-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); }
.pf-combo-wrap:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pf-combo { border-collapse: collapse; width: 100%; font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; }
.pf-combo th, .pf-combo td { padding: 6px var(--space-3); text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.pf-combo tbody tr:last-child > * { border-bottom: 0; }
.pf-combo thead th { background: var(--surface-sunken); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); white-space: nowrap; }
.pf-combo tbody th { font-weight: 400; color: var(--ink-muted); white-space: nowrap; }
.pf-combo-bands { color: var(--ink) !important; font-weight: 600 !important; }
.pf-combo-num { font-weight: 600; }
.pf-combo-state { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; white-space: nowrap; }
.pf-combo-state svg { width: 14px; height: 14px; flex: none; }
.pf-combo-state.is-yes { color: var(--pine); }
.pf-combo-state.is-no { color: var(--ink-muted); }
.pf-combo-state.is-partial, .pf-combo-state.is-to_check { color: var(--warn); }
.pf-combo-dl, .pf-spec-group .pf-combo-dl { margin: 0 calc(var(--space-4) * -1); }
.pf-combo-dl .pf-spec-row:first-child { padding-top: 0; }
.pf-combo .is-num { text-align: right; }
.pf-combo-num { font-weight: 600; }

.pf-sheet-pnote { font-size: 13px; color: var(--ink-muted); }
.pf-sheet-pnote a { color: var(--link); }
.pf-pricenote { font-size: 13px; color: var(--ink-muted); }

/* PriceVersions: under the datasheet's price, every version on idealo.it; VersionsCard: the same in the chat */
.pf-versions { margin-top: var(--space-3); padding-top: var(--space-3); border-top: 1px solid var(--line); }
.pf-version-list { list-style: none; margin: var(--space-1) 0 0; padding: 0; }
.pf-version { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3); padding: 6px var(--space-2); margin: 0 calc(var(--space-2) * -1); border-radius: var(--radius-sm); color: inherit; text-decoration: none; transition: background-color 150ms ease-out; }
summary.pf-version { grid-template-columns: minmax(0, 1fr) auto 16px; list-style: none; cursor: pointer; }
summary.pf-version::-webkit-details-marker { display: none; }
summary.pf-version:hover, a.pf-listing:hover { background: var(--surface-sunken); }
summary.pf-version:hover .pf-version-label, a.pf-listing:hover .pf-listing-name { color: var(--link); }
summary.pf-version:focus-visible, a.pf-listing:focus-visible, .pf-versions-more > summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.pf-version-chevron { grid-column: 3; grid-row: 1; align-self: center; display: flex; color: var(--ink-muted); transition: transform 150ms ease-out; }
.pf-version-chevron svg { width: 16px; height: 16px; }
.pf-version-item[open] .pf-version-chevron { transform: rotate(180deg); }
.pf-version-item[open] > summary.pf-version { background: var(--surface-sunken); }
.pf-version-label { font-size: 14px; line-height: 20px; font-weight: 500; overflow-wrap: anywhere; }
.pf-version-price { font-size: 14px; line-height: 20px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pf-version-none .pf-version-label { color: var(--ink-muted); }
.pf-version-detail { grid-column: 1 / 3; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.pf-listing-list { list-style: none; margin: 2px 0 var(--space-2); padding: 0 0 0 var(--space-3); border-left: 2px solid var(--line); }
.pf-listing { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--space-3); padding: 4px var(--space-2); border-radius: var(--radius-sm); color: inherit; text-decoration: none; transition: background-color 150ms ease-out; }
.pf-listing-name { font-size: 13px; line-height: 18px; overflow-wrap: anywhere; }
a.pf-listing .pf-listing-name { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.pf-listing-price { font-size: 13px; line-height: 18px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pf-listing-offers { grid-column: 1 / -1; font-size: 12px; line-height: 16px; color: var(--ink-muted); }
/* The datasheet's column is sticky on laptops: a long list scrolls inside it rather than below the screen. */
.pf-versions-more > .pf-version-list { max-height: 40vh; overflow-y: auto; }
.pf-versions-more > summary { cursor: pointer; margin-top: var(--space-1); font-size: 13px; line-height: 18px; font-weight: 600; color: var(--link); }
.pf-versions-card { padding: var(--space-3) var(--space-4); background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.pf-versions-card-name { margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.pf-versions-card-name a { color: var(--link); }
.pf-versions-card .pf-versions { margin-top: var(--space-2); }
