@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #0d0a0c;
  --bg-alt: #141013;
  --panel: #181214;
  --panel-soft: #1f171a;
  --panel-strong: #120d0f;
  --card: #22191d;
  --line: rgba(255, 214, 224, 0.11);
  --line-strong: rgba(193, 74, 108, 0.28);
  --text: #f4edf0;
  --text-dim: #b8a8ae;
  --text-muted: #8d7a82;
  --accent: #c14a6c;
  --accent-soft: rgba(193, 74, 108, 0.14);
  --accent-strong: #9c2f52;
  --gold: #d5a25d;
  --success: #31c48d;
  --warning: #d5a25d;
  --danger: #ef6a86;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  --glass-fill: linear-gradient(180deg, rgba(88, 54, 66, 0.28), rgba(49, 30, 37, 0.2) 48%, rgba(18, 14, 18, 0.38));
  --glass-fill-strong: linear-gradient(180deg, rgba(96, 58, 72, 0.34), rgba(58, 35, 44, 0.24) 46%, rgba(18, 14, 18, 0.48));
  --glass-stroke: rgba(255, 228, 235, 0.15);
  --glass-stroke-strong: rgba(255, 255, 255, 0.24);
  --glass-highlight: rgba(255, 246, 249, 0.18);
  --glass-shadow:
    0 26px 70px rgba(10, 6, 10, 0.34),
    0 2px 0 rgba(255, 255, 255, 0.08) inset,
    0 -1px 0 rgba(255, 255, 255, 0.04) inset;
  --glass-blur: saturate(165%) blur(24px);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-pill: 999px;
  --font-ui: "Inter", "Segoe UI", "Segoe UI Variable Text", "Aptos", "IBM Plex Sans", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Consolas", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 14% 10%, rgba(193, 74, 108, 0.16), transparent 22%),
    radial-gradient(circle at 86% 14%, rgba(92, 146, 214, 0.1), transparent 24%),
    radial-gradient(circle at 22% 88%, rgba(255, 73, 162, 0.14), transparent 28%),
    linear-gradient(180deg, #120d10 0%, #0c0910 52%, #09070a 100%);
  color: var(--text);
  font-family: var(--font-ui);
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga" 1, "kern" 1, "calt" 1;
  font-kerning: normal;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  filter: blur(40px);
}

body::before {
  left: -8vw;
  bottom: -18vh;
  width: 42vw;
  height: 42vw;
  border-radius: 36% 64% 58% 42% / 42% 37% 63% 58%;
  background: radial-gradient(circle at 35% 35%, rgba(193, 74, 108, 0.42), rgba(156, 47, 82, 0.18) 48%, rgba(74, 32, 52, 0.04) 72%, transparent 78%);
}

body::after {
  right: -10vw;
  top: -16vh;
  width: 38vw;
  height: 38vw;
  border-radius: 60% 40% 48% 52% / 44% 54% 46% 56%;
  background: radial-gradient(circle at 48% 46%, rgba(106, 151, 214, 0.22), rgba(193, 74, 108, 0.1) 44%, rgba(43, 24, 32, 0.03) 72%, transparent 78%);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
  transition:
    transform 120ms ease,
    border-color 120ms ease,
    background 120ms ease,
    opacity 120ms ease,
    box-shadow 120ms ease,
    filter 120ms ease;
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.6;
  transform: none;
  cursor: wait;
}

.hidden {
  display: none !important;
}

.workstation {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 360px;
  height: 100vh;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(16, 11, 14, 0.54), rgba(8, 7, 9, 0.82)),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.05), transparent 36%);
}

.sidebar,
.workspace,
.diagnostics {
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(39, 24, 31, 0.2), rgba(14, 10, 14, 0.1));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: auto;
}

.workspace {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 14px;
  padding: 14px;
  overflow: hidden;
}

.diagnostics {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(39, 24, 31, 0.18), rgba(14, 10, 14, 0.08));
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: auto;
}

.panel {
  position: relative;
  overflow: hidden;
  background: var(--glass-fill);
  border: 1px solid var(--glass-stroke);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.panel::before,
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.panel::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05) 20%, rgba(255, 255, 255, 0) 46%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.11), transparent 34%),
    radial-gradient(circle at 80% -10%, rgba(255, 168, 196, 0.08), transparent 28%);
  opacity: 0.92;
}

.panel::after {
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(0, 208, 255, 0.12);
  color: var(--accent);
  font: 700 16px/1 var(--font-mono);
}

.brand-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle,
.workspace-meta,
.section-label,
.composer-footer,
.drop-zone-copy,
#composerHint,
.workspace-kicker,
.section-meta {
  color: var(--text-dim);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-label {
  font-weight: 700;
}

.section-label.accent {
  color: var(--accent);
}

.panel-pill {
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(248, 246, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 12px 26px rgba(15, 10, 24, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.icon-button,
.theme-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(248, 246, 255, 0.12), rgba(255, 255, 255, 0.04));
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 14px 30px rgba(15, 10, 24, 0.18);
  backdrop-filter: saturate(145%) blur(18px);
  -webkit-backdrop-filter: saturate(145%) blur(18px);
}

.theme-chip:hover,
.panel-pill:hover,
.message-copy-button:hover,
.composer-tools-group:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 16px 34px rgba(15, 10, 24, 0.2);
  filter: brightness(1.02);
}

.action-panel {
  padding: 14px;
}

.action-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.primary-action,
.send-button {
  background: linear-gradient(135deg, rgba(201, 79, 113, 0.92), rgba(143, 39, 72, 0.88));
  color: #fff4f7;
  font-weight: 700;
}

.primary-action {
  width: 100%;
  min-height: 44px;
  border-radius: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  border: 1px solid rgba(255, 214, 224, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 18px 34px rgba(143, 39, 72, 0.24);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
}

.gear-button {
  inline-size: 44px;
  block-size: 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 28px rgba(15, 10, 24, 0.18);
  backdrop-filter: saturate(155%) blur(18px);
  -webkit-backdrop-filter: saturate(155%) blur(18px);
}

.preset-stack,
.session-history,
.events-feed,
.router-stats,
.source-pipeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar > .panel {
  padding: 14px;
}

.preset-stack,
.briefs-panel,
.system-panel,
.diagnostics-panel,
.sticky-context {
  padding: 14px;
}

.preset-button {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 246, 249, 0.12), rgba(193, 74, 108, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.11);
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 26px rgba(15, 10, 24, 0.16);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
}

.preset-button:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(193, 74, 108, 0.12));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 18px 30px rgba(15, 10, 24, 0.18);
}

.send-button {
  position: relative;
  min-width: 88px;
  min-height: 58px;
  padding: 0 18px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(193, 74, 108, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.send-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  opacity: 0.65;
  z-index: -1;
}

.send-button-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition:
    opacity 140ms ease,
    transform 140ms ease;
}

.send-button-loader {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.92);
  pointer-events: none;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.send-button.is-busy .send-button-label {
  opacity: 0;
  transform: scale(0.92);
}

.send-button.is-busy {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.send-button.is-busy::before {
  opacity: 0;
}

.send-button.is-busy .send-button-loader {
  opacity: 1;
  transform: scale(1);
}

.brush-ring {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  animation: brush-ring-spin 1.35s linear infinite;
  filter: drop-shadow(0 0 10px rgba(193, 74, 108, 0.28));
}

.brush-ring::before,
.brush-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.brush-ring::before {
  background:
    conic-gradient(
      from 210deg,
      rgba(122, 22, 44, 0) 0deg,
      rgba(122, 22, 44, 0) 52deg,
      rgba(145, 24, 52, 0.92) 92deg,
      rgba(193, 74, 108, 0.98) 182deg,
      rgba(104, 16, 37, 0.16) 248deg,
      rgba(122, 22, 44, 0) 360deg
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 7px), #000 calc(100% - 6px));
}

.brush-ring::after {
  inset: 2px;
  background:
    conic-gradient(
      from 35deg,
      rgba(255, 190, 208, 0) 0deg,
      rgba(255, 190, 208, 0.42) 48deg,
      rgba(255, 190, 208, 0) 92deg,
      rgba(255, 190, 208, 0) 360deg
    );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  mix-blend-mode: screen;
  opacity: 0.9;
}

@keyframes brush-ring-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.session-chip {
  width: 100%;
  padding: 12px;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(37, 28, 33, 0.5), rgba(19, 14, 18, 0.32));
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: saturate(145%) blur(18px);
  -webkit-backdrop-filter: saturate(145%) blur(18px);
}

.session-chip-title {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.session-chip-preview {
  display: block;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.45;
}

.capability-grid,
.root-list,
.sticky-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capability-chip,
.root-pill,
.sticky-attachment {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #2b2d31;
  color: var(--text-dim);
  padding: 7px 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.stat-line:last-of-type {
  border-bottom: 0;
}

.stat-line code {
  color: var(--text-dim);
  overflow-wrap: anywhere;
  text-align: right;
}

.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
}

.workspace-title {
  margin: 4px 0 0;
  font-size: 30px;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.workspace-kicker {
  color: var(--accent);
}

.compact-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.ingest-status-inline {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 24px rgba(0, 0, 0, 0.12);
  backdrop-filter: saturate(145%) blur(18px);
  -webkit-backdrop-filter: saturate(145%) blur(18px);
}

.ingest-status-inline.is-stale {
  border-color: rgba(213, 162, 93, 0.28);
  color: #f2c889;
}

.sticky-summary {
  color: #d7dfeb;
  white-space: pre-wrap;
  font: 13px/1.75 var(--font-ui);
}

.transcript {
  min-height: 0;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 12, 15, 0.56), rgba(10, 8, 10, 0.44));
}

.messages {
  height: 100%;
  overflow: auto;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.message {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 14px;
}

.message-glyph {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font: 700 12px/1 var(--font-mono);
  background: #251b1f;
  color: var(--text-dim);
}

.message.user .message-glyph {
  background: rgba(193, 74, 108, 0.16);
  color: var(--accent);
}

.message.assistant .message-glyph {
  background: rgba(193, 74, 108, 0.14);
  color: #f3a0b7;
}

.message.system .message-glyph {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.message-content {
  min-width: 0;
}

.message-header,
.message-actions {
  display: flex;
  align-items: center;
}

.message-role {
  margin-bottom: 6px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.message-body {
  color: #ebf1f8;
  line-height: 1.8;
  font-size: 15px;
  letter-spacing: -0.005em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.message.assistant .message-body {
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(43, 31, 36, 0.5), rgba(22, 16, 19, 0.34));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(0, 0, 0, 0.12);
  backdrop-filter: saturate(145%) blur(18px);
  -webkit-backdrop-filter: saturate(145%) blur(18px);
}

.message.user .message-body,
.message.system .message-body {
  color: var(--text-dim);
}

.message-actions {
  justify-content: flex-end;
  margin-top: 8px;
}

.message-copy-button {
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(145%) blur(16px);
  -webkit-backdrop-filter: saturate(145%) blur(16px);
}

.message-copy-button:hover {
  border-color: rgba(193, 74, 108, 0.34);
  background: rgba(193, 74, 108, 0.1);
  color: var(--text);
}

.message-copy-button.copied {
  border-color: rgba(49, 196, 141, 0.34);
  background: rgba(49, 196, 141, 0.12);
  color: #c8fff0;
}

.message.system .message-copy-button {
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.composer {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  overflow: visible;
}

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

.composer-topline,
.composer-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.composer-topline {
  display: none;
}

.composer-source-toggle {
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
}

.composer-source-toggle-inline {
  min-height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.composer-tools-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(248, 246, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 12px 24px rgba(15, 10, 24, 0.16);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  overflow: hidden;
}

.search-options-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px 14px;
  margin-bottom: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
}

.search-option-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.search-option-item input {
  accent-color: #37d7ff;
}

.drop-zone {
  margin-bottom: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(193, 74, 108, 0.22);
  background: rgba(193, 74, 108, 0.03);
}

.drop-zone.active {
  border-color: var(--accent);
  background: rgba(193, 74, 108, 0.08);
}

.composer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(78, 66, 72, 0.44), rgba(45, 37, 39, 0.28));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 16px 34px rgba(0, 0, 0, 0.16);
  overflow: hidden;
  backdrop-filter: saturate(160%) blur(24px);
  -webkit-backdrop-filter: saturate(160%) blur(24px);
}

.composer textarea {
  width: 100%;
  min-height: 26px;
  max-height: 132px;
  resize: none;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font: 16px/1.45 var(--font-ui);
  letter-spacing: -0.01em;
  padding: 0;
  align-self: center;
}

.send-button {
  inline-size: 54px;
  block-size: 46px;
  width: 54px;
  height: 46px;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border-radius: 20px;
  place-self: center;
  align-self: center;
  justify-self: center;
  flex: 0 0 54px;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 40%),
    linear-gradient(180deg, rgba(215, 97, 133, 0.82) 0%, rgba(180, 62, 98, 0.72) 100%);
  border: 1px solid rgba(255, 218, 227, 0.2);
  box-shadow:
    0 14px 26px rgba(143, 39, 72, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(96, 19, 45, 0.2);
  overflow: hidden;
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
}

.send-button:hover {
  box-shadow:
    0 16px 30px rgba(143, 39, 72, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(96, 19, 45, 0.2);
  filter: brightness(1.03);
}

.composer-footer {
  margin-top: 10px;
}

.composer-attach {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  color: rgba(244, 237, 240, 0.9);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-1px);
}

.composer-attach:hover {
  background: rgba(255, 255, 255, 0.05);
}

.composer-attach-inline {
  width: 40px;
  height: 40px;
  border-radius: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
  position: relative;
}

.composer-attach-inline:hover {
  background: rgba(255, 255, 255, 0.08);
}

.composer-attach-inline::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 0;
  bottom: 8px;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.composer-tools-group .composer-source-toggle-inline {
  min-height: 40px;
  padding: 0 16px 0 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.composer-tools-group .composer-source-toggle-inline:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.08);
}

.composer-tools-group .send-button-inline {
  inline-size: 56px;
  block-size: 40px;
  width: 56px;
  height: 40px;
  min-width: 56px;
  min-height: 40px;
  padding: 0;
  margin: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  place-self: auto;
  align-self: stretch;
  justify-self: auto;
  flex: 0 0 56px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(215, 97, 133, 0.78) 0%, rgba(180, 62, 98, 0.68) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 1px 0 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
}

.composer-tools-group .send-button-inline:hover {
  transform: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 1px 0 0 rgba(255, 255, 255, 0.05);
  filter: brightness(1.04);
}

.composer-tools-group .send-button-inline::before {
  inset: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03) 46%, rgba(255, 255, 255, 0) 66%),
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.1), transparent 34%);
}

.composer-tools-group .send-button-inline::after {
  display: none;
}

.composer-tools-group .send-button-inline.is-busy {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 42%),
    linear-gradient(180deg, rgba(215, 97, 133, 0.72) 0%, rgba(180, 62, 98, 0.62) 100%);
  border-color: transparent;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    inset 1px 0 0 rgba(255, 255, 255, 0.04);
}

.composer-tools-group .send-button-inline.is-busy::before {
  opacity: 0.72;
}

.composer-attach-inline:hover {
  transform: none;
}

.send-button-label {
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-1px);
}

.send-button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 42%, rgba(255, 255, 255, 0) 62%),
    radial-gradient(circle at 30% 26%, rgba(255, 255, 255, 0.12), transparent 34%);
  opacity: 0.85;
  z-index: -1;
}

.send-button::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  opacity: 0.9;
  pointer-events: none;
}

.attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.attachment-card {
  width: min(220px, 100%);
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(34, 26, 30, 0.66), rgba(24, 18, 22, 0.5));
  backdrop-filter: saturate(145%) blur(18px);
  -webkit-backdrop-filter: saturate(145%) blur(18px);
}

.attachment-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.attachment-text-preview {
  max-height: 110px;
  margin: 0;
  padding: 10px;
  overflow: auto;
  white-space: pre-wrap;
  color: var(--text-dim);
  font: 12px/1.5 var(--font-mono);
}

.attachment-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
}

.attachment-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.attachment-subtitle {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.attachment-remove {
  align-self: flex-start;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(193, 74, 108, 0.1);
  color: var(--text);
}

.diagnostics-panel {
  padding: 14px;
}

.timeline-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.events-feed,
.source-pipeline {
  max-height: 44vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(193, 74, 108, 0.38) rgba(255, 255, 255, 0.03);
}

.sidebar,
.diagnostics,
.messages,
.sticky-summary,
#eventsLog,
.events-feed,
.source-pipeline {
  scrollbar-width: thin;
  scrollbar-color: rgba(193, 74, 108, 0.38) rgba(255, 255, 255, 0.03);
}

.sidebar::-webkit-scrollbar,
.diagnostics::-webkit-scrollbar,
.messages::-webkit-scrollbar,
.sticky-summary::-webkit-scrollbar,
#eventsLog::-webkit-scrollbar,
.events-feed::-webkit-scrollbar,
.source-pipeline::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.sidebar::-webkit-scrollbar-track,
.diagnostics::-webkit-scrollbar-track,
.messages::-webkit-scrollbar-track,
.sticky-summary::-webkit-scrollbar-track,
#eventsLog::-webkit-scrollbar-track,
.events-feed::-webkit-scrollbar-track,
.source-pipeline::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
}

.sidebar::-webkit-scrollbar-thumb,
.diagnostics::-webkit-scrollbar-thumb,
.messages::-webkit-scrollbar-thumb,
.sticky-summary::-webkit-scrollbar-thumb,
#eventsLog::-webkit-scrollbar-thumb,
.events-feed::-webkit-scrollbar-thumb,
.source-pipeline::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(193, 74, 108, 0.72), rgba(143, 39, 72, 0.88));
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

.sidebar::-webkit-scrollbar-thumb:hover,
.diagnostics::-webkit-scrollbar-thumb:hover,
.messages::-webkit-scrollbar-thumb:hover,
.sticky-summary::-webkit-scrollbar-thumb:hover,
#eventsLog::-webkit-scrollbar-thumb:hover,
.events-feed::-webkit-scrollbar-thumb:hover,
.source-pipeline::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(214, 96, 128, 0.82), rgba(156, 47, 82, 0.94));
  background-clip: padding-box;
}

.event-card,
.source-card {
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(37, 28, 33, 0.56), rgba(19, 14, 18, 0.38));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 14px 26px rgba(0, 0, 0, 0.12);
  backdrop-filter: saturate(145%) blur(20px);
  -webkit-backdrop-filter: saturate(145%) blur(20px);
}

.event-card:hover,
.source-card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 18px 32px rgba(0, 0, 0, 0.14);
}

.events-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline-feed {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.timeline-feed::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

.event-card-title,
.source-card-title {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.event-card-meta,
.source-card-meta {
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.55;
}

.event-card.timeline-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px 16px 15px;
  position: relative;
}

.event-card.timeline-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 28%, rgba(255, 255, 255, 0) 56%),
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 34%);
  opacity: 0.72;
  pointer-events: none;
}

.timeline-time {
  color: var(--text-muted);
  font: 12px/1.2 var(--font-mono);
  letter-spacing: 0.06em;
  padding-top: 4px;
}

.timeline-content {
  min-width: 0;
  overflow-wrap: anywhere;
}

.timeline-headline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 6px;
  flex: 0 0 9px;
  background: var(--accent);
  box-shadow:
    0 0 0 4px rgba(193, 74, 108, 0.1),
    0 0 14px rgba(193, 74, 108, 0.22);
}

.timeline-dot.high {
  background: #ff5f7f;
  box-shadow: 0 0 0 3px rgba(255, 95, 127, 0.14);
}

.timeline-dot.medium {
  background: #d5a25d;
  box-shadow: 0 0 0 3px rgba(213, 162, 93, 0.14);
}

.timeline-dot.low {
  background: #57b4ff;
  box-shadow: 0 0 0 3px rgba(87, 180, 255, 0.14);
}

.timeline-title {
  margin: 0;
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text);
  overflow-wrap: anywhere;
}

.timeline-link {
  color: var(--text);
  text-decoration: none;
}

.timeline-link:hover {
  color: #ffd7e3;
  text-decoration: underline;
}

.auth-body {
  overflow: auto;
}

.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.auth-panel {
  width: min(480px, 100%);
  padding: 28px;
  display: grid;
  gap: 22px;
  background: var(--glass-fill-strong);
}

.auth-brand {
  display: grid;
  gap: 10px;
}

.auth-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.auth-copy {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.7;
  font-size: 14px;
}

.auth-form {
  display: grid;
  gap: 14px;
}

.auth-field {
  display: grid;
  gap: 8px;
}

.auth-label {
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-input {
  min-height: 54px;
  width: 100%;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 28px rgba(15, 10, 24, 0.14);
  backdrop-filter: saturate(150%) blur(18px);
  -webkit-backdrop-filter: saturate(150%) blur(18px);
}

.auth-input:focus {
  outline: none;
  border-color: rgba(193, 74, 108, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 0 4px rgba(193, 74, 108, 0.12),
    0 14px 28px rgba(15, 10, 24, 0.14);
}

.auth-submit {
  min-height: 50px;
}

.auth-status {
  min-height: 18px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.5;
}

.auth-status.is-error {
  color: #ffd3dd;
}

.timeline-summary {
  margin: 0 0 6px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.58;
  overflow-wrap: anywhere;
}

.timeline-meta {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.03em;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.source-card {
  position: relative;
  padding-left: 14px;
}

.source-card::before {
  content: "";
  position: absolute;
  top: 12px;
  left: 0;
  bottom: 12px;
  width: 3px;
  border-radius: 999px;
  background: var(--text-muted);
}

.source-card.ok::before {
  background: var(--success);
}

.source-card.skipped::before {
  background: var(--warning);
}

.source-card.error::before {
  background: var(--danger);
}

.source-card.link-card::before,
.source-card.empty::before {
  display: none;
}

.source-link {
  color: #f3dbe2;
  text-decoration: none;
}

.source-link:hover {
  color: #ffd7e3;
  text-decoration: underline;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 5, 6, 0.72);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(180deg, rgba(37, 28, 33, 0.74), rgba(20, 15, 18, 0.62));
  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: saturate(165%) blur(28px);
  -webkit-backdrop-filter: saturate(165%) blur(28px);
}

.source-settings-modal {
  padding: 24px;
}

.modal-header,
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header {
  margin-bottom: 18px;
}

.modal-title {
  margin: 6px 0 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.modal-close {
  inline-size: 40px;
  block-size: 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 24px;
}

.settings-mode-tabs,
.settings-country-tabs,
.settings-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 14px 24px rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(140%) blur(16px);
  -webkit-backdrop-filter: saturate(140%) blur(16px);
}

.settings-mode-tabs {
  margin-bottom: 18px;
}

.settings-country-tabs {
  margin-bottom: 18px;
}

.settings-chip {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  color: var(--text-dim);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: saturate(145%) blur(16px);
  -webkit-backdrop-filter: saturate(145%) blur(16px);
}

.settings-chip.is-active {
  background: linear-gradient(180deg, rgba(193, 74, 108, 0.26), rgba(193, 74, 108, 0.12));
  border-color: rgba(193, 74, 108, 0.26);
  color: var(--text);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 14px 24px rgba(143, 39, 72, 0.12);
}

.settings-section {
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 28px rgba(0, 0, 0, 0.12);
  backdrop-filter: saturate(145%) blur(20px);
  -webkit-backdrop-filter: saturate(145%) blur(20px);
}

.settings-inline-note {
  margin: -2px 0 12px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.settings-add-grid {
  display: grid;
  gap: 10px;
}

.settings-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.settings-input {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 224, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 0 14px;
  outline: none;
}

.settings-input:focus {
  border-color: rgba(193, 74, 108, 0.34);
  box-shadow: 0 0 0 3px rgba(193, 74, 108, 0.08);
}

.settings-add-button {
  min-width: 88px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 12px;
  background: linear-gradient(180deg, #3a77d8 0%, #7a4cff 100%);
  color: #fff;
  font-weight: 700;
}

.settings-source-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 46vh;
  overflow: auto;
}

.settings-source-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.settings-source-item-empty {
  grid-template-columns: minmax(0, 1fr);
  padding: 18px;
}

.settings-source-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(0, 208, 255, 0.14);
  color: #37d7ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-source-main {
  min-width: 0;
}

.settings-source-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
  overflow-wrap: anywhere;
}

.settings-source-meta {
  font-size: 12px;
  color: var(--text-dim);
  overflow-wrap: anywhere;
}

.settings-source-remove {
  inline-size: 34px;
  block-size: 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(239, 106, 134, 0.28);
  background: rgba(239, 106, 134, 0.08);
  color: var(--danger);
  font-size: 18px;
  line-height: 1;
}

.modal-footer {
  margin-top: 18px;
}

.modal-status {
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.modal-status.is-error {
  color: var(--danger);
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-save {
  width: auto;
  min-width: 104px;
  padding: 0 20px;
}

#eventsLog {
  margin: 0;
  max-height: 28vh;
  overflow: auto;
  color: var(--text-dim);
  font: 12px/1.5 var(--font-mono);
}

@media (max-width: 1180px) {
  .workstation {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .diagnostics {
    display: none;
  }
}

@media (max-width: 860px) {
  body {
    overflow: auto;
  }

  .workstation {
    display: block;
    height: auto;
  }

  .sidebar,
  .workspace,
  .diagnostics {
    height: auto;
    overflow: visible;
  }

  .workspace {
    grid-template-rows: auto auto minmax(360px, auto) auto;
  }
}
