:root {
  color-scheme: dark;
  --bg: #050914;
  --bg-2: #081426;
  --panel: #0d1b2e;
  --panel-2: #10243d;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f6fbff;
  --muted: #95a7bb;
  --lime: #b8ff3c;
  --lime-2: #72d91f;
  --orange: #ff8a1f;
  --red: #ff4d5e;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 255, 60, 0.13), transparent 34rem),
    linear-gradient(145deg, #050914 0%, #071225 52%, #090b12 100%);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 42px;
}

.shell-wide {
  width: min(1220px, calc(100% - 24px));
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  margin-bottom: 20px;
}

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

.brand small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.brand-mark,
.project-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(184, 255, 60, 0.42);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(184, 255, 60, 0.18), rgba(255, 138, 31, 0.11));
  color: var(--lime);
  font-weight: 900;
}

.brand-mark.large {
  width: 58px;
  height: 58px;
  font-size: 22px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.hero h1,
.panel h1,
.login-title h1 {
  margin: 0;
  font-size: clamp(42px, 8vw, 84px);
  line-height: 0.92;
  letter-spacing: 0;
}

.panel h1 {
  font-size: clamp(30px, 5vw, 54px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-chip,
.version-badge {
  padding: 10px 12px;
  border: 1px solid rgba(255, 138, 31, 0.42);
  border-radius: 8px;
  color: #ffd4ae;
  background: rgba(255, 138, 31, 0.1);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

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

.project-card,
.panel,
.login-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(16, 36, 61, 0.96), rgba(10, 20, 35, 0.96));
  box-shadow: var(--shadow);
}

.project-card {
  padding: 18px;
}

.project-head,
.panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.project-head {
  justify-content: start;
}

.project-head h2,
.panel h2 {
  margin: 0;
  font-size: 23px;
  line-height: 1.15;
}

.metric-grid,
.detail-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.detail-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  font-size: 16px;
  font-weight: 800;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.status-pass {
  color: #081205;
  background: var(--lime);
}

.status-issues {
  color: #1f1100;
  background: #ffb04d;
}

.status-critical {
  color: #fff;
  background: var(--red);
}

.status-empty {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
}

.action-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.primary-button,
.secondary-button,
.table-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 1000;
  letter-spacing: 0;
  cursor: pointer;
}

.primary-button {
  color: #061006;
  background: linear-gradient(180deg, var(--lime), var(--lime-2));
}

.secondary-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.primary-button.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.primary-button.full {
  width: 100%;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.breadcrumb a {
  color: var(--lime);
}

.breadcrumb span::before,
.breadcrumb a + a::before {
  content: "/";
  margin-right: 8px;
  color: var(--muted);
}

.panel {
  margin-bottom: 16px;
  padding: 18px;
}

.build-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.7fr);
  gap: 16px;
}

.notes {
  margin: 10px 0 20px;
  color: #dfe8f3;
  font-size: 16px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.qr-panel {
  text-align: center;
}

.qr-panel img {
  width: min(220px, 100%);
  height: auto;
  margin: 16px auto;
  border-radius: 8px;
  background: #fff;
}

.mono {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
}

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

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

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 15px;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

td a {
  color: var(--lime);
  font-weight: 900;
}

.table-action {
  min-height: 34px;
  padding: 8px 10px;
  color: #061006;
  background: var(--lime);
  font-size: 12px;
}

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

.login-panel {
  width: min(440px, 100%);
  margin: 12vh auto 0;
  padding: 24px;
}

.login-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.login-title h1 {
  font-size: 38px;
}

.form-stack,
.report-form {
  display: grid;
  gap: 14px;
}

label > span,
legend {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

input[type="text"],
input[type="password"],
textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.2);
}

textarea {
  resize: vertical;
}

.form-error {
  color: #ffd1d6;
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.segmented label {
  min-width: 0;
}

.segmented input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.segmented span,
.file-label {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  font-size: 15px;
  font-weight: 1000;
  text-align: center;
}

.segmented input:checked + span {
  border-color: var(--lime);
  color: #061006;
  background: var(--lime);
}

.file-label {
  place-items: stretch;
  padding: 12px;
}

.file-label input {
  width: 100%;
  margin-top: 10px;
  color: var(--muted);
}

.report-list,
.attachment-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.report-link,
.attachment-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.attachment-row strong {
  flex: 1;
  overflow-wrap: anywhere;
}

.attachment-row small {
  color: var(--muted);
}

.copy-box {
  min-height: 190px;
  margin: 10px 0 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 14px;
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 20px, 640px);
    padding-top: 10px;
  }

  .hero {
    align-items: start;
    flex-direction: column;
    padding: 16px 0 20px;
  }

  .project-grid,
  .build-layout,
  .metric-grid,
  .detail-list,
  .segmented {
    grid-template-columns: 1fr;
  }

  .project-card,
  .panel,
  .login-panel {
    padding: 15px;
  }

  .topbar {
    min-height: 52px;
  }

  .brand small {
    display: none;
  }
}
