/* Doctorank Radar: arkusz stylów.
   Kolory, fonty, promienie i cienie pochodzą z tokenów strony doctorank.com (sekcja TOKENY poniżej).
   Żeby zmienić wygląd całego narzędzia, zmieniasz wartości w :root. */

/* ============================================================ TOKENY */
:root {
  /* tekst */
  --ink: #202124;       /* tytuły */
  --text: #232324;      /* tekst główny */
  --body: #5f6368;      /* tekst pomocniczy */
  --muted: #80868b;
  /* niebieski marki */
  --blue: #1a73e8;
  --blue-h: #1765cc;
  --blue-d: #174ea6;
  --link: #77a4e6;      /* linki na ciemnym tle */
  --link-h: #4587f4;
  /* powierzchnie */
  --canvas: #f8f9fa;
  --paper: #ffffff;
  --tint: #e8f0fe;
  --tint-2: #f3f7fe;
  --line: #d8deea;
  --line-2: #e6eaf2;
  /* stany */
  --green: #188038; --green-bg: #e6f4ea;
  --amber: #e37400; --amber-bg: #fef7e0;
  --red: #d93025;   --red-bg: #fce8e6;
  --star: #fbbc04;
  /* ciemne sekcje */
  --night: #05070d;
  --d-text: #eef2f9;
  --d-body: rgba(226, 232, 244, .76);
  --d-muted: rgba(226, 232, 244, .55);
  --d-line: rgba(255, 255, 255, .1);
  --d-blue: #a8c7fa;
  /* trudność frazy */
  --kd0: #188038; --kd1: #7cb342; --kd2: #f9ab00; --kd3: #e37400; --kd4: #d93025;
  /* krój pisma: Raleway na nagłówki i duże liczby, Inter na całą resztę */
  --df: "Raleway", "Inter", "Helvetica Neue", Arial, sans-serif;
  --tf: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  /* promienie i cienie */
  --r-lg: 20px; --r: 14px; --r-sm: 10px; --r-btn: 8px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --e1: 0 1px 2px rgba(13, 26, 54, .05), 0 4px 14px -6px rgba(13, 26, 54, .12);
  --e2: 0 2px 4px rgba(13, 26, 54, .05), 0 14px 30px -12px rgba(13, 26, 54, .2);
  --e3: 0 2px 6px rgba(13, 26, 54, .06), 0 34px 64px -30px rgba(13, 26, 54, .4);
  /* układ */
  --nav-h: 64px; --wrap: 1240px;
  --pad-x: clamp(16px, 2.4vw, 32px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  background: var(--canvas); color: var(--text); font-family: var(--tf); font-size: 14px; line-height: 1.55;
  font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--blue-h); text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(26, 115, 232, .55); outline-offset: 2px; border-radius: 6px; }
svg { display: block; }
.ic { width: 16px; height: 16px; flex: none; }
.ic.sm { width: 10px; height: 10px; }
h1, h2, h3 { font-feature-settings: "lnum" 1, "pnum" 1; }

/* ============================================================ GÓRNA NAWIGACJA (biała, jak na doctorank.com) */
.topbars { position: sticky; top: 0; z-index: 60; }
.nav {
  height: var(--nav-h); background: #fff; border-bottom: 1px solid var(--line-2);
  display: flex; align-items: center; gap: 22px; padding: 0 var(--pad-x);
}
.logo { display: flex; align-items: center; gap: 10px; flex: none; color: var(--ink); }
.logo:hover { text-decoration: none; color: var(--ink); }
.logo-mark img { width: 30px; height: 30px; border-radius: 8px; }
.logo-name, .logo-prod { font-family: var(--df); font-weight: 800; font-size: 20px; letter-spacing: -.02em; line-height: 1; }
.logo-name { color: var(--ink); }
.logo-prod { color: var(--blue); margin-left: -4px; font-weight: 700; }
.logo-img { display: block; height: 28px; width: auto; max-width: 180px; object-fit: contain; }
.tools { display: flex; align-items: center; gap: 2px; }
.tools a, .nav-link {
  display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: var(--r-btn);
  font-size: 15px; font-weight: 500; line-height: 1.2; color: var(--body); white-space: nowrap;
  transition: color .2s, background-color .2s;
}
.tools a:hover, .nav-link:hover { color: var(--ink); background: var(--tint-2); text-decoration: none; }
.tools a.active, .nav-link.active { color: var(--blue); background: var(--tint); font-weight: 600; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.stat {
  display: inline-flex; gap: 7px; align-items: baseline; padding: 6px 12px; border-radius: 999px; background: var(--canvas);
  border: 1px solid var(--line-2); font-size: 13px; color: var(--body);
}
.stat b { color: var(--ink); font-weight: 600; }

/* ============================================================ BANER */
.banner {
  background: var(--tint); color: var(--blue-d); padding: 9px var(--pad-x); display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; border-bottom: 1px solid #d2e3fc;
}
.banner .ic { color: var(--blue); width: 16px; height: 16px; }
.banner .grow { flex: 1; }
.banner a { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.banner button { background: none; border: 0; cursor: pointer; padding: 5px; color: var(--blue-d); border-radius: 6px; }
.banner button:hover { background: rgba(26, 115, 232, .12); }

/* ============================================================ PRZYCISKI */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: var(--r-btn); border: 1px solid var(--line);
  background: #fff; color: var(--ink); cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; line-height: 1.3;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn:hover { background: var(--tint-2); border-color: #aecbfa; color: var(--blue-d); text-decoration: none; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary {
  background: var(--blue); border-color: var(--blue); color: #fff;
  box-shadow: 0 1px 2px rgba(26, 115, 232, .35), 0 10px 22px -12px rgba(26, 115, 232, .7);
}
.btn.primary:hover { background: var(--blue-h); border-color: var(--blue-h); color: #fff; transform: translateY(-1px); }
.btn.small { padding: 6px 11px; font-size: 13px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--blue); cursor: pointer; font-weight: 600; }
.linkbtn:hover { color: var(--blue-h); text-decoration: underline; text-underline-offset: 3px; }
.price { color: var(--muted); font-weight: 400; }
.btn.primary .price { color: rgba(255, 255, 255, .8); }

/* ============================================================ KARTY */
.card { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: 20px 22px; margin-bottom: 16px; min-width: 0; box-shadow: var(--e1); }
.card.flush { padding: 0; }
.card > h3, .ch { margin: 0 0 14px; font-family: var(--df); font-size: 16px; font-weight: 700; letter-spacing: -.008em; color: var(--ink); display: flex; align-items: center; gap: 10px; }
.card > h3 .grow, .ch .grow { flex: 1; }
.card .hint { font-weight: 400; color: var(--muted); font-size: 13px; font-family: var(--tf); }
.card-head { display: flex; align-items: center; gap: 10px; padding: 16px 22px; cursor: pointer; user-select: none; }
.card-head h3 { margin: 0; font-family: var(--df); font-size: 16px; font-weight: 700; letter-spacing: -.008em; color: var(--ink); flex: 1; }
.card-head .ic { width: 11px; height: 11px; color: var(--muted); transition: transform .15s; }
.card.closed .card-head .ic.car { transform: rotate(180deg); }
.card.closed .card-body { display: none; }
.card-body { padding: 0 22px 20px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 16px; align-items: start; }
.cols.rev { grid-template-columns: 330px minmax(0, 1fr); }
.cols > div > .card:last-child { margin-bottom: 0; }
.cols > div, .cols > section, .cols > form { min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.grid2 > .card { margin-bottom: 0; }

.toolbar { background: #fff; border: 1px solid var(--line-2); padding: 11px 16px; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-radius: var(--r); }
.toolbar .grow { flex: 1; }
.toolbar .meta { color: var(--muted); font-size: 13px; }
.chipsel {
  appearance: none; -webkit-appearance: none; padding: 7px 30px 7px 12px; border: 1px solid var(--line); border-radius: var(--r-btn); background-color: #fff;
  cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235f6368' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 9px;
}
.chipsel:hover { background-color: var(--tint-2); border-color: #aecbfa; }

/* ============================================================ KARTY Z LICZBAMI */
.mcard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; overflow: hidden; }
.mcard.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.msec { padding: 20px 20px 22px; min-width: 0; }
.msec + .msec { border-left: 1px solid var(--line-2); }
.msec h3 { margin: 0 0 16px; font-family: var(--df); font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -.008em; }
.mrow { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; }
.mrow + .mrow { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.m .l { color: var(--body); font-size: 13px; display: flex; align-items: center; gap: 5px; }
.m .v { font-family: var(--df); font-size: 32px; line-height: 1.15; color: var(--ink); margin: 3px 0 5px; font-weight: 700; letter-spacing: -.02em; font-feature-settings: "lnum" 1, "pnum" 1; }
.m .v.dark { color: var(--ink); }
.m .s { font-size: 13px; color: var(--body); }
.m .s b { font-weight: 600; color: var(--blue); }
.m .s .mu { color: var(--muted); }
.donutm { display: flex; align-items: center; gap: 12px; }
.donut { width: 46px; height: 46px; flex: none; }
.donutm .v { margin: 0; font-size: 32px; }
.donutm .l { font-size: 13.5px; }
.donutm .s { font-size: 13px; color: var(--body); }
.info { color: #9aa0a6; font-size: 11px; cursor: help; }

/* ============================================================ ZAKŁADKI I SEGMENTY */
.tabs { display: inline-flex; gap: 4px; padding: 4px; margin: 0; background: #fff; border: 1px solid var(--line-2); border-radius: 12px; box-shadow: var(--e1); max-width: 100%; }
.tabs a { padding: 9px 18px; border-radius: var(--r-btn); color: var(--body); font-weight: 600; font-size: 14px; transition: background .2s, color .2s; white-space: nowrap; }
.tabs a:hover { background: var(--tint-2); color: var(--ink); text-decoration: none; }
.tabs a.active { background: var(--blue); color: #fff; box-shadow: 0 1px 2px rgba(26, 115, 232, .35), 0 8px 18px -10px rgba(26, 115, 232, .7); }
.tabpad { height: 16px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-btn); overflow: hidden; background: #fff; }
.seg button { border: 0; background: #fff; padding: 7px 13px; font-size: 13px; cursor: pointer; color: var(--body); font-weight: 600; transition: background .2s, color .2s; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button.on { background: var(--tint); color: var(--blue-d); }
.seg button:hover:not(.on) { background: var(--tint-2); color: var(--ink); }

.chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; color: var(--text); }
.chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.chk .bx { width: 16px; height: 16px; border: 1.5px solid #bdc1c6; border-radius: 4px; background: #fff; display: grid; place-items: center; flex: none; transition: background .15s, border-color .15s; }
.chk .bx svg { width: 11px; height: 11px; color: #fff; opacity: 0; }
.chk input:checked + .bx { background: var(--c, var(--blue)); border-color: var(--c, var(--blue)); }
.chk input:checked + .bx svg { opacity: 1; }
.chk input:focus-visible + .bx { outline: 3px solid rgba(26, 115, 232, .55); outline-offset: 2px; }
.chk.dim { color: var(--muted); }
.chk-row { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
.chk-row .chk { white-space: nowrap; }

/* ============================================================ WYKRESY */
.chart-wrap { position: relative; height: 240px; }
.chart-wrap.tall { height: 280px; }
.chart-wrap.short { height: 200px; }
.chart-ph { min-height: 240px; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; text-align: center; color: var(--body); background: var(--tint-2); border: 1px dashed #c6dafc; border-radius: var(--r); padding: 16px; }
.chart-ph .box { background: #fff; padding: 18px 22px; border: 1px solid var(--line-2); border-radius: var(--r); width: 100%; max-width: 440px; min-width: 0; box-shadow: var(--e1); }
.chart-ph p { margin: 0 0 12px; }

/* wiersze z paskami (karty po prawej) */
.rows { width: 100%; }
.rows .r { position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-top: 1px solid var(--line-2); min-height: 34px; border-radius: 0; }
.rows .r:first-child { border-top: 0; }
.rows .r .bar { position: absolute; left: 0; top: 2px; bottom: 2px; background: var(--tint); z-index: 0; border-radius: 6px; }
.rows.alt .r .bar { background: #d2e3fc; opacity: .75; }
.rows .r > span { position: relative; z-index: 1; }
.rows .r .n { margin-left: auto; color: var(--blue); font-weight: 600; }
.rows .r .n.dark { color: var(--ink); }
.rows .r .p { color: var(--muted); width: 46px; text-align: right; font-size: 12.5px; }
.rows .r.sub { padding-left: 24px; }
.rows .r.sub::before { content: ""; position: absolute; left: 11px; width: 5px; height: 5px; border-radius: 50%; background: #bdc1c6; z-index: 1; }

/* ============================================================ FILTRY */
.fbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.fbar .field { width: auto; }
.fpop { position: relative; }
.fbtn {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--line); background: #fff; border-radius: var(--r-btn);
  cursor: pointer; font-weight: 600; font-size: 13px; color: var(--ink); transition: background .2s, border-color .2s;
}
.fbtn:hover { background: var(--tint-2); border-color: #aecbfa; }
.fbtn .fv { color: var(--blue-d); font-weight: 700; }
.fbtn .ic { width: 9px; height: 9px; color: var(--muted); }
.fbtn.on { background: var(--tint); border-color: #aecbfa; }
.fpanel { display: none; position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; min-width: 240px; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); box-shadow: var(--e2); padding: 14px; }
.fpop.open .fpanel { display: block; }
.fpanel label { display: grid; gap: 5px; font-size: 12.5px; color: var(--body); font-weight: 500; }
.fpanel .pair { display: flex; gap: 6px; align-items: center; }
.fpanel input, .fpanel select, .field {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-btn); background: #fff; font-size: 14px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.fpanel input:focus, .fpanel select:focus, .field:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 115, 232, .25); }
.fpanel input[type=number] { width: 100px; }
.chkbtn { user-select: none; }
.chkbtn input { display: none; }

/* ============================================================ TABELE */
.tbl-tools { display: flex; align-items: center; gap: 8px; margin: 14px 0 10px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.tbl-tools .grow { flex: 1; }
.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
th {
  position: sticky; top: 0; background: #fff; font-weight: 600; color: var(--ink); font-size: 13px; white-space: nowrap; cursor: pointer; user-select: none;
  border-bottom: 1px solid var(--line); padding-top: 11px; padding-bottom: 11px;
}
th:hover { color: var(--blue); }
th.nosort { cursor: default; }
th.nosort:hover { color: var(--ink); }
th.num, td.num { text-align: right; }
th .arr { color: var(--blue); margin-left: 2px; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--tint-2); }
td.url { max-width: 460px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.url small { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; font-size: 12.5px; }
td.wrap { white-space: normal; max-width: 420px; }
td.chk-col, th.chk-col { width: 30px; padding-right: 0; }
td .sub { color: var(--muted); font-size: 12.5px; }
.more { display: flex; justify-content: center; padding: 16px; }
.empty { padding: 34px; text-align: center; color: var(--muted); }

/* odznaki */
.kd { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink); }
.kd::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--kc, var(--line)); flex: none; }
.kd.k0 { --kc: var(--kd0); } .kd.k1 { --kc: var(--kd1); } .kd.k2 { --kc: var(--kd2); } .kd.k3 { --kc: var(--kd3); } .kd.k4 { --kc: var(--kd4); }
.kd.kn { color: #aeb4bb; font-weight: 400; }
.intent { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 5px; font-size: 11px; font-weight: 700; margin-right: 2px; }
.intent.i-informational { background: var(--tint); color: var(--blue-d); }
.intent.i-navigational { background: #f3e8fd; color: #7627bb; }
.intent.i-commercial { background: var(--amber-bg); color: #b06000; }
.intent.i-transactional { background: var(--green-bg); color: #137333; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: #f1f3f4; color: var(--body); }
.tag.df { background: var(--green-bg); color: var(--green); }
.tag.nf { background: var(--red-bg); color: var(--red); }
.tag.warn { background: var(--amber-bg); color: #b06000; }
.up { color: var(--green); font-size: 12px; } .down { color: var(--red); font-size: 12px; } .new { color: var(--blue); font-size: 12px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 13px; font-weight: 500; color: var(--text); }
.spark { display: block; }
.ovbar { display: inline-flex; height: 7px; width: 96px; background: #f1f3f4; border-radius: 999px; overflow: hidden; vertical-align: middle; }
.ovbar i { display: block; height: 100%; }
.dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 6px; }

/* ============================================================ RÓŻNE */
.loading { padding: 30px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.loading::before { content: ""; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.err { padding: 13px 16px; border-left: 4px solid var(--red); background: var(--red-bg); color: #5f1d19; margin-bottom: 14px; border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.note { font-size: 13px; color: var(--muted); }
.toast { position: fixed; bottom: 22px; right: 22px; background: var(--night); color: #fff; padding: 12px 18px; border-radius: var(--r-sm); opacity: 0; transform: translateY(8px); transition: .2s; pointer-events: none; z-index: 90; box-shadow: var(--e3); }
.toast.show { opacity: 1; transform: none; }
.form { display: grid; gap: 14px; max-width: 540px; }
.form label { display: grid; gap: 5px; font-size: 13px; color: var(--body); font-weight: 500; }
.form label.chk { display: inline-flex; gap: 8px; font-size: 14px; color: var(--text); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .help { font-size: 13px; color: var(--muted); margin: -4px 0 0; }
.dialog-bg { position: fixed; inset: 0; background: rgba(5, 7, 13, .55); display: grid; place-items: center; z-index: 80; }
.dialog { background: #fff; border-radius: var(--r-lg); padding: 24px; width: min(440px, 92vw); box-shadow: var(--e3); }
.dialog h3 { margin: 0 0 14px; font-family: var(--df); font-size: 18px; color: var(--ink); }
.dialog .row { display: flex; gap: 8px; margin-top: 16px; justify-content: flex-end; }
.dialog select, .dialog input { width: 100%; margin-top: 6px; }
.empty-state { padding: 44px 20px; text-align: center; color: var(--body); }
.empty-state h3 { margin: 0 0 8px; color: var(--ink); font-family: var(--df); font-size: 19px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--body); margin-bottom: 8px; }
.cost-table td.num, .cost-table th.num { text-align: right; }
.cost-table td { font-size: 13px; white-space: nowrap; }
.cost-table td:first-child { white-space: normal; word-break: break-all; }

/* ============================================================ FUNKCJE AI */
.aictl { display: grid; grid-template-columns: 270px minmax(200px, 1fr) auto minmax(200px, 1fr); gap: 12px 16px; align-items: end; margin-bottom: 14px; }
.aictl label, .aiq { display: grid; gap: 5px; font-size: 13px; color: var(--body); font-weight: 500; }
.aictl .field, .aiq .field { width: 100%; }
.aiweb { padding-bottom: 9px; }
.aiq textarea { resize: vertical; min-height: 70px; line-height: 1.5; }
.aibar { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.aibar .note { max-width: 70ch; }
.aitext { line-height: 1.65; max-width: 80ch; color: var(--text); font-size: 15px; }
.aitext p { margin: 0 0 10px; }
.aitext ul { margin: 0 0 10px; padding-left: 22px; }
.cited-row td { background: var(--green-bg); }
.msec .aibody .m .v { font-size: 32px; }

/* ============================================================ LOGOWANIE I KONTA */
[hidden] { display: none !important; }
body.login-mode .topbars, body.login-mode .banner, body.login-mode .hero, body.login-mode .pills, body.login-mode .foot { display: none; }
body.login-mode .main { padding: 0; max-width: none; }
.login-wrap {
  position: relative; overflow: hidden; min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: linear-gradient(180deg, #070d1e 0%, #05070d 100%);
}
.login-wrap::before {
  content: ""; position: absolute; width: min(900px, 130vw); height: min(900px, 130vw); top: -40%; right: -20%; border-radius: 50%; filter: blur(20px);
  background: radial-gradient(circle, rgba(26, 115, 232, .62) 0%, rgba(26, 115, 232, 0) 62%); pointer-events: none;
}
.login-wrap::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(222, 224, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(222, 224, 255, .06) 1px, transparent 1px);
  background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 30%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 60% 70% at 70% 30%, #000 10%, transparent 72%);
}
.login-card { position: relative; z-index: 2; width: min(420px, 100%); background: #fff; border-radius: var(--r-lg); padding: 34px 32px 30px; box-shadow: var(--e3); }
.login-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.login-logo .logo-mark img { width: 34px; height: 34px; }
.login-card h1 { margin: 0 0 6px; font-family: var(--df); font-size: 26px; letter-spacing: -.014em; color: var(--ink); }
.login-sub { margin: 0 0 22px; color: var(--body); }
.login-card form { display: grid; gap: 14px; }
.login-card label { display: grid; gap: 5px; font-size: 13px; font-weight: 500; color: var(--body); }
.login-card .field { height: 46px; font-size: 15px; }
.login-err { min-height: 20px; color: var(--red); font-size: 13.5px; }
.login-btn { justify-content: center; height: 48px; font-size: 15px; }
.nav-link { background: none; border: 0; cursor: pointer; font-family: inherit; }
#account-link span { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
.pwrow { display: flex; gap: 8px; }
.pwrow .field { flex: 1; font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .02em; }
.dialog .form { max-width: none; }
.dialog .md-err { margin: 12px 0 0; }
@media (max-width: 700px) { #account-link span, .nav-end .nav-link span { display: none; } }
.login-logo .logo-prod { display: inline !important; }

/* ============================================================ UKŁAD JAK NA DOCTORANK.COM
   Biała nawigacja, ciemne hero z tytułem i wyszukiwarką, lepki pasek zakładek, treść w jednej kolumnie jako sekcje. */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
.main { padding-top: 8px; padding-bottom: 16px; min-height: 40vh; }

/* ---- hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #070d1e 0%, #05070d 100%); color: var(--d-body); }
.hero[hidden] { display: none; }
.hero::before {
  content: ""; position: absolute; width: min(860px, 120vw); height: min(860px, 120vw); top: -70%; right: -14%; border-radius: 50%; filter: blur(20px);
  background: radial-gradient(circle, rgba(26, 115, 232, .62) 0%, rgba(26, 115, 232, 0) 62%); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(222, 224, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(222, 224, 255, .06) 1px, transparent 1px);
  background-size: 72px 72px; -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 20%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 70% 80% at 75% 20%, #000 10%, transparent 72%);
}
.hero-in { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 44px; align-items: center; max-width: var(--wrap); margin: 0 auto; padding: 48px var(--pad-x) 52px; }
.hero-in.solo { grid-template-columns: minmax(0, 1fr); }
.hero.compact .hero-in { padding: 32px var(--pad-x) 36px; }
.hero-main { min-width: 0; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.hero .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .13); color: var(--d-text); }
.hero .phead { display: block; margin: 0 0 14px; }
.hero .phead h1 { display: block; margin: 0; font-family: var(--df); font-weight: 700; font-size: clamp(32px, 4.2vw, 54px); line-height: 1.07; letter-spacing: -.02em; color: #fff; text-wrap: balance; overflow-wrap: anywhere; }
.hero.compact .phead h1 { font-size: clamp(28px, 3vw, 40px); }
.hero .phead h1 em, .hero .phead h1 .tgt { font-style: normal; color: var(--link); }
.hero .phead h1 a { color: var(--link); }
.hero .phead h1 a:hover { color: var(--link-h); text-decoration: none; }
.hero-lead { margin: 0 0 26px; font-size: 17px; line-height: 1.6; color: var(--d-body); max-width: 60ch; }
.hero-form { margin: 0; }
.hero .sgroup { width: min(720px, 100%); }
.hero-meta { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; color: var(--d-muted); font-size: 13.5px; }
.hero-meta:empty { display: none; }
.hero .btn { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); color: #fff; }
.hero .btn:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .32); color: #fff; }
.hero .btn.primary { background: var(--blue); border-color: var(--blue); }
.hero .btn.primary:hover { background: var(--blue-h); border-color: var(--blue-h); }
.hero .note, .hero .meta, .hero .err { color: inherit; }
.hero-side { min-width: 0; }
.hero-side[hidden] { display: none; }
.hero-card { background: #fff; border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--e3); color: var(--text); }
.hero-card .hc-title { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-family: var(--df); font-size: 15px; font-weight: 700; color: var(--ink); }
.hero-card .hc-title span { margin-left: auto; font-family: var(--tf); font-weight: 500; font-size: 12.5px; color: var(--muted); }
.hc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.hc-cell .hl { font-size: 13px; color: var(--body); }
.hc-cell .hv { font-family: var(--df); font-weight: 700; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); margin: 2px 0; }
.hc-cell .hs { font-size: 12.5px; color: var(--muted); }
.hc-cell .hv.green { color: var(--green); }
.hc-bar { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--body); display: flex; align-items: center; gap: 12px; }
.hc-bar .track { flex: 1; height: 7px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.hc-bar .track i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--link-h)); }
.hero-card .donut { width: 52px; height: 52px; }

/* pole wyszukiwania: ten sam wiersz co formularz adresu sklepu na doctorank.com */
.sgroup { position: relative; display: flex; align-items: center; gap: 6px; width: min(760px, 100%); padding: 6px 6px 6px 8px; background: #fff; border: 1px solid transparent; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 24px 50px -22px rgba(0, 0, 0, .85); transition: box-shadow .2s; }
.sgroup:focus-within { box-shadow: 0 0 0 3px rgba(26, 115, 232, .55); }
.sgroup select { appearance: none; -webkit-appearance: none; height: 44px; max-width: 180px; padding: 0 30px 0 14px; border: 0; border-radius: 9px; background-color: var(--canvas); color: var(--ink); font-size: 14px; font-weight: 500; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%235f6368' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 11px center; background-size: 9px; }
.sgroup select:hover { background-color: var(--tint-2); }
.sgroup input, .sgroup textarea { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; line-height: 44px; resize: none; overflow: hidden; white-space: nowrap; }
.sgroup input::placeholder, .sgroup textarea::placeholder { color: #9aa0a6; }
.sgroup textarea.expanded { position: absolute; left: 0; right: 60px; top: 0; z-index: 5; height: auto; max-height: 240px; padding: 10px 12px 10px 200px; line-height: 24px; white-space: pre-wrap; overflow: auto; background: #fff; border-radius: 14px; box-shadow: var(--e3); }
.sgroup .go { width: 54px; height: 44px; display: grid; place-items: center; border: 0; border-radius: var(--r-btn); cursor: pointer; flex: none; background: var(--blue); color: #fff;
  box-shadow: 0 1px 2px rgba(26, 115, 232, .35), 0 10px 22px -12px rgba(26, 115, 232, .7); transition: background .2s, transform .2s var(--ease); }
.sgroup .go:hover { background: var(--blue-h); transform: translateY(-1px); }
.sgroup .go .ic { width: 18px; height: 18px; }

/* ---- lepki pasek zakładek (zastępuje boczne menu) */
.pills { position: sticky; top: var(--nav-h); z-index: 50; background: rgba(248, 249, 250, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-2); }
.pills[hidden] { display: none; }
.pills-in { max-width: var(--wrap); margin: 0 auto; padding: 10px var(--pad-x); display: flex; flex-wrap: wrap; gap: 8px 26px; align-items: center; }
.pgroup { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.pg-label { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-right: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid transparent; font-size: 14px; font-weight: 500; line-height: 1.2; color: var(--body); transition: background .2s, border-color .2s, color .2s; }
.pill:hover { background: #fff; border-color: var(--line); color: var(--ink); text-decoration: none; }
.pill.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; box-shadow: 0 1px 2px rgba(26, 115, 232, .35), 0 8px 18px -10px rgba(26, 115, 232, .7); }
.pill.dis { color: #aeb4bb; cursor: default; }
.pill .new { background: var(--tint); color: var(--blue-d); font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.pill.active .new { background: rgba(255, 255, 255, .22); color: #fff; }

/* ---- sekcje: kicker + tytuł + lead (jak „Co zawiera pakiet” na doctorank.com) */
.sx { padding: 52px 0 6px; scroll-margin-top: calc(var(--nav-h) + 70px); }
.sx:first-child { padding-top: 40px; }
.sx-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 14px 48px; align-items: end; margin: 0 0 26px; }
.kick { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; font-weight: 600; color: var(--blue); }
.kick::before { content: ""; width: 22px; height: 2px; background: var(--blue); }
.sx-head h2 { margin: 0; font-family: var(--df); font-weight: 700; font-size: clamp(26px, 3vw, 38px); line-height: 1.12; letter-spacing: -.016em; color: var(--ink); text-wrap: balance; }
.sx-head p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--body); }
.sx-head p b { color: var(--ink); font-weight: 600; }

/* ---- duże karty z liczbami */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card { position: relative; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 22px 24px 20px; box-shadow: var(--e1); min-width: 0; }
.stat-card .sl { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--body); margin-bottom: 8px; }
.stat-card .sv { font-family: var(--df); font-weight: 700; font-size: 42px; line-height: 1.04; letter-spacing: -.022em; color: var(--ink); font-feature-settings: "lnum" 1, "pnum" 1; display: flex; align-items: center; gap: 12px; }
.stat-card .sv.green { color: var(--green); }
.stat-card .sv.blue { color: var(--blue); }
.stat-card .ss { margin-top: 8px; font-size: 13.5px; color: var(--body); }
.stat-card .ss b { color: var(--blue); font-weight: 600; }
.stat-card .sv .donut { width: 44px; height: 44px; flex: none; }
.stat-card.feat { border: 0; color: var(--d-body); background: linear-gradient(160deg, #0e1b3a 0%, #133a86 55%, #1a73e8 128%); box-shadow: var(--e2); }
.stat-card.feat .sl, .stat-card.feat .ss { color: var(--d-body); }
.stat-card.feat .sv { color: #fff; }
.stat-card.feat .ss b { color: var(--d-blue); }
.g2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.g3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.g2 > .card, .g3 > .card { margin-bottom: 0; }

/* ---- ciemna karta (jak arkusze cennika na doctorank.com) */
.dark-card { position: relative; overflow: hidden; background: linear-gradient(160deg, #0e1b3a 0%, #133a86 55%, #1a73e8 128%); border-radius: var(--r-lg); padding: 30px 34px; color: var(--d-body); box-shadow: var(--e2); }
.dark-card h3 { margin: 0 0 14px; font-family: var(--df); font-size: 20px; font-weight: 700; color: #fff; }
.dark-card .m .l, .dark-card .m .s, .dark-card .note, .dark-card .loading { color: var(--d-body); }
.dark-card .m .v { color: #fff; }
.dark-card .m .s b, .dark-card a { color: var(--d-blue); }
.dark-card .info { color: var(--d-muted); }
.dark-card .loading::before { border-color: rgba(255, 255, 255, .25); border-top-color: #fff; }
.dark-card .btn.primary { background: #fff; border-color: #fff; color: var(--blue); box-shadow: none; }
.dark-card .btn.primary:hover { background: var(--tint-2); border-color: var(--tint-2); color: var(--blue-d); }
.dark-card .err { background: rgba(255, 255, 255, .08); color: #fff; }

/* ---- stopka */
.foot { margin-top: 72px; background: var(--night); color: var(--d-muted); padding: 34px 0; }
.foot-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.foot .logo, .foot .logo:hover { color: #fff; }
.foot .logo-name { color: #fff; }
.foot .logo-prod { color: var(--link); }
.foot .logo-img { filter: brightness(0) invert(1); }
.foot p { margin: 0; flex: 1; min-width: 260px; font-size: 13.5px; line-height: 1.6; }
.foot-link { color: var(--d-blue); font-weight: 600; font-size: 14px; }

/* ---- strona główna: skróty do narzędzi */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.tile { display: block; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--e1); color: var(--body); transition: transform .2s var(--ease), box-shadow .2s; }
.tile:hover { transform: translateY(-2px); box-shadow: var(--e2); text-decoration: none; color: var(--body); }
.tile .ti { width: 42px; height: 42px; padding: 10px; border-radius: 12px; background: var(--tint); color: var(--blue); margin-bottom: 16px; }
.tile h3 { margin: 0 0 6px; font-family: var(--df); font-size: 19px; color: var(--ink); }
.tile p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.tile .go-link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--blue); }

/* ---- responsywność */
@media (max-width: 1180px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-side { max-width: 620px; }
  .sx-head { grid-template-columns: minmax(0, 1fr); }
  .cols, .cols.rev { grid-template-columns: minmax(0, 1fr); }
  .mcard, .mcard.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .msec + .msec { border-left: 0; }
  .msec:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .msec:nth-child(even) { border-left: 1px solid var(--line-2); }
  .aictl { grid-template-columns: 1fr 1fr; }
  .g3, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .grid2, .g2, .g3, .tiles { grid-template-columns: 1fr; }
  .tools a { padding: 8px 8px; }
  .nav-end .stat span { display: none; }
  .pills-in { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 14px; }
  .pills-in::-webkit-scrollbar { display: none; }
  .pgroup { flex-wrap: nowrap; flex: none; }
  .pill, .pg-label { white-space: nowrap; }
}
@media (max-width: 700px) {
  :root { --nav-h: 58px; }
  .nav { gap: 10px; padding: 0 12px; }
  .logo-prod { display: none; }
  .tools { flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .tools::-webkit-scrollbar { display: none; }
  .tools a { white-space: nowrap; padding: 8px 8px; font-size: 14px; }
  .nav-end .stat { display: none; }
  .nav-link span { display: none; }
  .hero-in, .hero.compact .hero-in { padding: 28px var(--pad-x) 30px; }
  .hero-lead { font-size: 16px; }
  .sgroup select { max-width: 120px; padding-left: 10px; }
  .main { padding-top: 4px; }
  .sx { padding-top: 36px; }
  .stat-card .sv { font-size: 34px; }
  .mrow { grid-template-columns: 1fr; }
  .mcard, .mcard.c4 { grid-template-columns: 1fr; }
  .msec:nth-child(even) { border-left: 0; }
  .msec + .msec { border-top: 1px solid var(--line-2); }
  .aictl { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; }
  .dark-card { padding: 24px 22px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* przyciski w wąskich kartach mogą się zawijać zamiast wystawać poza ekran */
.chart-ph .box .btn, .empty-state .btn { white-space: normal; max-width: 100%; text-align: left; justify-content: center; }

/* ============================================================ WERSJA 1.1: znaczek wersji, Search Console, widoczność w AI */
.logo-ver { align-self: center; margin-left: 2px; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--blue-d); font-family: var(--tf); font-size: 11px; font-weight: 600; letter-spacing: .01em; line-height: 1.4; }
.foot .logo-ver { background: rgba(255, 255, 255, .1); color: var(--d-blue); }
.foot-ver { font-size: 12.5px; color: var(--d-muted); }
.mu { color: var(--muted); }
@media (min-width: 1181px) { .tools a { padding: 9px 10px; } }
@media (max-width: 1620px) { #settings-link span { display: none; } .nav-end { gap: 6px; } }   /* przy węższym ekranie „Ustawienia” to sama ikona (podpowiedź w title) */
.tiles { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.dialog { max-height: 92vh; overflow-y: auto; }
.dialog.wide { width: min(720px, 94vw); }

.gsc-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-bottom: 16px; }
.gsc-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--body); }
.gsc-pick .field { width: auto; max-width: 320px; }
.gsc-filter { max-width: 240px; margin-left: auto; }
.gsc-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dgood { color: var(--green); font-weight: 600; }
.dbad { color: var(--red); font-weight: 600; }
details.how { margin: 0 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--tint-2); padding: 10px 14px; }
details.how summary { cursor: pointer; font-weight: 600; color: var(--blue-d); }
details.how ol { margin: 10px 0 2px; padding-left: 20px; display: grid; gap: 8px; font-size: 13.5px; color: var(--text); }
details.how code { display: inline-block; max-width: 100%; overflow-wrap: anywhere; padding: 2px 6px; border-radius: 6px; background: #fff; border: 1px solid var(--line-2); font-size: 12.5px; }

.aiv-mini { margin: 10px 0 0; font-size: 14px; color: var(--ink); }
.aiv-bar { height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; margin: 6px 0 12px; }
.aiv-bar.sm { height: 7px; margin: 0 0 4px; }
.aiv-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--link-h)); border-radius: 999px; transition: width .3s var(--ease); }
.aiv-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.aiv-nums b { display: block; font-family: var(--df); font-size: 20px; color: var(--ink); }
.aiv-nums span { font-size: 12.5px; color: var(--muted); }
tr.aiv-own td { background: var(--tint-2); }
.aiv-prompts, .aiv-gaps { list-style: none; margin: 0; padding: 0; }
.aiv-prompts li, .aiv-gaps li { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line-2); align-items: baseline; }
.aiv-prompts li:first-child, .aiv-gaps li:first-child { border-top: 0; }
.aiv-gaps li { display: block; }
.sub { font-size: 12.5px; color: var(--muted); }
.cell { display: inline-block; padding: 3px 10px; border-radius: 999px; font: 600 12.5px var(--tf); border: 1px solid transparent; background: #f1f3f4; color: var(--body); cursor: default; white-space: nowrap; }
button.cell { cursor: pointer; }
button.cell:hover { border-color: var(--blue); }
.cell-ok { background: var(--green-bg); color: var(--green); }
.cell-men { background: var(--tint); color: var(--blue-d); }
.cell-no { background: #f1f3f4; color: var(--muted); }
.cell-err { background: var(--red-bg); color: var(--red); }
.aiv-prov { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 10px 14px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line-2); }
.aiv-prov:first-child { border-top: 0; }
.aiv-est { padding: 12px 14px; border-radius: var(--r-sm); background: var(--tint-2); border: 1px solid var(--line-2); font-size: 13.5px; }
.aiv-progress { border-color: #aecbfa; background: var(--tint-2); }
.aiv-answer { padding: 14px 16px; border-radius: var(--r-sm); background: var(--canvas); border: 1px solid var(--line-2); line-height: 1.65; max-height: 340px; overflow-y: auto; font-size: 14.5px; }
.aiv-src { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
@media (max-width: 700px) {
  .logo-ver { display: none; }
  .aiv-prov { grid-template-columns: 1fr; }
  .gsc-filter { margin-left: 0; max-width: none; }
}

/* pasek nawigacji: nigdy nie poszerza strony. Menu przewija się wewnątrz paska, a elementy po prawej skracają się do ikon */
@media (max-width: 1600px) {
  .tools { flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  .tools::-webkit-scrollbar { display: none; }
  .tools a { white-space: nowrap; }
  .nav-end { flex-shrink: 0; }
  .nav-end .nav-link span, #account-link span { display: none; }
}
@media (max-width: 1100px) { .nav-end .stat { display: none; } }
@media (max-width: 1000px) { .logo-ver { display: none; } }
.stat-card .ss b.dgood { color: var(--green); }
.stat-card .ss b.dbad { color: var(--red); }
.stat-card.feat .ss b.dgood { color: #81c995; }
.stat-card.feat .ss b.dbad { color: #f28b82; }

/* przegląd SERP: źródło wyników, ostrzeżenie o ukrytych adresach, licznik powtórzeń domeny */
.serp-src { margin: 0 0 10px; }
.note-box { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r-sm); background: #fef7e0; border: 1px solid #f9e2a3; color: #5f4b00; font-size: 13.5px; line-height: 1.55; }
.cnt { display: inline-block; padding: 0 6px; border-radius: 999px; background: var(--tint); color: var(--blue-d); font-size: 11.5px; font-weight: 600; }

/* wyszukiwanie promptów z widocznością (DataForSEO LLM Mentions) */
.aiv-disc-opt { align-items: flex-start; padding: 6px 0; }
.aiv-disc-opt .bx { margin-top: 2px; }
.aiv-disc-opt .sub { display: block; font-weight: 400; }
.aiv-disc-tbl { max-height: 380px; overflow: auto; }
.aiv-disc-tbl td.wrap { min-width: 260px; }

/* logowanie przez Google, konta Google, błędy API */
.gbtn { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #dadce0; color: #3c4043; font-weight: 600; padding: 9px 16px; }
.gbtn:hover { background: #f8f9fa; border-color: #c6c9cd; box-shadow: var(--e1); }
.gbtn .g-logo { flex: none; }
.gaccs { list-style: none; margin: 0 0 6px; padding: 0; }
.gacc { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.gacc:first-child { border-top: 0; }
.chk.small { font-size: 13px; }
.aiv-prov .sub { color: var(--muted); }

/* Search Console: projekty, dane scalone, kanibalizacja */
.mtile { cursor: pointer; border-radius: var(--r-md); outline-offset: 2px; opacity: .55; transition: opacity .15s var(--ease); height: 100%; }
.mtile .stat-card { height: 100%; border-top: 3px solid transparent; }
.mtile.on { opacity: 1; }
.mtile.on .stat-card { border-top-color: var(--mc); }
.mtile:focus-visible { outline: 2px solid var(--blue); }
.gp-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 16px; }
.gp-tabs button { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--body); font: 600 13.5px var(--tf); cursor: pointer; }
.gp-tabs button:hover { border-color: var(--blue); }
.gp-tabs button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.gp-tbl { width: 100%; border-collapse: collapse; }
.gp-tbl th, .gp-tbl td { padding: 9px 14px; text-align: left; border-bottom: 1px solid var(--line-2); font-size: 14px; vertical-align: middle; }
.gp-tbl th.num, .gp-tbl td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gp-tbl th.sortable { cursor: pointer; user-select: none; }
.gp-tbl th.sorted { color: var(--blue-d); }
.gp-tbl tr.gq td { background: var(--tint-2); font-weight: 600; }
.gp-tbl tr.gu td { background: #fff; font-weight: 400; }
.gp-tbl tr.gq + tr.gu td.url, .gp-tbl tr.gu td.url { padding-left: 38px; }
.gp-tbl td.url { max-width: 520px; overflow-wrap: anywhere; font-size: 13px; }
.gp-tbl td .url { font-size: 12.5px; font-weight: 400; margin-top: 2px; overflow-wrap: anywhere; }
.gx { border: 0; background: transparent; color: var(--blue-d); cursor: pointer; font-size: 14px; padding: 0 6px 0 0; }
.gc-detail { padding: 6px 0 10px 24px; }
.gp-tbl.inner th, .gp-tbl.inner td { font-size: 13px; padding: 6px 10px; background: transparent; }
.gc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 16px; max-width: none; }
@media (max-width: 700px) { .gp-tbl th, .gp-tbl td { padding: 8px 10px; } .gc-detail { padding-left: 6px; } }

/* ============================================================ WERSJA 1.5: STREFA KLIENTA NA PIN */
body.client-mode #tools,
body.client-mode #banner-slot,
body.client-mode .nav-end .stat,
body.client-mode #account-link,
body.client-mode #settings-link,
body.client-mode .foot p,
body.client-mode .foot-link { display: none !important; }
body.client-mode .nav { justify-content: space-between; }
body.client-mode .foot-in { justify-content: space-between; }
