/* SavAwards — on top of SavComponents (Glass style): frosted surfaces over a soft background of European blue and laurel gold. */

:root {
  --sav-color-primary: #2347c9;
  --sav-color-on-primary: #ffffff;
  --gold: #c99a14;
  --gold-soft: #fff4cf;
  --aw-max: 1180px;
  --aw-pad: clamp(16px, 4vw, 40px); /* the side margins of SavOffice and the games */
}
.sav-theme-dark, .sav-theme-auto { --gold-soft: #3a2f0c; }
@media (prefers-color-scheme: light) { .sav-theme-auto { --gold-soft: #fff4cf; } }
.sav-theme-dark { --sav-color-primary: #6f8dff; --sav-color-on-primary: #08123a; }
@media (prefers-color-scheme: dark) { .sav-theme-auto { --sav-color-primary: #6f8dff; --sav-color-on-primary: #08123a; } }

* { box-sizing: border-box; }

/* the background the glass blurs: soft halos of blue and gold, fixed while the page scrolls */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(42vmax 36vmax at 8% 4%, color-mix(in oklab, var(--sav-color-primary) 30%, transparent), transparent 70%),
    radial-gradient(36vmax 30vmax at 96% 18%, color-mix(in oklab, var(--gold) 34%, transparent), transparent 70%),
    radial-gradient(44vmax 34vmax at 70% 100%, color-mix(in oklab, #7a5cff 22%, transparent), transparent 70%),
    radial-gradient(30vmax 26vmax at 0% 80%, color-mix(in oklab, #19a3c9 18%, transparent), transparent 70%),
    var(--sav-color-bg); }

/* every surface of SavAwards' own is frosted glass, like the components */
.top, .foot, .filters, .ph-score, .radar, .cat, .alt, .edition, .li, .nom, .cmp-wrap, .contenders, .winner, .paward, .st-nav, .cta, .ctray, .ha-card, .nrow {
  -webkit-backdrop-filter: var(--sav-backdrop, blur(16px) saturate(170%)); backdrop-filter: var(--sav-backdrop, blur(16px) saturate(170%));
  box-shadow: var(--sav-shadow-sm);
}
.filters, .ph-score, .radar, .cat, .alt, .edition, .li, .nom, .cmp-wrap, .contenders, .winner, .paward, .st-nav, .cta, .ha-card { background-image: var(--sav-sheen, none); }
html { scroll-padding-top: 80px; }
body { margin: 0; background: transparent; color: var(--sav-color-text); font-family: var(--sav-font-family, system-ui, -apple-system, 'Segoe UI', sans-serif); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a:not(.navl) { color: var(--sav-color-primary); } /* the links of sav-header keep its own colours (the current page highlighted) */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.015em; margin: 0 0 .4em; }
h1 { font-size: clamp(1.6rem, 3.6vw, 2.35rem); }
p { margin: 0 0 .8em; }
.muted { color: var(--sav-color-text-muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.right { justify-content: flex-end; }
.grow { flex: 1; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--sav-color-primary); color: var(--sav-color-on-primary); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap, .wrap { flex-wrap: wrap; }
.stack { display: grid; gap: 14px; }
.form { display: grid; gap: 14px; }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.g3 { display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 720px) { .g2, .g3 { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ frame */
/* sav-header (Glass): its edges line up with the content of the page, whatever the width of the window */
sav-header.top { --padding: max(var(--aw-pad), calc((100vw - var(--aw-max)) / 2 + var(--aw-pad))); --height: 4rem; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--sav-color-text); text-decoration: none; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; flex: none; }
.brand b { color: var(--sav-color-primary); }
.navl sav-icon { font-size: 1.05em; }
/* the folded menu: an opaque glass plate (the blur of the header cannot reach the page under the panel) */
sav-header.top[data-compact]::part(nav) { background-color: var(--sav-color-bg); }
.hact { display: flex; align-items: center; gap: 4px; }
.acct { display: flex; align-items: center; }
.acct sav-avatar { cursor: pointer; }
@media (max-width: 420px) { sav-header.top .brand span { display: none; } }
main.main { max-width: var(--aw-max); margin: 0 auto; padding: clamp(20px, 3vw, 36px) var(--aw-pad) 72px; min-height: 60vh; outline: none; }
.loading { display: grid; place-items: center; min-height: 40vh; }
.narrow { max-width: 560px; margin: 0 auto; }
.page-head { margin: 6px 0 22px; }
.page-head .lead, .lead { font-size: 1.12rem; color: var(--sav-color-text-muted); max-width: 70ch; }
.sec { margin: 40px 0; }
.sec > sav-heading { margin-bottom: 16px; display: block; }
.sec-sub { margin: -8px 0 14px; }
.frow4 { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 10px; }
@media (max-width: 900px) { .frow4 { grid-template-columns: 1fr 1fr; } .frow4 > :first-child { grid-column: 1 / -1; } }
.filters .count { margin: 0; }
.pli { flex-wrap: nowrap; }
.pli-n { min-width: 0; }
.pli-n strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li > .pli-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: center; }
.pli-s { min-width: 2.5em; text-align: right; }
.pli-d { min-width: 7.5em; text-align: right; }
@media (max-width: 700px) { .pli { flex-wrap: wrap; } .li > .pli-tags { justify-content: flex-start; width: 100%; order: 5; } .pli-d { display: none; } }
/* "no results" and other empty states inside a grid take the whole row, centred */
.pgrid > sav-empty-state, .alts > sav-empty-state, .cnt-grid > sav-empty-state, .crit > sav-empty-state { grid-column: 1 / -1; }
.disc.own::part(base) { border-color: color-mix(in oklab, var(--sav-color-warning) 55%, var(--sav-color-border)); }
.based sav-flag { --size: 1.15em; }
.more { display: flex; justify-content: flex-end; margin-top: 6px; }

.foot { border-top: 1px solid var(--sav-color-border); background: var(--sav-color-surface); margin-top: 20px; }
.foot-in { max-width: var(--aw-max); margin: 0 auto; padding: 34px var(--aw-pad) 10px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 26px; }
.foot-col { display: grid; gap: 7px; align-content: start; font-size: .93rem; }
.foot-col a { color: var(--sav-color-text-muted); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.foot-col a:hover { color: var(--sav-color-primary); }
.foot-brand p { color: var(--sav-color-text-muted); font-size: .93rem; margin-top: 10px; max-width: 42ch; }
.foot-brand .indep { color: var(--sav-color-text); }
.foot-brand .indep sav-icon { color: var(--sav-color-success); vertical-align: -.15em; }
.foot-legal { max-width: var(--aw-max); margin: 0 auto; padding: 12px var(--aw-pad) 28px; font-size: .78rem; color: var(--sav-color-text-muted); }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ home */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 36px; align-items: center; padding: 18px 0 8px; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.3rem); margin: 14px 0 12px; letter-spacing: -.035em; }
.hero-t .lead { font-size: 1.15rem; }
.hsearch { display: block; margin: 20px 0 16px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-art { position: relative; min-height: 340px; }
.ha { position: relative; height: 340px; }
.ha-card { position: absolute; display: flex; align-items: center; gap: 12px; width: min(300px, 86%); padding: 14px 16px; background: var(--sav-color-surface); border: 1px solid var(--sav-color-border); border-radius: 16px; box-shadow: var(--sav-shadow-lg, 0 18px 40px rgb(0 0 0 / .12)); }
.ha-card div { display: grid; flex: 1; }
.ha-card small { color: var(--sav-color-text-muted); }
.ha-card:nth-of-type(2) { top: 20px; left: 4%; }
.ha-card:nth-of-type(3) { top: 128px; right: 0; z-index: 2; }
.ha-card:nth-of-type(4) { top: 236px; left: 10%; }
.ha-score { font-weight: 800; font-size: 1.2rem; padding: 4px 10px; border-radius: 10px; background: var(--sav-color-surface-2); }
.ha-trophy { position: absolute; right: 8%; top: -6px; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 24px; background: linear-gradient(135deg, #f6d36b, var(--gold)); color: #3d2c00; font-size: 2.6rem; box-shadow: 0 14px 30px rgb(201 154 20 / .35); }
.ha-bars { position: absolute; right: 6%; bottom: 0; display: flex; gap: 6px; align-items: flex-end; height: 80px; }
.ha-bars i { width: 14px; border-radius: 6px 6px 3px 3px; background: color-mix(in oklab, var(--sav-color-primary) 70%, transparent); }
.ha-bars i:nth-child(5) { background: var(--gold); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .hero-art { display: none; } }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 26px 0; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vote-alert { margin: 10px 0 0; }
.cats { display: flex; flex-wrap: wrap; gap: 10px; }
.cat { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--sav-color-surface); border: 1px solid var(--sav-color-border); color: var(--sav-color-text); text-decoration: none; font-weight: 600; transition: transform .15s; }
.cat:hover { transform: translateY(-2px); border-color: var(--sav-color-primary); }
.cat sav-icon { color: var(--sav-color-primary); }
.cat small { color: var(--sav-color-text-muted); font-weight: 500; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.whyc sav-icon { font-size: 1.6rem; color: var(--sav-color-primary); margin-bottom: 8px; }
.whyc h3 { font-size: 1.05rem; }
.whyc p { color: var(--sav-color-text-muted); margin: 0; font-size: .95rem; }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 26px 28px; border-radius: 22px; background: linear-gradient(120deg, color-mix(in oklab, var(--sav-color-primary) 16%, var(--sav-color-surface)), var(--sav-color-surface)); border: 1px solid var(--sav-color-border); }
.cta p { margin: 0; color: var(--sav-color-text-muted); }
.winners { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.winner { display: grid; gap: 10px; padding: 14px 16px; border-radius: 16px; background: linear-gradient(160deg, var(--gold-soft), var(--sav-color-surface) 70%); border: 1px solid color-mix(in oklab, var(--gold) 45%, var(--sav-color-border)); color: var(--sav-color-text); text-decoration: none; }
.winner:hover { }
.w-award { display: flex; gap: 6px; align-items: center; font-size: .85rem; font-weight: 700; color: color-mix(in oklab, var(--gold) 70%, var(--sav-color-text)); }
.w-p { display: flex; align-items: center; gap: 10px; }

.contenders { padding: 22px 24px; border-radius: 24px; background: linear-gradient(140deg, var(--gold-soft), var(--sav-color-surface) 55%); border: 1px solid color-mix(in oklab, var(--gold) 40%, var(--sav-color-border)); }
.cnt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cnt-head p { margin: 6px 0 0; }
.cnt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
sav-card.cnt { display: block; }
.cnt-cat { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.cnt-cat sav-icon { color: var(--gold); flex: none; }
.cnt-list { display: grid; gap: 6px; }
.cnt-p { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 12px; color: var(--sav-color-text); text-decoration: none; }
.cnt-p:hover { background: var(--sav-color-surface-2); }
.cnt-p > span:not(.logo) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cnt-p b { font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .contenders { padding: 16px 14px; border-radius: 20px; } }

/* ------------------------------------------------------------------ product cards */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
sav-card.pc { display: block; height: 100%; }
sav-card.pc::part(base) { height: 100%; display: flex; flex-direction: column; }
sav-card.pc::part(body) { flex: 1; }
.pcard { display: grid; gap: 10px; color: inherit; text-decoration: none; align-content: start; }
.pc-top { display: flex; align-items: center; gap: 12px; }
.pc-name { flex: 1; min-width: 0; display: grid; }
.pc-name strong { font-size: 1.08rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-name small { color: var(--sav-color-text-muted); }
.pc-tag { margin: 0; color: var(--sav-color-text-muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.pc-foot { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--sav-color-text-muted); }
.pc-comm, .pc-wins { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.pc-wins { color: var(--gold); font-weight: 700; }
.pc-cmp { margin-right: -6px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px; }
.plats { display: inline-flex; gap: 6px; color: var(--sav-color-text-muted); }
.plat { display: inline-flex; }
.logo { width: var(--s); height: var(--s); border-radius: calc(var(--s) * .26); object-fit: contain; background: var(--sav-color-surface); flex: none; border: 1px solid var(--sav-color-border); }
.logo.mono { display: inline-grid; place-items: center; font-weight: 800; font-size: calc(var(--s) * .38); color: #fff; background: linear-gradient(135deg, hsl(var(--h) 60% 52%), hsl(calc(var(--h) + 30) 55% 38%)); border: 0; text-transform: uppercase; letter-spacing: -.03em; }
.ring { flex: none; }
.place.p1 { --sav-color-warning: var(--gold); }

/* ------------------------------------------------------------------ catalogue */
.filters { display: grid; gap: 12px; padding: 16px; border-radius: 18px; background: var(--sav-color-surface); border: 1px solid var(--sav-color-border); margin-bottom: 12px; }
.frow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .frow { grid-template-columns: 1fr 1fr; } .frow > :last-child { grid-column: 1 / -1; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.count { color: var(--sav-color-text-muted); font-size: .9rem; margin: 6px 2px 12px; }

/* ------------------------------------------------------------------ product page */
.crumbs { font-size: .9rem; color: var(--sav-color-text-muted); margin-bottom: 12px; }
.crumbs a { color: inherit; }
.phero { display: grid; grid-template-columns: 1fr 300px; gap: 22px; align-items: start; }
.ph-id { display: flex; gap: 20px; align-items: flex-start; }
.ph-id h1 { margin: 2px 0 6px; }
.ph-id .lead { margin-bottom: 12px; }
.ph-plat { margin: 10px 0 0; }
.ph-plat .plats { gap: 10px; }
.ph-plat .plat { padding: 6px; border-radius: 9px; background: var(--sav-color-surface-2); }
.ph-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ph-score { display: grid; gap: 12px; padding: 18px; border-radius: 20px; background: var(--sav-color-surface); border: 1px solid var(--sav-color-border); box-shadow: var(--sav-shadow-md, 0 6px 18px rgb(0 0 0 / .06)); }
.ps-main { display: flex; align-items: center; gap: 14px; }
.ps-main div { display: grid; }
.ps-main small { color: var(--sav-color-text-muted); }
.ps-comm { display: flex; align-items: center; gap: 8px; font-size: .92rem; }
.indep-tag { justify-self: start; }
@media (max-width: 860px) { .phero { grid-template-columns: 1fr; } .ph-score { transform: none; } .ph-id { flex-direction: column; gap: 12px; } }
.pawards { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 0; }
.paward { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; border-radius: 14px; background: linear-gradient(140deg, var(--gold-soft), var(--sav-color-surface)); border: 1px solid color-mix(in oklab, var(--gold) 45%, var(--sav-color-border)); color: var(--sav-color-text); text-decoration: none; }
.paward sav-icon { color: var(--sav-color-success); }
.pcols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; margin-top: 8px; }
.pside { display: grid; gap: 14px; position: sticky; top: 84px; margin-top: 40px; }
@media (max-width: 960px) { .pcols { grid-template-columns: 1fr; } .pside { position: static; margin-top: 0; } }
.prose p { font-size: 1.03rem; max-width: 72ch; }
.pc2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .pc2 { grid-template-columns: 1fr; } }
.pc2 h3 { display: flex; align-items: center; gap: 6px; font-size: 1rem; }
.pros h3 sav-icon { color: var(--sav-color-success); }
.cons h3 sav-icon { color: var(--sav-color-warning); }
.pc2 ul { margin: 0; padding-left: 1.2em; display: grid; gap: 5px; }
.scores { display: grid; gap: 4px; }
.srow { display: grid; grid-template-columns: minmax(150px, 230px) 1fr 52px; gap: 6px 14px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--sav-color-border); }
.sname { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.sname sav-icon { color: var(--sav-color-primary); flex: none; }
.snote { grid-column: 1 / -1; margin: 0; font-size: .9rem; color: var(--sav-color-text-muted); }
.sval { text-align: right; font-variant-numeric: tabular-nums; font-size: 1.05rem; }
@media (max-width: 560px) { .srow { grid-template-columns: 1fr 52px; } .srow .sbar { grid-column: 1 / -1; grid-row: 2; } }
.sbar { height: 10px; border-radius: 6px; background: var(--sav-color-surface-2); overflow: hidden; }
.sbar i { display: block; height: 100%; border-radius: 6px; background: var(--c, var(--sav-color-primary)); }
[data-tone="success"] { --c: var(--sav-color-success); }
[data-tone="primary"] { --c: var(--sav-color-primary); }
[data-tone="warning"] { --c: var(--sav-color-warning); }
[data-tone="danger"] { --c: var(--sav-color-danger); }
.sval[data-tone], .rv-score[data-tone], .ha-score[data-tone], b[data-tone], .cmp-v[data-tone] { color: color-mix(in oklab, var(--c) 78%, var(--sav-color-text)); }
.radar { margin: 18px 0; padding: 12px; border-radius: 18px; background: var(--sav-color-surface); border: 1px solid var(--sav-color-border); }
.tested h3, .disc h3, .altbox h3 { display: flex; align-items: center; gap: 7px; font-size: 1rem; }
.devices { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 8px; }
.devices li { display: flex; gap: 8px; align-items: flex-start; }
.devices li sav-icon { color: var(--sav-color-primary); margin-top: 3px; flex: none; }
.devices.small li { font-size: .85rem; }
.tested dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 8px; font-size: .9rem; }
.tested dt { color: var(--sav-color-text-muted); }
.tested dd { margin: 0; font-weight: 600; }
.disc p { font-size: .88rem; color: var(--sav-color-text-muted); }
.disc a { font-size: .88rem; }
.altchip { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--sav-color-surface-2); color: var(--sav-color-text); text-decoration: none; font-size: .9rem; }
.altchip:hover { background: color-mix(in oklab, var(--sav-color-primary) 16%, transparent); }
.comm { margin-top: 48px; }
.rv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 6px 0 14px; }
.rv-head p { margin: 0; }
.reviews { display: grid; gap: 12px; }
.rv-top { display: flex; align-items: center; gap: 10px; }
.rv-top > div { display: grid; }
.rv-score { font-weight: 800; font-size: 1.1rem; }
.rv h4 { margin: 10px 0 4px; }
.rv-body { white-space: pre-line; margin: 8px 0; }
.rv-act, .cm-a { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hid { opacity: .6; }
.comments { display: grid; gap: 14px; margin: 8px 0 18px; }
.cm { display: flex; gap: 10px; }
.cm-b { flex: 1; min-width: 0; }
.cm-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cm p { margin: 4px 0; white-space: pre-line; }
.cform { display: grid; gap: 8px; max-width: 680px; }
.cform .right { display: flex; }
sav-timeline { margin-top: 10px; display: block; }

/* ------------------------------------------------------------------ compare */
.cmp-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--sav-color-border); background: var(--sav-color-surface); }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { padding: 10px 14px; border-bottom: 1px solid var(--sav-color-border); text-align: left; vertical-align: middle; }
.cmp thead th { position: sticky; top: 0; background: var(--sav-color-surface); }
.cmp tbody th { font-weight: 600; white-space: nowrap; color: var(--sav-color-text-muted); }
.cmp-l { display: inline-flex; align-items: center; gap: 7px; }
.cmp-p { display: inline-flex; align-items: center; gap: 10px; color: var(--sav-color-text); text-decoration: none; margin-right: 4px; }
.cmp-v { display: grid; gap: 4px; font-weight: 700; min-width: 80px; }
.cmp-v.best { color: var(--sav-color-success); }
.cmp-v.best::after { content: "★"; position: absolute; }
.cmp-sep th { background: var(--sav-color-surface-2); color: var(--sav-color-text) !important; }
.yes { color: var(--sav-color-success); display: inline-flex; gap: 4px; align-items: center; }
.no { color: var(--sav-color-text-muted); display: inline-flex; gap: 4px; align-items: center; }
.ctray { position: fixed; z-index: 40; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-radius: 16px; background: var(--sav-color-surface); border: 1px solid var(--sav-color-border); box-shadow: var(--sav-shadow-lg, 0 18px 40px rgb(0 0 0 / .18)); }
.ctray sav-icon { color: var(--sav-color-primary); }

/* ------------------------------------------------------------------ alternatives, awards */
.alts { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; margin-top: 16px; }
.alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--sav-color-surface); border: 1px solid var(--sav-color-border); color: var(--sav-color-text); text-decoration: none; }
.alt:hover { border-color: var(--sav-color-primary); transform: translateY(-2px); }
.editions { display: grid; gap: 10px; }
.edition { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(120deg, var(--gold-soft), var(--sav-color-surface) 60%); border: 1px solid color-mix(in oklab, var(--gold) 40%, var(--sav-color-border)); color: var(--sav-color-text); text-decoration: none; }
.edition > div { flex: 1; display: grid; }
.edition small { color: var(--sav-color-text-muted); }
.ed-year { font-size: 1.8rem; font-weight: 900; letter-spacing: -.04em; color: var(--gold); }
.ed-head { display: flex; gap: 22px; align-items: flex-start; }
.ed-big { display: grid; place-items: center; gap: 2px; min-width: 110px; padding: 16px; border-radius: 24px; background: linear-gradient(140deg, #f6d36b, var(--gold)); color: #3d2c00; font-weight: 900; font-size: 1.6rem; }
.ed-big sav-icon { font-size: 2.2rem; }
@media (max-width: 640px) { .ed-head { flex-direction: column; } }
.acat-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.podium { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 14px 0; }
.pod { display: block; }
.pod.p1 { order: -1; }
.pod.p1::part(base) { background: linear-gradient(160deg, var(--gold-soft), var(--sav-color-surface) 70%); border-color: color-mix(in oklab, var(--gold) 50%, var(--sav-color-border)); }
.pod-p { display: flex; gap: 12px; align-items: center; margin: 12px 0 8px; color: var(--sav-color-text); text-decoration: none; }
.pod-p div { display: grid; }
.pod-p small { color: var(--sav-color-text-muted); }
.pod-m { font-size: .92rem; font-style: italic; color: var(--sav-color-text-muted); }
.pod-f { display: flex; align-items: center; gap: 10px; }
.nom-h { font-size: .95rem; color: var(--sav-color-text-muted); margin: 22px 0 10px; }
.noms { display: grid; gap: 8px; }
.nom { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; background: var(--sav-color-surface); border: 1px solid var(--sav-color-border); }
.nom a { display: inline-flex; align-items: center; gap: 10px; color: var(--sav-color-text); text-decoration: none; font-weight: 600; }

/* ------------------------------------------------------------------ methodology, legal */
.crit { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.critc h3 { display: flex; align-items: center; gap: 8px; font-size: 1.02rem; }
.critc h3 sav-icon { color: var(--sav-color-primary); }
.critc p { margin: 0; color: var(--sav-color-text-muted); font-size: .93rem; }
.scale { display: grid; gap: 8px; max-width: 640px; margin-bottom: 14px; }
.scl { display: flex; align-items: center; gap: 14px; }
.scl .sval { min-width: 64px; text-align: center; padding: 4px 8px; border-radius: 10px; background: color-mix(in oklab, var(--c) 16%, transparent); font-weight: 800; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 2px 12px; }
.steps li::before { content: counter(s); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--sav-color-primary); color: var(--sav-color-on-primary); font-weight: 800; }
.steps li span { color: var(--sav-color-text-muted); }
.legals { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.legal h2 { display: flex; align-items: center; gap: 8px; font-size: 1.12rem; }
.legal h2 sav-icon { color: var(--sav-color-primary); }
.legal p { color: var(--sav-color-text-muted); font-size: .95rem; }

/* ------------------------------------------------------------------ accounts */
sav-card.auth { display: block; margin-top: clamp(8px, 4vh, 40px); }
sav-card.auth .idl-savbtn, sav-card.auth .idl-sav { width: 100%; max-width: none; margin: 0; }

/* the SavAccount button in Glass: its own colour variables (--sva-*) take the glass of the page, the shape stays "rounded"
   (10px, as set by identity.js), logo and words stay SavAccount's; the plain button shown until its script arrives matches it */
savaccount-button.idl-savbtn {
  --sva-bg: var(--sav-color-surface); --sva-line: var(--sav-color-border); --sva-fg: var(--sav-color-text);
  --sva-hover: color-mix(in oklab, var(--sav-color-surface), #fff 14%); --sva-focus: var(--sav-color-focus, var(--sav-color-primary));
  border-radius: 10px; background-image: var(--sav-sheen, none); box-shadow: var(--sav-shadow-sm);
  -webkit-backdrop-filter: var(--sav-backdrop, blur(16px)); backdrop-filter: var(--sav-backdrop, blur(16px));
}
.idl-sav, .idl-sav.idl-dark {
  border-radius: 10px; border-color: var(--sav-color-border); background: var(--sav-color-surface); background-image: var(--sav-sheen, none); color: var(--sav-color-text);
  box-shadow: var(--sav-shadow-sm); -webkit-backdrop-filter: var(--sav-backdrop, blur(16px)); backdrop-filter: var(--sav-backdrop, blur(16px));
}
.idl-sav:hover, .idl-sav.idl-dark:hover { background-color: color-mix(in oklab, var(--sav-color-surface), #fff 14%); }
.auth-h { text-align: center; }
.auth-h img { }
.auth-h h1 { margin-top: 8px; font-size: 1.6rem; }
sav-radio-group.wide { display: block; width: 100%; }
sav-radio-group.wide::part(base) { display: flex; width: 100%; }
sav-radio-group.wide sav-radio { flex: 1 1 0; }
sav-radio-group.wide sav-radio::part(base) { width: 100%; }
.me-head .row div { display: grid; }
.me-head h1 { margin: 0; }
.list { display: grid; gap: 8px; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--sav-color-surface); border: 1px solid var(--sav-color-border); color: var(--sav-color-text); text-decoration: none; flex-wrap: wrap; }
a.li:hover { border-color: var(--sav-color-primary); }
.li > div { display: grid; min-width: 0; }
.li.col { display: grid; }
.li .reply { color: var(--sav-color-text-muted); margin: 0; }
.li p { margin: 0; }
.settings { display: grid; gap: 14px; max-width: 680px; }
.settings h3 { font-size: 1.05rem; }
sav-tabs { display: block; }

/* ------------------------------------------------------------------ staff */
.staff { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.st-nav { position: sticky; top: 84px; display: grid; gap: 2px; padding: 10px; border-radius: 18px; background: var(--sav-color-surface); border: 1px solid var(--sav-color-border); }
.st-nav a { display: flex; align-items: center; gap: 9px; padding: 9px 12px; border-radius: 10px; color: var(--sav-color-text-muted); text-decoration: none; font-weight: 600; }
.st-nav a:hover { background: var(--sav-color-surface-2); color: var(--sav-color-text); }
.st-nav a[aria-current="page"] { background: color-mix(in oklab, var(--sav-color-primary) 13%, transparent); color: var(--sav-color-primary); }
.st-who { display: flex; align-items: center; gap: 8px; padding: 6px 12px 12px; font-size: .85rem; color: var(--sav-color-success); font-weight: 700; border-bottom: 1px solid var(--sav-color-border); margin-bottom: 6px; }
@media (max-width: 860px) {
  .staff { grid-template-columns: 1fr; }
  .st-nav { position: static; display: flex; overflow-x: auto; padding: 6px; }
  .st-nav a { flex: none; }
  .st-who { display: none; }
}
.st-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.st-head h1 { font-size: 1.6rem; margin: 0; }
.st-body h2 { font-size: 1.15rem; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
sav-card.q { display: block; margin-bottom: 10px; }
.q-text { white-space: pre-wrap; font: inherit; margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: var(--sav-color-surface-2); }
.st-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.st-main, .st-side { display: grid; gap: 16px; }
.st-side .sticky { position: sticky; top: 84px; }
@media (max-width: 1060px) { .st-cols { grid-template-columns: 1fr; } .st-side .sticky { position: static; } }
sav-card.st-card { display: block; }
sav-card.st-card h2 { margin-top: 0; }
.st-total { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.st-total div { display: grid; }
.st-score { padding: 12px 0; border-bottom: 1px solid var(--sav-color-border); display: grid; gap: 8px; }
.st-sh { display: grid; grid-template-columns: auto 1fr 150px; gap: 10px; align-items: center; }
.st-sh sav-icon { color: var(--sav-color-primary); }
.st-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) { .st-notes { grid-template-columns: 1fr; } .st-sh { grid-template-columns: auto 1fr; } .st-sh sav-number-input { grid-column: 1 / -1; } }
.logo-prev { display: inline-flex; }
/* the product editor: numbered sections, a publishing card on the side, a save bar on small screens */
.st-sec .sec-h { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 16px; }
.st-sec .sec-h h2 { margin: 0 0 2px; }
.st-sec .sec-h p { margin: 0; }
.sec-n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: color-mix(in oklab, var(--sav-color-primary) 18%, transparent); color: var(--sav-color-primary); font-weight: 800; }
.ident { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; }
.logo-box { display: flex; gap: 12px; align-items: flex-start; }
.logo-box .tight { gap: 6px; max-width: 150px; }
@media (max-width: 640px) { .ident { grid-template-columns: 1fr; } }
.shot-drop { display: grid; gap: 12px; padding: 12px; border-radius: var(--sav-radius); border: 2px dashed var(--sav-color-border); }
.shot-drop.over { border-color: var(--sav-color-primary); background: color-mix(in oklab, var(--sav-color-primary) 8%, transparent); }
sav-sortable.shots-ed { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.shot-ed { position: relative; display: grid; gap: 6px; padding: 6px; border-radius: 12px; background: var(--sav-color-surface-2); }
.shot-ed img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; display: block; background: var(--sav-color-bg); }
.shot-ed .shot-rm { position: absolute; top: 10px; right: 10px; }
.shots { display: flex; gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.shot { flex: none; display: grid; gap: 6px; width: min(340px, 78vw); padding: 0; border: 0; background: none; color: var(--sav-color-text-muted); font: inherit; font-size: .85rem; text-align: left; cursor: zoom-in; scroll-snap-align: start; }
.shot img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; border: 1px solid var(--sav-color-border); box-shadow: var(--sav-shadow-sm); display: block; }
.shot:focus-visible img { outline: 3px solid var(--sav-color-focus, var(--sav-color-primary)); outline-offset: 2px; }
.shot-view { display: grid; gap: 10px; }
.shot-big { width: 100%; max-height: 75vh; object-fit: contain; border-radius: 10px; }
.center-row { justify-content: center; }
.slug-prev { display: block; font-size: .8rem; color: var(--sav-color-text-muted); word-break: break-all; }
.sw-stack { align-content: center; gap: 10px; }
.scores-ed { display: grid; gap: 4px; }
.st-score { padding: 12px 0; border-bottom: 1px solid var(--sav-color-border); display: grid; gap: 8px; }
.st-score:last-child { border-bottom: 0; }
.pub-card { display: block; }
.pub-card .pub-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.pub-card .pub-h h2 { margin: 0; font-size: 1.1rem; }
.pub-card > * + * { margin-top: 12px; }
.ready-h { display: flex; align-items: center; justify-content: space-between; margin-top: 16px; }
.checklist { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 6px; font-size: .9rem; color: var(--sav-color-text-muted); }
.checklist li { display: flex; gap: 8px; align-items: flex-start; }
.checklist li sav-icon { flex: none; margin-top: 2px; }
.checklist li.ok { color: var(--sav-color-text); }
.checklist li.ok sav-icon { color: var(--sav-color-success); }
.st-savebar { display: none; }
@media (max-width: 1060px) {
  .st-savebar { display: flex; align-items: center; gap: 10px; position: sticky; bottom: 0; z-index: 20; margin: 16px calc(-1 * var(--aw-pad)) -72px; padding: 10px var(--aw-pad) calc(10px + env(safe-area-inset-bottom));
    background: var(--sav-color-surface); border-top: 1px solid var(--sav-color-border); -webkit-backdrop-filter: var(--sav-backdrop, blur(16px)); backdrop-filter: var(--sav-backdrop, blur(16px)); }
  .st-savebar .sb-info { flex: 1; font-size: .88rem; color: var(--sav-color-text-muted); }
}
.alt-pick { display: grid; gap: 6px; }
.flabel { font-size: var(--sav-font-size-sm, .875rem); font-weight: 600; }
.alt-list { display: grid; gap: 4px; max-height: 320px; overflow: auto; padding: 2px; }
/* test devices: the ones already used, then a new one */
.dev-pick { margin-top: -4px; } .dev-new { display: grid; gap: 6px; padding-top: 4px; }
.dev-g { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
@media (max-width: 560px) { .dev-g { grid-template-columns: 1fr; } }
.alt-new { display: grid; gap: 6px; justify-items: start; padding-top: 8px; border-top: 1px solid var(--sav-color-border); }
.ledit { display: grid; gap: 10px; }
sav-card.lrow { display: block; }
.lrow-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.lrow-h .lic { color: var(--sav-color-primary); }
.noms-ed { display: grid; gap: 10px; margin: 10px 0; }
.nrow { display: grid; gap: 8px; padding: 12px; border-radius: 12px; background: var(--sav-color-surface-2); }
.ed-y { font-weight: 900; color: var(--gold); }
.scope { display: grid; gap: 10px; }
.scope-list { display: grid; gap: 8px; }
.plist { display: grid; gap: 4px; max-height: 240px; overflow: auto; padding: 4px; }
.audit .when { min-width: 90px; }
.audit code { font-size: .85rem; padding: 2px 6px; border-radius: 6px; background: var(--sav-color-surface-2); }
.audit .detail { max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.li.revoked { opacity: .7; }
.dlg-err { margin-top: 10px; }
