:root {
  --bg: #061018;
  --bg-elevated: #0b1e2b;
  --panel: rgba(14, 32, 42, 0.92);
  --panel-strong: #132b39;
  --border: rgba(24, 210, 230, 0.16);
  --text: #ecf7fb;
  --muted: #99bcc9;
  --accent: #18d2e6;
  --accent-soft: rgba(24, 210, 230, 0.12);
  --highlight: #d8ef4b;
  --danger: #ff6b5f;
  --warning: #f5a524;
  --success: #79d7ab;
  --shadow: 0 18px 64px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(24, 210, 230, 0.14), transparent 30%),
    radial-gradient(circle at bottom left, rgba(216, 239, 75, 0.12), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

.auth-shell {
  display: grid;
  gap: 18px;
  max-width: 840px;
  margin: 0 auto;
  min-height: 100vh;
  align-content: center;
  padding: 32px 24px;
}

.auth-panel {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(11, 30, 43, 0.94), rgba(18, 43, 57, 0.88));
  box-shadow: var(--shadow);
  padding: 28px;
}

.auth-form,
.auth-links {
  display: grid;
  gap: 12px;
}

.auth-links {
  margin: 18px 0;
}

.auth-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.notice {
  margin: 16px 0;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(24, 210, 230, 0.08);
  color: var(--text);
  padding: 14px 16px;
  line-height: 1.5;
}

.notice.success {
  border-color: rgba(121, 215, 171, 0.42);
  background: rgba(121, 215, 171, 0.12);
}

.notice.danger {
  border-color: rgba(255, 107, 95, 0.42);
  background: rgba(255, 107, 95, 0.12);
}

.link-button {
  display: inline-flex;
  justify-content: center;
  text-decoration: none;
}

.shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  border-right: 1px solid var(--border);
  background: rgba(7, 18, 24, 0.9);
  padding: 24px 20px;
}

.brand {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 1.9rem;
}

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

.brand-logo {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: contain;
}

.subtitle {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.mode-chip,
.nav-button,
.pill,
.metric-card,
.action-button,
.ghost-button {
  border-radius: 999px;
}

.mode-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  background: var(--accent-soft);
  color: var(--text);
  padding: 8px 14px;
  margin-bottom: 18px;
}

.mode-chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--highlight);
}

.nav {
  display: grid;
  gap: 10px;
}

.reviewer-card {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(24, 210, 230, 0.06);
}

.reviewer-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reviewer-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.reviewer-email {
  margin: 0 0 8px;
  color: var(--muted);
}

.nav-button {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
}

.nav-button.active {
  border-color: var(--border);
  background: rgba(24, 210, 230, 0.08);
}

.content {
  padding: 28px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(11, 30, 43, 0.92), rgba(18, 43, 57, 0.88));
  box-shadow: var(--shadow);
}

.hero-copy h2 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 2rem;
}

.hero-copy p {
  margin: 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.6;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 12px;
}

.metric-card {
  border: 1px solid var(--border);
  background: rgba(7, 18, 24, 0.5);
  padding: 14px 16px;
}

.metric-label {
  margin: 0 0 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.metric-value {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
}

.section-grid {
  display: grid;
  gap: 18px;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 20px;
}

.panel h3 {
  margin: 0 0 8px;
  font-family: Georgia, serif;
  font-size: 1.35rem;
}

.panel-copy {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

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

.item {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(8, 20, 28, 0.82);
  padding: 16px;
}

.item.compact {
  padding: 12px 14px;
}

.item-header,
.item-meta,
.item-actions,
.zone-form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.item-header {
  justify-content: space-between;
}

.item-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
}

.item-subtitle,
.item-body,
.audit-detail {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  padding: 6px 10px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(24, 210, 230, 0.08);
}

.pill.warning {
  border-color: rgba(245, 165, 36, 0.42);
  color: var(--warning);
}

.pill.danger {
  border-color: rgba(255, 107, 95, 0.42);
  color: var(--danger);
}

.pill.success {
  border-color: rgba(121, 215, 171, 0.42);
  color: var(--success);
}

.action-button,
.ghost-button {
  appearance: none;
  border: 1px solid var(--border);
  cursor: pointer;
  padding: 10px 14px;
}

.action-button {
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
}

.ghost-button {
  background: transparent;
  color: var(--text);
}

.action-button.warning {
  background: var(--warning);
}

.action-button.danger {
  background: var(--danger);
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.table-shell {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  background: rgba(7, 18, 24, 0.72);
  margin: 16px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

th,
td {
  border-bottom: 1px solid var(--border);
  padding: 12px 14px;
  text-align: left;
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

code {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: var(--highlight);
}

.zone-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  color: var(--muted);
  font-size: 0.82rem;
}

.field input,
.field textarea {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(7, 18, 24, 0.92);
  color: var(--text);
  padding: 12px 14px;
}

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

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

  .sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .hero {
    flex-direction: column;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 720px) {
  .auth-shell,
  .content {
    padding: 20px;
  }

  .auth-panel,
  .hero,
  .panel {
    padding: 20px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }
}
