:root {
  --bg: #edf3f8;
  --bg-soft: #f7fafc;
  --card: rgba(255, 255, 255, 0.94);
  --line: #d8e2ee;
  --text: #102238;
  --muted: #61748f;
  --navy: #16385f;
  --navy-strong: #0f2b4a;
  --sky: #e8f0fb;
  --green-bg: #ecf8f1;
  --green-line: #c9e9d7;
  --amber-bg: #fff7ea;
  --amber-line: #f0deba;
  --rose-bg: #fff1f1;
  --rose-line: #efc5c5;
  --shadow: 0 26px 60px rgba(18, 34, 56, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(205, 226, 251, 0.65), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
  color: var(--text);
}

.shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 28px;
}

.hidden {
  display: none !important;
}

.access-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 24, 42, 0.52);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  padding: 24px;
}

.access-card,
.hero,
.card,
.summary-card,
.step-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.access-card {
  width: min(100%, 520px);
  padding: 28px;
}

.hero {
  padding: 30px 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.hero-copy {
  max-width: 760px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #11355a, #255586);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.brand-mark span {
  color: #fff;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.05em;
}

.hero-note {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(233, 242, 255, 0.95), rgba(248, 252, 255, 0.92));
  border: 1px solid #d6e5fa;
  color: #24456d;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  background: #e4eefc;
  color: #22466f;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

h1,
h2 {
  margin: 0 0 8px;
}

h1 {
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero p,
.muted {
  color: var(--muted);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.summary-card {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.summary-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  font-weight: 800;
  font-size: 18px;
}

.summary-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 4px;
}

.summary-card span:last-child {
  color: var(--muted);
}

.tone-blue .summary-icon {
  background: #dceafb;
  color: #22466f;
}

.tone-green .summary-icon {
  background: #dbf1e2;
  color: #1d7a45;
}

.tone-amber .summary-icon {
  background: #ffedc9;
  color: #b27712;
}

.tone-slate .summary-icon {
  background: #dde7f5;
  color: #364f72;
}

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.step-card {
  padding: 18px 20px;
  display: grid;
  gap: 8px;
}

.step-index {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #123559;
  color: #fff;
  font-weight: 800;
}

.step-card strong {
  font-size: 18px;
}

.step-card span:last-child {
  color: var(--muted);
  line-height: 1.45;
}

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

.workspace-tabs {
  display: inline-flex;
  gap: 10px;
  padding: 8px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(16, 34, 56, 0.08);
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.workspace-tab {
  background: transparent;
  color: #4b6280;
  box-shadow: none;
  padding: 12px 18px;
  border-radius: 16px;
}

.workspace-tab:hover {
  background: #eef4fd;
  color: #20446d;
  box-shadow: none;
  transform: none;
}

.workspace-tab.active {
  background: linear-gradient(135deg, #17395f, #275b8d);
  color: #fff;
  box-shadow: 0 16px 28px rgba(22, 56, 95, 0.18);
}

.workspace-panel {
  display: none;
}

.workspace-panel.active {
  display: block;
}

.card {
  padding: 24px;
}

.full {
  grid-column: 1 / -1;
}

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

label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
}

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

input,
select,
textarea {
  border: 1px solid #d4ddea;
  background: #fff;
  border-radius: 16px;
  padding: 14px 16px;
  color: #13263c;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #7ca7da;
  box-shadow: 0 0 0 4px rgba(124, 167, 218, 0.16);
}

textarea {
  width: 100%;
  min-height: 180px;
  resize: vertical;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  margin-top: 34px;
}

.inline-checkbox {
  margin-top: 0;
}

.checkbox input {
  width: 18px;
  height: 18px;
}

.action-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 18px;
  flex-wrap: wrap;
}

.action-row.compact {
  margin-top: 6px;
}

button {
  border: none;
  border-radius: 16px;
  padding: 14px 18px;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

button:hover {
  transform: translateY(-1px);
  background: var(--navy-strong);
  box-shadow: 0 16px 28px rgba(22, 56, 95, 0.16);
}

button.ghost {
  background: #eaf1fb;
  color: #22466f;
}

button.ghost:hover {
  background: #deebfb;
}

button.subtle {
  background: #f1f5fa;
  color: #4e6482;
}

.status-panel,
.list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.status-box,
.list-item {
  position: relative;
  border: 1px solid #dde5f0;
  background: #fbfdff;
  border-radius: 20px;
  padding: 16px 18px;
}

.archived-item {
  opacity: 0.82;
  background: #f6f8fb;
}

.status-box strong,
.list-item strong {
  display: block;
  margin-bottom: 6px;
}

.status-box-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 13px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: currentColor;
}

.tone-success {
  border-color: var(--green-line);
  background: var(--green-bg);
}

.tone-warning {
  border-color: var(--amber-line);
  background: var(--amber-bg);
}

.tone-danger {
  border-color: var(--rose-line);
  background: var(--rose-bg);
}

.status-success {
  background: #dff3e6;
  color: #1d7a45;
}

.status-warning {
  background: #fff0d0;
  color: #af7410;
}

.status-danger {
  background: #ffe0e0;
  color: #af3838;
}

.list-item-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.list-item-main {
  display: grid;
  gap: 8px;
}

.list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid #dbe4ee;
  border-radius: 999px;
  padding: 7px 10px;
  background: #fff;
  color: #425873;
  font-size: 13px;
  font-weight: 600;
}

.meta-pill.status-neutral {
  background: #f3f6fb;
  color: #526882;
}

.meta-pill.status-expired {
  background: #ffe2e2;
  color: #b33b3b;
  border-color: #f0c0c0;
}

.meta-pill.status-critical {
  background: #ffead8;
  color: #b25b0f;
  border-color: #f1d0a4;
}

.meta-pill.status-healthy {
  background: #e4f6e8;
  color: #257848;
  border-color: #cde7d4;
}

.archive-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  background: #eef2f7;
  color: #566b84;
  border: 1px solid #d7e0ea;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.audit-list {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.audit-item {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 14px;
  padding: 18px 16px;
  border-radius: 22px;
  border: 1px solid #dde5f0;
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(244, 248, 252, 0.95));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.audit-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 5px;
}

.audit-dot.info {
  background: #4b78b3;
}

.audit-dot.warning {
  background: #c58a1a;
}

.audit-dot.danger {
  background: #b84848;
}

.audit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.audit-title {
  font-weight: 800;
}

.audit-detail {
  color: var(--muted);
  line-height: 1.45;
}

.audit-shell {
  background:
    radial-gradient(circle at top right, rgba(224, 236, 252, 0.65), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 249, 253, 0.96));
}

.audit-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
}

.audit-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}

.audit-filter-field {
  min-width: 180px;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid #dce6f2;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 248, 253, 0.9));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.audit-filter-field span {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #5a6f8a;
}

.audit-filter-field input,
.audit-filter-field select {
  padding: 11px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
}

.audit-summary {
  color: #56708e;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  background: #edf4fc;
  border: 1px solid #dbe7f5;
}

.audit-frame {
  margin-top: 18px;
  border-radius: 26px;
  border: 1px solid #d9e4ef;
  background: rgba(242, 247, 252, 0.9);
  padding: 18px;
  max-height: 720px;
  overflow: auto;
}

.audit-frame::-webkit-scrollbar {
  width: 10px;
}

.audit-frame::-webkit-scrollbar-thumb {
  background: #c8d7ea;
  border-radius: 999px;
}

.list-item-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.list-item-actions button {
  padding: 12px 15px;
}

@media (max-width: 1160px) {
  .summary-grid,
  .journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .shell {
    padding: 18px;
  }

  .grid,
  .form-grid,
  .hero,
  .summary-grid,
  .journey-grid,
  .status-box-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-actions,
  .list-item-head,
  .section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .audit-filters {
    flex-direction: column;
  }

  .audit-filter-field {
    min-width: 0;
    width: 100%;
  }

  .workspace-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
