/* AdstxtScan — brand: navy ink + the logo's cyan→blue→violet→pink→orange gradient */
:root {
  --ink: #0b0b2e; --ink-2: #23264a; --muted: #5b6280; --faint: #8a90aa;
  --line: #e6e8f2; --line-2: #f0f1f7; --bg: #f6f7fb; --card: #fff;
  --blue: #3b5bff; --blue-2: #2c47e6; --violet: #a020f0; --pink: #ff2d95; --orange: #ff9a1f; --cyan: #00b4ff;
  --grad: linear-gradient(90deg, #00b4ff 0%, #3b5bff 28%, #a020f0 55%, #ff2d95 80%, #ff9a1f 100%);
  --grad-btn: linear-gradient(100deg, #3b5bff 0%, #8a2cf2 55%, #e9268f 100%);
  --ok: #0f7b3f; --ok-bg: #e4f6ec; --bad: #d1243f; --bad-bg: #fdeaee; --warn: #9a6200; --warn-bg: #fff3d6;
  --info-bg: #eef1ff;
  --radius: 14px; --shadow: 0 1px 2px rgba(11,11,46,.04), 0 8px 28px rgba(11,11,46,.06);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 Figtree, "Segoe UI", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
[hidden] { display: none !important; }

/* ---------- app shell: left sidebar ---------- */
body.shell { background: #f4f6fc; }
.side { position: fixed; inset: 0 auto 0 0; width: 200px; z-index: 20; background: #fff; border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 22px 14px 18px; }
.side__logo { display: block; padding: 0 8px 22px; }
.side__logo img { width: 100%; max-width: 150px; display: block; }
.snav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.snav a { display: flex; align-items: center; gap: 11px; color: var(--muted); font-weight: 600; font-size: 14px;
  padding: 10px 12px; border-radius: 10px; white-space: nowrap; }
.snav a svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.snav a:hover { background: var(--line-2); color: var(--ink); text-decoration: none; }
.snav a.on { color: var(--blue); background: var(--info-bg); box-shadow: inset 3px 0 0 var(--blue); }
.who { display: flex; align-items: center; gap: 10px; position: relative; padding: 12px 8px 0; border-top: 1px solid var(--line-2); }
.who__name { min-width: 0; line-height: 1.25; }
.who__name b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who__name span { color: var(--faint); font-size: 12px; }
.avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700;
  background: var(--grad-btn); border: 0; cursor: pointer; }
.menu { position: absolute; left: 0; bottom: 56px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); min-width: 230px; padding: 6px; z-index: 30; }
.menu__head { padding: 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.menu__head b { display: block; } .menu__head span { color: var(--muted); font-size: 13px; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; border: 0;
  background: none; color: var(--ink); cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--line-2); text-decoration: none; }
.wrap { max-width: 1320px; margin: 0 0 0 200px; padding: 26px 32px 64px; }
@media (min-width: 1720px) { .wrap { margin-left: calc(200px + (100vw - 200px - 1320px) / 2); } }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.head h1 { font-size: 28px; line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.head p { margin: 6px 0 0; color: var(--muted); }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 6px; display: inline-block; }

/* ---------- cards / grid ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card__pad { padding: 22px; }
.card h2 { font-size: 17px; margin: 0 0 4px; }
.card .sub { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.grid { display: grid; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 16px 18px; }
.stat__label { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat__value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.stat__meta { color: var(--faint); font-size: 13px; }
.stat--ok .stat__value { color: var(--ok); } .stat--bad .stat__value { color: var(--bad); }

/* ---------- buttons / inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; cursor: pointer;
  white-space: nowrap; transition: transform .08s, box-shadow .15s, background .15s; }
.btn:hover { background: var(--line-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--primary { background: var(--grad-btn); color: #fff; border: 0; box-shadow: 0 6px 18px rgba(59,91,255,.25); }
.btn--primary:hover { background: var(--grad-btn); box-shadow: 0 8px 22px rgba(160,32,240,.3); filter: saturate(1.1); }
.btn--danger { color: var(--bad); }
.btn--danger:hover { background: var(--bad-bg); }
.btn--sm { height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 8px; }
.btn--block { width: 100%; }
label.lbl { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }
.input, .textarea, select.input { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink); font: inherit; padding: 10px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input { height: 44px; }
.textarea { min-height: 150px; resize: vertical; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.input:focus, .textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,91,255,.12); }
.field { margin-bottom: 18px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; }
.check input { width: 17px; height: 17px; accent-color: var(--blue); }
.seg { display: inline-flex; background: var(--line-2); border-radius: 11px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: none; padding: 8px 16px; border-radius: 8px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11,11,46,.12); }
.drop { display: block; border: 2px dashed #cdd2e6; border-radius: 12px; padding: 28px; text-align: center; color: var(--muted);
  cursor: pointer; transition: border-color .15s, background .15s; background: #fbfbfe; }
.drop:hover, .drop.over { border-color: var(--blue); background: var(--info-bg); }
.drop b { color: var(--ink); }

/* ---------- badges / pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px;
  font-weight: 700; white-space: nowrap; }
.badge--ok, .b-found, .b-finished { color: var(--ok); background: var(--ok-bg); }
.badge--bad, .b-not_found, .b-error, .b-failed { color: var(--bad); background: var(--bad-bg); }
.badge--warn, .b-invalid, .b-cancelled { color: var(--warn); background: var(--warn-bg); }
.b-running, .b-queued { color: var(--blue); background: var(--info-bg); }
.b-discovering { color: var(--violet); background: #f4e8ff; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-running .dot, .b-discovering .dot { animation: pulse 1.2s infinite; }
.sources { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.sources li { display: flex; gap: 10px; align-items: center; font-size: 13.5px; }
.sources li .n { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; }
.sources li.wait { color: var(--faint); } .sources li.err .n { color: var(--bad); font-weight: 600; }
.sources li.cur { color: var(--violet); font-weight: 700; }
@keyframes pulse { 50% { opacity: .25; } }
.chip { display: inline-block; min-width: 22px; padding: 0 5px; margin: 1px; border-radius: 5px; text-align: center;
  font: 700 11px/19px var(--mono); }
.chip.F { color: var(--ok); background: var(--ok-bg); } .chip.M { color: var(--bad); background: var(--bad-bg); }
.chip.R { color: var(--warn); background: var(--warn-bg); }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  font-weight: 700; padding: 11px 14px; background: #fafbfd; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: #fafbff; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .small { font-size: 13px; } .faint { color: var(--faint); }
.empty { text-align: center; padding: 56px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin: 12px 0 4px; }
.progress { height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.progress > span { display: block; height: 100%; background: var(--grad); border-radius: 99px; transition: width .6s ease; }
.progress--sm { height: 6px; width: 140px; }
.bar { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; min-width: 90px; }
.bar > span { display: block; height: 100%; }
.pager { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); }

/* ---------- reference line results ---------- */
.lines { list-style: none; margin: 0; padding: 0; }
.lines li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 10px; border-radius: 8px; font: 12.5px/1.5 var(--mono); }
.lines li + li { margin-top: 3px; }
.lines .F { background: var(--ok-bg); color: var(--ok); }
.lines .M { background: var(--bad-bg); color: var(--bad); }
.lines .R { background: var(--warn-bg); color: var(--warn); }
.lines .ic { font-weight: 800; width: 14px; flex: none; }
.lines .what { margin-left: auto; font-family: Figtree, system-ui, sans-serif; font-weight: 700; font-size: 12px; white-space: nowrap; }
.missing { font: 12px/1.5 var(--mono); color: var(--bad); margin-top: 4px; word-break: break-all; }
.mismatch { font: 12px/1.5 var(--mono); color: var(--warn); margin-top: 2px; word-break: break-all; }
pre.file { margin: 0; max-height: 420px; overflow: auto; background: #0e1030; color: #d9dcf2; border-radius: 10px;
  padding: 14px 16px; font: 12px/1.6 var(--mono); }
pre.file mark { background: rgba(76,195,138,.25); color: #8ff0bf; border-radius: 3px; }

/* ---------- modal / toast ---------- */
.modal { position: fixed; inset: 0; background: rgba(11,11,46,.45); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal__box { background: #fff; border-radius: 16px; width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  box-shadow: 0 30px 80px rgba(11,11,46,.3); }
.modal__head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; }
.modal__head h3 { margin: 0; font-size: 18px; flex: 1; word-break: break-all; }
.modal__body { padding: 20px 22px; }
.x { border: 0; background: var(--line-2); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; font-size: 18px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.toast.bad { background: var(--bad); }
.alert { padding: 11px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.alert--bad { background: var(--bad-bg); color: var(--bad); }
.alert--ok { background: var(--ok-bg); color: var(--ok); }
.alert--info { background: var(--info-bg); color: var(--ink-2); }

/* ---------- auth screens ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; background: #fff; }
.auth__side { position: relative; overflow: hidden; padding: 48px 56px; display: flex; flex-direction: column;
  background: radial-gradient(900px 500px at -10% 110%, rgba(255,45,149,.10), transparent 60%),
              radial-gradient(800px 500px at 110% -10%, rgba(0,180,255,.13), transparent 60%),
              radial-gradient(700px 600px at 80% 90%, rgba(160,32,240,.08), transparent 60%), #f7f8fd; }
.auth__side::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg,#00b4ff,#3b5bff,#a020f0,#ff2d95,#ff9a1f); }
.auth__logo img { height: 46px; display: block; }
.auth__pitch { margin: auto 0; max-width: 520px; }
.auth__pitch h1 { font-size: 44px; line-height: 1.08; letter-spacing: -.03em; margin: 0 0 16px; }
.auth__pitch h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth__pitch p { color: var(--muted); font-size: 17px; margin: 0 0 26px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.ticks li i { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  font-style: normal; font-size: 13px; background: var(--grad-btn); }
.sample { margin-top: 30px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 14px; max-width: 520px; }
.sample .lines li { font-size: 12px; }
.auth__foot { color: var(--faint); font-size: 13px; }
.auth__main { display: grid; place-items: center; padding: 40px 24px; }
.auth__card { width: 100%; max-width: 440px; }
.auth__card h2 { font-size: 34px; letter-spacing: -.02em; margin: 0 0 6px; text-align: center; }
.auth__card .lead { text-align: center; color: var(--muted); margin: 0 0 28px; }
.auth__mobile-logo { display: none; text-align: center; margin-bottom: 26px; }
.auth__mobile-logo img { height: 38px; }
.afield { position: relative; display: block; margin-bottom: 14px; }
.afield svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--faint); }
.afield .input { height: 54px; padding-left: 46px; font-size: 15.5px; }
.eye { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; color: var(--faint);
  cursor: pointer; padding: 8px; }
.arow { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 20px; font-size: 14px; }
.abtn { height: 54px; font-size: 16px; }
.err { color: var(--bad); font-weight: 600; font-size: 14px; margin: 0 0 14px; text-align: center; }
.info { color: var(--ink-2); font-weight: 600; font-size: 14px; margin: 0 0 14px; text-align: center; }
.otp { display: flex; gap: 10px; justify-content: center; margin: 4px 0 18px; }
.otp input { width: 58px; height: 66px; text-align: center; font: 800 26px var(--mono); text-transform: uppercase;
  border: 1.5px solid var(--line); border-radius: 10px; color: var(--ink); outline: none; }
.otp input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(59,91,255,.14); }
.otp--bad input { border-color: #f2a3b0; }
.resend { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 18px; }
.linkbtn { border: 0; background: none; color: var(--blue); font-weight: 700; cursor: pointer; padding: 0; }
.linkbtn:disabled { color: var(--faint); cursor: default; }
.secure { margin-top: 26px; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px;
  background: #f6f7fc; color: var(--muted); font-size: 13px; }
.center { text-align: center; }

@media (max-width: 1040px) {
  .auth { grid-template-columns: 1fr; }
  .auth__side { display: none; }
  .auth__mobile-logo { display: block; }
}
@media (max-width: 720px) {
  .wrap { padding: 20px 16px 48px; }
  .head h1 { font-size: 23px; }
  .otp { gap: 6px; } .otp input { width: 44px; height: 54px; font-size: 21px; }
  .auth__card h2 { font-size: 28px; }
  .hide-sm { display: none; }
}

/* layout safety: grid/flex children may shrink so wide tables scroll inside their card */
.grid > *, .stats > *, .head > * { min-width: 0; }
@media (max-width: 720px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px 14px; } .stat__value { font-size: 22px; }
  .head .row .btn { flex: 1 1 auto; }
}

/* ad-system result pills: "✔ Google Found" */
.sys-list { display: flex; flex-wrap: wrap; gap: 6px; }
.sys { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 13px;
  font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.sys b { font-size: 12px; }
.sys em { font-style: normal; font-weight: 600; opacity: .85; }
.sys--found { color: var(--ok); background: var(--ok-bg); border-color: #bfe7cf; }
.sys--missing { color: var(--bad); background: var(--bad-bg); border-color: #f6c4cc; }
.sys--partial, .sys--mismatch { color: var(--warn); background: var(--warn-bg); border-color: #f3dca0; }
.sys--nofile { color: var(--muted); background: var(--line-2); }
.grp { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.grp--found { border-color: #bfe7cf; background: #f6fcf8; }
.grp--missing { border-color: #f6c4cc; background: #fff8f9; }
.grp--partial, .grp--mismatch { border-color: #f3dca0; background: #fffcf2; }
.grp__head { margin-bottom: 8px; }
.hit, .miss-line { display: flex; gap: 10px; align-items: baseline; padding: 5px 8px; border-radius: 6px; margin-top: 4px; }
.hit { background: var(--ok-bg); color: var(--ok); }
.hit.warn, .miss-line.warn { background: var(--warn-bg); color: var(--warn); }
.miss-line { background: var(--bad-bg); color: var(--bad); }
.hit code, .miss-line code { word-break: break-all; }
.ln { flex: none; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; opacity: .75; min-width: 70px; }

/* ---------- scan page (redesign) ---------- */
.crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--faint); margin-bottom: 6px; }
.crumb a { color: var(--muted); } .crumb b { color: var(--ink); font-weight: 600; }
.btn--del { background: #ffe4ea; color: var(--bad); border-color: #ffd0da; }
.btn--del:hover { background: #ffd5df; }
.alert--icon { display: flex; align-items: center; gap: 10px; background: #e8eeff; border: 1px solid #d6e0ff; font-weight: 500; }
.alert--icon svg { width: 18px; height: 18px; flex: none; color: var(--blue); }
.alert--bad.alert--icon svg { color: var(--bad); }

.ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; }
.ico--blue { color: #3b5bff; background: #e3e9ff; } .ico--green { color: #12a150; background: #dcf5e6; }
.ico--violet { color: #7b2ff2; background: #ece3ff; } .ico--orange { color: #f08a00; background: #ffeccc; }
.ico--pink { color: #e8265e; background: #ffe0e8; } .ico--cyan { color: #0094d4; background: #dbf3ff; }

.stats { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.stat { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); }
.stat__label { font-weight: 700; font-size: 13px; }
.stat__value { font-size: 30px; line-height: 1.1; margin: 6px 0 4px; color: var(--ink); }
.stat__meta { font-size: 12.5px; color: var(--muted); }
.stat--blue { background: #f1f4ff; border-color: #dfe6ff; } .stat--blue .stat__label { color: #3b5bff; }
.stat--green { background: #effbf3; border-color: #d3f0de; } .stat--green .stat__label { color: #12a150; }
.stat--violet { background: #f6f1ff; border-color: #e6dbff; } .stat--violet .stat__label { color: #7b2ff2; }
.stat--orange { background: #fff7ea; border-color: #ffe6bf; } .stat--orange .stat__label { color: #e07d00; }
.stat--pink { background: #fff1f4; border-color: #ffd7e1; } .stat--pink .stat__label { color: #e8265e; }

.tiles { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tiles:empty { display: none; }
.tile { display: flex; align-items: center; gap: 14px; padding: 18px; text-align: left; cursor: pointer; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .12s, box-shadow .15s; }
.tile:hover { transform: translateY(-1px); box-shadow: 0 2px 4px rgba(11,11,46,.05), 0 12px 32px rgba(11,11,46,.09); }
.tile__txt { flex: 1; min-width: 0; } .tile__txt b { display: block; font-size: 16px; }
.tile__txt span { display: block; color: var(--muted); font-size: 12.5px; }
.tile__chev svg { width: 18px; height: 18px; display: block; }
.tile--blue .tile__chev { color: #3b5bff; } .tile--violet .tile__chev { color: #7b2ff2; }
.tile--orange { background: #fffaf1; border-color: #ffe6bf; } .tile--orange .tile__chev { color: #f08a00; }
.tile--cyan .tile__chev { color: #0094d4; }

.fold { margin-bottom: 18px; overflow: hidden; }
.fold__head { display: flex; align-items: center; gap: 14px; padding: 18px 22px; cursor: pointer; flex-wrap: wrap; }
.fold__title h2 { margin: 0; font-size: 18px; } .fold__title .sub { margin: 0; font-size: 13px; }
.fold__btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 9px; cursor: pointer;
  border: 1px solid #c9d3ff; background: #fff; color: var(--blue); font-weight: 700; font-size: 13px; }
.fold__btn:hover { background: var(--info-bg); }
.fold__btn svg { width: 15px; height: 15px; display: block; transition: transform .15s; transform: rotate(90deg); }
.fold__btn .hide { display: none; }
.fold.open .fold__btn .show { display: none; } .fold.open .fold__btn .hide { display: inline; }
.fold.open .fold__btn svg { transform: rotate(-90deg); }
.fold__body { display: none; border-top: 1px solid var(--line); }
.fold.open .fold__body { display: block; }
.fold:not(.open) .fold__tools { display: none; }
.fold .sources { padding-top: 14px !important; }

.tbl--dom td { padding: 14px; }
.tbl--dom td:first-child { white-space: nowrap; }
.tbl--dom .sys-list { max-width: 360px; gap: 5px; }
.tbl--dom .sys { font-size: 12px; padding: 3px 8px; border-radius: 7px; gap: 5px; }

@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .side { position: sticky; top: 0; width: auto; flex-direction: row; align-items: center; padding: 10px 16px; gap: 14px;
    border-right: 0; border-bottom: 1px solid var(--line); }
  .side__logo { padding: 0; } .side__logo img { height: 26px; width: auto; }
  .snav { flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .snav a { padding: 8px 10px; } .snav a span { display: none; }
  .snav a.on { box-shadow: none; }
  .who { padding: 0; border: 0; } .who__name { display: none; }
  .menu { left: auto; right: 0; bottom: auto; top: 46px; }
  .wrap { margin-left: 0; padding: 20px 16px 48px; }
}
@media (max-width: 600px) { .tiles { grid-template-columns: 1fr; } .fold__head { padding: 16px; } .fold__tools .input { width: 100% !important; } }

/* domain filters (replace the dropdown) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 22px; border-bottom: 1px solid var(--line); background: #fafbfe; }
.chip-f { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-weight: 600; font-size: 13px; white-space: nowrap; }
.chip-f span { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--muted); font-size: 12px; }
.chip-f span:empty { display: none; }
.chip-f:hover { border-color: #c9d3ff; background: var(--info-bg); }
.chip-f.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip-f.on span { color: rgba(255,255,255,.85); }
.chip-f--ok.on { background: #12a150; border-color: #12a150; }
.chip-f--bad.on { background: var(--bad); border-color: var(--bad); }
.chip-f--warn.on { background: #e07d00; border-color: #e07d00; }
@media (max-width: 600px) { .chips { padding: 12px 16px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } }
.fold.loading .tbl-wrap { opacity: .45; pointer-events: none; transition: opacity .15s; }

/* in-page confirm dialog */
.dlg { z-index: 70; animation: dlg-fade .12s ease-out; }
.dlg__box { width: min(440px, 100%); padding: 26px 26px 22px; text-align: center; animation: dlg-pop .14s ease-out; }
.dlg__icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center;
  color: var(--blue); background: var(--info-bg); }
.dlg__icon svg { width: 26px; height: 26px; }
.dlg__icon--bad { color: var(--bad); background: var(--bad-bg); }
.dlg h3 { margin: 0 0 6px; font-size: 19px; }
.dlg p { margin: 0 0 20px; color: var(--muted); font-size: 14.5px; word-break: break-word; }
.dlg__copy { display: flex; gap: 8px; margin: -6px 0 20px; }
.dlg__copy .input { height: 38px; font: 12.5px var(--mono); }
.dlg__btns { display: flex; gap: 10px; justify-content: center; }
.dlg__btns .btn { flex: 1; max-width: 190px; }
.btn--solid-bad { background: var(--bad); color: #fff; border-color: var(--bad); }
.btn--solid-bad:hover { background: #b51d35; }
@keyframes dlg-fade { from { opacity: 0; } }
@keyframes dlg-pop { from { transform: scale(.96); opacity: 0; } }

/* Auto Find exchange picker */
.exch { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 12px; }
.exch.dim { opacity: .6; }
.exc { display: inline-flex; align-items: stretch; border-radius: 999px; border: 1px solid #bfe7cf; background: var(--ok-bg); overflow: hidden; }
.exc button { border: 0; background: none; font: inherit; cursor: pointer; }
.exc .exc__t { padding: 5px 12px; font-size: 13px; font-weight: 700; color: var(--ok); }
.exc .exc__x { padding: 0 10px 0 2px; font-size: 16px; line-height: 1; color: var(--ok); opacity: .6; }
.exc__x:hover { opacity: 1; color: var(--bad); }
.exc.off { background: #fff; border-color: var(--line); }
.exc.off .exc__t, .exc.off .exc__x { color: var(--faint); text-decoration: line-through; }
.exc:hover { border-color: var(--ok); } .exc.off:hover { border-color: #c9d3ff; }
.exch-add { display: flex; gap: 8px; max-width: 560px; }
.exch-add .input { height: 36px; font-size: 13.5px; }
.exch-add .btn { height: 36px; }
.hint--bad { color: var(--bad); font-weight: 600; } .hint--ok { color: var(--ok); font-weight: 600; }
@media (max-width: 600px) { .exch-add { flex-direction: column; } }

/* "Partial found" cards; 7 summary cards fit one row on wide screens */
.ico--amber { color: #b7791f; background: #fdf0c8; }
.stat--amber { background: #fffbeb; border-color: #f7e3a3; } .stat--amber .stat__label { color: #b7791f; }
/* 7 cards: "Domains crawled" tall on the left, one row per file type (found / all lines / partial) */
.stats:has(> :nth-child(7)) { grid-template-columns: minmax(0, .8fr) repeat(3, minmax(0, 1fr)); }
.stats:has(> :nth-child(7)) > :first-child { grid-row: span 2; }
@media (max-width: 900px) {
  .stats:has(> :nth-child(7)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats:has(> :nth-child(7)) > :first-child { grid-row: auto; grid-column: 1 / -1; }
}

/* on/off switch */
.switch { position: relative; display: inline-block; width: 40px; height: 22px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: #d5d9e6; transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + span { background: #12a150; }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px rgba(59,91,255,.3); }

/* ---------- Scans list (dashboard) ---------- */
.hero { position: relative; margin: -26px -32px 0; padding: 26px 32px 4px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 220px at 72% 0%, rgba(160,32,240,.07), transparent 70%),
              radial-gradient(500px 200px at 100% 30%, rgba(59,91,255,.08), transparent 70%); }
.hero .head h1 { font-size: 34px; }
.btn--lg { height: 52px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn .plus { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,.28); font-weight: 800; line-height: 1; }
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.kpi { position: relative; display: flex; gap: 18px; align-items: center; padding: 22px; min-height: 132px; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.ico--xl { width: 64px; height: 64px; border-radius: 16px; }
.ico--xl svg { width: 30px; height: 30px; }
.kpi__main { position: relative; z-index: 1; }
.kpi__label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.kpi__value { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 4px; }
.tip { display: inline-grid; color: var(--faint); cursor: help; }
.tip svg { width: 17px; height: 17px; }
.kpi__side { position: absolute; top: 24px; right: 22px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); z-index: 1; }
.pill-ok { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #dcf5e6; color: #12a150; font-weight: 800; font-size: 12px; }
.pulse { width: 22px; height: 22px; border-radius: 50%; background: #f1e3ff; position: relative; }
.pulse::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--violet); animation: pulse 1.4s infinite; }
.spark { position: absolute; right: 0; bottom: 0; width: 46%; height: 56px; }
.bars { position: absolute; right: 22px; bottom: 16px; height: 50px; display: flex; align-items: flex-end; gap: 8px; }
.bars span { width: 7px; border-radius: 3px; background: linear-gradient(180deg, #22c55e, #86e3a8); }

.list-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.list-head h2 { margin: 0; font-size: 22px; }
.search, .pick { position: relative; display: flex; align-items: center; }
.search svg, .pick svg { position: absolute; left: 12px; width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.search .input { width: 260px; height: 42px; padding-left: 38px; }
.pick select { height: 42px; padding: 0 34px 0 38px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit;
  font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; appearance: none; background: #fff no-repeat right 12px center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6280' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
.pick select:focus { outline: none; border-color: var(--blue); }
.tbl--scans td { padding: 16px 10px; vertical-align: middle; font-size: 14px; }
.tbl--scans th { padding: 13px 10px; white-space: normal; line-height: 1.3; }
.tbl--scans td:first-child, .tbl--scans th:first-child { padding-left: 22px; }
.tbl--scans td:last-child, .tbl--scans th:last-child { padding-right: 22px; }
.tbl--scans td:nth-child(7) { white-space: nowrap; }
.tbl--scans .progress--sm { width: 120px; }
.scan-cell { display: flex; gap: 12px; align-items: center; min-width: 210px; }
.scan-cell .ico { width: 40px; height: 40px; }
.by { max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bars span.ghost { background: #e3f5e9; }
.scan-cell b { font-size: 15.5px; }
.ln-row { white-space: nowrap; line-height: 1.7; }
.badge--lg { font-size: 13.5px; padding: 5px 12px; gap: 7px; }
.badge--lg svg { width: 18px; height: 18px; }
.dots { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; color: var(--ink);
  display: inline-grid; place-items: center; }
.dots svg { width: 18px; height: 18px; }
.dots:hover { background: var(--line-2); }
.rowmenu { position: absolute; z-index: 40; min-width: 180px; padding: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); }
.rowmenu a, .rowmenu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-radius: 8px;
  background: none; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; }
.rowmenu a:hover, .rowmenu button:hover { background: var(--line-2); text-decoration: none; }
.rowmenu .bad { color: var(--bad); }
.rowmenu .bad:hover { background: var(--bad-bg); }
@media (max-width: 1100px) { .kpis { grid-template-columns: 1fr; } .spark { width: 34%; } }
@media (max-width: 900px) {
  .hero { margin: -20px -16px 0; padding: 20px 16px 4px; }
  .search { flex: 1 1 100%; } .search .input { width: 100%; }
}

/* ---------- New scan ---------- */
.ns { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ns-side { display: grid; gap: 16px; position: sticky; top: 20px; }
.ns .card h2 { font-size: 18px; }
.ns .src { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 12px;
  margin-bottom: 10px; background: #fcfcfe; }
.ns .src .ico { width: 48px; height: 48px; border-radius: 12px; }
.ns .src__body { flex: 1; min-width: 0; padding-top: 2px; }
.ns .src .hint { margin: 6px 0 0 25px; }
.ns .src .exch, .ns .src .exch-add, .ns .src #ex-msg { margin-left: 25px; }
.ico svg, .ico--sm svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--sm { width: 40px; height: 40px; border-radius: 10px; } .ico--sm svg { width: 19px; height: 19px; }
.ico--lg { width: 56px; height: 56px; border-radius: 14px; } .ico--lg svg { width: 26px; height: 26px; }
.opt { display: flex; align-items: center; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.opt--name { gap: 0; margin-top: 16px; }
.opt__lbl { display: flex; flex-direction: column; justify-content: center; height: 44px; padding: 0 14px; border: 1.5px solid var(--line);
  border-right: 0; border-radius: 10px 0 0 10px; background: #fafbfd; font-weight: 700; font-size: 14px; white-space: nowrap; }
.opt__lbl span { font-weight: 400; color: var(--muted); font-size: 12px; line-height: 1.1; }
.opt--name .input { flex: 1; min-width: 180px; border-radius: 0 10px 10px 0; }
.side-card { position: relative; padding: 20px; overflow: hidden; }
.side-card__top { display: flex; gap: 16px; align-items: flex-start; position: relative; z-index: 1; }
.side-card__txt { flex: 1; min-width: 0; }
.side-card h3 { margin: 4px 0 4px; font-size: 16.5px; display: flex; align-items: center; gap: 8px; }
.side-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.side-card p .badge { margin: 2px 2px; }
.side-card .btn--sm .i16 { width: 15px; height: 15px; fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; }
.side-card__foot { display: flex; align-items: flex-end; justify-content: space-between; margin: 14px 0 0 72px; }
.side-card .big { font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin-right: 6px; }
.side-num { text-align: center; flex: none; min-width: 90px; }
.side-num b { display: block; font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.side-num span { color: var(--muted); font-size: 13px; }
.minibars { display: flex; align-items: flex-end; gap: 7px; height: 36px; }
.minibars i { width: 6px; height: 45%; border-radius: 3px; background: #c9d3ff; }
.minibars i:nth-child(2) { height: 60%; } .minibars i:nth-child(3) { height: 70%; } .minibars i:nth-child(6) { height: 75%; }
.minibars i:nth-child(1) { height: 20%; } .minibars i.hi { height: 100%; background: var(--blue); }
.glow::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 140px; border-radius: 50%; pointer-events: none; }
.glow--violet::after { background: radial-gradient(closest-side, rgba(160,32,240,.12), transparent); }
.glow--green::after { background: radial-gradient(closest-side, rgba(34,197,94,.14), transparent); }
#ex-sel { position: relative; z-index: 1; }
.btn--go { height: 56px; font-size: 17px; border-radius: 12px; gap: 12px; }
.btn--go svg { width: 20px; height: 20px; }
.side-card .alert { margin-bottom: 14px; }
@media (max-width: 1000px) { .ns { grid-template-columns: 1fr; } .ns-side { position: static; } }
@media (max-width: 600px) {
  .ns .src { flex-direction: column; } .ns .src .ico { display: none; }
  .ns .src .hint, .ns .src .exch, .ns .src .exch-add, .ns .src #ex-msg { margin-left: 0; }
  .side-card__foot { margin-left: 0; }
}
.tip svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }

/* the eye button's own icon must not be positioned like the field icons */
.afield .eye svg { position: static; transform: none; display: block; }
.drop img { display: inline-block; margin-bottom: 6px; }
