:root {
  color-scheme: dark;
  --bg: #071019;
  --sidebar: #09141f;
  --surface: #0d1b28;
  --surface-2: #112333;
  --surface-3: #162b3d;
  --line: #20384c;
  --line-soft: #172d3f;
  --text: #eaf2f8;
  --muted: #8ea5b7;
  --muted-2: #668095;
  --accent: #66e0bc;
  --accent-strong: #42c89f;
  --blue: #75aefb;
  --warning: #f5bb64;
  --danger: #ff7f8f;
  --purple: #ac92ff;
  --radius: 16px;
  --shadow: 0 18px 45px rgba(0, 0, 0, .18);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f1f6f8;
  --sidebar: #f8fbfc;
  --surface: #ffffff;
  --surface-2: #f5f9fb;
  --surface-3: #eaf2f5;
  --line: #b9ccd7;
  --line-soft: #d8e4ea;
  --text: #172b38;
  --muted: #4e6777;
  --muted-2: #647c8c;
  --accent: #087a63;
  --accent-strong: #066650;
  --blue: #1769aa;
  --warning: #965900;
  --danger: #b92d47;
  --purple: #6848b7;
  --shadow: 0 12px 34px rgba(39, 68, 84, .1);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; background: radial-gradient(circle at 70% -10%, rgba(41, 106, 119, .15), transparent 35%), var(--bg); color: var(--text); }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 250px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 24px 18px 18px; display: flex; flex-direction: column; border-right: 1px solid var(--line-soft); background: rgba(7, 17, 27, .96); }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 26px; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 11px; background: linear-gradient(145deg, var(--accent), #3aa4b6); color: #06140f; font-weight: 900; box-shadow: 0 8px 24px rgba(76, 211, 173, .2); }
.brand strong { display: block; font-size: 16px; letter-spacing: -.2px; }
.brand small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 11px; }
.primary-nav, .secondary-nav { display: grid; gap: 5px; }
.nav-link { padding: 11px 13px; display: flex; align-items: center; gap: 12px; border-radius: 11px; color: var(--muted); font-size: 14px; font-weight: 650; transition: .18s ease; }
.nav-icon { width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-link:hover { background: var(--surface); color: var(--text); }
.nav-link.active { background: linear-gradient(90deg, rgba(81, 213, 174, .15), rgba(81, 213, 174, .04)); color: var(--accent); }
.sidebar-spacer { flex: 1; }
.secondary-nav { padding-top: 16px; border-top: 1px solid var(--line-soft); }
.sidebar-footer { margin: 18px 8px 0; display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 11px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.workspace { min-width: 0; }
.topbar { height: 78px; padding: 0 clamp(22px, 3vw, 48px); display: flex; align-items: center; gap: 24px; border-bottom: 1px solid var(--line-soft); background: rgba(7, 16, 25, .76); backdrop-filter: blur(16px); }
.mobile-brand { display: none; align-items: center; gap: 10px; }
.client-switcher { display: flex; align-items: center; gap: 12px; }
.client-switcher label { color: var(--muted-2); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.client-switcher select, .action-form select, .action-form textarea, .filter-grid select { border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); outline: none; }
.client-switcher select { min-width: 225px; padding: 9px 34px 9px 12px; }
.user-menu { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #31536a; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-size: 13px; font-weight: 800; }
.user-avatar.small { width: 30px; height: 30px; }
.user-name { color: #c7d5df; font-size: 13px; }
.logout-button { padding: 7px 10px; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.logout-button:hover { color: var(--text); }
.theme-toggle { min-height: 36px; padding: 7px 10px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 700; transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease; }
.theme-toggle:hover { border-color: var(--accent); color: var(--text); transform: translateY(-1px); }
.theme-icon { width: 17px; height: 17px; flex: 0 0 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }

.page { width: auto; margin: 0; padding: 38px clamp(22px, 3vw, 48px) 70px; }
.page-heading { margin-bottom: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; }
.page-heading.narrow { max-width: 900px; }
.eyebrow, .panel-kicker { margin: 0 0 8px; color: var(--accent); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.08; letter-spacing: -.04em; }
h2 { margin: 0; font-size: 19px; letter-spacing: -.02em; }
h3 { margin: 0; }
.heading-copy { max-width: 670px; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.heading-actions, .form-actions { display: flex; align-items: center; gap: 10px; }
.button { min-height: 40px; padding: 10px 15px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; color: var(--text); font-size: 13px; font-weight: 750; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--accent); color: #041710; box-shadow: 0 8px 24px rgba(80, 213, 173, .13); }
.button.primary:hover { background: #7be8c7; }
.button.secondary { border-color: #315066; background: var(--surface-2); }
.button.secondary:hover { border-color: #4a6e86; }
.button.ghost { background: transparent; color: var(--muted); }
.button.full { width: 100%; }
.button.compact { min-height: 34px; padding: 7px 11px; font-size: 11px; }
.button:disabled { opacity: .38; cursor: not-allowed; transform: none; }
.text-link, .panel-heading > a { color: var(--accent); font-size: 12px; font-weight: 750; }

.metric-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(6, minmax(135px, 1fr)); gap: 12px; }
.period-switcher { width: fit-content; max-width: 100%; margin: -8px 0 20px; padding: 4px; display: flex; gap: 4px; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface); box-shadow: var(--shadow); scrollbar-width: none; -ms-overflow-style: none; }
.period-switcher::-webkit-scrollbar { display: none; }
.period-option { min-height: 36px; padding: 8px 13px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; color: var(--muted); font-size: 12px; font-weight: 750; white-space: nowrap; }
.period-option:hover { color: var(--text); background: var(--surface-2); }
.period-option.active { background: var(--accent); color: #041710; }
.period-option:focus-visible, .attention-item:focus-visible, .metric-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.overview-metric-grid { grid-template-columns: repeat(5, minmax(150px, 1fr)); }
.overview-metric-grid article.metric-card:hover { transform: none; border-color: var(--line-soft); }
.metric-card { min-height: 144px; padding: 18px; display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(150deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease; }
.metric-card:hover { transform: translateY(-2px); border-color: #35546a; }
.metric-card::before { content: ""; width: 28px; height: 3px; margin-bottom: 18px; border-radius: 4px; background: var(--blue); }
.metric-card.accent::before { background: var(--accent); }
.metric-card.negative::before { background: var(--danger); }
.metric-card.warning::before { background: var(--warning); }
.metric-card.response::before { background: var(--purple); }
.metric-card.success::before { background: #69d79c; }
.metric-label { color: #b8c9d5; font-size: 12px; font-weight: 650; }
.metric-card strong { margin-top: auto; font-size: 34px; line-height: 1; letter-spacing: -.05em; }
.metric-card small { margin-top: 7px; color: var(--muted-2); font-size: 10px; }

.review-analytics-section { margin: 28px 0 20px; }
.review-analytics-section .section-heading { margin-top: 0; }
.review-metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.review-metric-card { min-height: 150px; padding: 22px; display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17, 35, 51, .96), rgba(11, 25, 37, .96)); box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease; }
a.review-metric-card:hover { transform: translateY(-2px); border-color: #3d6579; }
.review-metric-card span { color: #b8c9d5; font-size: 12px; font-weight: 700; }
.review-metric-card strong { margin-top: auto; font-size: 36px; line-height: 1; letter-spacing: -.05em; }
.review-metric-card small { margin-top: 9px; color: var(--muted-2); font-size: 10px; }
.review-metric-card.response-rate strong { color: var(--accent); }
.review-metric-card.response-speed strong { color: var(--blue); }
.review-metric-card.unanswered strong { color: var(--danger); }
.unanswered-panel { margin-bottom: 20px; }
.compact-review-empty { min-height: 210px; }

.attention-panel { margin-bottom: 20px; overflow: hidden; }
.attention-list { display: grid; }
.attention-item { min-width: 0; padding: 16px 20px; display: grid; grid-template-columns: minmax(130px, .55fr) minmax(300px, 2fr) minmax(190px, auto); align-items: center; gap: 20px; border-bottom: 1px solid var(--line-soft); transition: background .15s ease; }
.attention-item:last-child { border-bottom: 0; }
.attention-item:hover { background: rgba(37, 69, 87, .17); }
.attention-meta, .attention-copy { min-width: 0; }
.attention-meta > strong, .attention-meta > span, .attention-copy > strong, .attention-copy > span { display: block; }
.attention-meta > strong { overflow: hidden; color: var(--text); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.attention-meta > span:not(.rating) { margin-top: 5px; color: var(--muted-2); font-size: 10px; }
.attention-meta .rating { margin-top: 7px; }
.attention-author { margin-bottom: 4px; color: var(--muted-2); font-size: 10px; }
.attention-copy > strong { font-size: 13px; line-height: 1.35; }
.attention-copy p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.attention-signals { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.badge.recommendation-reply { border-color: rgba(172, 146, 255, .18); background: rgba(172, 146, 255, .1); color: #c2b0ff; }
.badge.recommendation-check { border-color: rgba(245, 187, 100, .18); background: rgba(245, 187, 100, .1); }
.badge.recommendation-acknowledge { border-color: rgba(83, 209, 172, .18); background: rgba(83, 209, 172, .1); }
.attention-empty, .latest-empty { padding: 34px 20px; text-align: center; }
.attention-empty strong, .latest-empty strong { font-size: 14px; }
.attention-empty p, .latest-empty p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }

.dashboard-grid { margin-bottom: 20px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(320px, .8fr); gap: 20px; }
.panel { border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(13, 27, 40, .9); box-shadow: var(--shadow); }
.panel-heading { min-height: 64px; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line-soft); }
.panel-heading .panel-kicker { margin-bottom: 5px; }
.panel-total { font-size: 25px; }
.panel-total small { display: block; color: var(--muted-2); font-size: 9px; font-weight: 600; text-align: right; }
.bar-chart { height: 235px; padding: 26px 20px 18px; display: grid; grid-template-columns: repeat(var(--trend-points, 1), minmax(24px, 1fr)); align-items: end; gap: 8px; overflow-x: auto; }
.bar-column { height: 100%; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 7px; }
.bar { width: min(24px, 72%); min-height: 7px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--accent), #2f8f86); transition: height .3s ease; }
.bar-value { height: 12px; color: #bcd0dd; font-size: 9px; }
.bar-column small { color: var(--muted-2); font-size: 10px; transform: rotate(-35deg); transform-origin: center; }
.overview-trend-panel { margin-bottom: 20px; overflow: hidden; }
.trend-summary { text-align: right; }
.trend-summary strong, .trend-summary span { display: block; }
.trend-summary strong { font-size: 25px; }
.trend-summary span { margin-top: 2px; color: var(--muted-2); font-size: 10px; }
.trend-legend { padding: 12px 20px 0; display: flex; justify-content: flex-end; gap: 18px; color: var(--muted); font-size: 10px; }
.trend-legend span { display: inline-flex; align-items: center; gap: 6px; }
.trend-legend i { width: 9px; height: 9px; display: block; border-radius: 3px; }
.legend-total { background: var(--accent); }
.legend-negative { background: var(--danger); }
.overview-chart { height: 255px; padding-top: 12px; }
.trend-bars { width: 100%; min-height: 7px; flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 3px; }
.trend-bars .bar { width: min(18px, 36%); display: block; }
.trend-bars .bar-total { background: linear-gradient(180deg, var(--accent), #2f8f86); }
.trend-bars .bar-negative { background: linear-gradient(180deg, var(--danger), #b43e56); }
.overview-latest-table { min-width: 980px; }
.latest-author { margin-top: 3px; display: block; color: var(--muted-2); font-size: 10px; }
.trend-empty { min-height: 190px; padding: 34px 20px; display: grid; align-content: center; justify-items: center; text-align: center; }
.trend-empty strong { font-size: 14px; }
.trend-empty p { margin: 7px 0 0; color: var(--muted); font-size: 11px; }

/* Reputation analytics */
.analytics-heading { margin-bottom: 18px; }
.analytics-period-row { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.analytics-period-row .period-switcher { margin: 0; }
.analytics-period-row > p { margin: 0; color: var(--muted-2); font-size: 11px; text-align: right; }
.analytics-kpi-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(5, minmax(150px, 1fr)); gap: 12px; }
.analytics-kpi { min-height: 142px; padding: 18px; display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(150deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.analytics-kpi::before { content: ""; width: 28px; height: 3px; margin-bottom: 16px; border-radius: 5px; background: var(--blue); }
.analytics-kpi-reviews::before { background: var(--purple); }
.analytics-kpi-negative::before, .analytics-kpi-unanswered::before { background: var(--danger); }
.analytics-kpi-rating::before { background: var(--warning); }
.analytics-kpi > span { color: #b8c9d5; font-size: 12px; font-weight: 700; }
.analytics-kpi > strong { margin-top: auto; font-size: 31px; line-height: 1; letter-spacing: -.04em; }
.analytics-kpi > div { margin-top: 9px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.analytics-kpi small { color: var(--muted-2); font-size: 10px; }
.delta { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; background: var(--surface-3); color: var(--muted); font-size: 9px; font-style: normal; font-weight: 800; }
.delta-good { background: rgba(102, 224, 188, .11); color: var(--accent); }
.delta-bad { background: rgba(255, 127, 143, .11); color: var(--danger); }
.analytics-sentiment-panel, .analytics-platform-panel, .analytics-topic-panel, .analytics-important-panel { margin-bottom: 20px; overflow: hidden; }
.analytics-panel-note { max-width: 420px; color: var(--muted-2); font-size: 10px; font-weight: 600; text-align: right; }
.analytics-panel-total { font-size: 27px; }
.analytics-legend { padding: 13px 20px 0; display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 10px; }
.analytics-legend span { display: inline-flex; align-items: center; gap: 6px; }
.analytics-legend i { width: 9px; height: 9px; display: block; border-radius: 3px; }
.sentiment-positive-color { background: var(--accent); }
.sentiment-neutral-color { background: var(--blue); }
.sentiment-negative-color { background: var(--danger); }
.sentiment-chart { height: 270px; padding: 22px 18px 18px; display: grid; grid-template-columns: repeat(var(--trend-points, 1), minmax(24px, 1fr)); align-items: end; gap: 7px; overflow-x: auto; }
.sentiment-column { height: 100%; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.sentiment-column > small { min-height: 12px; color: var(--muted-2); font-size: 10px; transform: rotate(-35deg); transform-origin: center; }
.sentiment-bars { width: 100%; min-height: 7px; flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.sentiment-bar { position: relative; width: min(16px, 30%); min-height: 6px; display: block; border-radius: 5px 5px 2px 2px; }
.sentiment-bar span { position: absolute; left: 50%; top: -14px; color: var(--muted); font-size: 8px; font-style: normal; transform: translateX(-50%); }
.analytics-two-column { margin-bottom: 20px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 20px; }
.analytics-review-panel, .analytics-types-panel { overflow: hidden; }
.review-summary-grid { padding: 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.review-summary-grid > div { padding: 16px; display: flex; flex-direction: column; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--surface-2); }
.review-summary-grid span { color: var(--muted); font-size: 11px; }
.review-summary-grid strong { margin-top: 13px; font-size: 25px; }
.review-summary-grid small { margin-top: 5px; color: var(--muted-2); font-size: 10px; }
.rating-distribution { padding: 2px 20px 20px; display: grid; gap: 9px; }
.rating-distribution > div { display: grid; grid-template-columns: 42px minmax(80px, 1fr) 28px; align-items: center; gap: 10px; }
.rating-distribution span, .rating-distribution strong { font-size: 11px; }
.rating-distribution strong { text-align: right; }
.rating-distribution i, .analytics-type-list i { height: 8px; display: block; overflow: hidden; border-radius: 999px; background: var(--surface-3); }
.rating-distribution b, .analytics-type-list b { height: 100%; display: block; border-radius: inherit; background: linear-gradient(90deg, var(--warning), #df8d2c); }
.analytics-footnote { margin: -6px 20px 20px; color: var(--muted-2); font-size: 10px; }
.analytics-type-list { padding: 20px; display: grid; gap: 17px; }
.analytics-type-list > div { display: grid; grid-template-columns: minmax(90px, .75fr) minmax(80px, 1fr) 32px 36px; align-items: center; gap: 10px; }
.analytics-type-list span { font-size: 11px; font-weight: 700; }
.analytics-type-list strong, .analytics-type-list small { font-size: 10px; text-align: right; }
.analytics-type-list small { color: var(--muted-2); }
.analytics-type-list b { background: linear-gradient(90deg, var(--accent), #2f8f86); }
.analytics-platform-table { min-width: 760px; }
.analytics-platform-table th:not(:first-child), .analytics-platform-table td:not(:first-child) { text-align: right; }
.analytics-topic-list { padding: 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.analytics-topic-list > div { min-width: 0; padding: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--line-soft); border-radius: 11px; background: var(--surface-2); }
.analytics-topic-list span { min-width: 0; color: var(--muted); font-size: 11px; line-height: 1.35; }
.analytics-topic-list strong { color: var(--accent); font-size: 16px; }
.analytics-important-list { display: grid; }
.analytics-important-list > a { min-width: 0; padding: 16px 20px; display: grid; grid-template-columns: minmax(120px, .5fr) minmax(300px, 2fr) minmax(150px, auto); align-items: center; gap: 18px; border-bottom: 1px solid var(--line-soft); transition: background .15s ease; }
.analytics-important-list > a:last-child { border-bottom: 0; }
.analytics-important-list > a:hover { background: rgba(37, 69, 87, .17); }
.analytics-important-list > a > div { min-width: 0; }
.analytics-important-list > a > div:first-child strong, .analytics-important-list > a > div:first-child span { display: block; }
.analytics-important-list > a > div:first-child strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.analytics-important-list > a > div:first-child span { margin-top: 4px; color: var(--muted-2); font-size: 10px; }
.analytics-important-list > a > div:nth-child(2) strong { font-size: 12px; overflow-wrap: anywhere; white-space: normal; }
.analytics-important-list p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.analytics-important-list > a > div:last-child { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; }
.analytics-empty { min-height: 150px; padding: 28px 20px; display: grid; align-content: center; justify-items: center; text-align: center; }
.analytics-empty strong { font-size: 13px; }
.analytics-empty p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.analytics-page-empty { min-height: 260px; margin-bottom: 20px; }
.latest-panel { margin-bottom: 20px; }
.monitoring-compact { padding: 17px 20px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.monitoring-compact .panel-kicker { margin-bottom: 4px; }
.monitoring-compact strong, .monitoring-compact small { display: block; }
.monitoring-compact strong { font-size: 14px; }
.monitoring-compact small { margin-top: 4px; color: var(--muted-2); font-size: 10px; }
.source-mini-list { padding: 8px 16px 15px; }
.source-mini { padding: 12px 4px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 11px; border-bottom: 1px solid var(--line-soft); }
.source-mini:last-child { border-bottom: 0; }
.source-mini strong, .source-mini small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-mini strong { font-size: 12px; }
.source-mini small { margin-top: 3px; color: var(--muted-2); font-size: 10px; }
.source-icon, .client-monogram { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; background: #163548; color: #86d8e7; font-weight: 800; }
.source-icon.large { width: 44px; height: 44px; font-size: 18px; }
.health-chip { padding: 5px 8px; border-radius: 99px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.health-chip.ok { background: rgba(74, 208, 157, .12); color: var(--accent); }
.health-chip.paused { background: rgba(245, 187, 100, .12); color: var(--warning); }
.compact-empty { padding: 28px 8px; }
.compact-empty p { margin: 8px 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.table-panel { overflow: hidden; }
.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(17, 35, 51, .72); color: var(--muted-2); font-size: 9px; text-align: left; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
.data-table td { padding: 13px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: rgba(37, 69, 87, .17); }
.data-table strong, .data-table small { display: block; }
.data-table strong { color: #dce8f0; font-size: 11px; }
.data-table small { margin-top: 4px; color: var(--muted-2); font-size: 9px; line-height: 1.35; }
.row-link { font-variant-numeric: tabular-nums; }
.mention-copy { min-width: 250px; max-width: 440px; }
.badge { display: inline-flex; padding: 5px 8px; border: 1px solid transparent; border-radius: 99px; font-size: 9px; font-weight: 750; white-space: nowrap; }
.sentiment-positive, .priority-low, .status-closed, .status-no_action_required, .status-published_manually { background: rgba(80, 210, 159, .1); color: #79dfb8; border-color: rgba(80, 210, 159, .15); }
.sentiment-negative, .priority-critical, .status-needs_attention { background: rgba(255, 100, 123, .1); color: #ff97a5; border-color: rgba(255, 100, 123, .16); }
.sentiment-neutral, .sentiment-unknown, .priority-normal, .status-new, .status-pending_analysis { background: rgba(117, 174, 251, .1); color: #99c3ff; border-color: rgba(117, 174, 251, .16); }
.sentiment-mixed, .priority-high, .status-response_drafted, .status-response_approved { background: rgba(245, 187, 100, .1); color: #f7c982; border-color: rgba(245, 187, 100, .16); }
.status-analyzed, .status-informational { background: rgba(172, 146, 255, .1); color: #bba6ff; border-color: rgba(172, 146, 255, .16); }
.status-irrelevant, .status-duplicate { background: rgba(142, 165, 183, .1); color: #aebdca; border-color: rgba(142, 165, 183, .14); }
.rating { display: inline-flex !important; align-items: center; gap: 5px; color: var(--warning); font-size: 13px; font-weight: 850; white-space: nowrap; }
.rating-star { font-size: 1.45em; line-height: .8; text-shadow: 0 0 14px currentColor; }
.rating-good { color: var(--accent); }
.rating-medium { color: var(--warning); }
.rating-bad { color: var(--danger); }
.rating.large { gap: 7px; font-size: 20px; }
.muted-note { color: var(--muted-2); font-size: 11px; }

.empty-state { min-height: 270px; padding: 42px 24px; display: grid; place-items: center; align-content: center; text-align: center; }
.empty-state.standalone { min-height: 430px; border: 1px dashed #294359; border-radius: var(--radius); background: rgba(13, 27, 40, .55); }
.empty-state h1, .empty-state h2, .empty-state h3 { margin-top: 8px; }
.empty-state p { max-width: 470px; margin: 10px auto 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.empty-symbol { color: var(--accent); font-size: 32px; }

.client-card-grid, .source-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.client-card, .source-card { min-height: 235px; padding: 22px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: linear-gradient(145deg, var(--surface-2), var(--surface)); box-shadow: var(--shadow); }
.client-card { transition: transform .18s ease, border-color .18s ease; }
.client-card:hover, .client-card.selected { border-color: #3d6c76; transform: translateY(-2px); }
.client-card-head, .source-card-head { display: flex; align-items: center; justify-content: space-between; }
.client-monogram { width: 44px; height: 44px; border-radius: 12px; background: linear-gradient(145deg, #1b534e, #173a4c); color: var(--accent); font-size: 18px; }
.client-card h2, .source-card h2 { margin-top: 24px; font-size: 20px; }
.client-card p, .source-card p { color: var(--muted); font-size: 12px; }
.client-stats { margin-top: 26px; padding-top: 17px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-top: 1px solid var(--line-soft); color: var(--muted-2); font-size: 9px; }
.client-stats strong { display: block; margin-bottom: 3px; color: var(--text); font-size: 16px; }
.client-card-link { margin-top: 18px; display: block; color: var(--accent); font-size: 11px; font-weight: 750; }
.source-url { display: block; color: var(--blue); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.source-meta { margin: 24px 0 0; padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--line-soft); }
.source-meta dt { color: var(--muted-2); font-size: 9px; }
.source-meta dd { margin: 5px 0 0; font-size: 11px; }
.source-meta .wide { grid-column: 1 / -1; }
.source-card form { margin-top: 16px; }
.source-actions { display: grid; gap: 10px; margin-top: 16px; }
.source-actions form { margin-top: 0; }
.monitoring-summary { margin-bottom: 28px; padding: 18px 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(13, 27, 40, .72); }
.monitoring-summary > div { padding-right: 18px; border-right: 1px solid var(--line-soft); }
.monitoring-summary > div:last-child { border-right: 0; }
.monitoring-summary strong, .monitoring-summary span { display: block; }
.monitoring-summary strong { font-size: 25px; }
.monitoring-summary span { margin-top: 4px; color: var(--muted-2); font-size: 10px; }
.notification-settings-panel { margin-bottom: 28px; padding: 22px; }
.notification-settings-panel > .panel-heading { min-height: 0; padding: 0 0 16px; border-bottom: 0; }
.notification-settings-copy { max-width: 720px; margin: 0 0 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.notification-settings-grid { display: grid; grid-template-columns: minmax(240px, .7fr) 1.3fr; gap: 18px 22px; }
.notification-settings-grid .wide { grid-column: 1 / -1; }
.notification-toggle-list { display: flex; flex-wrap: wrap; align-content: start; gap: 10px; padding-top: 22px; }
.notification-toggle { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #091723; color: #bdced9; font-size: 10px; cursor: pointer; }
.notification-toggle input { width: 17px; min-height: 17px; accent-color: var(--accent); }
.notification-platform-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px; }
.notification-platform-grid > div label { min-height: 42px; display: flex; align-items: center; gap: 8px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: #091723; color: #bdced9; cursor: pointer; }
.notification-platform-grid input { accent-color: var(--accent); }
.notification-platform-grid > div:has(input:checked) label { border-color: #4c8c87; background: rgba(83, 209, 172, .1); color: var(--accent); }
.notification-settings-panel .form-actions { margin-top: 18px; justify-content: flex-end; }
.section-heading { margin: 30px 0 14px; display: flex; align-items: flex-end; justify-content: space-between; }
.query-table-panel { margin: 30px 0 20px; overflow: hidden; }
.published-response-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.published-response-card { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--line-soft); border-radius: 14px; background: linear-gradient(145deg, #102333, #0b1824); color: var(--text); }
.published-response-card:hover { border-color: #3d6c76; }
.published-response-head { display: flex; justify-content: space-between; gap: 12px; color: var(--muted-2); font-size: 10px; }
.published-response-card > strong { font-size: 12px; }
.published-response-card .review-preview { margin: 0; color: #b8c9d4; font-size: 11px; line-height: 1.55; }
.company-answer-preview { padding: 12px; border-left: 2px solid var(--accent); border-radius: 0 9px 9px 0; background: rgba(83, 209, 172, .06); }
.company-answer-preview span { color: var(--accent); font-size: 9px; font-weight: 750; }
.company-answer-preview p { margin: 6px 0 0; color: #d2e1e8; font-size: 10px; line-height: 1.55; }
.published-response-card > small { color: var(--muted-2); font-size: 9px; }

.filter-panel, .form-panel { margin-bottom: 20px; padding: 20px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: rgba(13, 27, 40, .86); box-shadow: var(--shadow); }
.search-field { display: grid; grid-template-columns: 1fr auto; }
.search-field input { min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: #091723; color: var(--text); outline: 0; }
.search-field button { padding: 0 18px; border: 1px solid #3c6b70; border-radius: 0 10px 10px 0; background: rgba(79, 199, 169, .12); color: var(--accent); font-weight: 750; }
.filter-grid { margin-top: 16px; display: grid; grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); gap: 10px; align-items: end; }
.filter-grid label, .action-form label { display: grid; gap: 6px; color: var(--muted-2); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.filter-grid select, .action-form select, .action-form textarea { width: 100%; padding: 9px; color: #dbe8f0; font-size: 11px; text-transform: none; letter-spacing: 0; }
.filter-actions { min-height: 40px; grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-start; gap: 12px; }
.quality-summary { margin: -6px 0 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; color: var(--muted-2); font-size: 11px; }
.quality-summary a { color: var(--accent); }
.quality-summary small { margin-left: auto; color: var(--muted-2); font-size: 10px; }
.mentions-table-panel .data-table { min-width: 980px; }
.mentions-table { table-layout: fixed; }
.mentions-table th:nth-child(1), .mentions-table td:nth-child(1) { width: 120px; }
.mentions-table th:nth-child(2), .mentions-table td:nth-child(2) { width: 165px; }
.mentions-table th:nth-child(4), .mentions-table td:nth-child(4) { width: 155px; }
.mentions-table th:nth-child(5), .mentions-table td:nth-child(5) { width: 130px; }
.mentions-table th:nth-child(6), .mentions-table td:nth-child(6) { width: 120px; }
.mentions-table th:nth-child(7), .mentions-table td:nth-child(7) { width: 130px; }
.mentions-table .mention-copy { min-width: 0; max-width: none; }
.clickable-row { cursor: pointer; }
.mention-source-cell .rating { margin-top: 8px; font-size: 13px; }
.mention-excerpt { color: #aebfca !important; font-size: 10px !important; line-height: 1.5 !important; overflow-wrap: anywhere; }
.mention-classification-cell span, .mention-classification-cell strong { display: block; }
.mention-classification-cell span { color: var(--muted-2); font-size: 10px; }
.mention-classification-cell strong { margin-top: 6px; font-size: 11px; }
.recommendation-reply { color: var(--danger); }
.recommendation-check { color: var(--warning); }
.recommendation-acknowledge { color: var(--accent); }
.processing-new { color: #8ebdff; background: rgba(117, 174, 251, .1); border-color: rgba(117, 174, 251, .18); }
.processing-in_progress { color: #d3baff; background: rgba(172, 146, 255, .1); border-color: rgba(172, 146, 255, .18); }
.processing-processed { color: var(--accent); background: rgba(83, 209, 172, .1); border-color: rgba(83, 209, 172, .18); }
.page-size-form label { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 10px; }
.page-size-form select { min-height: 34px; padding: 6px 28px 6px 9px; border: 1px solid var(--line); border-radius: 8px; background: #091723; color: var(--text); }
.pagination { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 11px; }
.pagination-pages { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.pagination-number, .pagination-arrow, .pagination-ellipsis { min-width: 34px; height: 34px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; color: var(--accent); font-size: 12px; font-weight: 750; }
.pagination-number:hover, .pagination-arrow:hover { border-color: #4c8c87; background: rgba(83, 209, 172, .08); }
.pagination-number.current { border-color: var(--accent); background: var(--accent); color: #041710; }
.pagination-ellipsis { min-width: 22px; padding: 0; border-color: transparent; color: var(--muted-2); }

.users-table { min-width: 900px; }
.users-table th:last-child, .users-table td:last-child { width: 120px; text-align: right; }
.role-chip { display: inline-flex; padding: 6px 9px; border: 1px solid rgba(117, 174, 251, .18); border-radius: 99px; background: rgba(117, 174, 251, .1); color: #99c3ff; font-size: 10px; font-weight: 750; white-space: nowrap; }
.role-chip.administrator { border-color: rgba(172, 146, 255, .2); background: rgba(172, 146, 255, .1); color: #c0adff; }
.role-chip.client { border-color: rgba(102, 224, 188, .18); background: rgba(102, 224, 188, .08); color: var(--accent); }
.user-management-form { max-width: 1050px; }

.form-panel { max-width: 900px; padding: 28px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-field { display: grid; align-content: start; gap: 7px; }
.form-field.wide { grid-column: 1 / -1; }
.form-field label { color: #bdced9; font-size: 11px; font-weight: 750; }
.form-field label span { color: var(--danger); }
.form-field small { color: var(--muted-2); font-size: 9px; line-height: 1.4; }
.form-control { width: 100%; min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #091723; color: var(--text); outline: none; }
.form-control:focus { border-color: #4c8c87; box-shadow: 0 0 0 3px rgba(83, 209, 172, .08); }
textarea.form-control { resize: vertical; line-height: 1.6; }
input[type="checkbox"].form-control { width: 20px; min-height: 20px; }
.schedule-choice-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(82px, 1fr)); gap: 8px; }
.schedule-choice-grid > div label { min-height: 42px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: #091723; color: #bdced9; cursor: pointer; }
.schedule-choice-grid input { accent-color: var(--accent); }
.schedule-choice-grid > div:has(input:checked) label { border-color: #4c8c87; background: rgba(83, 209, 172, .1); color: var(--accent); }
.errorlist { margin: 0; padding: 0; list-style: none; color: var(--danger); font-size: 10px; }
.form-panel .form-actions { margin-top: 28px; padding-top: 20px; justify-content: flex-end; border-top: 1px solid var(--line-soft); }

.detail-breadcrumb { margin-bottom: 20px; display: flex; justify-content: space-between; color: var(--muted-2); font-size: 11px; }
.detail-breadcrumb a { color: var(--accent); }
.detail-heading { margin-bottom: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.detail-heading h1 { margin-top: 13px; font-size: clamp(26px, 3vw, 38px); }
.detail-heading p { margin: 9px 0 0; color: var(--muted); font-size: 12px; }
.detail-heading .duplicate-notice { color: var(--warning); }
.duplicate-notice a { color: var(--accent); font-weight: 750; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 7px; }
.badge.neutral { background: rgba(117, 174, 251, .1); color: #99c3ff; border-color: rgba(117, 174, 251, .16); }
.detail-layout { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 20px; }
.detail-main, .detail-sidebar { min-width: 0; }
.detail-main { display: grid; gap: 20px; }
.detail-main > .panel, .detail-sidebar > .panel { overflow: hidden; }
.content-panel, .analysis-panel, .response-panel, .history-panel, .sticky-panel { min-width: 0; padding-bottom: 20px; }
.detail-layout .panel-heading, .detail-layout .panel-heading > div { min-width: 0; }
.author-line { padding: 20px 24px 0; display: flex; align-items: center; gap: 10px; }
.author-line strong, .author-line small { display: block; }
.author-line strong { font-size: 12px; }
.author-line small { margin-top: 3px; color: var(--muted-2); font-size: 10px; }
.material-url { margin: 18px 24px 0; padding: 12px 14px; display: grid; grid-template-columns: 130px minmax(0, 1fr); align-items: start; gap: 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: #0a1722; }
.material-url span { color: var(--muted-2); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.material-url a { min-width: 0; color: var(--accent); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.original-text { padding: 24px; color: #d6e2e9; font-size: 14px; line-height: 1.8; }
.published-company-response { margin: 0 24px 4px; padding: 18px; border: 1px solid rgba(83, 209, 172, .22); border-radius: 12px; background: rgba(83, 209, 172, .06); }
.published-company-response > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.published-company-response strong { color: var(--accent); font-size: 12px; }
.published-company-response small { color: var(--muted-2); font-size: 9px; }
.published-company-response p { margin: 12px 0 0; color: #d5e4ea; font-size: 12px; line-height: 1.7; }
.material-screenshot { margin: 22px 24px 4px; padding-top: 20px; border-top: 1px solid var(--line-soft); }
.material-screenshot-heading { margin-bottom: 14px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.material-screenshot-heading h3 { margin: 4px 0 0; font-size: 16px; }
.material-screenshot-heading small { color: var(--muted-2); font-size: 9px; }
.screenshot-preview { position: relative; display: block; overflow: hidden; border: 1px solid #29475b; border-radius: 13px; background: #07121b; }
.screenshot-preview::after { content: "Открыть снимок"; position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 8px; background: rgba(5, 15, 23, .82); color: #e6f0f5; font-size: 9px; font-weight: 750; opacity: 0; transition: opacity .15s ease; }
.screenshot-preview:hover::after { opacity: 1; }
.screenshot-preview img { width: 100%; max-height: 560px; aspect-ratio: 1.44; display: block; object-fit: cover; object-position: top center; }
.screenshot-state { min-height: 120px; padding: 22px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 1px dashed #2a465b; border-radius: 12px; background: rgba(9, 23, 35, .55); text-align: left; }
.screenshot-state strong { font-size: 11px; }
.screenshot-state p { margin: 5px 0 0; color: var(--muted-2); font-size: 10px; }
.screenshot-state.failed { display: grid; justify-items: start; }
.screenshot-state.blocked { display: grid; justify-items: start; border-color: rgba(248, 184, 75, .38); background: rgba(248, 184, 75, .05); }
.screenshot-state.blocked strong { color: var(--warning); }
.screenshot-state.failed form { margin-top: 5px; }
.screenshot-loader { width: 22px; height: 22px; flex: 0 0 22px; border: 2px solid #29475b; border-top-color: var(--accent); border-radius: 50%; animation: screenshot-spin .9s linear infinite; }
@keyframes screenshot-spin { to { transform: rotate(360deg); } }
.published-answer-chip { width: fit-content; margin-top: 6px; padding: 4px 7px; border-radius: 99px; background: rgba(83, 209, 172, .1); color: var(--accent); font-size: 8px; font-weight: 750; }
.analysis-grid { padding: 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ai-recommendation { margin: 20px 20px 0; padding: 18px; border: 1px solid var(--line-soft); border-radius: 12px; background: rgba(9, 23, 35, .72); }
.ai-recommendation span { color: var(--muted-2); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.ai-recommendation strong { display: block; margin-top: 6px; font-size: 20px; }
.ai-recommendation p { margin: 9px 0 0; color: #c8d6df; font-size: 12px; line-height: 1.65; }
.analysis-grid > div { padding: 14px; border: 1px solid var(--line-soft); border-radius: 11px; background: #0a1722; }
.analysis-grid span, .analysis-grid strong { display: block; }
.analysis-grid span { color: var(--muted-2); font-size: 9px; }
.analysis-grid strong { margin-top: 7px; font-size: 11px; }
.coming-chip { padding: 5px 8px; border-radius: 99px; background: rgba(172, 146, 255, .1); color: #baa4ff; font-size: 9px; font-weight: 750; }
.coming-chip.muted { color: var(--muted-2); background: rgba(113, 139, 157, .1); }
.coming-chip.analysis-completed, .coming-chip.draft-approved { color: var(--accent); background: rgba(83, 209, 172, .1); }
.coming-chip.analysis-failed, .coming-chip.draft-rejected { color: var(--danger); background: rgba(241, 106, 118, .1); }
.placeholder-block { margin: 0 20px; padding: 17px; border: 1px dashed #2a465b; border-radius: 11px; background: rgba(9, 23, 35, .55); }
.response-panel > .panel-heading { border-bottom: 0; }
.response-panel > .placeholder-block { border: 0; background: transparent; }
.placeholder-block strong { font-size: 11px; }
.placeholder-block p { margin: 6px 0 0; color: var(--muted-2); font-size: 10px; }
.analysis-content { margin: 0 20px; display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line-soft); border-radius: 11px; background: rgba(9, 23, 35, .55); }
.analysis-content p { margin: 6px 0 0; color: #c8d6df; font-size: 11px; line-height: 1.65; }
.analysis-content small, .draft-meta { color: var(--muted-2); font-size: 9px; }
.analysis-label { color: var(--muted-2); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.topic-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.topic-list span { padding: 6px 9px; border-radius: 99px; background: rgba(83, 209, 172, .08); color: #8edfc8; font-size: 9px; }
.panel-action { padding: 16px 20px 0; display: flex; justify-content: flex-end; }
.response-draft-copy { padding: 20px; }
.response-readonly { padding: 16px; border: 1px solid var(--line-soft); border-radius: 11px; color: #c8d6df; font-size: 11px; line-height: 1.65; white-space: normal; }
.response-copy-actions { display: flex; min-height: 42px; margin-top: 12px; align-items: center; justify-content: flex-end; gap: 10px; }
.copy-feedback { color: var(--accent); font-size: 10px; }
.draft-meta { padding: 0 20px 18px; }
.error-state { border-color: rgba(241, 106, 118, .35); }
.timeline { padding: 20px 26px 0; }
.timeline-item { position: relative; padding: 0 0 21px 23px; border-left: 1px solid #294356; }
.timeline-item:last-child { padding-bottom: 0; border-color: transparent; }
.timeline-dot { position: absolute; left: -5px; top: 1px; width: 9px; height: 9px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); }
.timeline-item strong { font-size: 11px; }
.timeline-item p { margin: 4px 0; color: var(--muted-2); font-size: 9px; }
.timeline-item blockquote { margin: 8px 0 0; padding: 9px 11px; border-left: 2px solid #3e667c; background: #0a1722; color: #b9cbd6; font-size: 10px; }
.sticky-panel { position: sticky; top: 98px; padding: 20px; }
.processing-form { margin-top: 20px; }
.technical-actions { margin-top: 20px; overflow: hidden; }
.technical-actions summary { padding: 18px 20px; color: var(--text); font-size: 12px; font-weight: 750; cursor: pointer; list-style-position: inside; }
.technical-actions[open] summary { border-bottom: 1px solid var(--line-soft); }
.technical-actions-body { padding: 20px; }
.technical-actions-body > p { margin: 0 0 18px; color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.technical-actions-body hr { height: 1px; margin: 20px 0; border: 0; background: var(--line-soft); }
.technical-actions-body > .action-form + .action-form { margin-top: 10px; }
.fact-list { margin: 18px 0 0; }
.fact-list div { padding: 10px 0; display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.fact-list dt { color: var(--muted-2); font-size: 10px; }
.fact-list dd { margin: 0; font-size: 10px; text-align: right; }
.sticky-panel hr { height: 1px; margin: 20px 0; border: 0; background: var(--line-soft); }
.action-form { display: grid; gap: 13px; }
.action-label { color: var(--muted-2); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.quality-actions { display: grid; gap: 10px; }
.quality-action-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.quality-action-buttons form { margin: 0; }
.button.success { border-color: rgba(83, 209, 172, .45); background: rgba(83, 209, 172, .14); color: var(--accent); }
.button.danger, .button.danger-outline { border-color: rgba(241, 106, 118, .45); background: rgba(241, 106, 118, .12); color: #ff9ba5; }
.button.danger-outline { background: transparent; }
.exclusion-form small { color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.danger-link { color: var(--danger); }
.exclusion-table th:last-child, .exclusion-table td:last-child { width: 100px; text-align: right; }
.readonly-note { margin-top: 18px; padding: 12px; border-radius: 9px; background: #0a1722; color: var(--muted); font-size: 11px; }

.client-hero { margin-bottom: 24px; padding: 28px; display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; border: 1px solid var(--line-soft); border-radius: 20px; background: radial-gradient(circle at 0 0, rgba(102, 224, 188, .12), transparent 42%), linear-gradient(145deg, #102637, #0b1824); box-shadow: var(--shadow); }
.client-hero-main { min-width: 0; display: flex; align-items: flex-start; gap: 20px; }
.client-monogram.large { width: 68px; height: 68px; flex: 0 0 68px; border-radius: 18px; font-size: 28px; }
.client-hero h1 { margin-top: 12px; }
.client-hero p { max-width: 760px; margin: 12px 0 0; color: #a5bac8; font-size: 13px; line-height: 1.7; }
.client-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.client-profile-layout { margin-bottom: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; align-items: start; gap: 20px; }
.client-profile-aside { position: sticky; top: 98px; align-self: start; }
.client-profile-aside > .sticky-panel { position: static; }
.profile-facts { margin: 0; padding: 10px 20px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.profile-facts > div { padding: 16px 0; border-bottom: 1px solid var(--line-soft); }
.profile-facts > div.wide { grid-column: 1 / -1; }
.profile-facts dt { margin-bottom: 7px; color: var(--muted-2); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.profile-facts dd { margin: 0; color: #d8e4eb; font-size: 12px; line-height: 1.55; }
.verified-counter { color: var(--accent); font-size: 10px; font-weight: 750; }
.knowledge-list { padding: 8px 20px 20px; display: grid; gap: 0; }
.knowledge-item { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.knowledge-item:last-child { border-bottom: 0; }
.knowledge-category { color: var(--accent); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.knowledge-item h3 { margin-top: 6px; font-size: 14px; }
.knowledge-item p { margin: 10px 0; color: #afc1cd; font-size: 12px; line-height: 1.65; }
.knowledge-item a { color: var(--blue); font-size: 10px; font-weight: 700; }
.contact-panel { margin-top: 20px; padding: 20px; }
.contact-panel h2 { margin-top: 4px; }
.contact-panel a { color: var(--blue); }
.query-panel { overflow: hidden; }
.query-cloud { padding: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.query-cloud span { padding: 8px 11px; border: 1px solid #28465a; border-radius: 9px; background: #0a1722; color: #c3d4df; font-size: 11px; }
.client-form { max-width: 1050px; }
.form-section-title { margin: 30px 0 20px; padding-top: 28px; display: flex; align-items: flex-start; gap: 13px; border-top: 1px solid var(--line-soft); }
.form-section-title:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section-title > span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(102, 224, 188, .1); color: var(--accent); font-size: 10px; font-weight: 800; }
.form-section-title h2 { font-size: 15px; }
.form-section-title p { margin: 5px 0 0; color: var(--muted-2); font-size: 10px; }

.system-grid { margin-bottom: 20px; display: grid; grid-template-columns: repeat(4, minmax(180px, 1fr)); gap: 12px; }
.system-card { min-height: 145px; padding: 18px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.system-card-head { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; }
.health-orb { width: 8px; height: 8px; border-radius: 50%; }
.health-orb.ok { background: var(--accent); box-shadow: 0 0 12px rgba(102, 224, 188, .7); }
.health-orb.bad { background: var(--danger); }
.system-card > strong { display: block; margin: 25px 0 8px; font-size: 17px; }
.system-card > small { display: block; margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.ok-text { color: var(--accent); }
.bad-text { color: var(--danger); }

.message-stack { margin-bottom: 18px; display: grid; gap: 8px; }
.message { padding: 12px 15px; border: 1px solid #315166; border-radius: 10px; background: var(--surface-2); color: #cbdce6; font-size: 12px; }
.message.success { border-color: rgba(102, 224, 188, .25); color: var(--accent); }
.message.warning { border-color: rgba(245, 187, 100, .25); color: var(--warning); }
.message.error { border-color: rgba(255, 127, 143, .25); color: var(--danger); }

.login-page { position: relative; min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; background: radial-gradient(circle at 20% 20%, rgba(78, 211, 173, .12), transparent 33%), var(--bg); }
.login-story { padding: clamp(40px, 8vw, 120px); display: flex; flex-direction: column; justify-content: center; }
.login-story .brand { padding: 0 0 70px; }
.login-story h1 { max-width: 650px; font-size: clamp(42px, 6vw, 78px); }
.login-story p { max-width: 560px; color: var(--muted); line-height: 1.7; }
.login-panel-wrap { display: grid; place-items: center; padding: 30px; border-left: 1px solid var(--line-soft); background: rgba(9, 20, 31, .75); }
.login-panel { width: min(420px, 100%); padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 24px 80px rgba(0, 0, 0, .4); }
.login-panel h2 { font-size: 26px; }
.login-panel > p { margin: 8px 0 26px; color: var(--muted); font-size: 13px; }
.login-panel label { display: block; margin: 15px 0 6px; color: #bdced9; font-size: 11px; font-weight: 700; }
.login-panel input { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #091723; color: #fff; }
.login-panel .button { width: 100%; margin-top: 24px; }
.login-panel .errorlist { color: var(--danger); }
.login-theme-toggle { position: absolute; z-index: 2; top: 22px; right: 22px; }

:root[data-theme="light"] body { background: radial-gradient(circle at 70% -10%, rgba(34, 143, 128, .09), transparent 36%), var(--bg); }
:root[data-theme="light"] .sidebar { background: rgba(248, 251, 252, .97); }
:root[data-theme="light"] .topbar { background: rgba(255, 255, 255, .84); }
:root[data-theme="light"] .nav-link.active { background: linear-gradient(90deg, rgba(8, 122, 99, .13), rgba(8, 122, 99, .035)); }
:root[data-theme="light"] .user-avatar { border-color: #9eb8c6; }
:root[data-theme="light"] .user-name { color: #344d5c; }
:root[data-theme="light"] .button.primary { color: #fff; }
:root[data-theme="light"] .button.primary:hover { background: #0a8b70; }
:root[data-theme="light"] .button.success { border-color: #087a63; background: #087a63; color: #fff; }
:root[data-theme="light"] .button.success:hover { border-color: #066650; background: #066650; }
:root[data-theme="light"] .button.danger { border-color: #b92d47; background: #b92d47; color: #fff; }
:root[data-theme="light"] .button.danger:hover { border-color: #9f2038; background: #9f2038; }
:root[data-theme="light"] .button.danger-outline { border-color: #b92d47; background: #fff1f3; color: #981d35; }
:root[data-theme="light"] .button.danger-outline:hover { border-color: #981d35; background: #ffe3e8; }
:root[data-theme="light"] .button.secondary { border-color: #a8bdc8; }
:root[data-theme="light"] .button.secondary:hover { border-color: #7899aa; }
:root[data-theme="light"] .metric-card:hover,
:root[data-theme="light"] a.review-metric-card:hover,
:root[data-theme="light"] .client-card:hover,
:root[data-theme="light"] .client-card.selected,
:root[data-theme="light"] .published-response-card:hover { border-color: #82a9b5; }
:root[data-theme="light"] .metric-label,
:root[data-theme="light"] .review-metric-card span { color: #466170; }
:root[data-theme="light"] .period-option.active { color: #fff; }
:root[data-theme="light"] .attention-item:hover { background: rgba(31, 105, 123, .07); }
:root[data-theme="light"] .badge.recommendation-reply { border-color: #a999dc; background: #eeeafd; color: #56389f; }
:root[data-theme="light"] .badge.recommendation-check { border-color: #d9b574; background: #fff4df; color: #7a4900; }
:root[data-theme="light"] .badge.recommendation-acknowledge { border-color: #8fcdbd; background: #e4f5f0; color: #08634f; }
:root[data-theme="light"] .review-metric-card { background: linear-gradient(145deg, #ffffff, #f5f9fb); }
:root[data-theme="light"] .panel,
:root[data-theme="light"] .filter-panel,
:root[data-theme="light"] .form-panel,
:root[data-theme="light"] .monitoring-summary { background: rgba(255, 255, 255, .94); }
:root[data-theme="light"] .bar-value { color: #516b7a; }
:root[data-theme="light"] .source-icon { background: #dbeef2; color: #176b7b; }
:root[data-theme="light"] .data-table th { background: #edf4f7; }
:root[data-theme="light"] .data-table tbody tr:hover { background: rgba(31, 105, 123, .07); }
:root[data-theme="light"] .data-table strong { color: var(--text); }
:root[data-theme="light"] .sentiment-positive,
:root[data-theme="light"] .priority-low,
:root[data-theme="light"] .status-closed,
:root[data-theme="light"] .status-no_action_required,
:root[data-theme="light"] .status-published_manually { color: #08745e; }
:root[data-theme="light"] .sentiment-negative,
:root[data-theme="light"] .priority-critical,
:root[data-theme="light"] .status-needs_attention { color: #af2841; }
:root[data-theme="light"] .sentiment-neutral,
:root[data-theme="light"] .sentiment-unknown,
:root[data-theme="light"] .priority-normal,
:root[data-theme="light"] .status-new,
:root[data-theme="light"] .status-pending_analysis,
:root[data-theme="light"] .badge.neutral { color: #215f9d; }
:root[data-theme="light"] .sentiment-mixed,
:root[data-theme="light"] .priority-high,
:root[data-theme="light"] .status-response_drafted,
:root[data-theme="light"] .status-response_approved { color: #8a5700; }
:root[data-theme="light"] .status-analyzed,
:root[data-theme="light"] .status-informational,
:root[data-theme="light"] .coming-chip { color: #6746ad; }
:root[data-theme="light"] .status-irrelevant,
:root[data-theme="light"] .status-duplicate { color: #526b7a; }
:root[data-theme="light"] .empty-state.standalone { border-color: #aec4cf; background: rgba(255, 255, 255, .72); }
:root[data-theme="light"] .client-card,
:root[data-theme="light"] .source-card { background: linear-gradient(145deg, #ffffff, #f5f9fb); }
:root[data-theme="light"] .client-monogram { background: linear-gradient(145deg, #d9efe9, #dcecf2); color: #08745e; }
:root[data-theme="light"] .notification-toggle,
:root[data-theme="light"] .notification-platform-grid > div label,
:root[data-theme="light"] .search-field input,
:root[data-theme="light"] .page-size-form select,
:root[data-theme="light"] .form-control,
:root[data-theme="light"] .schedule-choice-grid > div label { background: #fff; color: var(--text); }
:root[data-theme="light"] .published-response-card { background: linear-gradient(145deg, #ffffff, #f5f9fb); }
:root[data-theme="light"] .published-response-card .review-preview,
:root[data-theme="light"] .company-answer-preview p,
:root[data-theme="light"] .mention-excerpt,
:root[data-theme="light"] .mention-workflow-cell small,
:root[data-theme="light"] .original-text,
:root[data-theme="light"] .published-company-response p,
:root[data-theme="light"] .analysis-content p,
:root[data-theme="light"] .response-readonly,
:root[data-theme="light"] .knowledge-item p,
:root[data-theme="light"] .client-hero p { color: var(--muted) !important; }
:root[data-theme="light"] .ai-recommendation { background: #f5f9fb; }
:root[data-theme="light"] .ai-recommendation p { color: var(--muted); }
:root[data-theme="light"] .recommendation-reply { color: #a61f38; }
:root[data-theme="light"] .recommendation-check { color: #895400; }
:root[data-theme="light"] .recommendation-acknowledge { color: #08745e; }
:root[data-theme="light"] .processing-new { color: #215f9d; }
:root[data-theme="light"] .processing-in_progress { color: #6746ad; }
:root[data-theme="light"] .processing-processed { color: #08745e; }
:root[data-theme="light"] .filter-grid select,
:root[data-theme="light"] .action-form select,
:root[data-theme="light"] .action-form textarea { color: var(--text); }
:root[data-theme="light"] .pagination-number.current { color: #fff; }
:root[data-theme="light"] .form-field label,
:root[data-theme="light"] .login-panel label { color: #415d6d; }
:root[data-theme="light"] .material-url,
:root[data-theme="light"] .analysis-grid > div,
:root[data-theme="light"] .placeholder-block,
:root[data-theme="light"] .analysis-content,
:root[data-theme="light"] .timeline-item blockquote,
:root[data-theme="light"] .readonly-note,
:root[data-theme="light"] .query-cloud span { background: #f5f9fb; }
:root[data-theme="light"] .screenshot-state { border-color: #afc5d0; background: rgba(245, 249, 251, .9); }
:root[data-theme="light"] .timeline-item { border-left-color: #b4c8d2; }
:root[data-theme="light"] .timeline-dot { border-color: #fff; }
:root[data-theme="light"] .timeline-item blockquote,
:root[data-theme="light"] .query-cloud span { color: #405c6b; }
:root[data-theme="light"] .topic-list span { background: #dcefe9; color: #176655; box-shadow: inset 0 0 0 1px #b9ddd3; }
:root[data-theme="light"] .client-hero { background: radial-gradient(circle at 0 0, rgba(8, 122, 99, .11), transparent 42%), linear-gradient(145deg, #ffffff, #f3f8fa); }
:root[data-theme="light"] .profile-facts dd { color: var(--text); }
:root[data-theme="light"] .message { color: var(--text); }
:root[data-theme="light"] .login-page { background: radial-gradient(circle at 20% 20%, rgba(8, 122, 99, .1), transparent 34%), var(--bg); }
:root[data-theme="light"] .login-panel-wrap { background: rgba(233, 241, 245, .72); }
:root[data-theme="light"] .login-panel { box-shadow: 0 24px 70px rgba(42, 73, 88, .17); }
:root[data-theme="light"] .login-panel input { background: #fff; color: var(--text); }
:root[data-theme="light"] .analytics-kpi,
:root[data-theme="light"] .analytics-review-panel,
:root[data-theme="light"] .analytics-types-panel { background: #fff; }
:root[data-theme="light"] .analytics-kpi > span { color: #496574; }
:root[data-theme="light"] .delta { background: #eaf2f5; color: #4c6574; }
:root[data-theme="light"] .delta-good { background: #dcefe9; color: #08745d; }
:root[data-theme="light"] .delta-bad { background: #fbe5e9; color: #a9233e; }
:root[data-theme="light"] .analytics-topic-list > div,
:root[data-theme="light"] .review-summary-grid > div { background: #f5f9fb; }

@media (min-width: 901px) {
  .metric-label, .review-metric-card span, .source-mini strong, .published-response-card > strong, .author-line strong, .published-company-response strong { font-size: 13px; }
  .metric-card small, .review-metric-card small, .source-mini small, .muted-note, .client-card-link, .source-url, .source-meta dd, .monitoring-summary span, .notification-settings-copy, .notification-toggle, .published-response-head, .published-response-card .review-preview, .company-answer-preview p, .filter-grid select, .action-form select, .action-form textarea, .mention-excerpt, .mention-classification-cell strong, .page-size-form label, .form-field label, .detail-breadcrumb, .author-line small, .material-url a, .published-company-response p, .screenshot-state strong, .analysis-grid strong, .placeholder-block strong, .analysis-content p, .response-readonly, .timeline-item strong, .fact-list dt, .fact-list dd, .knowledge-item a, .query-cloud span, .system-card-head, .data-table strong, .readonly-note { font-size: 12px !important; }
  .panel-total small, .bar-value, .health-chip, .data-table th, .data-table small, .badge, .client-stats, .source-meta dt, .company-answer-preview span, .published-response-card > small, .filter-grid label, .action-form label, .form-field small, .material-url span, .published-company-response small, .material-screenshot-heading small, .screenshot-state p, .published-answer-chip, .analysis-grid span, .coming-chip, .placeholder-block p, .analysis-content small, .draft-meta, .analysis-label, .topic-list span, .copy-feedback, .timeline-item p, .knowledge-category, .verified-counter, .system-card > small { font-size: 10px; }
  .data-table { font-size: 13px; }
  .client-card p, .source-card p, .profile-facts dd, .knowledge-item p { font-size: 13px; }
}

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(3, 1fr); }
  .overview-metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .system-grid { grid-template-columns: repeat(2, 1fr); }
  .analytics-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .analytics-topic-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 20; left: 0; right: 0; top: auto; bottom: 0; width: 100%; height: 68px; padding: 8px 10px; display: block; border: 1px solid var(--line); border-width: 1px 0 0; }
  .sidebar .brand, .sidebar-spacer, .secondary-nav, .sidebar-footer { display: none; }
  .primary-nav { height: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: 4px; }
  .nav-link { padding: 5px 4px; flex-direction: column; justify-content: center; gap: 4px; text-align: center; font-size: 9px; }
  .nav-icon { width: 20px; height: 20px; }
  .topbar { height: auto; min-height: 72px; flex-wrap: wrap; padding: 13px 20px; }
  .mobile-brand { display: flex; }
  .mobile-brand .brand-mark { width: 30px; height: 30px; }
  .client-switcher { order: 3; width: 100%; }
  .client-switcher select { flex: 1; min-width: 0; }
  .user-name { display: none; }
  .theme-toggle-label { display: none; }
  .page { padding: 28px 20px 100px; }
  .dashboard-grid, .detail-layout, .client-profile-layout, .review-metric-grid { grid-template-columns: 1fr; }
  .attention-item { grid-template-columns: minmax(120px, .5fr) minmax(260px, 1.5fr); }
  .attention-signals { grid-column: 2; justify-content: flex-start; }
  .monitoring-summary { grid-template-columns: 1fr 1fr; }
  .sticky-panel, .client-profile-aside { position: static; }
  .analysis-grid { grid-template-columns: 1fr 1fr; }
  .analytics-two-column { grid-template-columns: 1fr; }
}

@media (max-width: 800px) {
  .login-page { grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-panel-wrap { border: 0; }
}

@media (max-width: 640px) {
  .page-heading, .detail-heading, .client-hero { align-items: stretch; flex-direction: column; }
  .heading-actions { flex-wrap: wrap; }
  .heading-actions .button { flex: 1; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-card { min-height: 128px; }
  .overview-heading { margin-bottom: 22px; }
  .period-switcher { width: 100%; margin-top: -6px; }
  .period-option { flex: 1 0 auto; }
  .analytics-period-row { align-items: stretch; flex-direction: column; gap: 9px; }
  .analytics-period-row > p { text-align: left; }
  .analytics-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-kpi { min-height: 128px; padding: 15px; }
  .analytics-kpi > strong { font-size: 27px; }
  .sentiment-chart { min-width: max(100%, calc(var(--trend-points) * 26px)); gap: 3px; padding-left: 10px; padding-right: 10px; }
  .sentiment-column > small { display: none; }
  .review-summary-grid { grid-template-columns: 1fr; }
  .analytics-topic-list { grid-template-columns: 1fr; }
  .analytics-sentiment-panel .panel-heading,
  .analytics-platform-panel .panel-heading,
  .analytics-topic-panel .panel-heading,
  .analytics-important-panel .panel-heading { flex-direction: column; gap: 7px; }
  .analytics-panel-note { max-width: none; text-align: left; }
  .analytics-important-list > a { grid-template-columns: 1fr; gap: 10px; }
  .analytics-important-list > a > div:last-child { justify-content: flex-start; }
  .attention-item { padding: 16px; grid-template-columns: 1fr; gap: 11px; }
  .attention-signals { grid-column: 1; }
  .monitoring-compact { align-items: stretch; flex-direction: column; }
  .monitoring-compact .button { width: 100%; }
  .dashboard-grid { gap: 14px; }
  .bar-chart { gap: 3px; padding-left: 10px; padding-right: 10px; }
  .bar-column small { display: none; }
  .filter-grid, .form-grid { grid-template-columns: 1fr; }
  .notification-settings-grid { grid-template-columns: 1fr; }
  .notification-settings-grid .wide { grid-column: 1; }
  .notification-toggle-list { padding-top: 0; }
  .filter-actions, .form-field.wide { grid-column: 1; }
  .client-card-grid, .source-card-grid, .system-grid { grid-template-columns: 1fr; }
  .monitoring-summary { grid-template-columns: 1fr; }
  .monitoring-summary > div { padding: 0 0 14px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .monitoring-summary > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .analysis-grid { grid-template-columns: 1fr; }
  .panel-heading { align-items: flex-start; }
  .material-url { grid-template-columns: 1fr; }
  .material-screenshot-heading { align-items: flex-start; flex-direction: column; }
  .screenshot-preview img { max-height: 360px; }
  .client-hero-main { flex-direction: column; }
  .client-hero-actions .button { flex: 1; }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-facts > div.wide { grid-column: 1; }
  .user-menu .logout-button { padding-right: 0; }
  .pagination { align-items: stretch; flex-direction: column; text-align: center; }
  .pagination-pages { gap: 5px; }
}
