:root {
  color-scheme: dark;
  --bg: #04080c;
  --bg-deep: #020508;
  --surface: rgba(8, 14, 20, 0.78);
  --surface-strong: rgba(9, 16, 24, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(154, 183, 179, 0.12);
  --line-strong: rgba(154, 183, 179, 0.2);
  --text: #f2f6f3;
  --muted: #93a19f;
  --mint: #8fe3d3;
  --mint-strong: #66c7b8;
  --peach: #f2b38b;
  --danger: #ff8484;
  --warning: #ffc96b;
  --success: #49c99d;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  --font-display: "Syne", sans-serif;
  --font-body: "Manrope", sans-serif;
  --font-ui: "Inter", sans-serif;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;
  --container-max: 1320px;
  --section-gap: 36px;
  --card-gap: 24px;
  --panel-padding: 32px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.45;
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 108, 35, 0.08), transparent 18%),
    radial-gradient(circle at 10% 14%, rgba(111, 197, 182, 0.08), transparent 20%),
    linear-gradient(180deg, #020305 0%, #000000 100%);
  overflow-x: hidden;
}

body[data-boot="active"] {
  overflow: hidden;
}

body[data-shell="marketing"],
body[data-shell="auth"] {
  color-scheme: dark;
  --surface: rgba(8, 14, 20, 0.78);
  --surface-strong: rgba(9, 16, 24, 0.92);
  --surface-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(154, 183, 179, 0.12);
  --line-strong: rgba(154, 183, 179, 0.2);
  --text: #f2f6f3;
  --muted: #93a19f;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
  background:
    radial-gradient(circle at 50% 78%, rgba(255, 108, 35, 0.08), transparent 14%),
    linear-gradient(180deg, #020305 0%, #000000 100%);
}

body[data-shell="app"] {
  color-scheme: dark;
  background:
    radial-gradient(circle at 52% 110%, rgba(255, 106, 34, 0.1), transparent 18%),
    radial-gradient(circle at 14% 16%, rgba(120, 214, 196, 0.08), transparent 18%),
    linear-gradient(180deg, #020305 0%, #000000 100%);
}

#app-root {
  min-height: 100vh;
}

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 24px;
  --boot-spin-duration: 2.6s;
  --boot-orbit-duration: 3.2s;
  background:
    radial-gradient(circle at 50% 72%, rgba(255, 107, 44, 0.14), transparent 20%),
    radial-gradient(circle at 20% 22%, rgba(143, 227, 211, 0.1), transparent 22%),
    linear-gradient(180deg, #010204 0%, #000000 100%);
  transition: opacity 620ms ease, visibility 620ms ease;
}

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

.boot-overlay::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 30%, transparent 82%);
  opacity: 0.18;
}

.boot-overlay::after {
  background:
    radial-gradient(circle at 50% 78%, rgba(255, 94, 35, 0.28), transparent 20%),
    radial-gradient(circle at 54% 74%, rgba(255, 167, 118, 0.12), transparent 12%);
  filter: blur(36px);
  opacity: 0.9;
}

.boot-overlay.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot-overlay.is-complete .boot-sequence {
  transform: translateY(-18px) scale(0.96);
  opacity: 0;
  filter: blur(14px);
}

.boot-sequence {
  position: relative;
  z-index: 1;
  width: min(100%, 580px);
  display: grid;
  justify-items: center;
  gap: 22px;
  transition:
    transform 560ms cubic-bezier(0.2, 0.9, 0.2, 1),
    opacity 560ms ease,
    filter 560ms ease;
}

.boot-spinner-stage {
  position: relative;
  width: 256px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.boot-spinner-stage::before,
.boot-spinner-stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.boot-spinner-stage::before {
  inset: -14px;
  border: 1px dashed rgba(255, 255, 255, 0.08);
  opacity: 0.65;
  animation: boot-spin calc(var(--boot-orbit-duration) * 1.35) linear infinite reverse;
}

.boot-spinner-stage::after {
  inset: -28px;
  background:
    radial-gradient(circle at 50% 4px, rgba(143, 227, 211, 0.96) 0 3px, transparent 4px),
    radial-gradient(circle at calc(100% - 22px) 50%, rgba(242, 179, 139, 0.9) 0 2.5px, transparent 3.5px);
  opacity: 0.88;
  animation: boot-spin calc(var(--boot-orbit-duration) * 1.8) linear infinite;
}

.boot-spinner-aura {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 103, 34, 0.16) 0%, rgba(255, 103, 34, 0.02) 42%, transparent 66%),
    radial-gradient(circle at 50% 50%, rgba(143, 227, 211, 0.12) 0%, transparent 62%);
  filter: blur(10px);
  animation: boot-orbit-pulse var(--boot-orbit-duration) ease-in-out infinite;
}

.boot-spinner-shell {
  position: absolute;
  inset: 20px;
  display: grid;
  place-items: center;
}

.boot-spinner-shell::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 0 1px rgba(143, 227, 211, 0.05),
    inset 0 0 28px rgba(255, 255, 255, 0.02);
}

.boot-spinner-rotor {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  animation: boot-spin var(--boot-spin-duration) linear infinite;
}

.boot-spinner-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
  overflow: visible;
}

.boot-spinner-track,
.boot-spinner-progress {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
}

.boot-spinner-track {
  stroke: rgba(255, 255, 255, 0.1);
}

.boot-spinner-progress {
  stroke: url(#bootProgressGradient);
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 12px rgba(143, 227, 211, 0.42));
}

.boot-spinner-core {
  position: relative;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(9, 14, 20, 0.96), rgba(3, 5, 9, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.boot-spinner-core::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  border: 1px solid rgba(143, 227, 211, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent 60%);
}

.boot-spinner-core svg {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  color: #f5fbfa;
  stroke-width: 2.1;
}

.boot-percentage {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(231, 238, 242, 0.76);
  text-transform: uppercase;
}

.boot-copy-stack {
  display: grid;
  gap: 0;
  width: 100%;
  justify-items: center;
  text-align: center;
  max-width: 560px;
}

.boot-copy-stack::after {
  content: "";
  width: min(180px, 46%);
  height: 14px;
  margin-top: 14px;
  background:
    radial-gradient(circle at 50% 50%, rgba(143, 227, 211, 0.85) 0 2px, transparent 3px),
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.09) 18%, rgba(143, 227, 211, 0.42) 50%, rgba(255, 255, 255, 0.09) 82%, transparent 100%);
  border-radius: 999px;
  filter: drop-shadow(0 0 8px rgba(143, 227, 211, 0.3));
}

.boot-copy-line {
  color: #f4f7fa;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.35vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
  min-height: 1.5em;
  width: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  justify-self: stretch;
  transition: opacity 180ms ease, transform 180ms ease;
}

.boot-copy-subline {
  margin: 0;
  color: rgba(221, 229, 234, 0.58);
  font-size: 0.96rem;
  line-height: 1.6;
  transition: opacity 180ms ease, transform 180ms ease;
}

.boot-copy-line.is-exiting,
.boot-copy-subline.is-exiting {
  opacity: 0;
  transform: translateY(10px);
}

.boot-copy-line.is-entering,
.boot-copy-subline.is-entering {
  animation: boot-copy-rise 440ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

@keyframes boot-copy-rise {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes boot-orbit-pulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.4;
  }
  50% {
    transform: scale(1.04);
    opacity: 0.85;
  }
}

@keyframes boot-spin {
  to {
    transform: rotate(360deg);
  }
}

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

select,
option {
  color: var(--text);
  background-color: #101923;
  color: #eef5f4;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ambient,
.ambient-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.ambient-left {
  background: radial-gradient(circle at 22% 12%, rgba(143, 227, 211, 0.14), transparent 20%);
}

.ambient-right {
  background: radial-gradient(circle at 78% 62%, rgba(242, 179, 139, 0.09), transparent 18%);
}

body[data-shell="marketing"] .ambient-left,
body[data-shell="marketing"] .ambient-right,
body[data-shell="marketing"] .ambient-grid,
body[data-shell="auth"] .ambient-left,
body[data-shell="auth"] .ambient-right,
body[data-shell="auth"] .ambient-grid {
  opacity: 0;
}

.ambient-grid {
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 78%);
}

.app-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  --font-display: var(--font-ui);
  --font-body: var(--font-ui);
  font-family: var(--font-ui);
}

.sidebar {
  position: sticky;
  top: 0;
  min-height: 100vh;
  padding: var(--space-6) var(--space-4) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  background:
    linear-gradient(180deg, rgba(7, 10, 14, 0.96), rgba(2, 4, 7, 0.98));
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-2) var(--space-3) var(--space-6);
  border-bottom: 1px solid var(--line);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(143, 227, 211, 0.24), rgba(242, 179, 139, 0.16));
  color: #d4fff6;
  box-shadow: 0 14px 28px rgba(101, 202, 184, 0.12);
}

.brand-icon svg {
  width: 20px;
  height: 20px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
}

.sidebar-nav {
  display: grid;
  gap: var(--space-2);
}

.nav-link {
  border: 0;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
  border: 1px solid transparent;
}

.nav-link svg {
  width: 18px;
  height: 18px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(143, 227, 211, 0.12), rgba(255, 255, 255, 0.03));
  border-color: rgba(143, 227, 211, 0.16);
}

.nav-link.active {
  box-shadow: inset 2px 0 0 var(--mint);
}

.sidebar-status {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: var(--space-3) var(--space-3) var(--space-2);
  color: var(--muted);
  font-size: 0.88rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--warning);
  box-shadow: 0 0 18px rgba(255, 201, 107, 0.55);
}

.brand-link {
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  text-align: left;
  cursor: pointer;
}

.sidebar-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  min-height: 48px;
}

.workspace-topbar-copy strong {
  display: block;
  font-size: 0.96rem;
  font-family: var(--font-ui);
}

.workspace-kicker {
  color: var(--muted);
  font-size: 0.82rem;
}

.workspace {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: clamp(36px, 4vw, 56px) clamp(24px, 4.2vw, 56px) clamp(28px, 3.6vw, 48px);
}

.workspace-topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
  padding: 0 4px;
}

.workspace-topbar-minimal {
  min-height: 52px;
}

.workspace-topbar-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.workspace-topbar-copy strong {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.workspace-topbar-copy span {
  color: var(--muted);
  font-size: 0.92rem;
}

.workspace-topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  align-items: center;
  margin-left: auto;
}

.topbar-notifications {
  position: relative;
}

.topbar-icon-button {
  position: relative;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  min-height: 52px;
  border-radius: 18px;
  padding: 10px 14px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.topbar-tool-button {
  width: 52px;
  min-width: 52px;
  padding: 0;
  justify-content: center;
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
}

.topbar-icon-button:hover,
.topbar-icon-button.active {
  border-color: rgba(143, 227, 211, 0.28);
  background: rgba(143, 227, 211, 0.09);
}

.topbar-icon-shell {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.topbar-icon-shell svg {
  width: 18px;
  height: 18px;
}

.notification-badge,
.notification-pulse {
  position: absolute;
  top: -5px;
  right: -5px;
}

.notification-badge {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--peach);
  color: #0d141b;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(242, 179, 139, 0.28);
}

.notification-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(143, 227, 211, 0.16);
}

.notification-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  gap: 14px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  z-index: 15;
  transform-origin: top right;
}

.notification-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 20px;
  width: 14px;
  height: 14px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--surface-strong);
  transform: rotate(45deg);
}

.notification-panel-head,
.notification-panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.notification-panel-head div:first-child {
  display: grid;
  gap: 3px;
}

.notification-panel-head strong {
  font-size: 0.98rem;
}

.notification-panel-head span,
.notification-empty,
.notification-feed-meta,
.notification-feed-preview,
.notification-feed-time {
  color: var(--muted);
}

.notification-text-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 180ms ease, opacity 180ms ease;
}

.notification-text-button:hover {
  color: var(--text);
}

.notification-panel-body {
  max-height: min(56vh, 420px);
  overflow: auto;
  padding-right: 4px;
}

.notification-feed {
  display: grid;
  gap: 0;
}

.notification-feed-item {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: transparent;
  color: var(--text);
  border-radius: 0;
  padding: 13px 2px 13px 16px;
  display: grid;
  gap: 5px;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 180ms ease, transform 180ms ease;
}

.notification-feed-item:hover {
  background: rgba(143, 227, 211, 0.05);
  transform: translateX(2px);
}

.notification-feed-item strong {
  font-size: 0.92rem;
  line-height: 1.34;
}

.notification-feed-item:last-child {
  border-bottom: 0;
}

.notification-feed-item::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 6px rgba(143, 227, 211, 0.08);
}

.notification-feed-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.notification-feed-time {
  flex-shrink: 0;
  font-size: 0.74rem;
  white-space: nowrap;
}

.notification-feed-meta {
  font-size: 0.79rem;
  line-height: 1.35;
}

.notification-feed-preview {
  font-size: 0.83rem;
  line-height: 1.45;
}

.notification-empty {
  padding: 4px 2px 2px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.loading-shell,
.site-shell,
.auth-shell {
  position: relative;
  width: min(100%, 1360px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 40px);
}

.loading-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.loading-card {
  width: min(100%, 420px);
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
  padding: 32px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.loading-card p {
  margin: 0;
  color: var(--muted);
}

.transient-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1, 3, 6, 0.52);
  backdrop-filter: blur(20px);
}

.transient-modal {
  width: min(100%, 420px);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 34px 32px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(10, 18, 28, 0.94), rgba(5, 10, 16, 0.98));
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.transient-modal strong {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.9rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.transient-modal p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.auth-aside-copy {
  display: grid;
  gap: 18px;
}

.workspace-kicker,
.auth-aside-copy span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--peach);
  font-weight: 700;
}

.auth-aside-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 4vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.auth-aside-copy p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.auth-benefits {
  display: grid;
  gap: 18px;
}

.auth-card,
.auth-benefits article {
  border-radius: 30px;
  border: 1px solid var(--line);
  background: var(--surface-strong);
  box-shadow: var(--shadow);
}

.auth-card-head p,
.auth-benefits article span {
  color: var(--muted);
}

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

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 28px;
  align-items: stretch;
}

.auth-aside {
  display: grid;
  align-content: space-between;
  gap: 28px;
  padding: clamp(26px, 4vw, 40px);
  border-radius: 34px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 18, 28, 0.86), rgba(6, 12, 19, 0.92));
  box-shadow: var(--shadow);
}

.auth-panel {
  display: grid;
  align-items: center;
}

.auth-card {
  padding: clamp(24px, 3vw, 34px);
  display: grid;
  gap: 22px;
}

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

.auth-card-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3vw, 2.8rem);
}

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

.auth-form-actions,
.auth-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.text-link {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--mint-strong);
  cursor: pointer;
  font-weight: 700;
}

.text-link:hover {
  color: var(--mint);
}

.button.compact,
.button-secondary.compact,
.button-ghost.compact,
.button-danger.compact {
  padding: 10px 14px;
  border-radius: 12px;
}

#view-root {
  min-width: 0;
}

.view {
  display: grid;
  gap: var(--section-gap);
}

.feedback-stack {
  display: grid;
  gap: 14px;
}

.feedback-card {
  padding: 14px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.feedback-info {
  color: var(--text);
  background: rgba(143, 227, 211, 0.12);
  border-color: rgba(143, 227, 211, 0.22);
}

.feedback-error {
  color: var(--text);
  background: rgba(255, 132, 132, 0.1);
  border-color: rgba(255, 132, 132, 0.2);
}

.feedback-progress {
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, rgba(143, 227, 211, 0.12), rgba(255, 255, 255, 0.03));
  border-color: rgba(143, 227, 211, 0.24);
}

.crawl-progress-head,
.crawl-progress-title,
.crawl-progress-meta,
.inline-crawl-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.crawl-progress-head,
.inline-crawl-head {
  justify-content: space-between;
}

.crawl-progress-title {
  justify-content: flex-start;
}

.crawl-progress-title strong,
.crawl-progress-current strong,
.inline-crawl-head strong {
  color: var(--text);
}

.crawl-progress-title p,
.crawl-progress-current span,
.crawl-progress-recent span,
.crawl-recent-empty,
.inline-crawl-url {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.crawl-progress-percent {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.crawl-progress-bar,
.inline-crawl-bar {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.crawl-progress-bar span,
.inline-crawl-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--mint), var(--peach));
  box-shadow: 0 0 24px rgba(143, 227, 211, 0.34);
  transition: width 220ms ease;
}

.crawl-progress-meta {
  flex-wrap: wrap;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
}

.crawl-stage-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.crawl-stage {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.crawl-stage::after {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(100% + 7px);
  width: calc(100% - 14px);
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.crawl-stage:last-child::after {
  display: none;
}

.crawl-stage-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.84rem;
  font-weight: 700;
  border: 1px solid var(--line);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.crawl-stage-copy {
  display: grid;
  gap: 4px;
}

.crawl-stage-copy strong {
  font-size: 0.92rem;
  color: var(--text);
}

.crawl-stage-copy span {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.crawl-stage.active {
  border-color: rgba(143, 227, 211, 0.28);
  background: rgba(143, 227, 211, 0.1);
  box-shadow: 0 16px 34px rgba(143, 227, 211, 0.12);
  transform: translateY(-1px);
}

.crawl-stage.active .crawl-stage-dot {
  color: #08201d;
  border-color: rgba(143, 227, 211, 0.38);
  background: linear-gradient(135deg, var(--mint), #dffff7);
}

.crawl-stage.done {
  border-color: rgba(73, 201, 157, 0.22);
  background: rgba(73, 201, 157, 0.07);
}

.crawl-stage.done .crawl-stage-dot {
  color: #08201d;
  border-color: rgba(73, 201, 157, 0.26);
  background: rgba(73, 201, 157, 0.22);
}

.crawl-progress-current,
.crawl-progress-recent {
  display: grid;
  gap: 8px;
}

.crawl-recent-list {
  display: grid;
  gap: 8px;
}

.crawl-recent-list span,
.inline-crawl-url {
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spinner-ring {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 50%;
  border: 2px solid rgba(143, 227, 211, 0.18);
  border-top-color: var(--mint);
  border-right-color: var(--peach);
  animation: spinner-rotate 0.82s linear infinite;
}

.spinner-ring-small {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}

.spinner-ring-error {
  border-color: rgba(255, 132, 132, 0.2);
  border-top-color: var(--danger);
  border-right-color: var(--danger);
  animation: none;
}

@keyframes spinner-rotate {
  to {
    transform: rotate(360deg);
  }
}

.view-overview {
  gap: 48px;
}

.view-overview .stats-row {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

.view-overview .stat-card {
  min-height: 156px;
  padding: 26px;
  gap: 14px;
}

.view-overview .stat-value {
  font-size: clamp(1.75rem, 2vw, 2.2rem);
  white-space: nowrap;
}

.view-overview .stat-foot {
  font-size: 0.88rem;
}

.view-overview .split-layout {
  gap: 36px;
}

.view-header {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
  align-items: flex-start;
}

.title-wrap {
  display: grid;
  gap: var(--space-3);
}

.page-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-title h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 2.9vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

.page-title svg {
  width: 28px;
  height: 28px;
  color: var(--peach);
}

.page-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.action-group,
.toolbar,
.inline-group,
.field-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.button,
.button-secondary,
.button-ghost,
.button-danger {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
  text-decoration: none;
  justify-content: center;
}

.button svg,
.button-secondary svg,
.button-ghost svg,
.button-danger svg {
  width: 16px;
  height: 16px;
}

.button {
  background: linear-gradient(135deg, var(--mint), #d8fff5);
  color: #07201d;
  font-weight: 800;
  box-shadow: 0 16px 40px rgba(101, 202, 184, 0.2);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
  color: var(--text);
}

.button-secondary[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(143, 227, 211, 0.9), rgba(219, 249, 243, 0.94));
  border-color: rgba(143, 227, 211, 0.34);
  color: #0a201d;
}

.button-secondary[aria-pressed="false"] {
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.button-ghost {
  background: rgba(255, 255, 255, 0.015);
  border-color: var(--line);
  color: var(--muted);
}

.button-danger {
  background: rgba(255, 132, 132, 0.08);
  border-color: rgba(255, 132, 132, 0.2);
  color: #ffb4b4;
}

.button:hover,
.button-secondary:hover,
.button-ghost:hover,
.button-danger:hover {
  transform: translateY(-1px);
}

.button:disabled,
.button-secondary:disabled,
.button-ghost:disabled,
.button-danger:disabled {
  opacity: 0.58;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--card-gap);
  align-items: stretch;
}

.stat-card,
.surface {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(8, 12, 17, 0.92), rgba(3, 6, 10, 0.98));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stat-card::after,
.surface::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 32%);
  pointer-events: none;
}

.stat-card {
  padding: var(--panel-padding);
  min-height: 176px;
  display: grid;
  align-content: start;
  gap: 18px;
}

.stat-card.highlight {
  box-shadow:
    0 0 0 1px rgba(143, 227, 211, 0.12),
    0 30px 90px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-label {
  color: var(--muted);
  font-size: 0.88rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 2.9rem;
  font-weight: 700;
  line-height: 0.96;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.stat-foot {
  color: #b5c5cf;
  font-size: 0.92rem;
}

.surface {
  padding: var(--panel-padding);
}

.surface-head {
  display: flex;
  justify-content: space-between;
  gap: var(--space-5);
  align-items: center;
  margin-bottom: 26px;
}

.surface-title {
  display: grid;
  gap: 4px;
}

.surface-title h2,
.surface-title h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.24rem;
}

.surface-title p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.86fr);
  gap: var(--section-gap);
  align-items: start;
}

.stack-layout {
  display: grid;
  gap: var(--card-gap);
}

.table-shell {
  width: 100%;
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(154, 183, 179, 0.1);
  background: rgba(255, 255, 255, 0.018);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 18px 18px;
  border-bottom: 1px solid rgba(154, 183, 179, 0.1);
  text-align: left;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  color: #7f8fa9;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

td {
  color: var(--text);
  font-size: 0.95rem;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.meta-text {
  color: var(--muted);
  font-size: 0.88rem;
}

.chip-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.chip-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  cursor: pointer;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.chip-filter strong {
  color: var(--text);
  font-size: 0.85rem;
}

.chip-filter:hover {
  transform: translateY(-1px);
  color: var(--text);
}

.chip-filter.active {
  color: var(--text);
  border-color: rgba(143, 227, 211, 0.32);
  background: rgba(143, 227, 211, 0.12);
}

.status-pill,
.chip,
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.8rem;
}

.status-pill.active,
.chip.active {
  color: #c9fff4;
  border-color: rgba(73, 201, 157, 0.24);
  background: rgba(73, 201, 157, 0.08);
}

.status-pill.warning,
.chip.warning {
  color: #ffe2a1;
  border-color: rgba(255, 201, 107, 0.24);
  background: rgba(255, 201, 107, 0.08);
}

.status-pill.error,
.chip.error {
  color: #ffc2c2;
  border-color: rgba(255, 132, 132, 0.24);
  background: rgba(255, 132, 132, 0.08);
}

.chip {
  color: #bcd1e5;
  background: rgba(255, 255, 255, 0.03);
}

.empty-state {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 56px 40px;
}

.empty-state svg {
  width: 44px;
  height: 44px;
  color: var(--peach);
  margin-bottom: 18px;
}

.empty-state strong {
  display: block;
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.8rem;
  font-family: var(--font-display);
}

.change-list {
  display: grid;
  gap: 0;
}

.change-item {
  display: grid;
  gap: 14px;
  padding: 24px 0;
  border-bottom: 1px solid rgba(154, 183, 179, 0.1);
}

.change-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.change-top,
.product-main,
.competitor-top,
.row-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.change-title {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.change-title strong {
  font-size: 1.04rem;
}

.change-title span {
  color: var(--muted);
  font-size: 0.88rem;
}

.change-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

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

.change-highlight {
  display: grid;
  gap: 4px;
  min-width: 132px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.change-highlight small {
  color: var(--muted);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.change-highlight strong {
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.4;
}

.type-badge.type-price {
  color: #bdf4dc;
  border-color: rgba(73, 201, 157, 0.22);
  background: rgba(73, 201, 157, 0.1);
}

.type-badge.type-new-products {
  color: #c9ecff;
  border-color: rgba(126, 192, 255, 0.22);
  background: rgba(126, 192, 255, 0.1);
}

.type-badge.type-removed-products {
  color: #ffd4d4;
  border-color: rgba(255, 132, 132, 0.22);
  background: rgba(255, 132, 132, 0.09);
}

.type-badge.type-categories {
  color: #ffe2b7;
  border-color: rgba(255, 201, 107, 0.22);
  background: rgba(255, 201, 107, 0.09);
}

.type-badge.type-content {
  color: #dcd7ff;
  border-color: rgba(164, 151, 255, 0.22);
  background: rgba(164, 151, 255, 0.09);
}

.competitor-list {
  display: grid;
  gap: 18px;
}

.competitor-card {
  padding: 28px 30px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(9, 13, 19, 0.76), rgba(4, 7, 11, 0.9));
  display: grid;
  gap: 18px;
}

.inline-crawl-progress {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(143, 227, 211, 0.2);
  background: rgba(143, 227, 211, 0.08);
}

.inline-crawl-head {
  font-size: 0.92rem;
}

.competitor-headline {
  display: grid;
  gap: 6px;
}

.competitor-headline h3 {
  margin: 0;
  font-size: 1.5rem;
  font-family: var(--font-display);
}

.competitor-headline p {
  margin: 0;
  color: var(--muted);
}

.competitor-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  color: var(--muted);
  font-size: 0.92rem;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.product-thumb {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(143, 227, 211, 0.18), rgba(242, 179, 139, 0.16));
  border: 1px solid rgba(143, 227, 211, 0.14);
  color: #ecfffb;
  font-family: var(--font-display);
  font-size: 0.8rem;
  overflow: hidden;
}

.product-thumb-image {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(60, 79, 92, 0.14);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-info {
  display: grid;
  gap: 4px;
}

.product-info strong {
  max-width: 340px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-info span {
  color: var(--muted);
  font-size: 0.85rem;
}

.field,
.select-field,
.textarea-field {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  padding: 15px 16px;
  min-height: 54px;
  outline: none;
}

.select-field {
  color-scheme: inherit;
}

.field:focus,
.select-field:focus,
.textarea-field:focus {
  border-color: rgba(143, 227, 211, 0.42);
  box-shadow: 0 0 0 3px rgba(143, 227, 211, 0.12);
}

.field::placeholder,
.textarea-field::placeholder {
  color: #728198;
}

.textarea-field {
  min-height: 110px;
  resize: vertical;
}

.label-group {
  display: grid;
  gap: var(--space-3);
}

.label-group label,
.form-grid legend,
.small-label {
  color: #8c9bb0;
  font-size: 0.88rem;
}

.form-grid {
  display: grid;
  gap: 20px;
}

.competitor-intake-surface {
  padding-bottom: 28px;
}

.competitor-form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: end;
}

.field-span-3 {
  grid-column: span 3;
}

.competitor-form-submit {
  display: flex;
  justify-content: flex-end;
  align-items: end;
}

.competitor-form-submit .button {
  width: 100%;
  justify-content: center;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}

.checkbox-line,
.toggle-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(154, 183, 179, 0.08);
}

.checkbox-line:last-child,
.toggle-line:last-child {
  border-bottom: 0;
}

.checkbox-copy {
  display: grid;
  gap: 4px;
}

.checkbox-copy strong {
  color: var(--text);
  font-size: 0.96rem;
}

.checkbox-copy span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.settings-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--muted);
  line-height: 1.6;
}

.settings-note strong {
  color: var(--text);
}

.search-wrap {
  position: relative;
  flex: 1 1 420px;
}

.search-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #7d8ca0;
}

.search-wrap .field {
  padding-left: 42px;
}

.toolbar {
  align-items: center;
  gap: 16px;
  margin-top: 0;
  padding: 2px 0 6px;
}

.toolbar > .select-field {
  flex: 0 0 220px;
  max-width: 250px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(151, 179, 196, 0.08);
}

.pagination-summary,
.pagination-page {
  color: var(--muted);
  font-size: 0.88rem;
}

.pagination-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pagination-button {
  min-width: 96px;
  justify-content: center;
}

.right-align {
  margin-left: auto;
}

.tiny-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.tiny-link {
  color: var(--mint-strong);
  font-size: 0.88rem;
  text-decoration: none;
}

.tiny-link:hover {
  text-decoration: underline;
}

.separated {
  display: grid;
  gap: 12px;
}

.empty-actions {
  justify-content: center;
  margin-top: 18px;
}

@media (max-width: 1280px) {
  .stats-row,
  .settings-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .competitor-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .field-span-3 {
    grid-column: span 2;
  }

  .view-overview .stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .auth-shell {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .crawl-stage-flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .view-overview .stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: relative;
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workspace {
    padding: 32px 24px 28px;
  }

  .workspace-topbar {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
  }

  .workspace-topbar-actions {
    width: auto;
    margin-left: auto;
  }

  .topbar-notifications {
    width: auto;
  }

  .topbar-icon-button {
    width: 52px;
    justify-content: center;
  }

  .notification-panel {
    left: auto;
    right: 0;
    width: min(360px, calc(100vw - 32px));
  }

  .feature-grid,
  .preview-stats {
    grid-template-columns: 1fr;
  }

  .view-header {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 720px) {
  .workspace-topbar {
    justify-content: flex-end;
    align-items: center;
  }

  .workspace-topbar-actions {
    gap: 8px;
  }

  .notification-panel {
    width: min(340px, calc(100vw - 24px));
  }

  .notification-feed-item {
    padding: 12px 0 12px 16px;
  }

  .notification-feed-row {
    gap: 8px;
  }

  .boot-overlay {
    padding: 18px;
  }

  .boot-sequence {
    gap: 22px;
  }

  .boot-spinner-stage {
    width: min(66vw, 220px);
  }

  .boot-spinner-stage::before {
    inset: -10px;
  }

  .boot-spinner-stage::after {
    inset: -20px;
  }

  .boot-spinner-core {
    width: 78px;
    height: 78px;
  }

  .boot-spinner-core svg {
    width: 24px;
    height: 24px;
  }

  .boot-copy-line {
    font-size: 1.38rem;
    min-height: 1.8em;
  }

  .boot-copy-subline {
    font-size: 0.88rem;
    max-width: 270px;
  }

  .stats-row,
  .settings-grid {
    grid-template-columns: 1fr;
  }

  .competitor-form-grid {
    grid-template-columns: 1fr;
  }

  .field-span-3 {
    grid-column: auto;
  }

  .view-overview .stats-row {
    grid-template-columns: 1fr;
  }

  .surface,
  .stat-card {
    padding: 22px;
    border-radius: 22px;
  }

  th,
  td {
    padding: 14px 10px;
  }

  .page-title h1 {
    font-size: 2rem;
  }

  .change-top,
  .competitor-top,
  .row-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .toolbar > .select-field,
  .search-wrap {
    flex: 1 1 100%;
    max-width: none;
  }

  .pagination-bar,
  .pagination-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .pagination-button {
    width: 100%;
  }

  .crawl-stage-flow {
    grid-template-columns: 1fr;
  }

  .crawl-progress-head,
  .crawl-progress-title,
  .crawl-progress-meta,
  .inline-crawl-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .crawl-stage::after {
    display: none;
  }

  .site-shell,
  .auth-shell {
    padding: 22px 16px 34px;
  }

  .auth-aside,
  .auth-card,
  .preview-card {
    border-radius: 24px;
  }

  .hero-copy h1,
  .auth-aside-copy h1 {
    font-size: 2.3rem;
  }
}
