@font-face { font-family: "Alexandria"; src: url("/fonts/Alexandria-Bold.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }
:root {
  color-scheme: light;
  --bg: #f5f7fa; --bg-2: #eef2f6; --surface: #ffffff; --surface-2: #f6f8fb;
  --line: #e2e7ee; --line-2: #d3dae4; --text: #0b1324; --muted: #4b5568; --faint: #687286;
  
  --gold: #00c890; --gold-hover: #00b480; --gold-2: #007d58; --gold-soft: rgba(0, 200, 144, .10); --on-gold: #04241a;
  --bad: #c5221f; --field: #ffffff; --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .07);
  --shadow-lg: 0 2px 4px rgba(16, 24, 40, .04), 0 18px 48px rgba(16, 24, 40, .10);
  --ad-bg: #f1f3f6;
  --radius: 18px;
  --display: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
}
:root[lang="ar"] { --display: "Alexandria", system-ui, -apple-system, "Segoe UI", sans-serif; }
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1220; --bg-2: #0f1829; --surface: #131e33; --surface-2: #17243d;
    --line: rgba(255, 255, 255, .09); --line-2: rgba(255, 255, 255, .14); --text: #eef2f8; --muted: #a6b3c9; --faint: #8190a8;
    --gold: #00c890; --gold-hover: #19d6a0; --gold-2: #4fe0b4; --gold-soft: rgba(0, 200, 144, .14); --on-gold: #04241a;
    --bad: #ffb3b3; --field: #0e1729; --shadow: 0 10px 30px rgba(0, 0, 0, .35); --shadow-lg: 0 20px 60px rgba(0, 0, 0, .45);
    --ad-bg: #111a2c;
  }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { font-family: var(--body); background: var(--bg); color: var(--text); line-height: 1.65; overflow-x: clip; min-height: 100vh; }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; }
a { color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.wrap { width: min(980px, 100% - 32px); margin-inline: auto; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.top { position: relative; z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 56px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.brand .mark { width: 30px; height: 30px; color: var(--gold); flex: none; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; color: var(--muted); padding: 7px 11px; border-radius: 10px; font-size: .93rem; white-space: nowrap; }
.nav a:hover { color: var(--gold-2); background: var(--gold-soft); }
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; color: var(--muted); padding: 7px 11px; border-radius: 10px; font-size: .93rem; display: flex; gap: 6px; align-items: center; }
.langs summary::-webkit-details-marker { display: none; }
.langs[open] summary, .langs summary:hover { color: var(--text); background: var(--gold-soft); }
.langs ul { position: absolute; inset-inline-end: 0; top: 110%; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 170px; box-shadow: var(--shadow); z-index: 40; }
.langs li a { display: block; padding: 7px 12px; border-radius: 9px; text-decoration: none; }
.langs li a:hover, .langs li a[aria-current] { background: var(--gold-soft); color: var(--gold-2); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 6px 10px; font: inherit; cursor: pointer; }
@media (max-width: 760px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; inset-inline: 0; top: 56px; flex-direction: column; align-items: stretch; background: var(--surface); box-shadow: var(--shadow); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; }
  body.menu-open .nav { display: flex; }
  .langs ul { position: static; box-shadow: none; margin-top: 4px; }
}
main { padding: 16px 0 28px; }
.crumbs { font-size: .85rem; color: var(--faint); margin-bottom: 10px; }
.crumbs a { color: var(--muted); }
.hero { text-align: center; margin-bottom: 12px; }
.hero h1 { font-size: clamp(1.45rem, 5.4vw, 2.4rem); letter-spacing: -.01em; }
.sub { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.lead { color: var(--muted); max-width: 680px; margin: 8px auto 0; }
.notice { background: var(--gold-soft); border: 1px solid var(--line); color: var(--text); border-radius: 14px; padding: 10px 14px; margin: 0 auto 14px; max-width: 760px; font-size: .95rem; text-align: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 14px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid transparent; transition: transform .15s, background .2s; }
.btn svg { width: 20px; height: 20px; }
.btn-gold { background: var(--gold); color: var(--on-gold); box-shadow: 0 6px 16px rgba(0, 200, 144, .28); }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .7; cursor: wait; transform: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: clamp(12px, 3.6vw, 22px); box-shadow: var(--shadow-lg); max-width: 820px; margin-inline: auto; }
.dl-row { display: grid; gap: 8px; }
@media (min-width: 640px) { .dl-row { grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; } .dl-row .dl-go { width: auto; padding-inline: 26px; } }
.dl-more { margin-top: 8px; font-size: .88rem; }
.dl-more summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; gap: 4px 10px; justify-content: center; color: var(--muted); padding: 4px; border-radius: 10px; }
.dl-more summary::-webkit-details-marker { display: none; }
.dl-more summary > span:first-child { color: var(--gold-2); font-weight: 700; }
.dl-more summary:hover { background: var(--surface-2); }
.dl-more summary > span:first-child::after { content: " ▾"; }
.dl-more[open] summary > span:first-child::after { content: " ▴"; }
.dl-more-sum { color: var(--faint); }
.dl-more[open] { padding-bottom: 4px; }
.dl-input { display: flex; align-items: center; gap: 6px; min-width: 0; background: var(--field); border: 2px solid var(--line-2); border-radius: 16px; padding: 5px; transition: border-color .15s, box-shadow .15s; }
.dl-input:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.dl-input input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; color: var(--text); background: transparent; border: 0; outline: 0; padding: 10px 8px; text-align: start; }
.dl-input input::placeholder { color: var(--faint); }
.dl-svc { flex: none; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-2); border: 1px solid var(--line); white-space: nowrap; }
.dl-svc.off { color: var(--bad); text-decoration: line-through; }
.dl-paste, .dl-clear { flex: none; display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 700; cursor: pointer; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.dl-paste:hover { color: var(--gold-2); border-color: var(--gold); }
.dl-paste svg, .dl-clear svg { width: 18px; height: 18px; }
.dl-clear { background: none; border-color: transparent; color: var(--muted); padding: 8px; }
.dl-modes { border: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 10px; }
.dl-modes label { flex: 1 1 0; min-width: 0; cursor: pointer; }
.dl-modes input { position: absolute; opacity: 0; pointer-events: none; }
.dl-modes span { display: block; text-align: center; padding: 9px 6px; border-radius: 12px; font-weight: 700; font-size: .93rem; border: 1px solid var(--line); color: var(--muted); background: var(--field); }
.dl-modes input:checked + span { color: var(--on-gold); background: var(--gold); border-color: var(--gold); }
.dl-modes input:focus-visible + span { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.dl-opts { display: grid; grid-template-columns: 1fr; gap: 10px; align-items: end; }
@media (min-width: 640px) { .dl-opts { grid-template-columns: 1fr 1.3fr; } }
.field { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .92rem; }
.field input, .field select, .field textarea { font: inherit; font-size: 1rem; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; width: 100%; }
.field textarea { min-height: 96px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: .9rem; cursor: pointer; line-height: 1.6; }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--gold); flex: none; }
.dl-go { width: 100%; padding: 15px 22px; font-size: 1.08rem; font-weight: 800; white-space: nowrap; border-radius: 14px; }
.cv-out + .dl-go, #cv-go { margin-top: 12px; }
.dl-go.loading svg { animation: bounce 1s ease-in-out infinite; }
@keyframes bounce { 50% { transform: translateY(3px); } }
.dl-terms { font-size: .78rem; color: var(--faint); margin-top: 2px; line-height: 1.5; }
.dl-terms a { color: var(--muted); }
.dl-hint { margin-top: 6px; color: var(--muted); font-size: .95rem; text-align: center; }
.dl-hint.dl-bad, .dl-bad { color: var(--bad); }
.dl-hint.dl-busy::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-inline-end: 8px; vertical-align: -2px; border: 2px solid var(--gold); border-inline-end-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dl-result { scroll-margin: 12px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.dl-ready { text-align: center; }
.dl-ready h2 { font-size: 1.25rem; color: var(--gold-2); }
.dl-ready h2::before { content: "✓ "; }
.dl-file { color: var(--muted); font-size: .9rem; margin-top: 4px; overflow-wrap: anywhere; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0 6px; }
.dl-small { color: var(--faint); font-size: .86rem; margin-top: 6px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
@media (min-width: 640px) { .dl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dl-item { display: grid; gap: 8px; min-width: 0; }
.dl-thumb { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--field); border: 1px solid var(--line); }
.dl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dl-type { position: absolute; inset-inline-start: 8px; bottom: 8px; font-size: .78rem; font-weight: 700; padding: 1px 8px; border-radius: 8px; background: rgba(7, 15, 31, .8); color: #fff; }
.dl-item .btn { padding: 9px 10px; font-size: .9rem; }
.dl-subs { display: grid; grid-template-columns: 1fr; gap: 10px; text-align: start; margin-top: 10px; }
@media (min-width: 640px) { .dl-subs { grid-template-columns: 2fr 1fr; } }
.dl-blocked { text-align: center; padding: 34px 16px; }
.dl-blocked h2 { color: var(--gold-2); margin-bottom: 6px; }
.dl-blocked p { color: var(--muted); margin-bottom: 16px; }
@media (max-width: 420px) { .dl-paste span { display: none; } .dl-paste { padding: 8px; } .dl-modes span { font-size: .84rem; padding: 9px 3px; } .dl-actions .btn { width: 100%; } }
.sec { margin-top: 26px; }
.sec h2 { font-size: 1.2rem; margin-bottom: 12px; color: var(--text); }
.sec h3 { font-size: 1rem; margin: 12px 0 4px; }
.about p { font-size: .9rem; line-height: 1.6; margin-bottom: 8px; }
.sec p { color: var(--muted); margin-bottom: 10px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 18px auto 0; max-width: 820px; }
.tiles-left, .tiles-all { max-width: none; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; font-size: .8rem; font-weight: 700; text-align: center; line-height: 1.25; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--gold); transform: translateY(-1px); }
.tile .ic { width: 28px; height: 28px; fill: var(--c, var(--text)); flex: none; }
.tile .letter { display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); color: var(--muted); font: 800 1rem var(--body); }
.tile.all .letter { background: var(--gold-soft); color: var(--gold-2); }
.tile[hidden] { display: none; }
[data-theme="dark"] .tile .ic { fill: var(--text); }
.site-search { display: block; width: min(560px, 100%); margin: 0 auto 6px; font: inherit; font-size: 1rem; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line-2); background: var(--field); color: var(--text); }
.site-search:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin: 12px auto 0; font-size: .86rem; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--gold); font-weight: 800; margin-inline-end: 6px; }
.trust a { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--line-2); }
.trust a:hover { color: var(--gold-2); }
.about details { margin-top: 4px; }
.about summary { cursor: pointer; color: var(--gold-2); font-weight: 700; margin-bottom: 8px; }
.ticks.big li { padding-block: 4px; color: var(--text); }
.status-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-top: 12px; }
.status-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.status-list .st-state { margin-inline-start: auto; font-size: .82rem; color: var(--muted); }
.st-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); flex: none; display: inline-block; }
[data-state="ok"] > .st-dot, .st-dot[data-state="ok"] { background: var(--gold); }
[data-state="degraded"] > .st-dot, .st-dot[data-state="degraded"] { background: #f2a33a; }
[data-state="down"] > .st-dot { background: var(--bad); }
.st-link { display: inline-flex; align-items: center; gap: 6px; }
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px auto 0; max-width: 820px; }
.strip-left { justify-content: flex-start; margin: 0; }
.strip a, .strip span { text-decoration: none; padding: 4px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .84rem; font-weight: 700; line-height: 1.7; white-space: nowrap; }
.strip a:hover { border-color: var(--gold); color: var(--gold-2); }
.strip .all { color: var(--gold-2); border-color: var(--gold); background: var(--gold-soft); }
@media (max-width: 639px) { .strip:not(.strip-left) > :nth-child(n+8):not(.all) { display: none; } }
.tips { text-align: center; color: var(--muted); font-size: .86rem; margin: 10px 0 0; }
.tips a { color: var(--gold-2); }
.tips .btn { color: var(--on-gold); margin-top: 8px; }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.sites a, .sites span { display: block; text-decoration: none; text-align: center; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: .93rem; }
.sites a:hover { border-color: var(--gold); color: var(--gold-2); }
.steps { counter-reset: s; list-style: none; display: grid; gap: 8px; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.steps li { counter-increment: s; position: relative; padding-block: 10px; padding-inline: 46px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; line-height: 1.6; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 10px; top: 12px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font-weight: 800; }
.howto { list-style: none; display: grid; gap: 10px; counter-reset: s; }
@media (min-width: 640px) { .howto { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.howto li { counter-increment: s; display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
@media (min-width: 640px) { .howto li { grid-template-columns: 1fr; align-items: start; text-align: center; padding: 14px; } }
.howto b { display: block; font-family: var(--display); font-size: 1rem; color: var(--text); }
.howto b::before { content: counter(s); display: inline-grid; place-items: center; width: 22px; height: 22px; margin-inline-end: 8px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font: 800 .8rem var(--body); vertical-align: 1px; }
.howto p { color: var(--muted); font-size: .88rem; line-height: 1.55; margin: 2px 0 0; }
.ill { width: 100%; height: auto; display: block; aspect-ratio: 240 / 140; }
@media (min-width: 640px) { .ill { max-width: 220px; margin: 0 auto 6px; } }
.ill .i-bg { fill: var(--bg-2); stroke: var(--line); }
.ill .i-bar { fill: var(--surface-2); }
.ill .i-dot { fill: var(--faint); opacity: .6; }
.ill .i-field { fill: var(--field); stroke: var(--line); }
.ill .i-sel { stroke: var(--gold); stroke-width: 1.5; }
.ill .i-line { fill: var(--muted); opacity: .75; }
.ill .i-soft { opacity: .35; }
.ill .i-card { fill: var(--surface-2); stroke: var(--line); }
.ill .i-play { fill: var(--gold); }
.ill .i-tip { fill: var(--text); }
.ill .i-tipt { fill: var(--bg); font: 700 11px var(--body); }
.ill .i-cur { fill: var(--text); stroke: var(--bg); stroke-width: 1.2; }
.ill .i-gold { fill: var(--gold); }
.ill .i-goldt { fill: var(--on-gold); font: 800 13px var(--body); }
.ill .i-arrow { fill: none; stroke: var(--on-gold); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ticks { list-style: none; display: grid; gap: 8px; }
.ticks li { padding-inline-start: 26px; position: relative; color: var(--muted); }
.ticks li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--gold); font-weight: 800; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); margin-bottom: 8px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.faq summary { cursor: pointer; padding: 10px 14px; font-weight: 700; font-size: .95rem; }
.faq details p { padding: 0 16px 14px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cards a { display: block; text-decoration: none; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cards a { box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.cards a:hover { border-color: var(--gold); }
.cards a b { display: block; color: var(--text); }
.cards a span { color: var(--muted); font-size: .9rem; }
.cards-sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.cards-sm a { padding: 10px 12px; font-size: .9rem; }
.cv-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 12px; }
.shortcut { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); padding: 14px 16px; margin-bottom: 10px; }
.shortcut h2 { font-size: 1.05rem; margin-bottom: 6px; color: var(--text); }
.shortcut p { margin-bottom: 6px; }
.bookmarklet { display: inline-block; margin: 6px 0; padding: 8px 14px; border-radius: 12px; background: var(--gold); color: var(--on-gold); font-weight: 800; text-decoration: none; cursor: grab; }
.code { width: 100%; font: .82rem ui-monospace, Menlo, monospace; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 10px; padding: 8px; direction: ltr; resize: vertical; min-height: 64px; }
code { font: .9em ui-monospace, Menlo, monospace; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; }
.legal h2 { font-size: 1.12rem; margin: 22px 0 6px; color: var(--gold-2); }
.legal p { color: var(--muted); }
.form { display: grid; gap: 12px; max-width: 640px; }
.form fieldset { border: 0; display: flex; gap: 14px; flex-wrap: wrap; }
.drop { display: grid; place-items: center; gap: 8px; border: 2px dashed var(--line); border-radius: 18px; padding: 26px 14px; text-align: center; color: var(--muted); }
.drop.over { border-color: var(--gold); background: var(--gold-soft); }
.drop input { max-width: 100%; }
.cv-name { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.cv-out { margin-top: 12px; text-align: center; }
.ad-slot { position: relative; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; margin: 16px auto; max-width: 100%; min-height: var(--ad-h, 0); }
.ad-slot.reserve[hidden] { display: block !important; visibility: hidden; height: 136px; }
.ad-mid.reserve[hidden] { height: 286px; }
@media (min-width: 768px) { .ad-top, .ad-top.reserve[hidden] { display: none !important; } }
.ad-slot[data-label] { flex-direction: column; align-items: center; }
.ad-slot[data-label]::before { content: attr(data-label); display: block; height: 18px; font: 600 .68rem/18px var(--body); color: var(--faint); letter-spacing: .05em; text-transform: uppercase; }
.ad-slot iframe { border: 0; display: block; transform-origin: top center; flex: none; }
.ad-report { position: absolute; inset-inline: 0; bottom: 0; height: 18px; margin: 0; padding: 0 4px; border: 0; background: none; color: var(--faint); font: 500 .66rem/18px var(--body); text-align: center; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.ad-report:hover:not(:disabled), .ad-report:focus-visible { color: var(--muted); }
.ad-report:disabled, span.ad-report { text-decoration: none; cursor: default; }
.ad-preview { box-sizing: border-box; display: grid; place-items: center; max-width: 100%; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--faint); background: var(--ad-bg); font: 600 .8rem var(--body); text-align: center; padding: 4px; }
.ad-preview-social { position: fixed; inset-inline-end: 12px; bottom: 76px; width: 220px; height: 64px; z-index: 35; }
.ad-sticky { position: fixed; inset-inline: 0; bottom: 0; z-index: 35; display: flex; justify-content: center; padding: 4px 36px calc(4px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); border-top: 1px solid var(--line); }
.ad-sticky .ad-slot { margin: 0; }
.ad-sticky-x { position: absolute; top: 4px; inset-inline-end: 6px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--muted); cursor: pointer; font: inherit; }
body.has-sticky { padding-bottom: 154px; }
.ad-sticky, .ad-preview-social { transition: transform .25s, opacity .25s; }
.ad-away { transform: translateY(120%); opacity: 0; pointer-events: none; }
@media (min-width: 768px) { .ad-sticky { display: none !important; } }
.adblock-note { position: fixed; inset-inline: 12px; bottom: 12px; z-index: 36; display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow); font-size: .9rem; max-width: 560px; margin-inline: auto; }
.adblock-note button { font: inherit; background: none; border: 0; color: var(--gold-2); font-weight: 700; cursor: pointer; }
.dl-ts { display: flex; justify-content: center; margin-top: 8px; }
.rail { display: none; }
@media (min-width: 1680px) {
  .frame { display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; gap: 20px; max-width: 1720px; margin-inline: auto; padding-inline: 16px; }
  .frame > main .wrap { width: min(980px, 100%); }
  .rail { display: block; padding-top: 16px; }
  .ad-rail { position: sticky; top: 16px; margin: 0; min-height: 286px; }
}
footer { border-top: 1px solid var(--line); margin-top: 24px; padding: 16px 0 22px; color: var(--muted); font-size: .84rem; line-height: 1.55; }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
footer p, footer nav { min-width: 0; overflow-wrap: anywhere; }
footer nav { display: flex; flex-wrap: wrap; gap: 4px 14px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--gold-2); }
.mirrors { font-size: .8rem; color: var(--faint); }
.badges { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.badges img { height: 40px; width: auto; }
.mirrors a { margin-inline-end: 10px; display: inline-block; overflow-wrap: normal; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.clip-chip { display: inline-flex; align-items: center; gap: 6px; margin: 8px auto 0; padding: 6px 12px; border-radius: 999px; border: 1px dashed var(--gold); background: var(--gold-soft); color: var(--gold-2); font: 700 .84rem var(--body); cursor: pointer; }
.clip-chip svg { width: 16px; height: 16px; }
#dl-form { display: flex; flex-direction: column; }
#dl-form > .clip-chip { align-self: center; }
.recent { max-width: 820px; margin: 12px auto 0; font-size: .9rem; }
.recent summary { cursor: pointer; color: var(--muted); text-align: center; }
.recent ul { list-style: none; display: grid; gap: 6px; margin: 8px 0; }
.recent li { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.recent li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.recent time { color: var(--faint); font-size: .78rem; flex: none; }
.recent .recent-x { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 600 1.05rem/1 var(--body); cursor: pointer; }
.recent .recent-x:hover, .recent .recent-x:focus-visible { background: var(--surface-2); color: var(--text); }
.recent-undo { margin: 6px 0 0; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); text-align: center; font-size: .85rem; }
.linkish { background: none; border: 0; color: var(--gold-2); font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; }
.theme-btn { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 10px; padding: 4px 10px; font: inherit; cursor: pointer; }
.theme-btn:hover { color: var(--gold-2); border-color: var(--gold); }
.badges-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 6px; }
.qbadge { font: 700 .74rem var(--body); padding: 2px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-2); }
.qr-box { display: grid; place-items: center; gap: 6px; margin-top: 10px; }
.qr-box svg { width: 168px; height: 168px; background: #fff; padding: 8px; border-radius: 12px; }
.batch { display: grid; gap: 6px; margin-top: 10px; text-align: start; }
.batch li { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); min-width: 0; list-style: none; }
.batch li .u { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; }
.batch li .s { font-size: .8rem; color: var(--muted); flex: none; }
.batch li .btn { padding: 6px 12px; font-size: .85rem; }
.subtools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; margin: 12px auto 0; max-width: 820px; font-size: .875rem; }
.subtools > span { color: var(--muted); }
.subtools a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; }
.subtools a:hover, .subtools a:focus-visible { border-color: var(--gold); color: var(--gold-2); }
.subtools.wide { justify-content: flex-start; max-width: none; }
.dl-grid.thumbs .dl-thumb img { aspect-ratio: 16 / 9; object-fit: cover; }
textarea.transcript { width: 100%; min-height: 220px; margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; line-height: 1.6; resize: vertical; }
@media (max-width: 640px) {
  .subtools:not(.wide) { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-inline: -16px; padding-inline: 16px; }
  .subtools:not(.wide)::-webkit-scrollbar { display: none; }
  .subtools:not(.wide) > * { flex: none; }
}
.dl-info { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 2px; font-size: .875rem; color: var(--muted); }
.dl-info .dl-len { padding: 2px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text); font-variant-numeric: tabular-nums; }
.dl-info .qpick { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.dl-info .qpick:hover, .dl-info .qpick:focus-visible { border-color: var(--gold); color: var(--gold-2); }
.ext-card { text-align: center; }
.ext-stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 12px 0; }
.ext-stores .btn { min-width: 140px; }
.ext-stores .is-soon { opacity: .75; cursor: default; }
.ext-shot { display: block; width: 100%; max-width: 420px; height: auto; margin: 18px auto; border-radius: 14px; border: 1px solid var(--line); }
.ext-banner { position: fixed; inset-inline: 0; bottom: 16px; margin-inline: auto; width: max-content; max-width: calc(100% - 32px); z-index: 40; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .12); font-size: .9rem; }
.ext-banner .btn { padding: 8px 16px; min-height: 0; }
.hp-card { text-align: center; }
.hp-install { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; padding-inline: 22px; }
.hp-install .hp-art { width: 22px; height: 22px; }
.hp-check { margin-top: 12px; }
.hp-check.is-ok { border-color: var(--gold); }
.hp-b.is-yours { border-inline-start: 3px solid var(--gold); padding-inline-start: 12px; }
.hp-yours { font-size: .75rem; font-weight: 700; color: var(--on-gold); background: var(--gold); border-radius: 999px; padding: 2px 8px; vertical-align: middle; }
.hp-steps { list-style: none; counter-reset: s; display: grid; gap: 8px; }
@media (min-width: 720px) { .hp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hp-steps li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; line-height: 1.6; }
.hp-steps li::before { content: counter(s); flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font-weight: 800; font-size: .8rem; }
.hp-art { width: 40px; height: 40px; flex: none; fill: none; stroke: var(--gold); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.hp-art .fill { fill: var(--gold); stroke: none; }
.btn .hp-art { stroke: currentColor; }
.hp-steps code { font-size: .82rem; background: var(--surface-2); padding: 1px 5px; border-radius: 6px; }
.ext-helper { margin-top: 14px; }
.nf-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px auto; }
.qhelper { font-weight: 700; color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; margin-inline-start: 4px; }
.ext-banner .ext-x { border: 0; background: none; color: var(--muted); font-size: 1rem; cursor: pointer; padding: 6px; }
.how-watch { text-align: center; margin-top: 14px; }
.how-watch .btn span { color: var(--gold-2); margin-inline-end: 4px; }
dialog.tutorial { position: fixed; inset: 0; margin: auto; padding: 0; border: 0; border-radius: 16px; background: #000; color: #fff;
  width: min(960px, 92vw, calc(88vh * 16 / 9)); height: fit-content; max-height: 92vh; overflow: visible; }
dialog.tutorial.phone { width: min(420px, 92vw, calc(88vh * 9 / 16)); }
dialog.tutorial::backdrop { background: rgba(2, 6, 23, .72); }
dialog.tutorial video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 16px; background: #000; }
dialog.tutorial.phone video { aspect-ratio: 9 / 16; }
dialog.tutorial .tutorial-x { position: absolute; top: 10px; inset-inline-end: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #fff; color: #0f172a; font-size: 1rem; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); z-index: 1; }
.tbadge { display: inline-flex; align-items: center; gap: 8px; width: 148px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--gold-2); text-decoration: none; flex: none; }
.tbadge span { display: grid; line-height: 1.15; min-width: 0; }
.tbadge small { font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tbadge b { font-size: .85rem; color: var(--text); }
.tbadge:hover, .tbadge:focus-visible { border-color: var(--gold); }
.trust li.tb::before { content: none; }
.trust li.tb { display: inline-flex; }
.tbadge.mini { width: auto; height: 26px; padding: 0 9px; gap: 5px; border-radius: 999px; font-size: .8rem; color: var(--gold-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbadge.mini svg { width: 16px; height: 16px; }
.tbadge.mini span { display: inline; color: var(--muted); }
.tbadge.mini b { font-size: .8rem; color: var(--text); }
.tgroup { margin-top: 28px; scroll-margin-top: 80px; }
.tgroup h2 { font-size: 1.15rem; margin-bottom: 12px; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tgrid-sm { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.tcard { position: relative; display: grid; gap: 4px; align-content: start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; min-height: 132px; }
.tcard:hover { border-color: var(--gold); transform: translateY(-1px); }
.tcard b { font-size: 1rem; }
.tcard span { font-size: .85rem; color: var(--muted); line-height: 1.45; }
.tcard em { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; font-style: normal; font-size: .7rem; font-weight: 700; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 8px; }
.tcard.is-soon { opacity: .7; box-shadow: none; }
.ti { width: 34px; height: 34px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .tcard { padding: 12px; min-height: 120px; } .tcard span { font-size: .8rem; } }
.pdf-card .drop { cursor: pointer; padding: 34px 14px; }
.pdf-card .drop .ti { width: 46px; height: 46px; }
.pdf-card .drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pdf-card .drop:focus-within { outline: 2px solid var(--gold); outline-offset: 3px; }
.pdf-work { display: grid; gap: 12px; }
.pdf-actions { margin-top: 14px; text-align: center; }
.pdf-actions .btn { min-width: 200px; }
.pdf-private { text-align: center; margin-top: 10px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; align-items: end; }
.opts.row { display: flex; flex-wrap: wrap; gap: 8px; }
.flist { list-style: none; display: grid; gap: 6px; }
.flist li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.flist img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; flex: none; }
.fico { flex: none; font: 800 .7rem var(--body); color: var(--on-gold); background: var(--gold); border-radius: 6px; padding: 4px 6px; }
.fname { flex: 1; min-width: 0; overflow-wrap: anywhere; font-weight: 600; font-size: .9rem; }
.fname small { font-weight: 400; color: var(--muted); }
.fbtns { display: flex; gap: 4px; flex: none; }
.fbtns button, .tbtns button { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 8px; width: 30px; height: 30px; cursor: pointer; font-size: .9rem; }
.fbtns button:disabled, .tbtns button:disabled { opacity: .35; cursor: default; }
.addmore { position: relative; justify-self: start; cursor: pointer; }
.addmore input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; max-height: 70vh; overflow: auto; padding: 4px; }
.thumb { position: relative; display: grid; place-items: center; min-height: 150px; padding: 6px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface-2); cursor: pointer; font: inherit; color: inherit; }
.thumb:disabled { cursor: default; }
.thumb canvas, .thumb img { max-width: 100%; height: auto !important; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); transition: transform .2s; }
.thumb[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }
.thumb .pg { position: absolute; inset-block-end: 4px; inset-inline-start: 6px; font-size: .72rem; font-weight: 700; color: var(--muted); }
.thumb.drag { opacity: .5; }
.org .thumb { padding-bottom: 40px; }
.tbtns { position: absolute; inset-inline: 4px; inset-block-end: 4px; display: flex; justify-content: flex-end; gap: 2px; }
.tbtns button { width: 22px; height: 24px; font-size: .75rem; padding: 0; }
.blankpg { width: 80px; height: 110px; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }
.res { display: grid; gap: 10px; justify-items: center; text-align: center; }
.res > b { font-size: 1.05rem; color: var(--gold-2); }
.reslist { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.reslist .btn { font-size: .8rem; padding: 6px 12px; min-height: 0; }
.pdf-out { margin-top: 14px; }
.pnav { display: flex; align-items: center; justify-content: center; gap: 10px; }
.stage { display: grid; place-items: center; overflow: auto; }
.pagebox { position: relative; display: inline-block; touch-action: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); user-select: none; }
.pagebox canvas { display: block; max-width: 100%; height: auto !important; }
.cropbox { position: absolute; border: 2px dashed var(--gold); box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); pointer-events: none; }
.item { position: absolute; cursor: move; outline: 1px dashed var(--gold); }
.item img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.item span { white-space: nowrap; line-height: 1; pointer-events: none; }
.it-rect { border: 2px solid; }
.it-ellipse { border: 2px solid; border-radius: 50%; }
.it-line { border-top: 2px solid; }
.it-highlight { background: rgba(255, 230, 0, .4); }
.it-whiteout { background: #fff; }
.itx { position: absolute; inset-block-start: -12px; inset-inline-end: -12px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); font-size: .7rem; cursor: pointer; }
.palette { display: flex; flex-wrap: wrap; gap: 6px; }
.palette .btn[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-soft); }
.sigpad { width: 100%; max-width: 600px; aspect-ratio: 3 / 1; border: 2px dashed var(--line-2); border-radius: 12px; background: #fff; touch-action: none; justify-self: center; }
dialog.camera { margin: auto; border: 0; border-radius: 16px; padding: 12px; background: var(--surface); max-width: min(720px, 100% - 24px); }
dialog.camera video { width: 100%; border-radius: 10px; background: #000; }
dialog.camera::backdrop { background: rgba(0, 0, 0, .6); }
