﻿:root {
  --bg: #121420;
  --panel: #1e2336;
  --panel-soft: #252c44;
  --line: rgba(255, 255, 255, 0.12);
  --text: #f7f8fc;
  --muted: #bcc4d8;
  --ey-yellow: #ffe600;
  --ey-yellow-dark: #f5cf00;
  --green: #45d481;
  --orange: #ffbf47;
  --red: #ff5f68;
  --blue: #8ab4ff;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top right, rgba(255, 230, 0, 0.09), transparent 25%), var(--bg);
}

h1,
h2,
h3,
p {
  margin: 0;
}

.shell {
  width: min(1400px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 40px;
}

.hero,
.page-header,
.table-header,
.lifecycle-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.ey-kicker {
  margin-bottom: 8px;
  color: var(--ey-yellow);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.76rem;
  font-weight: 700;
}

h1 {
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
  line-height: 1.12;
  margin-bottom: 10px;
}

.hero-copy {
  color: var(--muted);
  max-width: 820px;
}

.legend,
.panel,
.tool-tile {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(41, 48, 74, 0.96) 0%, rgba(28, 32, 49, 0.96) 100%);
  border-radius: var(--radius);
}

.legend {
  min-width: 230px;
  padding: 12px 14px;
  display: grid;
  gap: 8px;
}

.legend span {
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.dot-green {
  background: var(--green);
}

.dot-yellow {
  background: var(--orange);
}

.dot-red {
  background: var(--red);
}

.panel {
  padding: 18px;
}

.lifecycle-panel {
  margin-top: 24px;
}

.lifecycle-stats {
  display: grid;
  gap: 4px;
  color: var(--muted);
  text-align: right;
  font-size: 0.9rem;
}

.progress-track {
  margin-top: 14px;
  width: 100%;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--ey-yellow) 0%, var(--ey-yellow-dark) 100%);
  transition: width 0.25s ease;
}

.progress-markers {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 10px;
}

.marker {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 3px;
}

.marker-step {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
}

.marker-title {
  font-size: 0.78rem;
  font-weight: 600;
}

.marker-note {
  font-size: 0.72rem;
  color: var(--muted);
}

.marker-signoff {
  font-size: 0.68rem;
  color: #ffd2d5;
  background: rgba(255, 95, 104, 0.2);
  border-radius: 999px;
  width: fit-content;
  padding: 2px 8px;
}

.status-complete .marker-step {
  background: rgba(69, 212, 129, 0.3);
}

.status-review .marker-step {
  background: rgba(138, 180, 255, 0.28);
}

.status-signoff .marker-step {
  background: rgba(255, 95, 104, 0.28);
}

.status-progress .marker-step {
  background: rgba(255, 191, 71, 0.28);
}

.status-not-started .marker-step {
  background: rgba(255, 255, 255, 0.16);
}

.active-marker {
  outline: 2px solid rgba(255, 230, 0, 0.65);
}

.section-title {
  margin-top: 24px;
  margin-bottom: 14px;
}

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

.tool-tile {
  text-decoration: none;
  color: inherit;
  padding: 16px;
  display: grid;
  gap: 9px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.tool-tile:hover,
.tool-tile:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(255, 230, 0, 0.55);
}

.tile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tile-step {
  font-weight: 800;
  font-size: 1.1rem;
}

.tile-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 30%, #fff6a0 0%, var(--ey-yellow) 45%, var(--ey-yellow-dark) 100%);
  color: #11131a;
  font-weight: 800;
  font-size: 1.35rem;
}

.tool-tile h3 {
  font-size: 1rem;
}

.tool-tile p {
  color: var(--muted);
  font-size: 0.87rem;
}

.tile-copy {
  min-height: 36px;
}

.tile-footer {
  display: grid;
  gap: 6px;
  font-size: 0.8rem;
  color: #dce2f1;
}

.signoff-inline {
  color: #ffd2d5;
}

.status-tag {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

.status-tag.status-complete {
  background: rgba(69, 212, 129, 0.2);
  color: #b6f6d0;
}

.status-tag.status-review {
  background: rgba(138, 180, 255, 0.2);
  color: #d4e4ff;
}

.status-tag.status-signoff {
  background: rgba(255, 95, 104, 0.2);
  color: #ffd2d5;
}

.status-tag.status-progress {
  background: rgba(255, 191, 71, 0.2);
  color: #ffe5b5;
}

.status-tag.status-not-started {
  background: rgba(255, 255, 255, 0.14);
  color: #d9def0;
}

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

.back-link {
  color: var(--ey-yellow);
  text-decoration: none;
  font-weight: 700;
  margin-top: 6px;
}

.tool-progress-panel {
  margin-bottom: 16px;
}

.tool-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
  align-items: start;
}

.side-panel {
  display: grid;
  gap: 14px;
}

.supporting-tools {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.tool-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn,
.btn-ghost,
.btn-link {
  cursor: pointer;
  font: inherit;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  background: var(--ey-yellow);
  color: #11131a;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 9px 14px;
  background: transparent;
  color: var(--text);
}

.btn-link {
  border: 0;
  background: transparent;
  color: var(--ey-yellow);
  text-decoration: underline;
  padding: 0;
}

.table-header {
  margin-bottom: 12px;
}

.table-header p {
  margin-top: 6px;
  color: var(--muted);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
}

td input,
td select {
  min-width: 150px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 9px 10px;
  color: var(--text);
  background: rgba(11, 14, 24, 0.5);
  font: inherit;
}

textarea {
  min-height: 95px;
  resize: vertical;
}

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

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

.form-field span {
  color: var(--muted);
  font-size: 0.86rem;
}

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

@media (max-width: 1200px) {
  .tiles-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .progress-markers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

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

  .hero,
  .page-header,
  .table-header,
  .lifecycle-header {
    display: grid;
  }

  .lifecycle-stats {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .shell {
    width: calc(100% - 20px);
    padding-top: 18px;
  }

  .tiles-grid,
  .generic-form,
  .progress-markers {
    grid-template-columns: 1fr;
  }
}
