/* app.css — دلال · product page only (app.html). Tokens come from /style.css; the :where() block below
   is a zero-specificity fallback with the SPEC values so the page never breaks if a token is missing. */
:where(:root) {
  --bg:#F6F4EE; --surface:#FFFFFF; --surface-2:#EFECE4; --line:#E3DED3; --line-strong:#8C8577; --text:#14171A; --muted:#5B6168;
  --primary:#0F5F58; --primary-ink:#FFFFFF; --accent:#F5B53D; --accent-ink:#14171A; --danger:#B4233B; --ok:#0B7A4B; --warn:#9A5B00;
  --radius:18px; --radius-sm:12px; --pill:999px; --shadow:0 1px 2px rgba(20,23,26,.06),0 8px 24px rgba(20,23,26,.06);
  --shadow-sm:0 1px 2px rgba(20,23,26,.05),0 4px 14px rgba(20,23,26,.05); --shadow-lg:0 2px 6px rgba(20,23,26,.06),0 24px 60px rgba(20,23,26,.12);
  --ease:cubic-bezier(.2,.8,.2,1);
  --font:'IBM Plex Sans Arabic',system-ui,sans-serif;
  --s-gold:#0B7A4B; --s-gold-bg:#DCF5E9; --s-good:#4D7C0F; --s-good-bg:#ECF6D8; --s-fair:#5B6168; --s-fair-bg:#EEECE6;
  --s-high:#B4233B; --s-high-bg:#FCE7EA; --s-sus:#9A5B00; --s-sus-bg:#FEF1D6;
}
@media (prefers-color-scheme: dark) {
  :where(:root) { --bg:#0C1716; --surface:#13201F; --surface-2:#1A2A28; --line:#24403C; --line-strong:#4E6E69; --text:#F4F1EA; --muted:#9FB0AC; --primary:#2BA89B; --primary-ink:#06110F;
    --s-gold:#5FD3A0; --s-gold-bg:#0F3326; --s-good:#A3D96B; --s-good-bg:#22331A; --s-fair:#B6C2BF; --s-fair-bg:#22302E; --s-high:#FF8A9A; --s-high-bg:#3A1A20; --s-sus:#F2C46B; --s-sus-bg:#3A2A10;
    --shadow:0 1px 0 rgba(0,0,0,.35),0 14px 40px rgba(0,0,0,.45); --shadow-sm:0 1px 2px rgba(0,0,0,.3),0 4px 14px rgba(0,0,0,.25); --shadow-lg:0 2px 6px rgba(0,0,0,.35),0 24px 60px rgba(0,0,0,.5); }
}
@font-face { font-family:'IBM Plex Sans Arabic'; font-weight:400; font-display:swap; src:url(/kit/fonts/plex-arabic-400-arabic.woff2) format('woff2'); unicode-range:U+0600-06FF,U+0750-077F,U+200C-200F,U+FB50-FDFF,U+FE70-FEFF,U+066B-066C; }
@font-face { font-family:'IBM Plex Sans Arabic'; font-weight:400; font-display:swap; src:url(/kit/fonts/plex-arabic-400-latin.woff2) format('woff2'); unicode-range:U+0000-00FF,U+2000-206F,U+2190-21FF; }
@font-face { font-family:'IBM Plex Sans Arabic'; font-weight:600; font-display:swap; src:url(/kit/fonts/plex-arabic-600-arabic.woff2) format('woff2'); unicode-range:U+0600-06FF,U+0750-077F,U+200C-200F,U+FB50-FDFF,U+FE70-FEFF,U+066B-066C; }
@font-face { font-family:'IBM Plex Sans Arabic'; font-weight:600; font-display:swap; src:url(/kit/fonts/plex-arabic-600-latin.woff2) format('woff2'); unicode-range:U+0000-00FF,U+2000-206F,U+2190-21FF; }
@font-face { font-family:'IBM Plex Sans Arabic'; font-weight:700; font-display:swap; src:url(/kit/fonts/plex-arabic-700-arabic.woff2) format('woff2'); unicode-range:U+0600-06FF,U+0750-077F,U+200C-200F,U+FB50-FDFF,U+FE70-FEFF,U+066B-066C; }
@font-face { font-family:'IBM Plex Sans Arabic'; font-weight:700; font-display:swap; src:url(/kit/fonts/plex-arabic-700-latin.woff2) format('woff2'); unicode-range:U+0000-00FF,U+2000-206F,U+2190-21FF; }

body.dl { margin:0; background:var(--bg); color:var(--text); font:400 15px/1.7 var(--font); -webkit-font-smoothing:antialiased; overflow-x:hidden; }
.dl *, .dl *::before, .dl *::after, .dl-fsheet *, .dl-dsheet * { box-sizing:border-box; }
:where(.dl, .dl-fsheet, .dl-dsheet) :where(button, input, select) { font:inherit; color:inherit; }
.dl [hidden], .dl-fsheet [hidden] { display:none !important; }
.dl-wrap { width:100%; max-width:1180px; margin-inline:auto; padding-inline:16px; }
.dl-skip { position:absolute; inset-inline-start:-999px; top:8px; background:var(--primary); color:var(--primary-ink); padding:8px 16px; border-radius:var(--pill); z-index:50; }
.dl-skip:focus { inset-inline-start:8px; }
.dl :focus-visible, .dl-fsheet :focus-visible, .dl-dsheet :focus-visible { outline:2px solid var(--primary); outline-offset:3px; } /* teal by day, lime by night */

/* ---------- nav ---------- */
.dl-nav__in { display:flex; align-items:center; justify-content:space-between; gap:12px; height:60px; }
.dl-brand { display:inline-flex; align-items:center; gap:9px; color:var(--text); text-decoration:none; font-weight:700; font-size:20px; letter-spacing:-.2px; }
.dl-brand img { width:32px; height:32px; display:block; border-radius:9px; }
.dl-nav__links { display:flex; align-items:center; gap:14px; font-size:14.5px; }
.dl-nav__links > a { color:var(--muted); text-decoration:none; font-weight:600; }
.dl-nav__links > a:hover { color:var(--text); }
.dl-me { display:inline-flex; align-items:center; gap:8px; min-width:0; }
.dl-me__name { max-width:9em; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:600; }
.dl-pro { font-size:11.5px; font-weight:700; padding:1px 8px; border-radius:999px; background:var(--accent); color:var(--accent-ink); }
.dl-link { background:none; border:0; padding:4px 0; cursor:pointer; color:var(--primary); font-weight:600; text-decoration:none; }
.dl-link:hover { text-decoration:underline; }

/* ---------- buttons ---------- */
.dl-btn { display:inline-flex; align-items:center; justify-content:center; gap:6px; min-height:46px; padding:0 22px; border-radius:var(--pill);
  border:1px solid transparent; font-weight:600; font-size:15px; cursor:pointer; text-decoration:none; white-space:nowrap;
  transition:background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease); }
.dl-btn:hover { transform:translateY(-1px); }
.dl-btn:active { transform:translateY(0) scale(.98); transition-duration:.08s; }
.dl-btn--primary { background:var(--primary); color:var(--primary-ink) !important; box-shadow:0 6px 18px color-mix(in srgb, var(--primary) 24%, transparent); }
.dl-btn--primary:hover { background:color-mix(in srgb, var(--primary) 88%, var(--bg)); box-shadow:0 8px 24px color-mix(in srgb, var(--primary) 30%, transparent); }
.dl-btn--ghost { background:var(--surface); border-color:var(--line-strong); color:var(--text); }
.dl-btn--ghost:hover { border-color:var(--primary); background:color-mix(in srgb, var(--primary) 5%, var(--surface)); }
.dl-btn--sm { min-height:36px; padding:0 14px; font-size:13.5px; }
.dl-btn--lg { min-height:54px; font-size:16px; padding:0 28px; }
.dl-btn--block { display:flex; width:100%; }
.dl-btn:disabled { opacity:.65; cursor:default; transform:none; box-shadow:none; }

/* ---------- phone summary bar ---------- */
.dl-sumbar { position:sticky; top:0; z-index:20; background:color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.dl-sumbar__in { display:flex; align-items:center; gap:8px; padding-block:10px; }
.dl-sumbar__btn { flex:none; display:inline-flex; align-items:center; gap:6px; height:36px; padding:0 12px; border-radius:999px; cursor:pointer;
  background:var(--primary); color:var(--primary-ink); border:0; font-weight:600; font-size:13.5px; box-shadow:0 4px 14px color-mix(in srgb, var(--primary) 22%, transparent); }
.dl-count { display:inline-grid; place-items:center; min-width:19px; height:19px; padding:0 5px; border-radius:999px; background:var(--accent); color:var(--accent-ink); font-size:11.5px; font-weight:700; }
.dl-sumbar__chips { display:flex; gap:6px; overflow-x:auto; scrollbar-width:none; min-width:0; flex:1; mask-image:linear-gradient(to left, #000 88%, transparent); -webkit-mask-image:linear-gradient(to left, #000 88%, transparent); }
.dl-sumbar__chips::-webkit-scrollbar { display:none; }
.dl-chip { flex:none; display:inline-flex; align-items:center; gap:4px; height:36px; padding:0 12px; border-radius:999px; white-space:nowrap;
  background:var(--surface); border:1px solid var(--line-strong); font-size:13.5px; font-weight:500; }
.dl-chip__x { border:0; background:none; cursor:pointer; color:var(--muted); font-size:17px; line-height:1; padding:0 2px; margin-inline-end:-4px; }
.dl-chip--sort { cursor:pointer; color:var(--muted); }
@media (min-width:900px) { .dl-sumbar { display:none; } }

/* ---------- layout ---------- */
.dl-main { padding-top:18px; padding-bottom:48px; }
.dl-side { display:none; }
@media (min-width:900px) {
  .dl-main { display:grid; grid-template-columns:300px minmax(0,1fr); gap:32px; align-items:start; padding-top:8px; }
  .dl-side { display:block; position:sticky; top:16px; }
  .dl-side .dl-filters { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:22px; box-shadow:var(--shadow-sm); }
  .dl-side .dl-apply { display:none; }
}

/* ---------- filter form ---------- */
.dl-filters { display:flex; flex-direction:column; gap:18px; }
.dl-f { display:flex; flex-direction:column; gap:8px; min-width:0; }
.dl-f__label { font-size:13.5px; font-weight:600; color:var(--text); }
.dl-f__hint { display:block; font-size:12.5px; color:var(--muted); line-height:1.5; }
.dl-f--row { flex-direction:row; align-items:center; justify-content:space-between; gap:12px; }
.dl-f--actions { flex-direction:row; align-items:center; justify-content:space-between; gap:12px; }
.dl-extra { display:flex; flex-wrap:wrap; gap:6px; }
.dl-extra .dl-chip { max-width:100%; height:auto; min-height:36px; white-space:normal; background:color-mix(in srgb, var(--primary) 8%, var(--surface));
  border-color:color-mix(in srgb, var(--primary) 30%, var(--line)); }
.dl-in { width:100%; min-width:0; height:46px; padding:0 14px; border:1px solid var(--line-strong); border-radius:14px; background:var(--surface);
  color:var(--text); font-size:16px; font-variant-numeric:tabular-nums; appearance:none; -webkit-appearance:none; transition:border-color .2s var(--ease), box-shadow .2s var(--ease); }
.dl-in:hover { border-color:color-mix(in srgb, var(--primary) 55%, var(--line-strong)); }
.dl-in:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 4px color-mix(in srgb, var(--primary) 20%, transparent); }
select.dl-in { padding-inline-start:14px; padding-inline-end:36px; cursor:pointer;
  background-image:linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-size:5px 5px, 5px 5px; background-repeat:no-repeat; background-position:left 16px center, left 21px center; }
.dl-in::placeholder { color:var(--muted); opacity:.7; }
.dl-range { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; color:var(--muted); font-size:13.5px; }
.dl-unit { position:relative; display:block; }
.dl-unit .dl-in { padding-inline-end:104px; }
.dl-unit__t { position:absolute; inset-inline-end:12px; top:50%; transform:translateY(-50%); font-size:13px; color:var(--muted); pointer-events:none; }
.dl-quick { display:flex; flex-wrap:wrap; gap:6px; }
.dl-quick button { height:34px; min-width:44px; padding:0 12px; border-radius:var(--pill); border:1px solid var(--line-strong); background:var(--surface); cursor:pointer; font-size:13px; color:var(--muted); transition:border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease); }
.dl-quick button:hover { border-color:var(--primary); color:var(--text); }
.dl-quick button::after { content:' میلیارد'; font-size:11.5px; }
.dl-quick button.is-on { border-color:var(--primary); color:var(--primary-ink); background:var(--primary); font-weight:600; }
.dl-seg { display:grid; grid-template-columns:repeat(5, 1fr); gap:6px; }
.dl-seg--wrap { grid-template-columns:repeat(2, 1fr); }
.dl-seg button { height:42px; border-radius:var(--pill); border:1px solid var(--line-strong); background:var(--surface); cursor:pointer; font-size:14.5px; font-weight:500; font-variant-numeric:tabular-nums; transition:border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease); }
.dl-seg button:hover { border-color:var(--primary); }
.dl-seg button:active { transform:scale(.97); }
.dl-seg button[aria-pressed="true"], .dl-seg button[aria-checked="true"] { background:var(--primary); color:var(--primary-ink); border-color:var(--primary); font-weight:600; }
.dl-switch { flex:none; position:relative; width:48px; height:28px; border-radius:999px; border:0; cursor:pointer; background:var(--line-strong); transition:background .2s var(--ease); padding:0; }
.dl-switch span { position:absolute; top:3px; inset-inline-start:3px; width:22px; height:22px; border-radius:50%; background:var(--primary-ink); box-shadow:var(--shadow-sm); transition:inset-inline-start .2s var(--ease); }
.dl-switch[aria-checked="true"] { background:var(--primary); }
.dl-switch[aria-checked="true"] span { inset-inline-start:23px; }
.dl-apply { flex:1; }

/* filter sheet (phone) */
.dl-fsheet .dl-f--actions { position:sticky; bottom:calc(-20px - env(safe-area-inset-bottom)); margin:0 -20px calc(-20px - env(safe-area-inset-bottom));
  padding:12px 20px calc(14px + env(safe-area-inset-bottom)); background:var(--surface); border-top:1px solid var(--line); }
.dl-fsheet .dl-apply { min-height:48px; }

/* ---------- results head ---------- */
.dl-head { margin-bottom:14px; }
.dl-h1 { margin:0; font-size:22px; font-weight:700; line-height:1.4; letter-spacing:-.2px; }
.dl-head__sub { margin:2px 0 0; color:var(--muted); font-size:13.5px; font-variant-numeric:tabular-nums; min-height:1.7em; }
.dl-list { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; }
@media (min-width:1100px) { .dl-list, .dl-ghosts { grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; } }

/* ---------- listing card ---------- */
.dl-card { position:relative; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:18px; cursor:pointer;
  box-shadow:var(--shadow-sm); transition:box-shadow .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); min-width:0; }
.dl-card:hover { box-shadow:var(--shadow); border-color:color-mix(in srgb, var(--primary) 28%, var(--line)); transform:translateY(-2px); }
.dl-card:active { transform:translateY(0); transition-duration:.08s; }
.dl-card.is-sus { border-color:color-mix(in srgb, var(--s-sus) 35%, var(--line)); }
.dl-thumb { position:absolute; top:18px; inset-inline-end:18px; width:84px; height:84px; border-radius:16px; overflow:hidden; background:var(--surface-2); }
.dl-card.has-img .dl-card__top, .dl-card.has-img .dl-price, .dl-card.has-img .dl-meta { padding-inline-end:96px; }
.dl-card.has-img .dl-rank { display:none; }
.dl-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.dl-card__body { min-width:0; }
.dl-card__top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:8px; }
.dl-rank { color:var(--muted); font-size:12.5px; font-variant-numeric:tabular-nums; opacity:.8; }
.dl-price { font-size:22px; font-weight:700; line-height:1.35; font-variant-numeric:tabular-nums; letter-spacing:-.2px; }
.dl-price--big { font-size:28px; }
.dl-meta { color:var(--muted); font-size:14px; margin-top:2px; font-variant-numeric:tabular-nums; }
.dl-dot { color:var(--muted); opacity:.45; font-weight:400; }
.dl-vs { font-size:13.5px; margin-top:10px; font-variant-numeric:tabular-nums; }
.dl-vs b { font-weight:600; }
.dl-good { color:var(--s-gold); font-weight:600; }
.dl-bad { color:var(--s-high); font-weight:600; }
.dl-card.is-sus .dl-good { color:var(--s-sus); }

.dl-why { margin:10px 0 0; font-size:12.5px; line-height:1.65; color:var(--muted); background:var(--surface-2); padding:9px 12px; border-radius:14px; }
.dl-why--sus { color:var(--s-sus); background:var(--s-sus-bg); }
.dl-card__foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:12px; padding-top:12px; border-top:1px dashed var(--line); }
.dl-sub { color:var(--muted); font-size:12.5px; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dl-divar { flex:none; color:var(--primary); font-weight:600; font-size:13.5px; text-decoration:none; padding:6px 0; }
.dl-divar:hover { text-decoration:underline; }

/* score chip */
.dl-score { display:inline-flex; align-items:center; gap:6px; height:28px; padding-inline:3px 10px; border-radius:999px; font-size:12.5px; font-weight:600; white-space:nowrap;
  background:var(--s-fair-bg); color:var(--s-fair); border:1px solid color-mix(in srgb, currentColor 30%, transparent); }
.dl-score b { display:inline-grid; place-items:center; min-width:22px; height:22px; padding:0 5px; border-radius:999px; font-size:12.5px; font-weight:700;
  background:var(--s-fair); color:var(--s-fair-bg); font-variant-numeric:tabular-nums; }
.dl-score--sus { padding-inline:10px; }
/* gold = lime fill + teal ink, day and night; arrives with a short stamp */
.dl-score--gold { background:var(--s-gold-bg); color:var(--s-gold); animation:dl-stamp .7s var(--ease) both; } .dl-score--gold b { background:var(--s-gold); color:var(--s-gold-bg); }
.dl-score--good { background:var(--s-good-bg); color:var(--s-good); } .dl-score--good b { background:var(--s-good); color:var(--s-good-bg); }
.dl-score--fair { background:var(--s-fair-bg); color:var(--s-fair); } .dl-score--fair b { background:var(--s-fair); color:var(--s-fair-bg); }
.dl-score--high { background:var(--s-high-bg); color:var(--s-high); } .dl-score--high b { background:var(--s-high); color:var(--s-high-bg); }
.dl-score--sus { background-color:var(--s-sus-bg); color:var(--s-sus); background-image:repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, currentColor 10%, transparent) 6px 8px); }
@keyframes dl-stamp { 0% { transform:scale(1.3); opacity:0; } 55% { transform:scale(.96); opacity:1; } 100% { transform:scale(1); } }
.dl-score--big { height:34px; font-size:14px; padding-inline:5px 12px; }
.dl-score--big b { min-width:26px; height:26px; font-size:14px; }

/* ppm2 vs baseline bar */
.dl-bar { position:relative; height:8px; border-radius:999px; background:var(--surface-2); margin-top:10px; box-shadow:inset 0 0 0 1px var(--line); }
.dl-bar i { position:absolute; inset-block:0; inset-inline-start:0; border-radius:999px; background:var(--s-fair); }
.dl-bar s { position:absolute; top:-5px; width:2px; height:18px; margin-inline-start:-1px; border-radius:2px; background:var(--text); opacity:.8; }
.dl-bar--gold i { background:var(--s-gold); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent-ink) 22%, transparent); } .dl-bar--good i { background:var(--s-good); } .dl-bar--high i { background:var(--s-high); } .dl-bar--sus i { background:var(--s-sus); }

/* ---------- skeleton ---------- */
.dl-card--sk { cursor:default; pointer-events:none; }
.dl-sk { border-radius:10px; background:linear-gradient(90deg, var(--surface-2) 0%, color-mix(in srgb, var(--surface-2) 40%, var(--surface)) 50%, var(--surface-2) 100%);
  background-size:200% 100%; animation:dl-sh 1.2s ease-in-out infinite; }
.dl-sk--chip { width:120px; height:26px; border-radius:999px; margin-bottom:12px; }
.dl-sk--price { width:55%; height:26px; margin-bottom:10px; }
.dl-sk--line { width:75%; height:14px; margin-bottom:8px; }
.dl-sk--short { width:45%; }
.dl-sk--bar { width:100%; height:6px; margin-top:12px; }
@keyframes dl-sh { from { background-position:100% 0; } to { background-position:-100% 0; } }
@media (prefers-reduced-motion: reduce) { .dl-sk, .dl-score--gold { animation:none; } .dl-card, .dl-btn { transition:none; } .dl-card:hover, .dl-btn:hover { transform:none; } }

/* ---------- states ---------- */
.dl-state { grid-column:1 / -1; text-align:center; padding:40px 20px; border:1px dashed var(--line); border-radius:var(--radius); background:var(--surface); }
.dl-state__icon { display:inline-grid; place-items:center; width:56px; height:56px; border-radius:50%; background:var(--surface-2); color:var(--muted); margin-bottom:10px; }
.dl-state--err .dl-state__icon { color:var(--danger); background:color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.dl-state__title { margin:0; font-weight:700; font-size:17px; }
.dl-state__text { margin:4px auto 16px; color:var(--muted); font-size:14px; max-width:34em; }
.dl-state__acts { display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.dl-more { display:flex; width:100%; margin-top:14px; font-variant-numeric:tabular-nums; }
.dl-few { margin-top:14px; padding:16px; border-radius:var(--radius); border:1px dashed var(--line-strong); text-align:center; }
.dl-few p { margin:0 0 10px; color:var(--muted); font-size:13.5px; }
.dl-end { text-align:center; color:var(--muted); font-size:13px; margin:18px 0 0; }

/* ---------- locked / upsell ---------- */
.dl-locked { position:relative; margin-top:12px; }
.dl-ghosts { display:grid; grid-template-columns:minmax(0,1fr); gap:12px; filter:blur(5px); opacity:.55; pointer-events:none; user-select:none; }
.dl-card--ghost { cursor:default; }
.dl-upsell { position:absolute; top:28px; inset-inline:0; margin-inline:auto; width:min(420px, calc(100% - 16px)); text-align:center;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow-lg); padding:24px 22px 20px; }
.dl-upsell__lock { display:inline-grid; place-items:center; width:46px; height:46px; border-radius:50%; background:var(--accent); color:var(--accent-ink); margin-bottom:8px; box-shadow:0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
.dl-upsell__title { margin:0; font-size:19px; font-weight:700; font-variant-numeric:tabular-nums; }
.dl-upsell__text { margin:6px 0 16px; color:var(--muted); font-size:14px; }
.dl-upsell .dl-btn { width:100%; white-space:normal; }
.dl-upsell__fine { margin:10px 0 0; font-size:12px; color:var(--muted); }
.dl-upsell__fine.is-wait { color:var(--s-sus); background:var(--s-sus-bg); padding:8px 12px; border-radius:14px; font-size:12.5px; }
.dl-upsell__fine.is-err { color:var(--s-high); background:var(--s-high-bg); padding:8px 12px; border-radius:14px; font-size:12.5px; }

.dl-disc { margin:28px 0 0; font-size:12.5px; color:var(--muted); line-height:1.8; }

/* ---------- detail sheet ---------- */
@media (min-width:640px) { .dl-dsheet .api-sheet__panel { max-width:560px; } }
.dl-loading { display:flex; flex-direction:column; align-items:center; gap:12px; padding:48px 0; color:var(--muted); font-size:14px; }
.dl-detail { display:flex; flex-direction:column; gap:0; font-variant-numeric:tabular-nums; }
.dl-hero { width:100%; aspect-ratio:16/9; border-radius:18px; overflow:hidden; background:var(--surface-2); margin-bottom:14px; }
.dl-hero img { width:100%; height:100%; object-fit:cover; display:block; }
.dl-detail__top { display:flex; align-items:center; gap:8px; margin-bottom:8px; }
.dl-tag { font-size:12px; padding:3px 10px; border-radius:999px; background:var(--surface-2); color:var(--muted); font-weight:600; }
.dl-h3 { margin:0 0 10px; font-size:15px; font-weight:700; }
.dl-cmp { margin-top:16px; padding:16px; border-radius:18px; background:var(--surface-2); }
.dl-cmp__row { display:grid; grid-template-columns:88px minmax(0,1fr) auto; align-items:center; gap:10px; font-size:13px; padding:4px 0; }
.dl-cmp__k { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.dl-cmp__row.is-me .dl-cmp__k { color:var(--text); font-weight:600; }
.dl-cmp__track { height:10px; border-radius:999px; background:var(--surface); box-shadow:inset 0 0 0 1px var(--line); position:relative; overflow:hidden; }
.dl-cmp__track i { position:absolute; inset-block:0; inset-inline-start:0; border-radius:999px; background:var(--muted); }
.dl-cmp__track .dl-fill--gold { background:var(--s-gold); box-shadow:inset 0 0 0 1px color-mix(in srgb, var(--accent-ink) 22%, transparent); } .dl-cmp__track .dl-fill--good { background:var(--s-good); }
.dl-cmp__track .dl-fill--fair { background:var(--s-fair); } .dl-cmp__track .dl-fill--high { background:var(--s-high); }
.dl-cmp__track .dl-fill--sus { background:var(--s-sus); } .dl-cmp__track .dl-fill--base { background:var(--primary); opacity:.45; }
.dl-cmp__track .dl-fill--med { background:var(--muted); opacity:.45; }
.dl-cmp__v { font-weight:600; font-size:13px; white-space:nowrap; }
.dl-cmp__note { margin:8px 0 0; font-size:12.5px; color:var(--muted); }
.dl-kvs { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:0 16px; margin:14px 0 4px; }
.dl-kv { display:flex; justify-content:space-between; gap:8px; padding:9px 0; border-bottom:1px solid var(--line); font-size:13.5px; min-width:0; }
.dl-kv span { color:var(--muted); }
.dl-kv b { font-weight:600; text-align:left; }
.dl-desc { margin:12px 0 16px; font-size:14px; line-height:1.9; color:var(--text); white-space:pre-line; }
.dl-detail > .dl-btn--block { margin-top:12px; }
.dl-comps { margin-top:22px; }
.dl-comps__list { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:18px; overflow:hidden; }
.dl-comp { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px 12px; border:0; border-bottom:1px solid var(--line);
  background:var(--surface); cursor:pointer; text-align:start; font-variant-numeric:tabular-nums; transition:background .2s var(--ease); }
.dl-comp:last-child { border-bottom:0; }
.dl-comp:hover { background:var(--surface-2); }
.dl-comp .dl-score { font-size:0; gap:0; padding-inline:4px; }
.dl-comp .dl-score--sus { font-size:11px; padding-inline:8px; }
.dl-comp__main { display:flex; flex-direction:column; min-width:0; line-height:1.5; }
.dl-comp__main b { font-size:14.5px; font-weight:700; }
.dl-comp__main span { font-size:12.5px; color:var(--muted); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dl-comp__ppm { display:flex; flex-direction:column; align-items:flex-end; font-size:13px; font-weight:600; line-height:1.4; white-space:nowrap; }
.dl-comp__ppm small { font-size:11px; color:var(--muted); font-weight:400; }
.dl-dsheet .dl-disc { margin-top:18px; }
