/* ExecuteConsult(TM) SEO: Summit brand system */
:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --card: #fbfaf6;
  --ink: #15171b;
  --ink-2: #3a3d43;
  --muted: #6d6f74;
  --line: #d9d3c6;
  --slate: #3d5470;
  --slate-2: #5f7893;
  --slate-soft: #dfe5ec;
  --good: #2f7656;
  --good-soft: #dcebe2;
  --bad: #ad4434;
  --bad-soft: #f2dcd6;
  --warn: #a97a1f;
  --warn-soft: #f1e6cc;
  --radius: 10px;
  --shadow: 0 1px 0 rgba(21, 23, 27, .04), 0 1px 3px rgba(21, 23, 27, .06);
  --head: 'Manrope', system-ui, sans-serif;
  --body: 'Poppins', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 14px/1.55 var(--body); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 26px; line-height: 1.15; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
a { color: var(--slate); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { font-family: var(--head); font-variant-numeric: tabular-nums; font-weight: 700; }
.hidden { display: none !important; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; position: relative; overflow: hidden; }
.login .contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.login-card { position: relative; width: 100%; max-width: 380px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 32px 28px; box-shadow: var(--shadow); }
.login-card .brand { margin-bottom: 28px; }
.login-card form { display: grid; gap: 14px; }
.login-card .err { color: var(--bad); font-size: 13px; min-height: 1em; }

/* ---------- brand ---------- */
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-weight: 800; font-size: 16px; color: var(--ink); }
.brand svg { flex: none; }
.brand sup { font-size: 9px; font-weight: 600; }
.brand .tag { font-weight: 600; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); border: 1px solid var(--slate-soft); background: var(--slate-soft); padding: 2px 7px; border-radius: 4px; }

/* ---------- shell ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(244, 241, 234, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1240px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.top .brand { text-decoration: none; }
.top .spacer { flex: 1; }
.top .who { font-size: 12px; color: var(--muted); max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { max-width: 1240px; margin: 0 auto; padding: 24px 16px 80px; }
.demo-bar { background: var(--ink); color: var(--paper); font-size: 12px; text-align: center; padding: 6px 12px; }

.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .grow { flex: 1; min-width: 200px; }
.page-head .crumb { font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.page-head .domain { color: var(--muted); font-size: 13px; margin-top: 4px; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 22px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 14px; color: var(--muted); font-family: var(--head); font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--ink); text-decoration: none; }
.tabs a.on { color: var(--ink); border-bottom-color: var(--ink); }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-family: var(--head); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--ink); }
.btn:hover { border-color: var(--ink-2); text-decoration: none; }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { background: #000; }
.btn.slate { background: var(--slate); border-color: var(--slate); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--ink); }
.btn.danger { color: var(--bad); }
.btn.sm { padding: 6px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: default; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

label.f { display: grid; gap: 5px; font-size: 12px; font-weight: 500; color: var(--ink-2); }
label.f .hint { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea {
  width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 14px; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--slate); box-shadow: 0 0 0 3px var(--slate-soft); }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; margin-right: 14px; }
.search { max-width: 260px; }

/* ---------- cards & grids ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { flex: 1; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .l { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.kpi .v { font-family: var(--head); font-weight: 800; font-size: 26px; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--muted); }
@media (max-width: 1000px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .g2 { grid-template-columns: 1fr; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } h1 { font-size: 22px; } main { padding-top: 18px; } }

/* project cards */
.projects { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.pcard { display: block; color: inherit; position: relative; overflow: hidden; }
.pcard:hover { text-decoration: none; border-color: var(--ink-2); }
.pcard .contours { position: absolute; right: -40px; top: -30px; width: 200px; opacity: .5; pointer-events: none; }
.pcard h3 { font-size: 17px; }
.pcard .dom { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.pcard .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.pcard .stats div { font-size: 11px; color: var(--muted); }
.pcard .stats b { display: block; font-family: var(--head); font-size: 17px; color: var(--ink); }
.pcard.archived { opacity: .55; }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 6px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: default; }
th.sort { cursor: pointer; user-select: none; }
th.sort:hover { color: var(--ink); }
td { padding: 10px; border-bottom: 1px solid var(--paper-2); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(61, 84, 112, .04); }
td.r, th.r { text-align: right; }
td.c, th.c { text-align: center; }
td .url { display: block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
td.kw { font-weight: 500; min-width: 180px; }
.sticky-col { position: sticky; left: 0; background: var(--card); z-index: 1; }

.pos { display: inline-block; min-width: 34px; text-align: center; font-family: var(--head); font-weight: 700; padding: 2px 6px; border-radius: 5px; background: var(--paper-2); }
.pos.t3 { background: var(--good); color: #fff; }
.pos.t10 { background: var(--good-soft); color: var(--good); }
.pos.t20 { background: var(--slate-soft); color: var(--slate); }
.pos.none { background: transparent; color: var(--muted); font-weight: 500; }
.delta { font-family: var(--head); font-weight: 700; font-size: 12px; }
.delta.up { color: var(--good); }
.delta.down { color: var(--bad); }
.pill { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--paper-2); color: var(--ink-2); margin: 1px 2px 1px 0; white-space: nowrap; }
.pill.slate { background: var(--slate-soft); color: var(--slate); }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }

/* severity */
.sev { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; }
.sev::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.sev.error::before { background: var(--bad); }
.sev.warning::before { background: var(--warn); }
.sev.notice::before { background: var(--slate-2); }

/* issues list */
.issue { border-top: 1px solid var(--paper-2); }
.issue summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 12px 2px; cursor: pointer; }
.issue summary::-webkit-details-marker { display: none; }
.issue summary .t { flex: 1; font-weight: 500; }
.issue summary .n { font-family: var(--head); font-weight: 700; min-width: 40px; text-align: right; }
.issue summary .chev { color: var(--muted); transition: transform .15s; }
.issue[open] summary .chev { transform: rotate(90deg); }
.issue .body { padding: 0 2px 14px 20px; }
.issue .fix { font-size: 13px; color: var(--ink-2); background: var(--paper); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; }
.issue ul { margin: 0; padding: 0; list-style: none; font-size: 12px; }
.issue li { padding: 5px 0; border-bottom: 1px dashed var(--paper-2); display: flex; gap: 10px; }
.issue li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.issue li span { color: var(--muted); flex: none; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* score ring */
.score { display: flex; align-items: center; gap: 18px; }
.score .ring { position: relative; width: 104px; height: 104px; flex: none; }
.score .ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--head); font-size: 30px; font-weight: 800; }
.score dl { display: grid; grid-template-columns: auto auto; gap: 4px 14px; margin: 0; font-size: 13px; }
.score dt { color: var(--muted); }
.score dd { margin: 0; font-weight: 600; text-align: right; }

/* site checks */
.checks { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.checks div { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 8px 10px; border-radius: 8px; background: var(--paper); }
.checks i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 11px; color: #fff; flex: none; background: var(--muted); }
.checks i.ok { background: var(--good); }
.checks i.no { background: var(--bad); }

/* AI matrix */
.matrix td.cell { text-align: center; cursor: pointer; }
.dot { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; font-size: 12px; font-weight: 700; font-family: var(--head); background: var(--paper-2); color: var(--muted); }
.dot.m { background: var(--slate-soft); color: var(--slate); }
.dot.c { background: var(--good); color: #fff; }
.dot.x { background: transparent; border: 1px dashed var(--line); }
.dot.e { background: var(--bad-soft); color: var(--bad); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); align-items: center; }
.legend .dot { width: 18px; height: 18px; font-size: 10px; margin-right: 4px; vertical-align: middle; }
td.prompt { min-width: 220px; max-width: 360px; }

/* bars */
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 120px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; }
.bar .track { height: 8px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--slate); border-radius: 99px; }
.bar .fill.ink { background: var(--ink); }
.bar .fill.good { background: var(--good); }
.bar .v { text-align: right; font-family: var(--head); font-weight: 700; }
.bar .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* charts */
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 11px var(--body); fill: var(--muted); }
.spark { display: block; }

/* job banner */
.job { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; font-size: 13px; }
.job .prog { flex: 1; height: 4px; background: rgba(255, 255, 255, .2); border-radius: 99px; overflow: hidden; min-width: 60px; }
.job .prog i { display: block; height: 100%; background: var(--paper); transition: width .4s; }
.job.failed { background: var(--bad); }
.job.done { background: var(--good); }

/* modal */
.modal-bg { position: fixed; inset: 0; background: rgba(21, 23, 27, .45); z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.modal { background: var(--card); width: 100%; max-width: 760px; max-height: 88vh; overflow: auto; border-radius: 14px 14px 0 0; padding: 22px 20px 28px; }
@media (min-width: 720px) { .modal-bg { align-items: center; } .modal { border-radius: 14px; padding: 26px 28px; } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-head h2 { flex: 1; }
.answer { white-space: pre-wrap; font-size: 13px; line-height: 1.65; background: var(--paper); border-radius: 8px; padding: 14px; max-height: 340px; overflow: auto; }
.answer mark { background: var(--warn-soft); color: inherit; padding: 0 2px; border-radius: 3px; }
.answer mark.us { background: var(--good-soft); }
.cites { list-style: none; margin: 0; padding: 0; font-size: 13px; }
.cites li { padding: 6px 0; border-bottom: 1px solid var(--paper-2); display: flex; gap: 8px; align-items: center; }
.cites li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-size: 13px; z-index: 60; max-width: calc(100% - 32px); }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } .bar { grid-template-columns: 90px 1fr 40px; } }
.section-title { font-family: var(--head); font-weight: 700; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 26px 0 10px; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.toolbar .grow { flex: 1; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.grid > .card { margin-top: 0; }
.bar .track, .bar .fill { display: block; }
@media (max-width: 520px) { .top .who { display: none; } }
.kpis.k4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 720px) { .kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .market { flex-wrap: wrap !important; } .market [data-f=area] { order: 3; flex-basis: 100% !important; } }
