/* SERP Panel — monochrome visual system. */
:root {
  --ink: #191919;
  --muted: #737373;
  --line: #e5e5e5;
  --surface: #fff;
  --bg: #f7f7f7;
  --green: #171717;
  --lime: #f5f5f5;
  --soft: #f2f2f2;
}

body { background: var(--bg); color: var(--ink); }
.sidebar {
  background: #171717;
  color: #fafafa;
  border-right: 1px solid #171717;
  box-shadow: none;
}
.brand, .sidebar .brand { color: #fff; font-size: 23px; letter-spacing: -1.1px; }
.brand-icon { color: #171717; border-color: #fff; background: #fff; }
.brand-accent { color: inherit; margin-left: 4px; }
.brand small { color: #aaa; letter-spacing: 1.35px; }
.side-section { color: #777; }
.nav a { color: #b4b4b4; }
.nav a:hover { background: #2d2d2d; color: #fff; }
.nav a.active { background: #fff; color: #171717; box-shadow: none; }
.sidebar-bottom { border-top-color: #3a3a3a; }
.avatar { background: #fff; color: #222; }
.account strong { color: #fff; }
.account small, .logout { color: #aaa; }
.logout:hover { color: #fff; }

.topbar { border-bottom-color: #e7e7e7; color: #858585; }
.topbar-dot { color: #c7c7c7; }
.topbar-right { color: #545454; }
.status-dot { background: #444; }
.eyebrow { color: #6b6b6b; }
.breadcrumbs, .page-heading p, .date-cell { color: #858585; }
.breadcrumbs a:hover, .page-heading p a { color: #171717; }
.period { color: #777; }
.small-divider, .meta-divider { color: #c8c8c8; }

.btn.primary { background: #171717; color: #fff; box-shadow: none; }
.btn.primary:hover { background: #343434; }
.btn.ghost { border-color: #ddd; color: #444; }
.btn.danger-outline { color: #444; border-color: #d6d6d6; background: #fff; }
.panel, .stat-card, .form-card { border-color: #e5e5e5; box-shadow: none; }
.stat-label { color: #747474; }
.stat-label span { display: none; }
.stat-foot { color: #9c9c9c; }
.accent-card { background: #f0f0f0; border-color: #e2e2e2; }
.accent-card .stat-value { color: #171717; }
.panel-head { border-bottom-color: #ededed; }
.panel-count { background: #f3f3f3; color: #777; }
.project-item { border-bottom-color: #eee; }
.project-item:hover, tbody tr:hover { background: #fafafa; }
.project-monogram { background: #ededed; color: #262626; }
.project-info small, .project-detail small, .cell-sub { color: #a0a0a0; }
.project-arrow { color: #999; font-size: 16px; }
.bottom-tip, .bottom-tip > span, .bottom-tip strong { color: #777; }
.notice { color: #575757; background: #f1f1f1; border-color: #e3e3e3; }
.notice strong { color: #242424; }
.notice code, .info-note code { background: #e5e5e5; color: #262626; }
.alert-success { background: #f0f0f0; color: #333; border-color: #ddd; }
.alert-error { background: #f5f5f5; color: #444; border-color: #d0d0d0; }

th { background: #fafafa; color: #888; }
td { border-top-color: #eee; }
.keyword-link:hover, .result-cell a { color: #111; }
.rank { background: #242424; color: #fff; }
.rank.pending { background: #f2f2f2; color: #888; }
.rank.missing { background: #e8e8e8; color: #444; }
.rank.error { background: #dedede; color: #333; }
.row-actions button { color: #999; }
.row-actions button:hover { color: #111; }
.count, .panel-icon, .empty-symbol, .step { background: #ededed; color: #252525; }
.add-panel > p, .info-note p { color: #858585; }
.add-panel textarea, label input, label select { background: #fff; border-color: #ddd; color: #222; }
.add-panel textarea:focus, input:focus, select:focus { border-color: #444; box-shadow: 0 0 0 3px #00000014; }
.add-panel textarea::placeholder, label input::placeholder { color: #aaa; }
.textarea-foot, label small, .form-card-head p { color: #999; }
.info-note { background: #f5f5f5; color: #888; }
.info-note > span { color: #777; }
.empty-state p { color: #949494; }
.form-card-head, .form-footer { border-color: #ececec; }
.form-card-head h2, label { color: #333; }
.optional { color: #aaa; }
.bar { background: linear-gradient(#333, #888); }
.bar-muted { background: #e2e2e2; }
.history-bars { border-bottom-color: #e8e8e8; }
.chart-caption { color: #aaa; }
.period-tabs { background: #f1f1f1; }
.period-tabs a { color: #777; }
.period-tabs a.selected { color: #171717; box-shadow: 0 1px 4px #00000014; }

.auth-shell { background: #fff; }
.auth-aside { background: #191919; color: #fff; border-right: 1px solid #191919; }
.auth-aside:before { display: none; }
.auth-aside .brand { color: #fff; }
.auth-aside .brand-icon { color: #191919; }
.auth-aside h1 { color: #fff; letter-spacing: -2.4px; }
.auth-aside h1 em { color: #fff; text-decoration: underline; text-decoration-color: #777; text-underline-offset: 8px; }
.eyebrow.light { color: #bcbcbc; }
.auth-aside-content:before { content: ''; display: block; width: 48px; height: 3px; background: #fff; margin-bottom: 28px; }
.auth-aside-content > p { color: #b6b6b6; max-width: 370px; }
.auth-stat { color: #ddd; border-top-color: #454545; }
.auth-stat span:first-child, .auth-stat .arrow { color: #aaa; }
.auth-aside-footer { color: #888; }
.auth-main { background: #fff; }
.auth-box h2 { color: #191919; }
.auth-box > .muted, .auth-switch { color: #888; }
.auth-switch a { color: #111; }

/* Measurement charts use line weight and tone to distinguish series. */
.analytics-panel { margin-bottom: 18px; }
.dashboard-analytics { margin-top: 18px; }
.chart-body { padding: 22px 25px 19px; }
.svg-chart { width: 100%; overflow: hidden; }
.svg-chart svg { width: 100%; height: auto; display: block; min-height: 180px; }
.grid-line { stroke: #ececec; stroke-width: 1; }
.axis-text { fill: #999; font: 10px 'DM Sans', sans-serif; }
.series-line { fill: none; stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.series-10 { stroke: #191919; }
.series-50 { stroke: #aaa; stroke-dasharray: 6 4; }
.circle-10 { fill: #191919; stroke: #fff; stroke-width: 2; }
.circle-50 { fill: #aaa; stroke: #fff; stroke-width: 2; }
.chart-legend { display: flex; align-items: center; gap: 20px; color: #555; font-size: 11px; font-weight: 700; padding: 3px 5px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.chart-legend small { margin-left: auto; color: #999; font-size: 10px; font-weight: 500; text-align: right; }
.legend-line { display: inline-block; width: 17px; height: 3px; border-radius: 2px; }
.legend-10 { background: #191919; }

/* One restrained icon set for navigation, metrics and actions. */
.icon { width: 18px; height: 18px; display: inline-block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.brand-icon .icon { width: 22px; height: 22px; stroke-width: 2; }
.nav-icon { display: inline-flex; align-items: center; justify-content: center; }
.nav-icon .icon { width: 19px; height: 19px; }
.logout { display: inline-flex; align-items: center; justify-content: center; }
.logout .icon { width: 19px; height: 19px; }
.auth-stat .arrow .icon { width: 18px; height: 18px; }
.empty-symbol .icon { width: 25px; height: 25px; }
.stat-label .icon { width: 19px; height: 19px; color: #9c9c9c; }
.panel-icon .icon { width: 19px; height: 19px; }
.btn .icon { width: 17px; height: 17px; }
.row-actions .icon { width: 17px; height: 17px; }
.info-note > span .icon, .bottom-tip > span .icon { width: 20px; height: 20px; }
.project-arrow .icon { width: 18px; height: 18px; }
.step .icon { width: 19px; height: 19px; }
.legend-50 { background: #aaa; }
.chart-empty { text-align: center; padding: 40px 15px 43px; color: #888; }
.chart-empty > span { display: block; color: #777; font-size: 32px; line-height: 1; margin-bottom: 13px; }
.chart-empty strong { display: block; color: #333; font: 700 14px 'Manrope', sans-serif; }
.chart-empty p { margin: 6px auto 0; max-width: 320px; line-height: 1.5; font-size: 11px; }

@media (min-width: 701px) and (max-width: 1000px) {
  .sidebar { width: 76px; padding: 26px 9px 18px; }
  .sidebar .brand { padding: 0 11px; }
  .sidebar .brand > span:last-child { display: none; }
  .side-section { display: none; }
  .nav { margin-top: 66px; }
  .nav a { justify-content: center; font-size: 0; padding: 12px 0; }
  .nav-icon { width: auto; font-size: 22px; }
  .sidebar-bottom { justify-content: center; flex-direction: column; }
  .sidebar-bottom .account { display: none; }
}
@media (max-width: 700px) {
  .sidebar { border-right: 0; border-bottom: 1px solid #3a3a3a; }
  .auth-aside { border-right: 0; border-bottom: 1px solid #333; }
  .chart-body { padding: 15px 10px; }
  .chart-legend { flex-wrap: wrap; padding: 3px 12px; gap: 10px; }
  .chart-legend small { width: 100%; margin-left: 0; text-align: left; }
  .analytics-panel .panel-head { align-items: flex-start; flex-direction: column; }
}
