:root {
  --bg:        #0c0e13;
  --bg2:       #10131b;
  --panel:     #161b25;
  --panel2:    #1c2230;
  --border:    #28303f;
  --border2:   #323c4e;
  --ink:       #eef1f7;
  --muted:     #98a2b4;
  --faint:     #5d6678;
  --accent:    #5b8dff;
  --accent2:   #84a8ff;
  --accent-dim:rgba(91,141,255,.14);
  --gold:      #e8b15a;
  --gold2:     #f2c777;
  --gold-dim:  rgba(232,177,90,.12);
  --ok:        #45ca78;
  --err:       #f3675f;
  --radius:    18px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 50% -15%, rgba(91,141,255,.12), transparent 62%),
    radial-gradient(800px 500px at 85% 8%, rgba(232,177,90,.05), transparent 55%),
    var(--bg);
  color: var(--ink);
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.site-head {
  max-width: 780px; margin: 0 auto;
  padding: 22px 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: baseline; gap: 1px;
  font-weight: 800; font-size: 1.4rem; letter-spacing: -.025em;
  text-decoration: none; color: var(--ink);
}
.brand .k { color: var(--accent2); }
.brand .dot { color: var(--gold); font-weight: 800; }
nav.top { display: flex; gap: 3px; flex-wrap: wrap; justify-content: flex-end; }
nav.top a {
  color: var(--muted); text-decoration: none; font-size: .88rem; font-weight: 500;
  padding: 7px 10px; border-radius: 10px; transition: background .15s, color .15s;
  white-space: nowrap;
}
nav.top a:hover { color: var(--ink); background: var(--panel); }
nav.top a.active {
  color: var(--accent2);
  background: var(--accent-dim);
  box-shadow: inset 0 0 0 1px rgba(91,141,255,.22);
}

.wrap { max-width: 780px; margin: 0 auto; padding: 44px 20px 64px; }

h1 {
  font-size: 2.2rem; line-height: 1.12; margin: 0 0 12px;
  letter-spacing: -.03em; font-weight: 800;
  text-wrap: balance;
}
h1 .arrow {
  color: var(--accent); font-weight: 400;
  text-shadow: 0 0 18px rgba(91,141,255,.5);
}
.sub { color: var(--muted); margin: 0 0 34px; font-size: 1.07rem; text-wrap: pretty; }

.drop {
  position: relative;
  border: 1.5px dashed var(--border2);
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(91,141,255,.08), transparent 60%),
    linear-gradient(180deg, var(--panel), var(--bg2));
  padding: 58px 28px; text-align: center; cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s, box-shadow .18s;
  box-shadow: 0 12px 40px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.03);
}
.drop:hover { border-color: #3c4a66; box-shadow: 0 16px 50px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.04); }
.drop[data-drag="1"] {
  border-color: var(--accent);
  background: radial-gradient(120% 140% at 50% 0%, rgba(91,141,255,.18), transparent 60%), linear-gradient(180deg, #1a2235, #131a28);
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(91,141,255,.18), inset 0 1px 0 rgba(255,255,255,.05);
}
.drop .icon {
  width: 58px; height: 58px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: linear-gradient(160deg, rgba(91,141,255,.30), rgba(91,141,255,.10));
  box-shadow: 0 6px 20px rgba(91,141,255,.25), inset 0 1px 0 rgba(255,255,255,.18);
  color: #cfe0ff;
}
.drop .icon svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 6px rgba(91,141,255,.4)); }
.drop .big { font-size: 1.16rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.drop .big strong { color: var(--accent2); }
.drop .hint { color: var(--muted); font-size: .92rem; margin-top: 9px; }
.drop code {
  background: var(--panel2); border: 1px solid var(--border);
  padding: 1px 7px; border-radius: 6px; font-size: .86em; color: var(--ink);
}

.status { margin: 22px 2px; min-height: 1.5em; font-size: .96rem; font-weight: 500; }
.status[data-kind="ok"]    { color: var(--ok); }
.status[data-kind="error"] { color: var(--err); }
.status[data-kind="busy"]  { color: var(--accent2); }

.privacy {
  margin-top: 30px; padding: 17px 19px;
  background:
    linear-gradient(180deg, var(--gold-dim), transparent),
    var(--panel);
  border: 1px solid rgba(232,177,90,.22);
  border-radius: 14px; color: var(--muted); font-size: .93rem;
  display: flex; gap: 13px; align-items: flex-start;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.privacy .lock {
  flex: none; width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; margin-top: 1px;
  background: linear-gradient(160deg, rgba(232,177,90,.32), rgba(232,177,90,.12));
  box-shadow: 0 4px 14px rgba(232,177,90,.22), inset 0 1px 0 rgba(255,255,255,.2);
  color: #ffe6b0;
}
.privacy .lock svg { width: 17px; height: 17px; }
.privacy b { color: var(--gold2); font-weight: 700; }

.features { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 30px; }
.features .f {
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 17px; font-size: .9rem; color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.features .f b { display: block; color: var(--ink); font-size: .97rem; margin-bottom: 4px; font-weight: 700; }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.seo { margin-top: 54px; color: var(--muted); }
.seo h2 { color: var(--ink); font-size: 1.28rem; margin: 30px 0 8px; letter-spacing: -.015em; }
.seo p { margin: 0 0 14px; }

.article { max-width: 720px; }
.article h1 { font-size: 1.9rem; margin-bottom: 6px; }
.article .lead { color: var(--muted); font-size: 1.08rem; margin: 0 0 28px; }
.article h2 { color: var(--ink); font-size: 1.35rem; margin: 34px 0 10px; letter-spacing: -.015em; }
.article h3 { color: var(--ink); font-size: 1.08rem; margin: 22px 0 6px; }
.article p { margin: 0 0 15px; color: #c4ccda; }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; color: #c4ccda; }
.article li { margin: 6px 0; }
.article a { color: var(--accent2); text-decoration: none; }
.article a:hover { text-decoration: underline; }
.article code {
  background: var(--panel2); border: 1px solid var(--border);
  padding: 1px 7px; border-radius: 6px; font-size: .88em; color: var(--ink);
}
.article .cta {
  display: inline-block; margin: 6px 0 22px; padding: 11px 20px;
  background: linear-gradient(160deg, var(--accent), #4a7ce8); color: #fff;
  border-radius: 11px; font-weight: 600; text-decoration: none;
  box-shadow: 0 6px 20px rgba(91,141,255,.3);
}
.article .cta:hover { text-decoration: none; filter: brightness(1.07); }
.article .note {
  background: var(--panel); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: 10px;
  padding: 13px 16px; margin: 18px 0; color: var(--muted); font-size: .94rem;
}
.article pre {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 16px; margin: 0 0 15px;
  overflow-x: auto;
  font: .85rem/1.6 ui-monospace, "Cascadia Mono", Consolas, monospace; color: #aeb8ca;
}
.article pre code { background: none; border: 0; padding: 0; font-size: inherit; }

.covergrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.covergrid .pane {
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; text-align: center;
}
.covergrid h3 { margin: 0 0 10px; font-size: .95rem; color: var(--muted); font-weight: 600; }
.covergrid img { max-width: 100%; max-height: 340px; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.covergrid .hint { color: var(--faint); font-size: .88rem; margin-top: 10px; }
@media (max-width: 600px) { .covergrid { grid-template-columns: 1fr; } }

.toolpanel {
  margin-top: 26px;
  background: linear-gradient(180deg, var(--panel), var(--bg2));
  border: 1px solid var(--border); border-radius: 14px;
  padding: 18px 20px;
}
.toolpanel .row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 12px 0; color: var(--muted); }
.toolpanel .row label { color: var(--ink); font-weight: 500; }
.toolpanel select {
  background: var(--panel2); color: var(--ink);
  border: 1px solid var(--border2); border-radius: 8px;
  padding: 6px 10px; font: inherit;
}
.toolpanel input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--accent); }
.filelist { margin: 12px 0 0; font-size: .88rem; color: var(--muted); }
.filelist .fl-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; border-bottom: 1px dashed var(--border); }
.filelist .fl-row span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn:disabled { opacity: .5; cursor: default; }

.site-foot {
  max-width: 780px; margin: 44px auto 0; padding: 30px 20px 52px;
  border-top: 1px solid var(--border);
  color: var(--faint); font-size: .86rem;
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
}
.site-foot a { color: var(--muted); text-decoration: none; }
.site-foot a:hover { color: var(--accent2); }

input[type=file] { display: none; }

.verdict { margin: 26px 0 10px; padding: 16px 20px; border-radius: 14px; font-weight: 600;
  display: flex; align-items: center; gap: 12px; font-size: 1.05rem; }
.verdict.pass { background: linear-gradient(180deg, rgba(69,202,120,.14), transparent), var(--panel);
  border: 1px solid rgba(69,202,120,.3); color: var(--ok); }
.verdict.fail { background: linear-gradient(180deg, rgba(243,103,95,.12), transparent), var(--panel);
  border: 1px solid rgba(243,103,95,.3); color: var(--err); }
.verdict .tally { color: var(--muted); font-weight: 500; font-size: .9rem; margin-left: auto; }
.report { margin-top: 16px; }
.report .file { border: 1px solid var(--border); border-radius: 12px; margin: 0 0 12px;
  background: linear-gradient(180deg, var(--panel), var(--bg2)); overflow: hidden; }
.report .file > summary { cursor: pointer; padding: 13px 16px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; align-items: center; gap: 10px; }
.report .file > summary::-webkit-details-marker { display: none; }
.report .file > summary .count { margin-left: auto; font-size: .82rem; font-weight: 600;
  padding: 2px 9px; border-radius: 20px; background: var(--panel2); color: var(--muted); }
.report .file .issues { border-top: 1px solid var(--border); padding: 4px 0; }
.report .issue { padding: 9px 16px; font-size: .9rem; display: grid; grid-template-columns: auto 1fr; gap: 10px;
  border-bottom: 1px solid rgba(40,48,63,.5); }
.report .issue:last-child { border-bottom: 0; }
.report .issue .sev { font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 7px; border-radius: 6px; height: fit-content; white-space: nowrap; }
.report .issue .sev.fatal { background: rgba(243,103,95,.18); color: #ff9a93; }
.report .issue .sev.error { background: rgba(243,103,95,.12); color: var(--err); }
.report .issue .sev.warn  { background: rgba(232,177,90,.15); color: var(--gold2); }
.report .issue .body { color: #c4ccda; }
.report .issue .loc { color: var(--faint); font-size: .82rem; }
.report .issue .code { color: var(--accent2); font-family: ui-monospace, monospace; font-size: .8rem; }

.verdict .pills { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.pill { font-size: .8rem; font-weight: 600; padding: 3px 11px; border-radius: 20px; white-space: nowrap; }
.pill.p-fatal { background: rgba(243,103,95,.22); color: #ff9a93; }
.pill.p-err   { background: rgba(243,103,95,.13); color: var(--err); }
.pill.p-wrn   { background: rgba(232,177,90,.15); color: var(--gold2); }
.pill.p-time  { background: var(--panel2); color: var(--muted); font-weight: 500; }

.report .group { border-left: 3px solid var(--border2); }
.report .group.sev-fatal, .report .group.sev-error { border-left-color: rgba(243,103,95,.55); }
.report .group.sev-warn { border-left-color: rgba(232,177,90,.5); }
.report .group > summary { flex-wrap: wrap; transition: background .12s; }
.report .group > summary:hover { background: rgba(91,141,255,.07); }
.report .group .chev { color: var(--accent2); font-size: .95rem; width: 1em; text-align: center;
  transition: transform .15s; flex: none; }
.report .group[open] > summary .chev { transform: rotate(90deg); }

.report .group > summary::after { content: "expand"; color: var(--accent2); font-size: .78rem;
  font-weight: 500; opacity: .75; transition: opacity .12s; }
.report .group > summary:hover::after { opacity: 1; }
.report .group[open] > summary::after { content: "collapse"; opacity: 0; }
.report .group[open] > summary:hover::after { opacity: 1; }
.report .group .gcount { color: var(--muted); font-weight: 500; font-size: .85rem; }
.report .group .code-chip { font-family: ui-monospace, monospace; font-size: .74rem; color: var(--accent2); }
.report .gbody { border-top: 1px solid var(--border); }
.report .explain { padding: 12px 16px 4px; font-size: .89rem; color: var(--muted);
  background: rgba(91,141,255,.04); border-bottom: 1px solid var(--border); }
.report .explain p { margin: 0 0 9px; }
.report .explain .fixline b { color: var(--gold2); }
.report .issue.occ { display: flex; align-items: baseline; gap: 10px; grid-template-columns: none; }
.report .occ .loc-chip { flex: none; font-family: ui-monospace, monospace; font-size: .76rem;
  color: var(--accent2); background: var(--panel2); border: 1px solid var(--border);
  padding: 1px 8px; border-radius: 6px; white-space: nowrap; }
.report .occ .omsg { color: #c4ccda; min-width: 0; }
.report .occ.can-snip { cursor: pointer; }
.report .occ.can-snip:hover { background: rgba(91,141,255,.05); }
.report .occ .snip-tip { color: var(--accent2); font-size: .78rem; margin-left: auto; flex: none;
  opacity: 0; transition: opacity .12s; }
.report .occ.can-snip:hover .snip-tip { opacity: 1; }
.report .showmore { display: block; }
.linkbtn { background: none; border: 0; color: var(--accent2); cursor: pointer;
  font: inherit; font-size: .86rem; padding: 0; }
.linkbtn:hover { text-decoration: underline; }
@media (max-width: 560px) {
  .report .issue.occ { flex-wrap: wrap; }
  .verdict { flex-wrap: wrap; }
}

.snippet { background: #0a0d13; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 8px 0; overflow-x: auto; }
.snippet .srcline { display: flex; gap: 12px; padding: 1px 16px; font-size: .8rem; white-space: pre; }
.snippet .srcline .ln { color: var(--faint); min-width: 3.2em; text-align: right;
  font-family: ui-monospace, monospace; user-select: none; flex: none; }
.snippet .srcline code { font-family: ui-monospace, monospace; color: #aeb8ca; background: none; border: 0; padding: 0; }
.snippet .srcline.hit { background: rgba(243,103,95,.1); }
.snippet .srcline.hit code { color: #ffd9d6; }
.snippet .srcline.hit .ln { color: var(--err); font-weight: 700; }
.snippet .snip-fail { padding: 6px 16px; color: var(--faint); font-size: .84rem; }

.fixbar { margin: 14px 0 4px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.fixbar .fixhint { color: var(--muted); font-size: .88rem; }
.fixpanel { margin: 14px 0; padding: 16px 20px; border-radius: 14px;
  background: linear-gradient(180deg, rgba(69,202,120,.08), transparent), var(--panel);
  border: 1px solid rgba(69,202,120,.25); }
.fixpanel .fixdone { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.fixpanel ul { margin: 0 0 14px; padding-left: 20px; color: #c4ccda; font-size: .92rem; }
.fixpanel li { margin: 4px 0; }
.fixpanel .fixverdict { margin: 0 0 14px; color: var(--muted); font-size: .95rem; }
.fixpanel .fixverdict.good { color: var(--ok); font-weight: 600; }
.fixpanel .btn { text-decoration: none; }

.editor { margin-top: 28px; display: none; }
.editor.show { display: block; }
.field { margin: 0 0 16px; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; box-sizing: border-box;
  background: var(--bg2); color: var(--ink);
  border: 1px solid var(--border2); border-radius: 10px;
  padding: 11px 13px; font: inherit; font-size: .96rem;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field textarea { resize: vertical; min-height: 90px; }
.field-row { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.editor .actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.btn {
  display: inline-block; padding: 12px 22px; border: 0; cursor: pointer;
  background: linear-gradient(160deg, var(--accent), #4a7ce8); color: #fff;
  border-radius: 11px; font-weight: 600; font-size: .98rem; font-family: inherit;
  box-shadow: 0 6px 20px rgba(91,141,255,.3);
}
.btn:hover { filter: brightness(1.07); }
.btn.secondary { background: var(--panel2); color: var(--muted); box-shadow: none; border: 1px solid var(--border2); }
.editor .filename { color: var(--muted); font-size: .9rem; }

.ad-slot {
  margin: 28px auto;
  text-align: center;
  min-height: 0;
  overflow: hidden;
}
.ad-slot:empty { display: none; }
.ad-slot ins { display: block; }

