@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/onest-cyrillic-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/onest-cyrillic-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/onest-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/onest-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --ink: #10201b;
  --muted: #66736d;
  --paper: #f4f6f1;
  --surface: #ffffff;
  --surface-2: #edf1eb;
  --line: #dfe5dd;
  --night: #07120f;
  --night-2: #0d1d18;
  --green: #52db98;
  --green-dark: #16815a;
  --lime: #c8ff73;
  --amber: #ffbd5b;
  --red: #ff6b6b;
  --blue: #72a7ff;
  --shadow: 0 24px 70px rgba(12, 31, 24, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Onest", "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, .button { cursor: pointer; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(244, 246, 241, .86);
  border-bottom: 1px solid rgba(223, 229, 221, .8);
}

.header-inner { height: 76px; display: flex; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.03em; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; background: var(--night); color: var(--lime); border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .12em; display: block; font-weight: 700; }
.main-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; color: #42514a; font-size: 14px; }
.main-nav a:hover { color: var(--green-dark); }
.header-actions { display: flex; align-items: center; gap: 10px; }

.button {
  border: 0;
  border-radius: 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  font-weight: 750;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--night); color: white; box-shadow: 0 10px 24px rgba(7, 18, 15, .16); }
.button-primary:hover { background: #122720; }
.button-green { background: var(--lime); color: #0d2119; box-shadow: 0 12px 30px rgba(200, 255, 115, .18); }
.button-ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.button-soft { background: var(--surface-2); color: var(--ink); }
.button-block { width: 100%; }
.button-sm { min-height: 36px; padding: 0 13px; border-radius: 10px; font-size: 13px; }

.hero {
  overflow: hidden;
  background: var(--night);
  color: white;
  padding: 84px 0 58px;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  right: -160px;
  top: -230px;
  background: radial-gradient(circle, rgba(82, 219, 152, .25), transparent 66%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image: linear-gradient(rgba(255,255,255,.7) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.7) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 70px; }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { max-width: 730px; margin: 20px 0 22px; font-size: clamp(44px, 6.2vw, 76px); line-height: .98; letter-spacing: -.065em; }
.hero h1 span { color: var(--lime); }
.hero-copy { max-width: 650px; color: #a9bbb4; font-size: 18px; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 25px; color: #8fa49b; font-size: 13px; }
.hero-notes span::before { content: "✓"; color: var(--green); margin-right: 7px; }

.signal-panel { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.11); border-radius: 26px; box-shadow: 0 30px 80px rgba(0,0,0,.28); overflow: hidden; }
.signal-head { height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid rgba(255,255,255,.09); color: #9eb0a9; font-size: 13px; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; color: var(--green); }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 5px rgba(82,219,152,.1); }
.request-card { margin: 20px; padding: 18px; background: #10251e; border: 1px solid rgba(82,219,152,.18); border-radius: 17px; }
.request-line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px; }
.request-line + .request-line { margin-top: 15px; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.08); }
.request-title { font-size: 14px; font-weight: 750; }
.request-meta { color: #82988f; font-size: 12px; margin-top: 3px; }
.score { font-weight: 850; font-variant-numeric: tabular-nums; }
.score-danger { color: var(--red); }
.score-safe { color: var(--green); }
.decision { display: flex; gap: 9px; padding: 0 20px 20px; }
.decision .pill { flex: 1; text-align: center; }

.pill { display: inline-block; border-radius: 999px; padding: 7px 11px; font-size: 11px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.pill-danger { color: #ffb0b0; background: rgba(255,107,107,.12); }
.pill-safe { color: #9ff1c7; background: rgba(82,219,152,.12); }
.pill-warn { color: #ffd99d; background: rgba(255,189,91,.13); }
.pill-neutral { color: #5b6b64; background: #edf1eb; }

.trust-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.trust-item { background: white; padding: 27px 24px; }
.trust-value { font-size: 27px; font-weight: 880; letter-spacing: -.04em; }
.trust-label { color: var(--muted); font-size: 13px; margin-top: 2px; }

.section { padding: 90px 0; }
.section-dark { background: var(--night); color: white; }
.section-kicker { color: var(--green-dark); font-weight: 850; font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.section-dark .section-kicker { color: var(--green); }
.section h2 { max-width: 730px; margin: 13px 0 16px; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.05; letter-spacing: -.05em; }
.section-lead { max-width: 680px; color: var(--muted); font-size: 17px; }
.section-dark .section-lead { color: #91a49c; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
.feature-card { min-height: 250px; padding: 25px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.feature-card.dark { background: var(--night-2); border-color: rgba(255,255,255,.08); }
.feature-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--green-dark); background: #dcf9ea; font-weight: 900; }
.dark .feature-number { color: var(--lime); background: rgba(200,255,115,.1); }
.feature-card h3 { margin: 34px 0 9px; font-size: 19px; }
.feature-card p { color: var(--muted); margin: 0; font-size: 14px; }
.feature-card.dark p { color: #8ea39a; }

.steps { margin-top: 48px; border-top: 1px solid rgba(255,255,255,.12); }
.step { display: grid; grid-template-columns: 84px 1fr 1fr; gap: 22px; padding: 29px 0; border-bottom: 1px solid rgba(255,255,255,.12); align-items: start; }
.step-index { color: var(--lime); font-weight: 850; }
.step h3 { margin: 0; font-size: 21px; }
.step p { margin: 0; color: #8ea39a; }

.price-card { margin-top: 44px; display: grid; grid-template-columns: 1.1fr .9fr; background: white; border: 1px solid var(--line); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.price-copy { padding: 42px; }
.price-copy h3 { margin: 0 0 12px; font-size: 29px; letter-spacing: -.04em; }
.check-list { list-style: none; padding: 0; margin: 25px 0 0; display: grid; gap: 11px; color: #425149; }
.check-list li::before { content: "✓"; margin-right: 9px; color: var(--green-dark); font-weight: 900; }
.price-side { padding: 42px; background: #e6f8ed; display: flex; flex-direction: column; justify-content: center; }
.price { font-size: 49px; line-height: 1; font-weight: 900; letter-spacing: -.05em; }
.price span { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 0; }

.site-footer { padding: 40px 0; background: #050c0a; color: #82948d; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-links { display: flex; gap: 20px; font-size: 13px; }

/* Auth */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: .9fr 1.1fr; background: var(--night); }
.auth-story { padding: 46px clamp(30px, 6vw, 86px); color: white; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-story::after { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; left: -260px; bottom: -250px; background: radial-gradient(circle, rgba(82,219,152,.22), transparent 68%); }
.auth-quote { max-width: 560px; position: relative; z-index: 1; }
.auth-quote h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1; letter-spacing: -.055em; margin: 0 0 22px; }
.auth-quote h1 span { color: var(--lime); }
.auth-quote p { color: #9db0a8; font-size: 17px; }
.auth-proof { display: flex; gap: 24px; color: #84978f; font-size: 13px; position: relative; z-index: 1; }
.auth-form-wrap { background: var(--paper); display: grid; place-items: center; padding: 40px 24px; }
.auth-form { width: min(460px, 100%); }
.auth-form h2 { font-size: 34px; letter-spacing: -.045em; margin: 0 0 8px; }
.auth-form > p { color: var(--muted); margin: 0 0 30px; }
.form-grid { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 760; }
.field input, .field select {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  color: var(--ink);
  outline: none;
}
.field input:focus, .field select:focus { border-color: var(--green-dark); box-shadow: 0 0 0 4px rgba(82,219,152,.12); }
.field-hint { color: var(--muted); font-size: 12px; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; color: var(--muted); font-size: 13px; }
.checkbox input { margin-top: 3px; accent-color: var(--green-dark); }
.auth-bottom { text-align: center; color: var(--muted); font-size: 13px; margin-top: 20px; }
.auth-bottom a { color: var(--green-dark); font-weight: 760; }
.field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.field-label-row a { color: var(--green-dark); font-size: 11px; }
.auth-form [data-reset-form-content] > p { margin: 0 0 30px; color: var(--muted); }
.reset-success { text-align: center; }
.reset-success-icon { width: 48px; height: 48px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 8px; background: #e4f2ea; color: var(--green-dark); font-size: 22px; font-weight: 600; }
.reset-success h2 { white-space: normal; }
.reset-success p { margin: 0 0 22px; color: var(--muted); line-height: 1.55; }
.reset-success p strong { color: var(--ink); font-weight: 600; }

/* App shell */
.app-body { background: #edf1eb; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 246px 1fr; }
.sidebar { background: var(--night); color: white; padding: 24px 18px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { padding: 0 10px 26px; }
.side-label { color: #61746c; padding: 16px 11px 8px; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 850; }
.side-nav { display: grid; gap: 5px; }
.side-nav a { min-height: 43px; padding: 0 12px; border-radius: 11px; display: flex; align-items: center; gap: 11px; color: #91a49c; font-size: 14px; }
.side-nav a:hover, .side-nav a.active { background: rgba(255,255,255,.07); color: white; }
.nav-icon { width: 24px; text-align: center; color: var(--green); font-weight: 900; }
.sidebar-bottom { margin-top: auto; }
.account-mini { padding: 13px; border: 1px solid rgba(255,255,255,.09); border-radius: 14px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--lime); color: var(--night); font-weight: 900; }
.account-name { font-size: 13px; font-weight: 760; }
.account-plan { color: #72867e; font-size: 11px; }

.app-main { min-width: 0; }
.app-topbar { height: 74px; background: rgba(255,255,255,.9); border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 30px; position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.breadcrumbs { color: var(--muted); font-size: 13px; }
.breadcrumbs strong { color: var(--ink); }
.topbar-actions { margin-left: auto; display: flex; gap: 9px; align-items: center; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 11px; background: white; display: grid; place-items: center; color: var(--muted); }
.app-content { padding: 30px; width: min(1440px, 100%); margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.page-head h1 { margin: 0; font-size: 32px; letter-spacing: -.045em; }
.page-head p { margin: 5px 0 0; color: var(--muted); }

.panel { background: white; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.panel-head { min-height: 62px; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head h3 { font-size: 15px; margin: 0; }
.panel-body { padding: 20px; }

.status-banner { background: var(--night); color: white; border-radius: 18px; padding: 23px; display: flex; align-items: center; gap: 18px; margin-bottom: 18px; overflow: hidden; position: relative; }
.status-banner::after { content: ""; width: 240px; height: 240px; position: absolute; right: -80px; border-radius: 50%; background: radial-gradient(circle, rgba(82,219,152,.25), transparent 68%); }
.status-icon { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: rgba(82,219,152,.12); color: var(--green); font-size: 20px; }
.status-copy { position: relative; z-index: 1; }
.status-copy strong { display: block; font-size: 17px; }
.status-copy span { color: #8fa29a; font-size: 13px; }
.status-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; z-index: 1; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.metric { padding: 18px; background: white; border: 1px solid var(--line); border-radius: 15px; }
.metric-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.metric-value { font-size: 29px; font-weight: 880; letter-spacing: -.04em; margin-top: 9px; }
.metric-delta { color: var(--green-dark); font-size: 11px; font-weight: 750; }
.metric-delta.down { color: var(--red); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr); gap: 18px; margin-bottom: 18px; }
.chart-wrap { height: 260px; position: relative; }
.chart-wrap canvas { width: 100%; height: 100%; }
.legend { display: flex; gap: 17px; color: var(--muted); font-size: 11px; }
.legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--green); }
.legend span:last-child::before { background: var(--red); }
.bot-list { display: grid; gap: 15px; }
.bot-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.bot-name { font-size: 13px; font-weight: 730; }
.bot-count { color: var(--muted); font-size: 12px; }
.progress { grid-column: 1 / -1; height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--green-dark); }

.event-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.event-table th { padding: 11px 14px; color: var(--muted); background: #f7f9f6; text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.event-table td { padding: 14px; border-top: 1px solid var(--line); }
.event-table code { color: #425149; font-family: inherit; font-size: 12px; font-variant-numeric: tabular-nums; }
.event-reason { color: var(--muted); }

.onboarding { max-width: 880px; margin: 0 auto; }
.progress-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
.progress-step { height: 5px; border-radius: 99px; background: #d8dfd7; }
.progress-step.done { background: var(--green-dark); }
.setup-panel { display: grid; grid-template-columns: 1fr .78fr; overflow: hidden; }
.setup-form { padding: 34px; }
.setup-form h1 { margin: 0 0 8px; font-size: 32px; letter-spacing: -.045em; }
.setup-form > p { margin: 0 0 28px; color: var(--muted); }
.setup-aside { background: var(--night); color: white; padding: 34px; }
.setup-aside h2 { margin: 0 0 12px; font-size: 20px; }
.setup-aside p { color: #8fa29a; font-size: 13px; }
.setup-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 17px; }
.setup-list li { display: flex; gap: 12px; color: #b1c0ba; font-size: 13px; }
.setup-list li::before { content: "✓"; color: var(--green); font-weight: 900; }
.method-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.method { position: relative; }
.method input { position: absolute; opacity: 0; }
.method label { display: block; padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: white; cursor: pointer; }
.method input:checked + label { border-color: var(--green-dark); box-shadow: 0 0 0 3px rgba(82,219,152,.12); }
.method-title { font-size: 13px; font-weight: 800; }
.method-desc { color: var(--muted); font-size: 11px; margin-top: 4px; }
.method.disabled { opacity: .5; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 50; padding: 14px 17px; background: var(--night); color: white; border-radius: 12px; box-shadow: var(--shadow); transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s ease; font-size: 13px; }
.toast.show { transform: translateY(0); opacity: 1; }
.form-message { padding: 10px 12px; border: 1px solid #efcaca; border-radius: 8px; background: #fff4f4; color: #9d3333; font-size: 13px; line-height: 1.45; }
.form-message.success { border-color: #b8ddcd; background: #f0faf5; color: #116845; }
.button[aria-busy="true"] { cursor: wait; opacity: .72; }
.sites-list .empty-state { display: grid; justify-items: start; gap: 10px; padding: 28px; }
.sites-list .empty-state h2, .sites-list .empty-state p { margin: 0; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .hero-grid, .price-card, .auth-page, .setup-panel { grid-template-columns: 1fr; }
  .hero-grid { gap: 44px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .auth-story { min-height: 430px; }
  .app-shell { grid-template-columns: 80px 1fr; }
  .sidebar { padding-inline: 12px; }
  .sidebar .brand-text, .side-label, .side-nav span:not(.nav-icon), .account-copy { display: none; }
  .sidebar .brand { justify-content: center; padding-inline: 0; }
  .side-nav a { justify-content: center; padding: 0; }
  .account-mini { justify-content: center; padding: 9px; }
  .metric-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 24px, 1160px); }
  .header-inner { height: 66px; }
  .header-actions .button-ghost { display: none; }
  .hero { padding-top: 58px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .feature-grid, .metric-grid, .dashboard-grid, .method-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 42px 1fr; }
  .step p { grid-column: 2; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .app-topbar { padding: 0 16px; }
  .app-content { padding: 18px 14px 80px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .status-banner { align-items: flex-start; flex-wrap: wrap; }
  .status-actions { width: 100%; margin-left: 0; }
  .event-table { min-width: 760px; }
  .table-scroll { overflow-x: auto; }
  .auth-story { min-height: 360px; padding: 28px 24px; }
  .auth-proof { flex-direction: column; gap: 7px; }
  .setup-form, .setup-aside { padding: 25px; }
}

/* Light product redesign */
:root {
  --paper: #f6f7f5;
  --surface: #ffffff;
  --surface-2: #eef1ee;
  --night: #ffffff;
  --night-2: #ffffff;
  --ink: #17211d;
  --muted: #69736e;
  --line: #dce1dd;
  --green: #16815a;
  --green-dark: #126c4c;
  --lime: #dff3e7;
  --shadow: none;
  --radius: 8px;
  --radius-sm: 8px;
}

body { background: var(--paper); }
.demo-bar { min-height: 40px; display: flex; align-items: center; background: #eef1ee; border-bottom: 1px solid var(--line); color: #5d6862; font-size: 12px; }
.demo-bar .container { display: flex; align-items: center; gap: 22px; }
.demo-label { font-weight: 750; color: var(--ink); }
.demo-links { display: flex; align-items: center; gap: 4px; }
.demo-links a { padding: 5px 9px; border-radius: 6px; }
.demo-links a:hover, .demo-links a.active { background: #fff; color: var(--green-dark); }

.site-header { top: 0; background: #fff; backdrop-filter: none; z-index: 100; }
.brand-mark, .avatar { border-radius: 8px; }
.brand-mark { background: #17211d; color: #fff; box-shadow: none; }
.logo-mark { width: 38px; overflow: hidden; background: transparent url("assets/botfighter-web-mark.png") center / contain no-repeat; color: transparent; font-size: 0; }
.brand-text { font-size: 14px; line-height: 1.1; }
.brand-text small { margin-top: 3px; font-size: 8px; letter-spacing: .09em; }
.button, .button-sm, .icon-button { border-radius: 8px; box-shadow: none; }
.button-primary { background: #17211d; box-shadow: none; }
.button-green { background: var(--green-dark); color: white; box-shadow: none; }
.button:hover { transform: none; }
.button-ghost { background: white; }

.hero { background: #fff; color: var(--ink); padding: 82px 0 66px; border-bottom: 1px solid var(--line); }
.hero::before, .hero::after, .auth-story::after, .status-banner::after { display: none; }
.hero-grid { grid-template-columns: minmax(0, 1fr) 430px; gap: 66px; }
.hero h1 { margin: 18px 0; max-width: none; color: var(--ink); font-size: clamp(40px, 5vw, 64px); line-height: 1; letter-spacing: -.05em; white-space: nowrap; }
.hero h1 span { color: var(--green-dark); }
.hero-copy { color: var(--muted); max-width: 690px; }
.hero-notes { color: var(--muted); }
.eyebrow, .section-kicker { color: var(--green-dark); letter-spacing: .08em; }

.signal-panel { background: white; border: 1px solid var(--line); border-radius: 8px; box-shadow: none; }
.signal-head { color: var(--muted); border-bottom: 1px solid var(--line); }
.live-dot { color: var(--green-dark); }
.request-card { background: #f7f8f7; border: 1px solid var(--line); border-radius: 8px; }
.request-line + .request-line { border-top-color: var(--line); }
.request-meta { color: var(--muted); }
.decision { border-top: 0; }
.pill { border-radius: 6px; text-transform: none; letter-spacing: 0; }
.pill-danger { color: #a13f3f; background: #fae9e9; }
.pill-safe { color: #126c4c; background: #e2f3e9; }
.pill-warn { color: #805511; background: #fbf0da; }
.pill-neutral { color: #58635d; background: #eef1ee; }
.pill-monitoring { color: #8a5a0a; background: #fff0d7; }

.trust-row { background: white; border-bottom: 1px solid var(--line); }
.trust-item { background: white; }
.trust-value { font-size: 23px; }
.section { padding: 78px 0; }
.section-dark { background: #f1f3f1; color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-dark .section-kicker { color: var(--green-dark); }
.section-dark .section-lead, .step p { color: var(--muted); }
.section h2 { max-width: none; font-size: clamp(32px, 4vw, 46px); white-space: nowrap; }
.feature-grid { gap: 12px; }
.feature-card, .feature-card.dark { min-height: 215px; border-radius: 8px; background: white; border-color: var(--line); }
.feature-number, .dark .feature-number { width: 36px; height: 36px; border-radius: 7px; background: #edf4f0; color: var(--green-dark); }
.feature-card h3 { margin-top: 28px; }
.feature-card.dark p { color: var(--muted); }
.steps { border-top-color: var(--line); }
.step { border-bottom-color: var(--line); }
.step-index { color: var(--green-dark); }
.price-card { border-radius: 8px; box-shadow: none; }
.price-side { background: #edf4f0; }
.site-footer { background: white; color: var(--muted); border-top: 1px solid var(--line); }

.auth-page { min-height: calc(100vh - 40px); grid-template-columns: .9fr 1.1fr; background: var(--paper); }
.auth-story { background: white; color: var(--ink); border-right: 1px solid var(--line); }
.auth-quote h1 { color: var(--ink); font-size: clamp(34px, 4vw, 51px); white-space: nowrap; }
.auth-quote h1 span { color: var(--green-dark); }
.auth-quote p, .auth-proof { color: var(--muted); }
.auth-form-wrap { background: var(--paper); }
.auth-form h2 { white-space: nowrap; }
.field input, .field select, .method label { border-radius: 8px; }

.app-shell { min-height: calc(100vh - 40px); grid-template-columns: 232px 1fr; }
.sidebar { top: 40px; height: calc(100vh - 40px); background: white; color: var(--ink); border-right: 1px solid var(--line); }
.side-label { color: #8a948f; }
.side-nav a { color: #5f6964; border-radius: 7px; }
.side-nav a:hover, .side-nav a.active { background: #edf1ee; color: var(--ink); }
.nav-icon { display: none; }
.account-mini { border-color: var(--line); border-radius: 8px; }
.account-plan { color: var(--muted); }
.account-plan { display: grid; gap: 1px; line-height: 1.25; }
.app-topbar { position: relative; top: auto; background: #fff; backdrop-filter: none; z-index: 1; }
.page-head h1, .setup-form h1 { white-space: nowrap; }
.panel, .metric { border-radius: 8px; }
.status-banner { background: white; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; }
.status-icon { border-radius: 8px; background: #edf4f0; color: var(--green-dark); }
.status-copy span { color: var(--muted); }
.progress, .progress span { border-radius: 4px; }
.setup-aside { background: #eef1ee; color: var(--ink); border-left: 1px solid var(--line); }
.setup-aside p, .setup-list li { color: var(--muted); }
.setup-list li::before { color: var(--green-dark); }
.toast { background: #17211d; border-radius: 8px; box-shadow: none; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1, .section h2, .auth-quote h1 { white-space: normal; }
  .auth-story { border-right: 0; border-bottom: 1px solid var(--line); }
}

@media (max-width: 680px) {
  .demo-bar .container { align-items: flex-start; flex-direction: column; gap: 4px; padding: 7px 0; }
  .demo-links { width: 100%; overflow-x: auto; }
  .demo-links a { white-space: nowrap; }
  .hero h1, .section h2, .auth-quote h1, .auth-form h2, .page-head h1, .setup-form h1 { white-space: normal; }
  .sidebar { top: 0; }
  .app-topbar { top: 0; }
}

/* Typography and monitoring-only adjustments */
.brand { font-weight: 700; letter-spacing: 0; }
.main-nav { font-weight: 400; }
.button, .button-sm { font-weight: 600; }
.eyebrow, .section-kicker, .side-label { font-weight: 650; }
.hero h1,
.section h2,
.auth-quote h1,
.auth-form h2,
.setup-form h1,
.page-head h1 {
  font-weight: 650;
  letter-spacing: .008em;
}
.feature-card h3, .panel-head h2, .panel-head h3, .field label, .method-title { font-weight: 600; }
.trust-value, .metric-value, .price { font-weight: 650; letter-spacing: .005em; }
.pill { font-weight: 600; }

.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-row { gap: 36px; background: transparent; border: 0; }
.trust-item { padding: 27px 0; }

.auth-story { justify-content: flex-start; padding: 46px clamp(30px, 4vw, 58px); }
.auth-quote { max-width: none; margin-top: 118px; }
.auth-quote h1 { font-size: clamp(34px, 3.5vw, 46px); }
.auth-proof { display: grid; gap: 10px; margin-top: 36px; font-size: 13px; }
.auth-proof span { white-space: nowrap; }
.auth-form-wrap { align-items: start; padding-top: 76px; }

.connection-summary { border: 1px solid var(--line); border-radius: 8px; background: #f8f9f8; }
.summary-row { min-height: 58px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.summary-row + .summary-row { border-top: 1px solid var(--line); }
.summary-label { color: var(--muted); font-size: 12px; }
.summary-value { font-size: 13px; font-weight: 600; text-align: right; }

@media (max-width: 980px) {
  .auth-quote { margin-top: 72px; }
  .auth-proof span { white-space: normal; }
}

/* Dashboard analytics */
.dashboard-content { padding-top: 26px; padding-bottom: 48px; }
.dashboard-head { align-items: center; margin-bottom: 18px; }
.dashboard-head h1 { text-transform: none; font-size: 30px; }
.period-tabs { display: inline-flex; border: 1px solid var(--line); background: #fff; border-radius: 8px; overflow: hidden; }
.period-tab { min-height: 36px; padding: 0 14px; border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.period-tab:first-child { border-left: 0; }
.period-tab:hover { color: var(--ink); }
.period-tab.active { color: var(--green-dark); background: #edf4f0; font-weight: 600; }

.mode-banner { padding: 17px 18px; }
.mode-banner .status-copy { max-width: 720px; }
.mode-banner .status-copy strong { margin-bottom: 3px; }
.mode-banner .status-copy span { line-height: 1.45; }
.mode-banner .status-actions { flex-shrink: 0; }
.mode-banner.monitoring-mode { border-color: #ead7b4; background: #fffaf1; }
.mode-banner.protection-mode { border-color: #bcd7c9; background: #f4faf7; }
.protection-impact { min-width: 175px; display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-left: 1px solid #c6ddd1; }
.protection-impact[hidden] { display: none; }
.protection-impact strong { color: var(--green-dark); font-size: 34px; font-weight: 650; line-height: 1; }
.protection-impact span { color: #3f5d4e; font-size: 11px; line-height: 1.35; }
.status-icon.monitoring-icon { background: #fff0d7; color: #b57612; }
.status-icon.protection-icon { background: #dff3e7; color: var(--green-dark); }

.metric-grid-3 { grid-template-columns: repeat(3, 1fr); }
.metric-grid-3 .metric { min-height: 128px; padding: 18px 20px; position: relative; overflow: hidden; }
.metric-grid-3 .metric::after { content: ""; position: absolute; inset: auto 0 0; height: 30px; opacity: .55; background: linear-gradient(90deg, transparent, #eef1ee); }
.metric-grid-3 .metric-people::after { background: linear-gradient(90deg, transparent, #dff3e7); }
.metric-grid-3 .metric-bots::after { background: linear-gradient(90deg, transparent, #fae9e9); }
.metric-note { margin-top: 2px; color: var(--muted); font-size: 11px; position: relative; z-index: 1; }

.dashboard-content .panel { border-color: #d8e0da; }
.dashboard-content .panel-head { min-height: 62px; padding: 0 22px; }
.dashboard-content .panel-head h2,
.dashboard-content .compact-panel .panel-head h2,
.dashboard-content .requests-panel .panel-head h2 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .006em;
  text-transform: none;
}
.traffic-panel { margin-bottom: 18px; }
.chart-wrap-wide { height: 290px; }
.chart-wrap, .hour-chart { position: relative; }
.chart-tooltip { position: absolute; z-index: 20; width: 205px; padding: 11px 12px; pointer-events: none; border: 1px solid #d4ddd7; border-radius: 7px; background: rgba(255,255,255,.98); box-shadow: 0 10px 28px rgba(18,34,26,.14); color: var(--ink); }
.chart-tooltip[hidden] { display: none; }
.chart-tooltip-title { display: block; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 11px; font-weight: 600; line-height: 1.35; }
.chart-tooltip-list { display: grid; gap: 6px; padding-top: 8px; }
.chart-tooltip-list > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 11px; }
.chart-tooltip-list span { display: flex; align-items: center; gap: 7px; color: var(--muted); }
.chart-tooltip-list i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; }
.chart-tooltip-list b { font-weight: 650; }
.panel-caption { color: var(--muted); font-size: 11px; }
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}
.compact-panel { min-height: 248px; overflow: hidden; }
.compact-panel .panel-head { min-height: 62px; }
.geo-panel { grid-column: span 5; background: #f2f7f4; border-color: #ccdbd2 !important; }
.network-panel { grid-column: span 7; }
.rhythm-panel { grid-column: span 7; }
.behavior-panel { grid-column: span 5; background: #f7faf8; border-color: #d5dfd9 !important; }
.geo-panel .panel-head, .behavior-panel .panel-head { border-bottom-color: rgba(23,33,29,.09); }
.network-panel .rank-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; }
.geo-panel .rank-list { display: block; padding-top: 10px; padding-bottom: 14px; }
.geo-panel .rank-row { min-height: 37px; position: relative; padding-bottom: 0; }
.geo-panel .rank-row::after { display: none; }

.rank-list { padding: 10px 18px 14px; }
.rank-row { min-height: 37px; display: grid; grid-template-columns: 28px minmax(0, 1fr) 64px 38px; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; border-bottom: 1px solid #eef1ee; }
.rank-row:last-child { border-bottom: 0; }
.rank-row .rank-name { color: #4f5a54; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-row strong { color: var(--ink); text-align: right; font-weight: 600; }
.rank-row > span:last-child { text-align: right; }
.country-flag { font-size: 16px; }
.rank-num { width: 20px; height: 20px; display: grid; place-items: center; background: #f0f2f0; color: #7b8580; font-size: 10px; }

.hour-chart { padding: 24px 20px 16px; }
.hour-bars { height: 120px; display: flex; align-items: flex-end; gap: 7px; border-bottom: 1px solid var(--line); }
.hour-bars span { flex: 1; min-height: 2px; background: #9bcbb5; }
.hour-bars span.peak { background: var(--green-dark); }
.hour-labels { display: flex; justify-content: space-between; padding-top: 8px; color: #8a948f; font-size: 10px; }

.threat-body { padding: 20px; }
.threat-bar { display: flex; height: 12px; overflow: hidden; margin-bottom: 18px; }
.threat-bar span { display: block; }
.threat-proxy, .proxy { background: #d85757; }
.threat-parser, .parser { background: #ef8a55; }
.threat-spam, .spam { background: #eab85f; }
.threat-scan, .scan { background: #96a19b; }
.threat-list { display: grid; gap: 12px; }
.threat-list > div { display: grid; grid-template-columns: 10px minmax(0, 1fr) 60px 35px; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.threat-list i { width: 8px; height: 8px; display: block; }
.threat-list strong { color: var(--ink); text-align: right; font-weight: 600; }
.threat-list em { font-style: normal; text-align: right; }

.requests-panel { border-left-color: #d8e0da !important; }
.text-action { border: 0; background: transparent; color: var(--green-dark); font: inherit; font-size: 11px; cursor: pointer; }
.event-inline-link { color: var(--green-dark); }
.request-table th { background: #fafbfa; }
.request-table td { padding-top: 12px; padding-bottom: 12px; }
.request-table td:last-child { color: var(--muted); text-align: left; white-space: nowrap; }
.request-table th:last-child, .request-table td:last-child { width: 130px; }
.request-source-line { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.request-dot { width: 7px; height: 7px; display: inline-block; flex: 0 0 7px; border-radius: 50%; background: #8c9691; }
.request-dot.safe { background: #1fb86a; }
.request-dot.warn { background: #e4a51b; }
.request-dot.danger { background: #df5252; }
.request-ip { color: var(--ink); font-size: 12px; white-space: nowrap; }
.request-country { font-size: 13px; line-height: 1; }
.request-client-type { display: block; color: var(--ink); font-size: 12px; font-weight: 600; }
.request-client-agent { display: block; max-width: 360px; margin-top: 3px; overflow: hidden; color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1180px) {
  .analytics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .geo-panel, .network-panel, .rhythm-panel, .behavior-panel { grid-column: span 1; }
  .network-panel .rank-list { grid-template-columns: 1fr; }
}

@media (max-width: 980px) {
  .analytics-grid { grid-template-columns: 1fr; }
  .geo-panel, .network-panel, .rhythm-panel, .behavior-panel { grid-column: auto; }
  .metric-grid-3 { grid-template-columns: 1fr 1fr; }
  .mode-banner { align-items: flex-start; flex-wrap: wrap; }
  .mode-banner .status-actions { width: 100%; margin-left: 66px; }
}

@media (max-width: 680px) {
  .dashboard-head { align-items: flex-start; }
  .period-tabs { width: 100%; }
  .period-tab { flex: 1; }
  .metric-grid-3 { grid-template-columns: 1fr; }
  .mode-banner .status-actions { margin-left: 0; }
  .mode-banner .status-actions .button { flex: 1; }
  .chart-wrap-wide { height: 235px; }
  .analytics-grid { gap: 14px; }
}

/* Agent installation */
.install-content { max-width: 1220px; }
.install-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.install-head h1 { margin: 7px 0 8px; font-size: 34px; font-weight: 600; letter-spacing: .008em; white-space: nowrap; }
.install-head p { max-width: 690px; margin: 0; color: var(--muted); line-height: 1.55; }
.site-chip { min-width: 210px; padding: 12px 14px; display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.site-chip-dot { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: #d79a27; box-shadow: 0 0 0 4px #fff4dc; }
.site-chip small, .site-chip strong { display: block; }
.site-chip small { margin-bottom: 2px; color: var(--muted); font-size: 10px; }
.site-chip strong { font-size: 13px; font-weight: 600; }
.progress-steps-4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.install-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.install-guide { padding: 8px 28px; }
.install-section { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 18px; padding: 25px 0; border-bottom: 1px solid var(--line); }
.install-section:last-child { border-bottom: 0; }
.install-step-number { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #bad1c4; border-radius: 8px; background: #edf5f0; color: var(--green-dark); font-size: 13px; font-weight: 600; }
.install-step-body h2 { margin: 3px 0 7px; font-size: 17px; font-weight: 600; letter-spacing: .006em; }
.install-step-body p { margin: 0 0 15px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.code-box { min-height: 49px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 11px 10px 14px; background: #f4f6f4; border: 1px solid var(--line); border-radius: 8px; }
.code-box code { min-width: 0; overflow-wrap: anywhere; color: #304039; font: inherit; font-size: 12px; }
.code-box button { flex: 0 0 auto; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--green-dark); font: inherit; font-size: 11px; cursor: pointer; }
.code-box-multiline { align-items: flex-start; line-height: 1.7; }
.install-note { margin-top: 12px; padding: 11px 13px; display: flex; gap: 9px; background: #fff9e9; border-left: 3px solid #d8a33b; color: #6d5a2d; font-size: 12px; }
.install-note strong { font-weight: 600; }
.installer-run { margin-top: 12px; }
.installer-result { margin-top: 12px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; background: #edf6f1; border: 1px solid #cde2d6; border-radius: 8px; color: var(--green-dark); }
.installer-result[hidden] { display: none; }
.installer-result > span { width: 23px; height: 23px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--green-dark); color: #fff; font-size: 12px; }
.installer-result strong, .installer-result small { display: block; }
.installer-result strong { font-size: 12px; font-weight: 600; }
.installer-result small { margin-top: 2px; color: var(--muted); font-size: 11px; }
.button:disabled { opacity: .48; cursor: not-allowed; }
.connection-card { position: sticky; top: 18px; padding: 22px; }
.connection-state { display: flex; align-items: center; gap: 11px; padding-bottom: 18px; margin-bottom: 19px; border-bottom: 1px solid var(--line); }
.connection-indicator { width: 11px; height: 11px; flex: 0 0 auto; border-radius: 50%; background: #d79a27; box-shadow: 0 0 0 4px #fff4dc; }
.connection-state small, .connection-state strong { display: block; }
.connection-state small { margin-bottom: 2px; color: var(--muted); font-size: 10px; }
.connection-state strong { font-size: 14px; font-weight: 600; }
.connection-state.checking .connection-indicator { background: #6d8f7f; box-shadow: 0 0 0 4px #e9f1ed; animation: agent-pulse 1s infinite; }
.connection-state.success .connection-indicator { background: #16815a; box-shadow: 0 0 0 4px #dff3e7; animation: none; }
@keyframes agent-pulse { 50% { opacity: .35; } }
.connection-card h2 { margin: 0 0 8px; font-size: 20px; font-weight: 600; letter-spacing: .006em; }
.connection-card > p { margin: 0 0 19px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.connection-data { margin: 0 0 20px; }
.connection-data div { min-height: 42px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid var(--line); }
.connection-data dt { color: var(--muted); font-size: 11px; }
.connection-data dd { margin: 0; font-size: 12px; font-weight: 500; text-align: right; }
.connection-data code { font: inherit; }
.connection-card .button + .button { margin-top: 8px; }
.agent-dashboard-link { text-align: center; }
.agent-dashboard-link[hidden] { display: none; }
.help-link { width: 100%; margin-top: 16px; padding: 0; border: 0; background: transparent; color: var(--green-dark); font: inherit; font-size: 12px; cursor: pointer; }

@media (max-width: 980px) {
  .install-layout { grid-template-columns: 1fr; }
  .connection-card { position: static; }
}

@media (max-width: 680px) {
  .install-head { align-items: flex-start; flex-direction: column; }
  .install-head h1 { font-size: 28px; white-space: normal; }
  .site-chip { width: 100%; }
  .install-guide { padding: 4px 18px; }
  .install-section { grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 21px 0; }
  .code-box { align-items: flex-start; flex-direction: column; }
  .code-box button { width: 100%; }
}

/* Sites list */
.sites-content { max-width: 1280px; }
.sites-page-head { align-items: center; }
.sites-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.sites-summary > div { min-height: 92px; padding: 18px 20px; border-left: 1px solid var(--line); }
.sites-summary > div:first-child { border-left: 0; }
.sites-summary span, .sites-summary strong { display: block; }
.sites-summary span { color: var(--muted); font-size: 11px; }
.sites-summary strong { margin-top: 5px; font-size: 25px; font-weight: 600; }
.sites-summary .summary-attention strong { color: #a56d10; }
.sites-toolbar { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 10px; }
.site-filters { display: flex; gap: 4px; padding: 4px; background: #e9ede9; border-radius: 8px; }
.site-filters button { min-height: 32px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.site-filters button.active { background: #fff; color: var(--ink); font-weight: 600; }
.sites-updated { color: var(--muted); font-size: 11px; }
.sites-list { display: grid; gap: 10px; }
.site-row { min-height: 104px; display: grid; grid-template-columns: minmax(210px, 1.25fr) minmax(150px, .8fr) minmax(120px, .62fr) minmax(130px, .68fr) auto; align-items: center; gap: 22px; padding: 18px 18px 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.site-row[hidden] { display: none; }
.site-row.needs-attention { background: #fffdf8; border-color: #eadbb9; }
.site-identity { min-width: 0; display: flex; align-items: center; gap: 13px; }
.site-letter { width: 39px; height: 39px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: #edf4f0; color: var(--green-dark); font-size: 15px; font-weight: 600; }
.site-letter.protected { background: #dff3e7; }
.site-letter.pending { background: #fff1d4; color: #946410; }
.site-identity h2 { margin: 0 0 3px; overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.site-identity p { margin: 0; color: var(--muted); font-size: 11px; }
.site-mode { display: flex; align-items: center; gap: 10px; }
.site-status-dot { width: 8px; height: 8px; flex: 0 0 auto; border-radius: 50%; }
.site-status-dot.monitoring { background: #d18b1c; box-shadow: 0 0 0 4px #fff0d7; }
.site-status-dot.protected { background: #16815a; box-shadow: 0 0 0 4px #dff3e7; }
.site-status-dot.pending { background: #d79a27; box-shadow: 0 0 0 4px #fff2d8; }
.site-mode small, .site-mode strong, .site-stat small, .site-stat strong { display: block; }
.site-mode small, .site-stat small { margin-bottom: 3px; color: var(--muted); font-size: 10px; }
.site-mode strong, .site-stat strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.site-risk-stat { justify-self: center; min-width: 112px; text-align: center; }
.site-risk-stat strong { font-size: 15px; }
.site-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.site-delete-action { padding: 7px 5px; border: 0; background: transparent; color: #a34a4a; font: inherit; font-size: 11px; cursor: pointer; }
.site-delete-action:hover { color: #7f2929; text-decoration: underline; }
.button-danger { border-color: #b84848; background: #b84848; color: #fff; }
.button-danger:hover { border-color: #963737; background: #963737; }
.site-delete-dialog { width: min(520px, 100%); }
.site-delete-body { padding: 18px 22px 22px; }
.site-delete-body > p { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.55; }
.site-delete-warning { margin-top: 14px; padding: 11px 12px; border-left: 3px solid #d69a33; background: #fff8e9; color: #73531c; font-size: 11px; line-height: 1.45; }
.site-delete-body footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.site-menu { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font: inherit; text-decoration: none; cursor: pointer; }

@media (max-width: 1100px) {
  .site-row { grid-template-columns: minmax(210px, 1.2fr) minmax(150px, .8fr) minmax(120px, .7fr) auto; }
  .site-row .site-stat + .site-stat { display: none; }
}

@media (max-width: 820px) {
  .sites-summary { grid-template-columns: 1fr 1fr; }
  .sites-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .sites-summary > div:nth-child(4) { border-top: 1px solid var(--line); }
  .site-row { grid-template-columns: 1fr 1fr; gap: 17px; }
  .site-actions { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .sites-page-head { align-items: stretch; }
  .sites-page-head .button { width: 100%; }
  .sites-toolbar { align-items: flex-start; flex-direction: column; }
  .site-filters { width: 100%; overflow-x: auto; }
  .site-filters button { flex: 0 0 auto; }
  .site-row { grid-template-columns: 1fr; }
  .site-actions .button { flex: 1; }
}

/* Event journal */
.events-content, .event-detail-content { max-width: 1320px; }
.events-page-head { align-items: center; }
.journal-export-button { min-height: 42px; padding: 0 18px; border: 1px solid #17211d; background: #17211d; color: #fff; font-weight: 600; }
.journal-export-button:hover { background: #27332e; border-color: #27332e; }
.events-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.events-summary > div { min-height: 82px; padding: 15px 18px; border-left: 1px solid var(--line); }
.events-summary > div:first-child { border-left: 0; }
.events-summary span, .events-summary strong { display: block; }
.events-summary span { color: var(--muted); font-size: 10px; }
.events-summary strong { margin-top: 5px; font-size: 22px; font-weight: 600; }
.event-journal { overflow: hidden; }
.journal-toolbar { min-height: 66px; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.journal-search { min-width: 230px; position: relative; }
.journal-search > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.journal-search input { width: 100%; min-height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; }
.journal-filters { display: flex; gap: 3px; padding: 3px; background: #edf0ed; border-radius: 8px; }
.journal-filters button, .period-picker { min-height: 32px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font: inherit; font-size: 11px; cursor: pointer; }
.journal-filters button.active { background: #fff; color: var(--ink); font-weight: 600; }
.period-picker { margin-left: auto; min-height: 38px; border: 1px solid var(--line); background: #fff; }
.journal-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.journal-table th { padding: 11px 13px; background: #fafbfa; color: var(--muted); text-align: left; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.journal-table td { padding: 12px 13px; border-top: 1px solid var(--line); color: #45524c; white-space: nowrap; }
.journal-table tbody tr:hover { background: #fafcfa; }
.journal-table td:nth-child(4) { max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.journal-table td:last-child a { color: var(--green-dark); font-weight: 500; }
.journal-table .pill { padding: 5px 8px; }
.risk-high, .risk-mid, .risk-low { display: inline-grid; min-width: 29px; height: 24px; place-items: center; border-radius: 6px; font-weight: 600; }
.risk-high { background: #fae9e9; color: #a13f3f; }
.risk-mid { background: #fbf0da; color: #805511; }
.risk-low { background: #e2f3e9; color: #126c4c; }
.journal-empty { padding: 52px 20px; color: var(--muted); text-align: center; font-size: 13px; }
.journal-footer { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.journal-footer button { padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--green-dark); font: inherit; cursor: pointer; }

/* Event detail */
.event-detail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.event-id { color: var(--green-dark); font-size: 11px; font-weight: 600; letter-spacing: .06em; }
.event-detail-head h1 { margin: 6px 0; font-size: 31px; font-weight: 600; letter-spacing: .008em; }
.event-detail-head p { margin: 0; color: var(--muted); font-size: 12px; }
.event-head-actions { display: flex; align-items: center; gap: 9px; }
.event-rule-button, .event-exception-button { min-height: 42px; padding: 0 15px 0 10px; display: inline-flex; align-items: center; gap: 9px; border-radius: 8px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.event-rule-button { border: 1px solid #17211d; background: #17211d; color: #fff; }
.event-exception-button { border: 1px solid #bfd3c8; background: #fff; color: var(--green-dark); }
.event-rule-button:hover { background: #24302b; }
.event-exception-button:hover { background: #f2f7f4; }
.action-button-icon { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: rgba(255,255,255,.14); font-size: 15px; line-height: 1; }
.event-exception-button .action-button-icon { background: #e3f1e9; }
.exclusion-confirmation { min-height: 66px; display: flex; align-items: center; gap: 12px; margin: -8px 0 18px; padding: 12px 14px; background: #edf6f1; border: 1px solid #cde2d6; border-radius: 8px; }
.exclusion-confirmation[hidden] { display: none; }
.exclusion-confirmation > span { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: var(--green-dark); color: #fff; }
.exclusion-confirmation strong { display: block; font-size: 12px; font-weight: 600; }
.exclusion-confirmation p { margin: 2px 0 0; color: var(--muted); font-size: 11px; }
.exclusion-confirmation button { margin-left: auto; padding: 7px 9px; border: 0; background: transparent; color: var(--green-dark); font: inherit; font-size: 11px; cursor: pointer; }
.event-verdict { display: grid; grid-template-columns: 92px minmax(0, 1fr) minmax(220px, 320px); align-items: center; gap: 24px; margin-bottom: 18px; padding: 22px; background: #fff; border: 1px solid #e4d4d4; border-radius: 8px; }
.risk-score { width: 76px; height: 76px; display: grid; align-content: center; justify-items: center; border-radius: 8px; background: #fae9e9; color: #a13f3f; }
.risk-score strong { font-size: 29px; line-height: 1; font-weight: 600; }
.risk-score span { margin-top: 3px; font-size: 10px; }
.verdict-copy h2 { margin: 9px 0 5px; font-size: 20px; font-weight: 600; }
.verdict-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.verdict-mode { padding-left: 22px; border-left: 1px solid var(--line); }
.verdict-mode small, .verdict-mode strong, .verdict-mode span { display: block; }
.verdict-mode small { color: var(--muted); font-size: 10px; }
.verdict-mode strong { margin: 3px 0 7px; font-size: 14px; font-weight: 600; }
.verdict-mode span { color: #8c6726; font-size: 11px; line-height: 1.45; }
.event-detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 18px; }
.detail-panel .panel-head h2, .request-profile .panel-head h2, .raw-request-panel .panel-head h2 { font-size: 16px; font-weight: 600; }
.evidence-list { padding: 4px 20px; }
.evidence-list > div { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.evidence-list > div:last-child { border-bottom: 0; }
.evidence-mark { width: 40px; height: 28px; display: grid; place-items: center; border-radius: 6px; font-size: 11px; font-weight: 600; }
.evidence-mark.danger { background: #fae9e9; color: #a13f3f; }
.evidence-mark.warn { background: #fbf0da; color: #805511; }
.evidence-mark.safe { background: #eef1ee; color: #58635d; }
.evidence-list strong { font-size: 13px; font-weight: 600; }
.evidence-list p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.request-profile dl { margin: 0; padding: 7px 20px 13px; }
.request-profile dl > div { min-height: 43px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); }
.request-profile dl > div:last-child { border-bottom: 0; }
.request-profile dt { color: var(--muted); font-size: 11px; }
.request-profile dd { margin: 0; font-size: 11px; font-weight: 500; text-align: right; }
.raw-request-panel { grid-column: 1 / -1; overflow: hidden; }
.raw-request-panel pre { margin: 0; padding: 20px; overflow-x: auto; background: #f5f7f5; color: #34433c; font-family: inherit; font-size: 11px; line-height: 1.65; }
.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 300; padding: 24px; display: grid; place-items: center; background: rgba(17,28,23,.48); }
.modal-backdrop[hidden] { display: none; }
.exclusion-dialog { width: min(560px, 100%); max-height: calc(100vh - 48px); overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 18px 50px rgba(17,28,23,.18); }
.exclusion-dialog > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 21px 22px 16px; border-bottom: 1px solid var(--line); }
.dialog-kicker { color: var(--green-dark); font-size: 10px; font-weight: 600; }
.exclusion-dialog h2 { margin: 5px 0 0; font-size: 21px; font-weight: 600; letter-spacing: .006em; }
.dialog-close { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font: inherit; font-size: 20px; cursor: pointer; }
.dialog-lead { margin: 0; padding: 15px 22px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.exclusion-dialog form { padding: 16px 22px 22px; }
.exclusion-options { display: grid; gap: 8px; }
.exclusion-option { position: relative; cursor: pointer; }
.exclusion-option input { position: absolute; opacity: 0; pointer-events: none; }
.exclusion-option-content { min-height: 75px; display: grid; grid-template-columns: 1fr auto; align-content: center; gap: 3px 16px; padding: 12px 14px 12px 48px; position: relative; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.exclusion-option-content::before { content: ""; width: 18px; height: 18px; box-sizing: border-box; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); border: 1px solid #aeb9b3; border-radius: 50%; background: #fff; }
.exclusion-option input:checked + .exclusion-option-content { border-color: #77a890; background: #f2f7f4; }
.exclusion-option input:checked + .exclusion-option-content::before { border: 5px solid var(--green-dark); }
.exclusion-option-content strong { font-size: 12px; font-weight: 600; }
.exclusion-option-content small { grid-column: 1; color: var(--muted); font-size: 10px; line-height: 1.4; }
.exclusion-option-content code { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: #45524c; font: inherit; font-size: 10px; }
.exclusion-warning { margin-top: 12px; padding: 11px 13px; display: grid; gap: 3px; background: #fff8e9; border-left: 3px solid #d8a33b; color: #725c2d; font-size: 10px; line-height: 1.45; }
.exclusion-warning strong { font-weight: 600; }
.exclusion-dialog footer { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }

@media (max-width: 1050px) {
  .journal-toolbar { align-items: stretch; flex-wrap: wrap; }
  .journal-search { flex: 1; }
  .period-picker { margin-left: 0; }
  .journal-table { min-width: 980px; }
}

@media (max-width: 820px) {
  .events-summary { grid-template-columns: 1fr 1fr; }
  .events-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .events-summary > div:nth-child(4) { border-top: 1px solid var(--line); }
  .event-verdict { grid-template-columns: 76px 1fr; }
  .verdict-mode { grid-column: 1 / -1; padding: 16px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .event-detail-grid { grid-template-columns: 1fr; }
  .raw-request-panel { grid-column: auto; }
}

@media (max-width: 580px) {
  .events-page-head, .event-detail-head { align-items: stretch; flex-direction: column; }
  .event-head-actions { align-items: stretch; flex-direction: column; }
  .event-rule-button, .event-exception-button { justify-content: center; }
  .journal-search, .journal-filters, .period-picker { width: 100%; }
  .journal-filters { overflow-x: auto; }
  .journal-filters button { flex: 0 0 auto; }
  .event-detail-head h1 { font-size: 26px; }
  .event-verdict { grid-template-columns: 1fr; }
  .verdict-mode { grid-column: auto; }
  .modal-backdrop { padding: 10px; }
  .exclusion-dialog { max-height: calc(100vh - 20px); }
  .exclusion-option-content { grid-template-columns: 1fr; }
  .exclusion-option-content code { grid-column: 1; grid-row: auto; margin-top: 5px; }
  .exclusion-dialog footer { flex-direction: column-reverse; }
  .exclusion-dialog footer .button { width: 100%; }
}

/* Site settings */
.settings-content { max-width: 1260px; }
.settings-page-head { align-items: center; }
.settings-save-wrap { display: flex; align-items: center; gap: 12px; }
.settings-save-wrap > span { color: var(--green-dark); font-size: 11px; }
.settings-mode-banner { min-height: 74px; display: flex; align-items: center; gap: 22px; margin-bottom: 18px; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.settings-mode-banner > div { min-width: 180px; display: flex; align-items: center; gap: 11px; }
.settings-mode-banner small, .settings-mode-banner strong { display: block; }
.settings-mode-banner small { color: var(--muted); font-size: 10px; }
.settings-mode-banner strong { margin-top: 2px; font-size: 14px; font-weight: 600; }
.settings-mode-banner p { margin: 0; padding-left: 22px; border-left: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.settings-mode-banner.monitoring { border-color: #ead7b4; background: #fffaf1; }
.settings-mode-banner.protection { border-color: #bcd7c9; background: #f2f8f5; }
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.settings-panel { overflow: hidden; }
.settings-panel .panel-head { min-height: 74px; padding: 14px 20px; }
.settings-panel .panel-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.settings-panel .panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.settings-panel-body { padding: 20px; }
.mode-options { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.mode-options label { position: relative; cursor: pointer; }
.mode-options input { position: absolute; opacity: 0; }
.mode-options label > span { min-height: 84px; display: grid; align-content: center; padding: 13px 14px 13px 48px; position: relative; border: 1px solid var(--line); border-radius: 8px; }
.mode-options label > span::before { content: ""; width: 18px; height: 18px; box-sizing: border-box; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); border: 1px solid #aeb9b3; border-radius: 50%; }
.mode-options input:checked + span { border-color: #77a890; background: #f2f7f4; }
.mode-options input:checked + span::before { border: 5px solid var(--green-dark); }
.mode-options input[value="monitor"]:checked + span { border-color: #d9ac62; background: #fffaf1; }
.mode-options input[value="monitor"]:checked + span::before { border-color: #c77f10; }
.mode-options strong, .mode-options small { display: block; }
.mode-options strong { font-size: 13px; font-weight: 600; }
.mode-options small { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.setting-note { margin-top: 13px; padding: 11px 13px; display: grid; gap: 3px; background: #f7f9f7; border-left: 3px solid #8aad9c; color: #4c5a54; font-size: 10px; line-height: 1.45; }
.setting-note strong { font-weight: 600; }
.sensitivity-value { display: flex; align-items: baseline; gap: 5px; margin-bottom: 15px; }
.sensitivity-value strong { font-size: 30px; font-weight: 600; }
.sensitivity-value span { color: var(--muted); font-size: 10px; }
.sensitivity-range { width: 100%; accent-color: var(--green-dark); }
.range-labels { display: flex; justify-content: space-between; margin-top: 7px; color: var(--muted); font-size: 9px; }
.sensitivity-help { min-height: 34px; margin: 16px 0 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.settings-list { padding: 4px 20px; }
.setting-switch-row { min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.setting-switch-row:last-child { border-bottom: 0; }
.setting-switch-row strong, .setting-switch-row small { display: block; }
.setting-switch-row strong { font-size: 12px; font-weight: 600; }
.setting-switch-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.robots-panel .settings-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
.robots-panel .setting-switch-row:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
.robots-panel .setting-switch-row:nth-last-child(-n+2) { border-bottom: 0; }
.toggle { width: 38px; height: 22px; position: relative; flex: 0 0 auto; }
.toggle input { position: absolute; opacity: 0; }
.toggle i { position: absolute; inset: 0; border-radius: 8px; background: #cad1cd; transition: .15s ease; }
.toggle i::after { content: ""; width: 16px; height: 16px; position: absolute; left: 3px; top: 3px; border-radius: 6px; background: #fff; transition: .15s ease; }
.toggle input:checked + i { background: var(--green-dark); }
.toggle input:checked + i::after { transform: translateX(16px); }
.agent-setting-body { padding: 20px; }
.agent-health { display: flex; align-items: center; gap: 11px; margin-bottom: 13px; }
.agent-health > span { width: 10px; height: 10px; border-radius: 50%; background: #16815a; box-shadow: 0 0 0 4px #dff3e7; }
.agent-health strong, .agent-health small { display: block; }
.agent-health strong { font-size: 13px; font-weight: 600; }
.agent-health small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.agent-setting-body dl { margin: 0 0 17px; }
.agent-setting-body dl > div { min-height: 38px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); }
.agent-setting-body dt { color: var(--muted); font-size: 10px; }
.agent-setting-body dd { margin: 0; font-size: 11px; font-weight: 500; }
.exceptions-panel { grid-column: 1 / -1; }
.exceptions-table-wrap { overflow-x: auto; }
.exceptions-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.exceptions-table th { padding: 10px 14px; background: #fafbfa; color: var(--muted); text-align: left; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.exceptions-table td { padding: 13px 14px; border-top: 1px solid var(--line); }
.exceptions-table td:nth-child(2) strong, .exceptions-table td:nth-child(2) small { display: block; }
.exceptions-table td:nth-child(2) strong { font-weight: 600; }
.exceptions-table td:nth-child(2) small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.exception-type { display: inline-block; padding: 5px 7px; border-radius: 6px; background: #edf1ee; color: #506059; }
.exception-enabled { color: var(--green-dark); }
.exceptions-table td:last-child { text-align: right; }
.exceptions-table td:last-child button { padding: 6px 8px; border: 0; background: transparent; color: #a13f3f; font: inherit; cursor: pointer; }
.exceptions-empty { padding: 38px 20px; color: var(--muted); text-align: center; font-size: 11px; }

.ai-bots-panel { grid-column: 1 / -1; }
.panel-link { padding: 7px 9px; border: 0; border-radius: 6px; background: transparent; color: var(--green-dark); font: inherit; font-size: 11px; font-weight: 500; cursor: pointer; }
.panel-link:hover { background: #edf4f0; }
.ai-bots-toolbar { min-height: 52px; padding: 9px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: #fafbfa; }
.ai-bots-legend, .ai-bots-presets { display: flex; align-items: center; gap: 15px; }
.ai-bots-legend span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; }
.ai-bots-legend i, .ai-bot-row small i { width: 7px; height: 7px; display: inline-block; border-radius: 2px; }
.ai-bots-legend i.search, .ai-bot-row small i.search { background: #31906d; }
.ai-bots-legend i.training, .ai-bot-row small i.training { background: #d69a3a; }
.ai-bots-presets button { padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #405047; font: inherit; font-size: 10px; cursor: pointer; }
.ai-bots-presets button:hover { border-color: #91b5a3; background: #f4f8f6; }
.ai-bot-groups { padding: 16px 20px 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ai-bot-group { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.ai-bot-group > header { min-height: 43px; padding: 10px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); background: #f8faf8; }
.ai-bot-group > header strong { font-size: 12px; font-weight: 600; }
.ai-bot-group > header span { color: var(--muted); font-size: 9px; }
.ai-bot-row { min-height: 58px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ai-bot-row:last-child { border-bottom: 0; }
.ai-bot-row > div { min-width: 0; }
.ai-bot-row strong, .ai-bot-row small { display: block; }
.ai-bot-row strong { overflow: hidden; font-size: 11px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.ai-bot-row small { margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.35; }
.ai-bot-row small i { margin-right: 6px; }
.ai-bots-footnote { margin: 0; padding: 0 20px 17px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.custom-ai-bot-group { grid-column: 1 / -1; }
.custom-ai-bot-group > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.custom-ai-bot-group .ai-bot-row:nth-child(odd) { border-right: 1px solid var(--line); }
.ai-list-dialog { width: min(650px, 100%); }
.ai-list-dialog form { display: grid; gap: 15px; }
.ai-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ai-form-grid .field { gap: 6px; }
.ai-form-grid .field > span { font-size: 11px; font-weight: 600; }
.ai-form-grid .field input, .ai-form-grid .field select { min-height: 42px; border-radius: 8px; font-size: 11px; }
.ai-description-field { grid-column: 1 / -1; }
.ai-list-dialog form > .button-primary { justify-self: start; }
.custom-ai-list { overflow: hidden; border: 1px solid var(--line); border-radius: 8px; }
.custom-ai-list-head { min-height: 42px; padding: 9px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f8faf8; }
.custom-ai-list-head strong { font-size: 11px; font-weight: 600; }
.custom-ai-list-head span { color: var(--muted); font-size: 9px; }
.custom-ai-list-item { min-height: 48px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); }
.custom-ai-list-item strong, .custom-ai-list-item small { display: block; }
.custom-ai-list-item strong { font-size: 11px; font-weight: 600; }
.custom-ai-list-item small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.custom-ai-list-item button { padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: #a13f3f; font: inherit; font-size: 10px; cursor: pointer; }

/* Moderate tracking for all headings */
h1, h2, h3 { letter-spacing: .003em; }

@media (max-width: 860px) {
  .settings-grid { grid-template-columns: 1fr; }
  .exceptions-panel, .ai-bots-panel { grid-column: auto; }
  .exceptions-table { min-width: 720px; }
  .ai-bot-groups { grid-template-columns: 1fr; }
  .custom-ai-bot-group { grid-column: auto; }
  .custom-ai-bot-group > div { grid-template-columns: 1fr; }
  .custom-ai-bot-group .ai-bot-row:nth-child(odd) { border-right: 0; }
}

@media (max-width: 580px) {
  .settings-page-head { align-items: stretch; }
  .settings-save-wrap { align-items: stretch; flex-direction: column; }
  .settings-save-wrap .button { width: 100%; }
  .settings-mode-banner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .settings-mode-banner p { padding: 12px 0 0; border-top: 1px solid var(--line); border-left: 0; }
  .mode-options { grid-template-columns: 1fr; }
  .robots-panel .settings-list { grid-template-columns: 1fr; }
  .robots-panel .setting-switch-row:nth-child(odd) { padding-right: 0; border-right: 0; }
  .robots-panel .setting-switch-row:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .ai-bots-toolbar { align-items: stretch; flex-direction: column; }
  .ai-bots-legend, .ai-bots-presets { flex-wrap: wrap; }
  .ai-bots-presets button { flex: 1 1 auto; }
  .ai-form-grid { grid-template-columns: 1fr; }
  .ai-description-field { grid-column: auto; }
}

/* Billing */
.billing-content { max-width: 1260px; }
.billing-page-head { margin-bottom: 18px; }
.trial-banner { min-height: 108px; margin-bottom: 18px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border: 1px solid #c7dbd0; border-radius: 8px; background: #f3f8f5; }
.trial-copy { display: flex; align-items: center; gap: 15px; }
.trial-icon { width: 52px; height: 52px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; background: var(--green-dark); color: #fff; font-size: 22px; font-weight: 600; }
.trial-copy small, .trial-copy strong { display: block; }
.trial-copy small { color: var(--green-dark); font-size: 10px; }
.trial-copy strong { margin: 3px 0 4px; font-size: 17px; font-weight: 600; }
.trial-copy p { margin: 0; color: var(--muted); font-size: 11px; }
.trial-progress { width: min(360px, 38%); }
.trial-progress > span { height: 7px; display: block; overflow: hidden; border-radius: 6px; background: #dce7e1; }
.trial-progress i { width: 14.285%; height: 100%; display: block; border-radius: 6px; background: var(--green-dark); }
.trial-progress small { display: block; margin-top: 7px; color: var(--muted); font-size: 9px; text-align: right; }
.billing-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 18px; }
.billing-grid .panel { overflow: hidden; }
.billing-grid .panel-head { min-height: 74px; padding: 14px 20px; }
.billing-grid .panel-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.billing-grid .panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.billing-status { padding: 6px 8px; border-radius: 6px; background: #e4f2ea; color: var(--green-dark); font-size: 9px; }
.billing-plan-body { min-height: 210px; padding: 20px; display: grid; grid-template-columns: 190px 1fr; align-items: start; gap: 25px; }
.billing-price strong, .billing-price span { display: block; }
.billing-price strong { font-size: 32px; font-weight: 650; }
.billing-price span { margin-top: 5px; color: var(--muted); font-size: 11px; }
.billing-features { margin: 0; padding: 0; display: grid; gap: 13px; list-style: none; }
.billing-features li { padding-left: 19px; position: relative; color: #445249; font-size: 11px; }
.billing-features li::before { content: "✓"; position: absolute; left: 0; color: var(--green-dark); font-weight: 600; }
.billing-summary-body { padding: 17px 20px 20px; }
.billing-summary-body dl, .payment-dialog-body dl { margin: 0; }
.billing-summary-body dl > div, .payment-dialog-body dl > div { min-height: 39px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.billing-summary-body dt, .payment-dialog-body dt { color: var(--muted); font-size: 10px; }
.billing-summary-body dd, .payment-dialog-body dd { margin: 0; font-size: 11px; font-weight: 550; text-align: right; }
.billing-summary-body .billing-total { min-height: 53px; border-bottom: 0; }
.billing-summary-body .billing-total dd { color: var(--green-dark); font-size: 19px; font-weight: 650; }
.billing-summary-body > small { display: block; margin-top: 9px; color: var(--muted); font-size: 9px; line-height: 1.4; text-align: center; }
.billing-sites-list { padding: 0 20px; }
.billing-site-row { min-height: 72px; display: grid; grid-template-columns: 18px 35px 1fr auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); cursor: pointer; }
.billing-site-row:last-child { border-bottom: 0; }
.billing-site-row > input { position: absolute; opacity: 0; }
.billing-check { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #aeb9b3; border-radius: 5px; background: #fff; }
.billing-site-row > input:checked + .billing-check { border-color: var(--green-dark); background: var(--green-dark); }
.billing-site-row > input:checked + .billing-check::after { content: "✓"; color: #fff; font-size: 11px; }
.billing-site-row .site-letter { width: 35px; height: 35px; font-size: 12px; }
.billing-site-row strong, .billing-site-row small { display: block; }
.billing-site-row strong { font-size: 11px; font-weight: 600; }
.billing-site-row small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.billing-site-row b { font-size: 11px; font-weight: 600; }
.payment-empty { min-height: 216px; padding: 22px; display: grid; place-items: center; align-content: center; text-align: center; }
.payment-card-icon { width: 45px; height: 31px; margin-bottom: 11px; position: relative; border: 1px solid #a8b7af; border-radius: 6px; background: #f7f9f7; }
.payment-card-icon::before { content: ""; height: 5px; position: absolute; left: 0; right: 0; top: 7px; background: #c7d2cc; }
.payment-card-icon::after { content: ""; width: 10px; height: 4px; position: absolute; left: 7px; bottom: 6px; border-radius: 2px; background: var(--green-dark); }
.payment-empty strong { font-size: 12px; font-weight: 600; }
.payment-empty p { max-width: 290px; margin: 7px 0 14px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.billing-history-panel { grid-column: 1 / -1; }
.billing-history-table-wrap { overflow-x: auto; }
.billing-history-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.billing-history-table th { padding: 10px 14px; background: #fafbfa; color: var(--muted); text-align: left; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.billing-history-table td { padding: 14px; border-top: 1px solid var(--line); }
.billing-history-table td strong, .billing-history-table td small { display: block; }
.billing-history-table td strong { font-weight: 600; }
.billing-history-table td small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.billing-history-table td:last-child span { padding: 5px 7px; border-radius: 6px; background: #e4f2ea; color: var(--green-dark); }
.payment-dialog { width: min(520px, 100%); }
.payment-dialog-body { padding: 17px 22px 22px; }
.payment-demo-note { margin-top: 15px; padding: 12px 13px; display: grid; gap: 4px; border-left: 3px solid #d8a33b; background: #fff8e9; color: #725c2d; font-size: 10px; line-height: 1.45; }
.payment-demo-note strong { font-weight: 600; }
.payment-dialog footer { margin-top: 18px; display: flex; justify-content: flex-end; gap: 8px; }

@media (max-width: 900px) {
  .billing-grid { grid-template-columns: 1fr; }
  .billing-history-panel { grid-column: auto; }
  .billing-history-table { min-width: 680px; }
}

@media (max-width: 580px) {
  .trial-banner { align-items: stretch; flex-direction: column; }
  .trial-progress { width: 100%; }
  .billing-plan-body { grid-template-columns: 1fr; }
  .billing-site-row { grid-template-columns: 18px 35px 1fr; }
  .billing-site-row b { grid-column: 3; }
  .payment-dialog footer { flex-direction: column-reverse; }
  .payment-dialog footer .button { width: 100%; }
}

/* Public authorization layout */
.auth-site-header { position: sticky; top: 0; background: #fff; }
.auth-layout-page .auth-page { min-height: 650px; }
.auth-layout-page .auth-story { justify-content: center; padding: 72px clamp(48px, 5.4vw, 78px); }
.auth-layout-page .auth-quote { max-width: 440px; margin-top: 0; }
.auth-layout-page .auth-quote h1 { font-size: clamp(34px, 3.2vw, 42px); white-space: nowrap; }
.auth-layout-page .auth-form-wrap { align-items: center; padding: 82px clamp(54px, 7vw, 110px); }
.auth-layout-page .auth-form { width: min(460px, 100%); }
.auth-site-footer { padding: 28px 0; }

@media (max-width: 980px) {
  .auth-layout-page .auth-page { min-height: auto; }
  .auth-layout-page .auth-story { min-height: 380px; padding: 58px clamp(36px, 7vw, 74px); }
  .auth-layout-page .auth-quote { max-width: 560px; }
  .auth-layout-page .auth-form-wrap { padding: 64px clamp(30px, 8vw, 90px); }
}

@media (max-width: 680px) {
  .auth-layout-page .auth-quote h1 { white-space: normal; }
  .auth-layout-page .auth-story { min-height: 330px; padding: 46px 24px; }
  .auth-layout-page .auth-form-wrap { padding: 50px 24px; }
  .auth-site-footer .footer-inner { align-items: flex-start; flex-direction: column; }
}

/* Account profile */
.profile-content { max-width: 1260px; }
.profile-page .app-main { min-height: calc(100vh - 40px); display: flex; flex-direction: column; }
.dashboard-page .app-main { min-height: 100vh; display: flex; flex-direction: column; }
.profile-page-head { margin-bottom: 18px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); gap: 18px; }
.profile-grid .panel { overflow: hidden; }
.profile-grid .panel-head { min-height: 74px; padding: 14px 20px; }
.profile-grid .panel-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.profile-grid .panel-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.profile-form, .password-form { padding: 20px; }
.profile-avatar-row { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.profile-avatar { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: #17211d; color: #fff; font-size: 15px; font-weight: 600; }
.profile-avatar-row strong, .profile-avatar-row small { display: block; }
.profile-avatar-row strong { font-size: 13px; font-weight: 600; }
.profile-avatar-row small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.profile-form-grid, .password-form { display: grid; gap: 13px; }
.profile-form .field, .password-form .field { gap: 6px; }
.profile-form .field > span, .password-form .field > span { font-size: 11px; font-weight: 600; }
.profile-form .field input, .profile-form .field select, .password-form .field input { min-height: 43px; border-radius: 8px; font-size: 11px; }
.profile-form-actions { margin-top: 17px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.profile-form-actions span { color: var(--green-dark); font-size: 10px; }
.password-form-error { margin: -3px 0 0; color: #a13f3f; font-size: 10px; }
.profile-notifications-panel, .profile-sessions-panel { grid-column: 1 / -1; }
.profile-notification-list { padding: 4px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.profile-notification-list .setting-switch-row:nth-child(odd) { padding-right: 24px; border-right: 1px solid var(--line); }
.profile-notification-list .setting-switch-row:nth-last-child(-n+2) { border-bottom: 0; }
.profile-sessions-list { padding: 0 20px; }
.profile-session { min-height: 70px; display: grid; grid-template-columns: 38px 1fr auto auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }
.profile-session:last-child { border-bottom: 0; }
.session-device { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: #edf1ee; color: #46544d; font-size: 10px; font-weight: 600; }
.profile-session.current .session-device { background: #e4f2ea; color: var(--green-dark); }
.profile-session strong, .profile-session small { display: block; }
.profile-session strong { font-size: 11px; font-weight: 600; }
.profile-session small { margin-top: 3px; color: var(--muted); font-size: 9px; }
.profile-session time { color: var(--muted); font-size: 9px; }
.profile-session b { padding: 5px 7px; border-radius: 6px; background: #e4f2ea; color: var(--green-dark); font-size: 9px; font-weight: 500; }
.profile-session button { padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: #a13f3f; font: inherit; font-size: 9px; cursor: pointer; }
.app-footer { min-height: 76px; margin-top: auto; padding: 16px 30px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); background: #fff; color: var(--muted); font-size: 10px; }
.app-footer > div, .app-footer nav { display: flex; align-items: center; gap: 18px; }
.app-footer .brand { color: var(--ink); font-size: 11px; }
.app-footer .brand-mark { width: 28px; height: 28px; font-size: 8px; }
.app-footer nav a:hover { color: var(--green-dark); }

@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-notifications-panel, .profile-sessions-panel { grid-column: auto; }
}

@media (max-width: 620px) {
  .profile-notification-list { grid-template-columns: 1fr; }
  .profile-notification-list .setting-switch-row:nth-child(odd) { padding-right: 0; border-right: 0; }
  .profile-notification-list .setting-switch-row:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .profile-grid .panel-head { align-items: flex-start; flex-direction: column; }
  .profile-session { grid-template-columns: 38px 1fr auto; }
  .profile-session time { grid-column: 2; }
  .profile-session b, .profile-session button { grid-column: 3; grid-row: 1 / span 2; }
  .profile-form-actions { align-items: stretch; flex-direction: column; }
  .profile-form-actions .button { width: 100%; }
  .app-footer { align-items: flex-start; flex-direction: column; padding: 20px 16px; }
  .app-footer > div, .app-footer nav { flex-wrap: wrap; }
}

/* Product interface preview */
.interface-section { background: #f1f4f1; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.interface-section .section-lead { max-width: 780px; }
.interface-gallery { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 18px; align-items: stretch; }
.interface-shot { min-width: 0; margin: 0; padding: 10px; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.interface-shot img { width: 100%; min-height: 360px; flex: 1; display: block; object-fit: cover; object-position: top left; border: 1px solid #e1e6e2; border-radius: 6px; background: #eef2ef; }
.interface-shot:not(.interface-shot-wide) img { object-position: center; }
.interface-shot figcaption { padding: 12px 4px 3px; color: var(--muted); font-size: 12px; line-height: 1.45; }

.sites-loading { padding: 26px; color: var(--muted); font-size: 13px; text-align: center; }
.dashboard-empty { min-height: 174px; padding: 28px; display: grid; place-items: center; color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; }
.dashboard-table-empty { padding: 28px 16px; color: var(--muted); text-align: center; }
.hour-bars.empty span { height: 3%; background: #dfe6e1; }

@media (max-width: 980px) {
  .interface-gallery { grid-template-columns: 1fr; }
  .interface-shot img { min-height: 0; aspect-ratio: 16 / 9; }
}

@media (max-width: 680px) {
  .interface-gallery { margin-top: 22px; gap: 14px; }
  .interface-shot { padding: 7px; }
  .interface-shot figcaption { font-size: 11px; }
}

/* Botfighter professional minimalist theme */
:root {
  --ink: #1c2b25;
  --muted: #64716b;
  --paper: #f5f6f5;
  --surface: #ffffff;
  --surface-2: #eef2ef;
  --line: #dfe4e1;
  --night: #18251f;
  --night-2: #22342c;
  --green: #218461;
  --green-dark: #167756;
  --lime: #e5f3ec;
  --shadow: 0 1px 3px rgba(24, 47, 38, .07);
  --radius: 5px;
  --radius-sm: 5px;
}

html { background: var(--paper); }
body {
  color: var(--ink);
  background: var(--paper);
  font-size: 15px;
  line-height: 1.65;
}

h1, h2, h3 {
  letter-spacing: -.012em;
}

.container {
  width: min(1100px, calc(100% - 48px));
}

.demo-bar { display: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 246, 245, .96);
  border-bottom: 0;
  box-shadow: 0 1px 3px rgba(24, 47, 38, .07);
  backdrop-filter: blur(12px);
}

.header-inner {
  height: 68px;
  gap: 28px;
}

.brand {
  gap: 10px;
  font-weight: 650;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 5px;
}

.logo-mark {
  width: 40px;
}

.brand-text {
  font-size: 14px;
  line-height: 1.15;
}

.brand small,
.brand-text small {
  margin-top: 3px;
  color: #75817b;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .08em;
}

.main-nav {
  gap: 28px;
  color: #52605a;
  font-size: 13px;
}

.main-nav a,
.footer-links a,
.text-action,
.panel-link {
  transition: color .15s ease;
}

.main-nav a:hover,
.footer-links a:hover,
.text-action:hover,
.panel-link:hover {
  color: var(--green-dark);
}

.header-actions { gap: 8px; }

.button {
  min-height: 42px;
  padding: 0 20px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: none;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.button-sm {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 5px;
  font-size: 12px;
}

.button:hover { transform: none; }
.button-primary { background: var(--night); color: #fff; }
.button-primary:hover { background: #263a31; }
.button-green { background: var(--green-dark); color: #fff; }
.button-green:hover { background: #116747; }
.button-ghost { background: transparent; border: 1px solid var(--line); }
.button-ghost:hover, .button-soft:hover { border-color: #bcc8c2; background: #fff; }
.button-soft { background: #eef1ef; border: 1px solid transparent; }

.hero {
  padding: 80px 0 62px;
  overflow: visible;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 0;
}

.hero::before,
.hero::after { display: none; }

.hero-grid {
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 68px;
}

.eyebrow,
.section-kicker {
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .07em;
}

.hero h1 {
  max-width: 680px;
  margin: 17px 0 18px;
  color: var(--ink);
  font-size: clamp(42px, 5vw, 54px);
  font-weight: 680;
  line-height: 1.08;
  letter-spacing: -.025em;
  white-space: normal;
}

.hero h1 span { color: var(--green-dark); }

.hero-copy {
  max-width: 590px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-actions { margin-top: 31px; }

.hero-notes {
  gap: 16px 24px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 12px;
}

.hero-notes span::before { color: var(--green-dark); }

.signal-panel,
.panel,
.metric,
.feature-card,
.price-card,
.interface-shot,
.trial-banner,
.settings-mode-banner,
.event-verdict,
.sites-summary,
.site-card,
.exclusion-dialog {
  border-radius: 5px;
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}

.signal-panel { overflow: hidden; }

.signal-head {
  height: 54px;
  padding: 0 18px;
  color: var(--muted);
  border-bottom-color: var(--line);
  font-size: 11px;
}

.request-card {
  margin: 16px;
  padding: 16px;
  background: #f8f9f8;
  border-color: var(--line);
  border-radius: 5px;
}

.request-title { font-size: 13px; font-weight: 600; }
.request-meta { color: var(--muted); font-size: 11px; }
.request-line + .request-line { border-top-color: var(--line); }
.decision { padding: 0 16px 16px; }
.pill { border-radius: 4px; font-size: 10px; font-weight: 600; }

.trust-strip {
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-row {
  gap: 0;
  border: 0;
}

.trust-item {
  min-width: 0;
  padding: 23px 24px;
  border-right: 1px solid var(--line);
}

.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { padding-right: 0; border-right: 0; }
.trust-value { font-size: 20px; font-weight: 650; letter-spacing: -.01em; }
.trust-label { font-size: 12px; }

.section { padding: 76px 0; }

.section h2 {
  max-width: 760px;
  margin: 12px 0 14px;
  font-size: clamp(31px, 4vw, 40px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.02em;
  white-space: normal;
}

.section-lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.section-dark,
.interface-section {
  color: var(--ink);
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-dark .section-kicker { color: var(--green-dark); }
.section-dark .section-lead,
.section-dark .step p { color: var(--muted); }

.feature-grid {
  gap: 14px;
  margin-top: 36px;
}

.feature-card,
.feature-card.dark {
  min-height: 205px;
  padding: 22px;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.feature-number,
.dark .feature-number {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  color: var(--green-dark);
  background: #edf4f0;
  font-size: 11px;
  font-weight: 650;
}

.feature-card h3 {
  margin: 26px 0 8px;
  font-size: 17px;
  font-weight: 620;
}

.feature-card p,
.feature-card.dark p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.interface-gallery {
  margin-top: 28px;
  gap: 14px;
}

.interface-shot { padding: 8px; }
.interface-shot img { border-radius: 3px; border-color: #e4e8e5; }
.interface-shot figcaption { padding: 10px 3px 2px; font-size: 11px; }

.steps {
  margin-top: 38px;
  border-top-color: var(--line);
}

.step {
  grid-template-columns: 60px minmax(180px, .65fr) 1fr;
  padding: 23px 0;
  border-bottom-color: var(--line);
}

.step-index { color: var(--green-dark); font-size: 12px; }
.step h3 { color: var(--ink); font-size: 17px; font-weight: 620; }
.step p { font-size: 13px; }

.price-card {
  margin-top: 34px;
  overflow: hidden;
}

.price-copy,
.price-side { padding: 34px; }
.price-copy h3 { font-size: 24px; font-weight: 650; }
.price-side { background: #f1f6f3; }
.price { font-size: 41px; font-weight: 670; }
.check-list { font-size: 13px; }

.site-footer {
  padding: 28px 0;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-links { font-size: 12px; }

/* Authorization */
.auth-layout-page { background: var(--paper); }
.auth-layout-page .auth-page,
.auth-page {
  min-height: calc(100vh - 68px);
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}

.auth-story,
.auth-layout-page .auth-story {
  min-height: 560px;
  justify-content: center;
  padding: 64px clamp(42px, 6vw, 80px);
  color: var(--ink);
  background: #f5f6f5;
  border-right: 1px solid var(--line);
}

.auth-quote,
.auth-layout-page .auth-quote {
  max-width: 480px;
  margin: 0;
}

.auth-quote h1,
.auth-layout-page .auth-quote h1 {
  margin: 13px 0 18px;
  color: var(--ink);
  font-size: clamp(35px, 4vw, 44px);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -.02em;
  white-space: normal;
}

.auth-quote h1 span { color: var(--green-dark); }
.auth-quote p { color: var(--muted); font-size: 15px; }
.auth-proof { margin-top: 34px; color: var(--muted); font-size: 12px; }

.auth-form-wrap,
.auth-layout-page .auth-form-wrap {
  align-items: center;
  padding: 64px clamp(42px, 7vw, 90px);
  background: #fff;
}

.auth-form { width: min(420px, 100%); }
.auth-form h2 { font-size: 30px; font-weight: 650; letter-spacing: -.015em; white-space: normal; }
.auth-form > p { margin-bottom: 26px; font-size: 14px; }
.form-grid { gap: 15px; }
.field { gap: 6px; }
.field label { font-size: 12px; font-weight: 600; }
.field input,
.field select {
  min-height: 46px;
  border-radius: 5px;
  font-size: 14px;
}
.field input:focus,
.field select:focus {
  border-color: #78a894;
  box-shadow: 0 0 0 3px rgba(33, 132, 97, .09);
}
.checkbox,
.auth-bottom { font-size: 12px; }
.auth-site-footer { padding: 24px 0; }

/* Product interface */
.app-body { background: var(--paper); }
.app-shell {
  min-height: 100vh;
  grid-template-columns: 220px minmax(0, 1fr);
}

.sidebar,
.app-body .sidebar {
  top: 0;
  height: 100vh;
  padding: 20px 14px;
  color: var(--ink);
  background: #fff;
  border-right: 1px solid var(--line);
}

.sidebar .brand { padding: 0 7px 24px; }
.side-label {
  padding: 14px 9px 7px;
  color: #8a9590;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .09em;
}
.side-nav { gap: 3px; }
.side-nav a {
  min-height: 39px;
  padding: 0 10px;
  border-radius: 5px;
  color: #5f6b65;
  font-size: 13px;
}
.side-nav a:hover { color: var(--ink); background: #f4f6f4; }
.side-nav a.active { color: var(--green-dark); background: #edf4f0; }
.nav-icon { display: none; }
.account-mini {
  padding: 11px;
  border-radius: 5px;
  background: #fafbfa;
}
.avatar { width: 32px; height: 32px; border-radius: 4px; background: var(--night); color: #fff; font-size: 11px; }
.account-name { font-size: 12px; font-weight: 600; }
.account-plan { font-size: 10px; }

.app-main { min-width: 0; background: var(--paper); }
.app-topbar {
  height: 64px;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.breadcrumbs { font-size: 12px; }
.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 5px;
  background: #fff;
}
.app-content {
  width: min(1260px, 100%);
  padding: 28px;
}
.page-head { margin-bottom: 22px; }
.page-head h1,
.dashboard-head h1,
.setup-form h1 {
  color: var(--ink);
  font-size: 29px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.018em;
  white-space: normal;
}
.page-head p { margin-top: 6px; font-size: 13px; }

.panel,
.metric {
  border-radius: 5px;
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
}
.panel-head,
.dashboard-content .panel-head,
.compact-panel .panel-head {
  min-height: 58px;
  padding: 0 18px;
}
.panel-head h2,
.panel-head h3,
.dashboard-content .panel-head h2,
.dashboard-content .compact-panel .panel-head h2,
.dashboard-content .requests-panel .panel-head h2 {
  font-size: 14px;
  font-weight: 620;
  letter-spacing: -.006em;
}
.panel-body { padding: 18px; }
.panel-caption { font-size: 10px; }

.status-banner,
.mode-banner,
.settings-mode-banner {
  padding: 16px 17px;
  border-radius: 5px;
  box-shadow: var(--shadow);
}
.status-icon {
  width: 40px;
  height: 40px;
  border-radius: 5px;
  font-size: 16px;
}
.status-copy strong { font-size: 15px; font-weight: 620; }
.status-copy span { font-size: 12px; }

.metric-grid,
.analytics-grid,
.dashboard-grid,
.billing-grid,
.profile-grid,
.settings-grid { gap: 14px; }
.metric-grid { margin-bottom: 14px; }
.metric-grid-3 .metric,
.metric {
  min-height: 116px;
  padding: 16px 18px;
}
.metric-grid-3 .metric::after { display: none; }
.metric-top { font-size: 11px; }
.metric-value { margin-top: 7px; font-size: 27px; font-weight: 650; letter-spacing: -.015em; }
.metric-note { font-size: 10px; }

.traffic-panel,
.analytics-grid { margin-bottom: 14px; }
.chart-wrap-wide { height: 270px; }
.dashboard-content .panel { border-color: var(--line); }
.compact-panel { min-height: 230px; }
.geo-panel,
.behavior-panel {
  background: #fff;
  border-color: var(--line) !important;
}
.geo-panel .panel-head,
.behavior-panel .panel-head { border-bottom-color: var(--line); }
.rank-list { padding: 9px 16px 13px; }
.rank-row { font-size: 11px; }
.hour-chart { padding: 21px 18px 15px; }
.hour-bars span { background: #9fc9b7; }
.hour-bars span.peak { background: var(--green-dark); }
.requests-panel { border-left-color: var(--line) !important; }
.event-table { font-size: 12px; }
.event-table th {
  padding: 10px 13px;
  color: #76827c;
  background: #fafbfa;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .045em;
}
.event-table td { padding: 13px; }

.period-tabs,
.method label,
.connection-summary,
.form-message,
.ai-bot-group,
.custom-ai-list,
.payment-card-icon {
  border-radius: 5px;
}
.period-tab { min-height: 34px; font-size: 11px; }
.method label { padding: 14px; }
.method input:checked + label { box-shadow: 0 0 0 2px rgba(33, 132, 97, .08); }
.setup-panel { border-radius: 5px; }
.setup-form,
.setup-aside { padding: 30px; }
.setup-aside { color: var(--ink); background: #f1f4f2; }
.trial-banner { background: #f3f7f5; }
.billing-grid .panel-head,
.profile-grid .panel-head,
.settings-panel .panel-head { min-height: 68px; }
.app-footer { min-height: 68px; padding: 14px 28px; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .signal-panel { max-width: 620px; }
  .auth-layout-page .auth-page,
  .auth-page { grid-template-columns: 1fr; }
  .auth-story,
  .auth-layout-page .auth-story {
    min-height: 350px;
    padding: 52px clamp(30px, 7vw, 68px);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .auth-form-wrap,
  .auth-layout-page .auth-form-wrap { padding: 54px clamp(30px, 8vw, 80px); }
  .app-shell { grid-template-columns: 76px minmax(0, 1fr); }
  .sidebar { padding-inline: 10px; }
  .sidebar .brand { justify-content: center; padding-inline: 0; }
  .side-nav a { justify-content: center; padding: 0; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1100px); }
  .header-inner { height: 62px; gap: 12px; }
  .brand-text small { display: none; }
  .main-nav { display: none; }
  .header-actions .button-ghost { display: none; }
  .hero { padding: 54px 0 46px; }
  .hero h1 { font-size: 39px; }
  .hero-copy { font-size: 15px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .trust-row { grid-template-columns: 1fr 1fr; }
  .trust-item,
  .trust-item:first-child,
  .trust-item:last-child { padding: 18px 12px; border: 0; border-bottom: 1px solid var(--line); }
  .trust-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .trust-item:nth-last-child(-n+2) { border-bottom: 0; }
  .section { padding: 56px 0; }
  .section h2 { font-size: 30px; }
  .feature-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 34px 1fr; }
  .step p { grid-column: 2; }
  .price-copy,
  .price-side { padding: 25px; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .auth-story,
  .auth-layout-page .auth-story { min-height: 300px; padding: 42px 24px; }
  .auth-form-wrap,
  .auth-layout-page .auth-form-wrap { padding: 44px 24px; }
  .app-shell { display: block; }
  .sidebar { display: none; }
  .app-topbar { height: 58px; padding: 0 14px; }
  .app-content { padding: 20px 14px 72px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-head h1,
  .dashboard-head h1,
  .setup-form h1 { font-size: 26px; }
  .status-banner { align-items: flex-start; flex-wrap: wrap; }
  .status-actions { width: 100%; margin-left: 0; }
  .metric-grid,
  .dashboard-grid,
  .analytics-grid,
  .method-grid { grid-template-columns: 1fr; }
  .setup-form,
  .setup-aside { padding: 24px; }
}

/* Botfighter 1.3: ловушки и базовая защита */
.protection-settings-panel { grid-column: 1 / -1; }
.proxy-settings-panel { grid-column: 1 / -1; }
.proxy-mode-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proxy-mode-options label > span { min-height: 94px; }
.trusted-proxies-field { display: grid; gap: 7px; margin-top: 16px; }
.trusted-proxies-field[hidden] { display: none; }
.trusted-proxies-field textarea { width: 100%; resize: vertical; min-height: 92px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 12px; line-height: 1.5; }
.trusted-proxies-field textarea:focus { outline: 2px solid rgba(22,129,90,.14); border-color: #6ba38a; }
.trusted-proxies-field > small { color: var(--muted); font-size: 10px; }
.protection-settings-panel .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.protection-ready-badge { flex: 0 0 auto; padding: 6px 10px; color: #126c4e; background: #e7f4ed; border: 1px solid #c8e1d4; border-radius: 6px; font-size: 11px; font-weight: 600; }
.protection-ready-badge.needs-update { color: #956100; background: #fff6df; border-color: #ead5a2; }
.protection-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.protection-checks > div { min-height: 102px; display: flex; align-items: flex-start; gap: 13px; padding: 19px 20px; border-top: 1px solid var(--line); }
.protection-checks > div:nth-child(odd) { border-right: 1px solid var(--line); }
.protection-check-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; color: #137957; background: #eef6f2; border: 1px solid #cfe2d8; border-radius: 6px; font-size: 10px; font-weight: 700; }
.protection-checks strong, .protection-checks small { display: block; }
.protection-checks strong { margin: 1px 0 5px; font-size: 13px; font-weight: 600; }
.protection-checks small { max-width: 520px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.protection-mode-note { padding: 13px 20px; color: #53625b; background: #f6f8f7; border-top: 1px solid var(--line); font-size: 11px; }
.agent-health.offline > span { background: #d59a25; box-shadow: 0 0 0 4px #fff1d2; }

@media (max-width: 760px) {
  .protection-checks { grid-template-columns: 1fr; }
  .protection-checks > div:nth-child(odd) { border-right: 0; }
  .protection-settings-panel .panel-head { align-items: flex-start; }
  .proxy-mode-options { grid-template-columns: 1fr; }
}
