
:root { color-scheme: light; --toolvy-top:#fff; --toolvy-bottom:#e8f4ff; --toolvy-ink:#101114; --toolvy-muted:#545962; --toolvy-line:#a5acb6; --toolvy-panel:#ffffffd9; --toolvy-control:#fff; --toolvy-hover:#e6eff8; }
:root[data-theme=dark] { color-scheme: dark; --toolvy-top:#101216; --toolvy-bottom:#172739; --toolvy-ink:#f6f7fa; --toolvy-muted:#b4bac5; --toolvy-line:#606a78; --toolvy-panel:#171c25ed; --toolvy-control:#1c222c; --toolvy-hover:#2c3d51; }
body.toolvy { margin:0; min-height:100vh; background:linear-gradient(to bottom,var(--toolvy-top),var(--toolvy-bottom)); color:var(--toolvy-ink); font-family:system-ui,sans-serif; }
.toolvy-header { box-sizing:border-box; position:relative; z-index:5; display:flex; align-items:center; gap:clamp(9px,3vw,38px); padding:0 clamp(10px,4vw,52px); border-bottom:1px solid var(--toolvy-line); background:var(--toolvy-top); }
.toolvy-brand { color:inherit; flex:0 1 210px; min-width:0; }
.toolvy-brand svg { display:block; width:100%; height:auto; }
.toolvy-header .suffix { fill:var(--toolvy-muted); font-size:22px; letter-spacing:0; }
.toolvy-nav { flex:1; display:flex; justify-content:space-between; align-items:center; gap:8px; }
.toolvy-nav details { position:relative; }
.toolvy-nav summary, #theme-toggle { box-sizing:border-box; min-height:44px; padding:10px 12px; border:1px solid var(--toolvy-line); border-radius:10px; background:var(--toolvy-control); color:inherit; font:650 .95rem system-ui; cursor:pointer; white-space:nowrap; }
.toolvy-menu { position:absolute; top:calc(100% + 7px); left:0; display:grid; min-width:180px; padding:6px; border:1px solid var(--toolvy-line); border-radius:10px; background:var(--toolvy-control); box-shadow:0 8px 24px #0002; }
.toolvy-menu a { padding:10px 12px; border-radius:7px; color:inherit; text-decoration:none; white-space:nowrap; }
.toolvy-menu a:hover { background:var(--toolvy-hover); }
#theme-toggle { width:44px; padding:0; display:grid; place-items:center; }
#theme-toggle svg { width:21px; height:21px; }
#theme-toggle .sun, [data-theme=dark] #theme-toggle .moon { display:none; }
[data-theme=dark] #theme-toggle .sun { display:block; }
.toolvy :focus-visible { outline:2px solid var(--toolvy-ink); outline-offset:3px; }
.toolvy-home { width:min(100% - 36px, 1040px); margin:clamp(52px,12vw,128px) auto; }
.toolvy-home h1 { margin:0 0 32px; font-size:clamp(2.5rem,7vw,5.6rem); letter-spacing:-.065em; line-height:1.04; }
.toolvy-home article { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:24px; padding:clamp(20px,4vw,38px); background:var(--toolvy-panel); border:1px solid var(--toolvy-line); border-radius:20px; }
.toolvy-home h2 { margin:0 0 7px; font-size:clamp(1.5rem,3vw,2.2rem); }
.toolvy-home p, .toolvy-intro { color:var(--toolvy-muted); margin:0; }
.toolvy-action, .toolvy #download { background:var(--toolvy-ink); color:var(--toolvy-top); cursor:pointer; }
.toolvy-action { display:inline-block; padding:12px 18px; border-radius:10px; font-weight:650; text-decoration:none; }
.toolvy #downloader { margin-top:clamp(34px,7vw,86px); }
.toolvy #downloader h1 { margin-bottom:10px; }
.toolvy-intro { text-align:center; margin-bottom:30px; }
.toolvy .card, .toolvy .format-menu, .toolvy .picker { background:var(--toolvy-panel); border:1px solid var(--toolvy-line); }
.toolvy input, .toolvy select, .toolvy #format summary, .toolvy .platforms button, .toolvy .platforms summary, .toolvy .format-menu button, .toolvy .photo-grid button { background:var(--toolvy-control); color:var(--toolvy-ink); border-color:var(--toolvy-line); }
.toolvy :is(.format-menu,.platforms,.photo-grid) button:is(:hover,[aria-pressed=true]) { background:var(--toolvy-hover); color:var(--toolvy-ink); border-color:var(--toolvy-line); }
.toolvy input::placeholder, .toolvy .format-menu span, .toolvy .site-list p, .toolvy .note { color:var(--toolvy-muted); }
.toolvy .note a { color:inherit; }
.toolvy .countdown, .toolvy .photo-grid img { background:var(--toolvy-hover); }
.toolvy #download:disabled { cursor:wait; opacity:.65; }
.toolvy-footer { padding:0 18px 32px; text-align:center; font-size:.9rem; }
.toolvy-footer a { color:var(--toolvy-muted); }
/* Text pages (privacy notice) carry their own page styles; keep the Toolvy header and theme on top. */
.toolvy-doc .toolvy-header .toolvy-nav { max-width:none; margin:0; padding:0; }
.toolvy-doc .toolvy-nav a { margin-right:0; }
.toolvy-doc main { box-sizing:border-box; width:min(100% - 32px, 760px); max-width:none; margin:clamp(28px,6vw,64px) auto; padding:clamp(20px,4vw,40px); background:var(--toolvy-panel); border:1px solid var(--toolvy-line); border-radius:20px; color:var(--toolvy-ink); }
.toolvy-doc main h1 { font-size:clamp(2rem,5vw,3rem); letter-spacing:-.04em; margin-top:0; }
.toolvy-doc main a { color:inherit; text-underline-offset:3px; }
