/* SEO Auditor · Fedorowicz · dark interface */
:root {
  color-scheme: dark;
  --bg: #0c1119;
  --nav: #0d141e;
  --surface: #151d29;
  --surface-raised: #1a2533;
  --surface-hover: #1e2b3a;
  --line: #2a3747;
  --text: #ecf2fa;
  --muted: #a0afc0;
  --quiet: #71859c;
  --accent: #7db6ff;
  --accent-bg: #233b59;
  --good: #72dcb0;
  --warn: #f0bc71;
  --danger: #ff8e95;
  --critical: #ff6572;
  --shadow: 0 10px 28px rgba(0, 0, 0, .12);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15.5px/1.65 "Segoe UI", Arial, "DejaVu Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}
p, h1, h2, h3 { margin-top: 0; }
::selection { color: #07111e; background: #8dbfff; }
.shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 252px; flex-shrink: 0; background: var(--nav); color: #bfcede;
  border-right: 1px solid var(--line); min-height: 100vh;
  padding: 28px 16px 20px; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 11px 42px; color: var(--text); }
.brand-icon {
  position: relative; flex-shrink: 0; width: 43px; height: 43px; display: grid;
  place-items: center; border-radius: 10px; background: var(--accent-bg);
  border: 1px solid #406184; color: #f2f8ff; font-size: 26px; font-weight: 750;
  line-height: 1; letter-spacing: -1px;
}
.brand-icon span { position: absolute; right: 7px; bottom: 5px; color: var(--accent); font-size: 18px; }
.brand strong { display: block; font-size: 16px; font-weight: 750; line-height: 1.4; letter-spacing: -.3px; }
.brand small { color: var(--quiet); font-size: 10px; letter-spacing: 1.4px; font-weight: 700; }
.menu-section { color: var(--quiet); font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; padding: 0 15px; margin: 0 0 13px; }
.nav-links { display: grid; gap: 5px; }
.nav-links a {
  display: flex; gap: 12px; align-items: center; padding: 10px 13px;
  border: 1px solid transparent; border-radius: 8px; font-size: 14px;
  font-weight: 560; min-height: 46px;
}
.nav-links a:hover { color: var(--text); background: #182536; }
.nav-links a.active { color: #cde3ff; border-color: #30465f; background: #1a2d43; }
.navsymbol { width: 23px; font-size: 20px; line-height: 1; text-align: center; color: #85a6c8; }
.sidebar-bottom { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.logout { border: 0; background: transparent; color: var(--muted); font-size: 14px; text-align: left; padding: 12px 13px; width: 100%; }
.logout span { float: right; }
.logout:hover { color: var(--text); }
.app-content { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.topbar { height: 75px; padding: 0 42px; background: #111925; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.breadcrumbs { color: #b6c6d8; font-size: 13.5px; font-weight: 650; overflow-wrap: anywhere; }
.breadcrumbs span { color: #5a6f85; margin: 0 8px; }
.breadcrumbs a:hover, .footer a:hover { color: var(--accent); }
.topbar-right { display: flex; gap: 22px; align-items: center; }
.topbar-status { color: var(--quiet); font-size: 12px; }
.live-dot { display: inline-block; width: 7px; height: 7px; vertical-align: middle; border-radius: 50%; background: var(--good); margin-right: 8px; }
.avatar { display: grid; place-items: center; border-radius: 10px; width: 36px; height: 36px; background: var(--accent-bg); color: #bedcff; font-weight: 740; }
.content { flex: 1; width: 100%; max-width: 1630px; margin: 0 auto; padding: 38px 44px 58px; }
.footer { display: flex; justify-content: space-between; gap: 16px; color: var(--quiet); font-size: 12px; padding: 17px 44px 25px; border-top: 1px solid var(--line); }
.footer a { color: #bedcff; }
.page-heading { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-bottom: 29px; }
.eyebrow { color: #82baff; font-size: 11px; font-weight: 780; letter-spacing: 1.15px; margin-bottom: 7px; }
.page-heading h1 { margin: 0 0 9px; font-size: 31px; line-height: 1.22; font-weight: 720; letter-spacing: -.7px; }
.page-heading p { color: var(--muted); font-size: 15px; margin: 0; }
.audit-address { overflow-wrap: anywhere; }
.mint { color: var(--accent); }
.pill {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; line-height: 1.3; font-weight: 680;
  border: 1px solid transparent; padding: 6px 10px; border-radius: 7px; white-space: nowrap;
}
.pill.neutral { background: #202d3b; color: #b4c4d8; border-color: #2a3949; }
.pill.success, .score-pill.success { background: #173a33; color: #87e6bc; border-color: #245a48; }
.pill.warning, .score-pill.warning { background: #3e301d; color: #ffd093; border-color: #615035; }
.pill.danger, .score-pill.danger { background: #46252d; color: #ff9ba3; border-color: #69404a; }
.pill.critical { background: #642733; color: #fff2f2; border-color: #a34253; }
.cards { display: grid; gap: 16px; margin-bottom: 24px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-card { min-width: 0; min-height: 142px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); padding: 21px 23px 19px; box-shadow: var(--shadow); }
.stat-top { color: #afc0d1; font-size: 13px; font-weight: 620; display: flex; align-items: center; justify-content: space-between; }
.stat-icon { color: #80a0bc; font-size: 19px; }
.stat-number { font-weight: 750; font-size: 36px; line-height: 1.2; letter-spacing: -.8px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.stat-unit { font-size: 16px; color: var(--quiet); font-weight: 600; }
.stat-sub { color: var(--quiet); font-size: 12.5px; margin-top: 8px; line-height: 1.4; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 27px 29px; box-shadow: var(--shadow); margin-bottom: 23px; min-width: 0; }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.panel-heading h2 { font-size: 20px; font-weight: 720; line-height: 1.35; letter-spacing: -.25px; margin: 0 0 7px; }
.panel-heading p { color: var(--muted); font-size: 14px; margin: 0; max-width: 750px; }
.panel-heading.compact { align-items: center; margin-bottom: 20px; }
.panel-heading.compact h2 { margin-bottom: 0; }
.section-graphic { display: grid; place-items: center; flex-shrink: 0; height: 52px; width: 52px; border-radius: 9px; background: #233c59; color: #abceff; font-size: 36px; }
.audit-form label:not(.toggle-line), .login-form label { color: #d2ddec; display: block; font-size: 13px; font-weight: 640; margin-bottom: 8px; }
.required { color: var(--danger); }
.audit-form input[type=text], .audit-form select, .login-form input {
  width: 100%; background: #0e1620; color: var(--text); border: 1px solid #354358;
  border-radius: 8px; height: 48px; padding: 0 15px; outline: 0; font-size: 15px;
}
.audit-form input[type=text]:focus, .audit-form select:focus, .login-form input:focus { border-color: #6da9ec; box-shadow: 0 0 0 3px #33567873; }
.audit-form input::placeholder, .login-form input::placeholder { color: #788da4; }
.audit-form select:disabled { opacity: .6; }
.audit-form select option { background: #0e1620; color: var(--text); }
.input-prefix { position: relative; }
.input-prefix > span { position: absolute; top: 10px; left: 15px; color: #8aaccd; font-size: 19px; }
.input-prefix input { padding-left: 45px !important; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 20px 0; }
.toggle-line { display: flex; align-items: flex-start; gap: 12px; background: #111b27; border: 1px solid var(--line); padding: 14px 16px; border-radius: 8px; cursor: pointer; }
.toggle-line input { flex-shrink: 0; width: 18px; height: 18px; margin: 3px 0 0; accent-color: #75b3fd; }
.toggle-line strong { font-size: 14.5px; color: var(--text); display: block; }
.toggle-line small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 2px; }
.form-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 20px; }
.helper { color: var(--quiet); font-size: 12.5px; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 12px; border-radius: 8px; border: 1px solid transparent; min-height: 45px; padding: 0 18px; font-size: 13.5px; font-weight: 690; }
.btn:hover { filter: brightness(1.09); }
.btn-primary { background: #75aeef; color: #0b1726; }
.btn-secondary { background: #202d3c; border-color: #35465a; color: #dce9f8; }
.btn.wide { width: 100%; justify-content: space-between; }
.alert { border-radius: 8px; padding: 13px 15px; margin: 15px 0; font-size: 14px; }
.alert-error { background: #392028; color: #ffd5d8; border: 1px solid #7b3846; }
.alert-success { background: #173b31; color: #b0ffda; border: 1px solid #366a54; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 690px; }
.data-table th { background: #1b2735; text-align: left; white-space: nowrap; color: #a6b9cd; font-size: 12px; letter-spacing: .2px; font-weight: 700; padding: 13px 14px; }
.data-table td { padding: 14px; color: #c6d2df; font-size: 14px; vertical-align: middle; border-top: 1px solid var(--line); }
.data-table tr:hover td { background: #1a2532; }
.data-table td strong { color: #f0f5fd; font-weight: 660; }
.url-cell { display: flex; align-items: center; gap: 12px; max-width: 650px; min-width: 210px; }
.url-cell div { min-width: 0; }
.url-cell strong { display: block; line-height: 1.5; overflow-wrap: anywhere; }
.url-cell small { display: block; margin-top: 3px; font-size: 12px; color: var(--quiet); overflow-wrap: anywhere; }
.website-icon { background: #23374b; color: #97c7fc; flex-shrink: 0; border-radius: 8px; height: 35px; width: 35px; font-size: 18px; display: grid; place-items: center; }
.row-link { display: inline-block; color: #90c4ff; font-size: 13px; font-weight: 700; white-space: nowrap; }
.row-link:hover { color: white; text-decoration: underline; }
.score-text, .score-pill { font-variant-numeric: tabular-nums; }
.score-pill { border-radius: 7px; border: 1px solid transparent; display: inline-block; padding: 7px 11px; font-size: 13px; font-weight: 710; }
.score-pill.big-score { padding: 13px 16px; font-size: 23px; }
.empty-state { text-align: center; padding: 37px 0; }
.empty-symbol { height: 62px; width: 62px; background: #213449; color: #9cc8ff; border-radius: 13px; font-size: 34px; display: grid; place-items: center; margin: 0 auto 13px; }
.empty-state h3 { font-size: 17px; margin-bottom: 4px; }
.empty-state p { color: var(--muted); font-size: 14px; }
.backline { color: var(--muted); font-size: 13.5px; margin-bottom: 19px; }
.backline a:hover { color: var(--accent); }
.report-actions { display: flex; gap: 10px; align-items: center; }
.progress-panel { background: #182839; border-color: #3a5470; }
.progress-title { color: var(--text); display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.progress-title > div { display: flex; align-items: center; gap: 9px; }
.pulsing-dot { height: 8px; width: 8px; background: var(--accent); border-radius: 50%; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.progress-track { height: 8px; background: #263c52; border-radius: 15px; overflow: hidden; margin-top: 17px; }
.progress-fill { height: 100%; border-radius: 15px; background: #77b9ff; transition: width .25s ease; }
.progress-panel p { color: var(--muted); font-size: 13px; margin: 12px 0 0; }
.critical-text { color: var(--critical) !important; }
.danger-text { color: var(--danger) !important; }
.warning-text { color: var(--warn) !important; }
.good-text { color: var(--good) !important; }
.details-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.details-grid .panel { min-width: 0; }
.meta-item { border-top: 1px solid var(--line); padding: 14px 0; }
.meta-item:first-of-type { border-top: 0; }
.meta-item .meta-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.meta-item p { font-size: 15px; color: #c5d4e4; line-height: 1.7; margin: 7px 0 0; overflow-wrap: anywhere; }
.kv { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px; }
.kv:first-of-type { border-top: 0; }
.kv > span { color: var(--muted); }
.kv > strong { text-align: right; color: var(--text); font-weight: 650; overflow-wrap: anywhere; max-width: 70%; }
.text-right { text-align: right; }
.mono-wrap, .evidence, .code-cell { font-family: Consolas, "DejaVu Sans Mono", ui-monospace, monospace; overflow-wrap: anywhere; }
.minor { color: var(--muted); font-size: 12px; }
.psi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.psi-card { min-width: 0; background: #111b27; border-radius: 9px; border: 1px solid var(--line); padding: 23px; }
.psi-label { color: #a7bacd; font-size: 12px; letter-spacing: .8px; font-weight: 750; }
.psi-number { font-size: 40px; line-height: 1.2; margin: 10px 0 19px; font-weight: 750; }
.psi-number span { color: var(--quiet); font-size: 16px; font-weight: 650; }
.psi-card .kv { font-size: 13.5px; }
.psi-card .kv strong { font-size: 13px; }
.error-small { font-size: 14px; color: #ffc9ad; line-height: 1.6; overflow-wrap: anywhere; }
.fineprint { color: var(--quiet); font-size: 13px; line-height: 1.6; margin: 16px 0 0; }
.filters { display: flex; flex-wrap: wrap; gap: 9px; padding-bottom: 18px; margin-bottom: 9px; border-bottom: 1px solid var(--line); }
.filter { padding: 9px 13px; border-radius: 7px; border: 1px solid #384859; color: #c7d3df; background: #1d2835; font-size: 13px; font-weight: 650; }
.filter.active { border-color: #547caa; background: #27415c; color: #e2efff; }
.issue { display: flex; gap: 15px; padding: 20px 2px; border-bottom: 1px solid var(--line); }
.issue:last-child { border-bottom: 0; }
.issue-mark { display: grid; place-items: center; flex-shrink: 0; height: 31px; width: 31px; font-size: 17px; border-radius: 8px; font-weight: 900; }
.severity-critical .issue-mark { background: #5d2633; color: #ffb0b8; border: 1px solid #a34454; }
.severity-high .issue-mark { background: #4a2b35; color: #ff9da4; }
.severity-medium .issue-mark { background: #443622; color: #ffcc8c; }
.severity-low .issue-mark { background: #283d56; color: #a2c8f6; }
.severity-info .issue-mark { background: #25403b; color: #90e3bb; }
.issue-content { min-width: 0; flex: 1; }
.issue-title { display: flex; justify-content: space-between; align-items: center; gap: 15px; font-size: 16px; font-weight: 710; line-height: 1.5; margin-bottom: 9px; }
.issue-content p { margin: 0 0 9px; font-size: 15px; color: #bdcbd9; }
.evidence { color: #d2dfed; font-size: 13px; line-height: 1.65; border: 1px solid var(--line); background: #0e1722; border-radius: 7px; padding: 10px 13px; }
.fix { color: #a4d5fb; font-size: 14.5px; margin-top: 11px; }
.fix strong { color: #c4e3ff; }
.heading-line { display: flex; align-items: baseline; gap: 16px; font-size: 15px; padding: 12px 3px; border-bottom: 1px solid var(--line); }
.heading-line:last-child { border: 0; }
.heading-level { min-width: 29px; color: var(--accent); font-weight: 700; font-size: 13px; }
.section-intro { color: var(--muted); font-size: 14px; }
.image-tools { margin: 16px 0; }
.alt-filter { display: inline-flex; padding: 9px 12px; font-size: 13px; }
.code-cell { max-width: 320px; font-size: 12.5px !important; line-height: 1.55; }
.word-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.word-tags > span { border-radius: 7px; background: #213043; color: #d6e2f0; font-size: 13px; padding: 8px 12px; }
.word-tags b { color: #8cbefd; margin-left: 6px; }
.delete-area { margin: 18px 3px; }
.btn-text-danger { border: 0; background: transparent; color: var(--danger); padding: 10px; font-size: 13px; }
.btn-text-danger:hover { text-decoration: underline; }
.settings-panel { max-width: 690px; }
.settings-panel .login-form { max-width: 480px; }
.login-form { display: grid; gap: 10px; }
.login-form button { margin-top: 12px; }
.login-page { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 26px; background: #0b111a; }
.login-glow { display: none; }
.login-card { background: var(--surface); width: min(452px, 100%); border-radius: 13px; padding: 40px; box-shadow: 0 16px 65px #0006; border: 1px solid #314055; }
.login-logo { display: flex; justify-content: center; margin: 0 0 20px; }
.login-logo .brand-icon { width: 53px; height: 53px; font-size: 31px; }
.login-card .mini-eyebrow { text-align: center; color: #90bdf6; letter-spacing: 1.5px; font-size: 11px; font-weight: 700; }
.login-card h1 { font-size: 27px; text-align: center; margin: 10px 0; font-weight: 730; }
.login-card > p { text-align: center; color: var(--muted); margin: 0 0 27px; font-size: 14px; }
.login-bottom { color: var(--quiet); margin-top: 29px; border-top: 1px solid var(--line); padding-top: 18px; text-align: center; font-size: 12px; }
.login-bottom a { color: #a6ceff; }
.error-page { text-align: center; padding: 60px; }
.error-page h1 { font-size: 58px; }
.error-page p { color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 1250px) {
  .content { padding: 31px 28px 50px; }
  .topbar { padding: 0 28px; }
  .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sidebar { width: 225px; }
}
@media (max-width: 950px) {
  .shell { display: block; }
  .sidebar { position: relative; height: auto; min-height: 0; width: 100%; padding: 14px 18px; flex-direction: row; gap: 18px; align-items: center; }
  .brand { padding: 0; white-space: nowrap; }
  .menu-section, .sidebar-bottom { display: none; }
  .nav-links { display: flex; gap: 3px; flex-wrap: wrap; }
  .nav-links a { min-height: 38px; font-size: 13px; padding: 7px 10px; }
  .navsymbol { display: none; }
  .details-grid { grid-template-columns: 1fr; }
  .topbar { height: 60px; }
  .footer { padding: 16px 25px; }
}
@media (max-width: 670px) {
  body { font-size: 14.5px; }
  .sidebar { overflow-x: auto; gap: 8px; }
  .brand small { display: none; }
  .brand strong { font-size: 13px; }
  .brand-icon { width: 35px; height: 35px; }
  .nav-links a { font-size: 12px; padding: 7px 8px; white-space: nowrap; }
  .topbar-status { display: none; }
  .topbar { padding: 0 18px; }
  .content { padding: 27px 16px 38px; }
  .page-heading { flex-direction: column; align-items: flex-start; }
  .page-heading h1 { font-size: 26px; }
  .cards.three, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .stat-card { padding: 17px; min-height: 125px; }
  .stat-top { font-size: 12px; }
  .stat-number { font-size: 29px; }
  .panel { padding: 20px 17px; }
  .form-grid, .psi-grid { grid-template-columns: 1fr; }
  .form-bottom { align-items: stretch; flex-direction: column; }
  .form-bottom .btn { width: 100%; }
  .report-actions { width: 100%; }
  .report-actions .btn { flex: 1; }
  .issue-title { flex-direction: column; align-items: flex-start; }
  .issue { gap: 10px; }
  .footer { flex-direction: column; gap: 2px; font-size: 12px; }
  .login-card { padding: 28px 22px; }
  .section-graphic { display: none; }
}
