@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500;700;800&family=Rajdhani:wght@400;500;600;700&display=swap');

:root {
  --bg-1: #02050a;
  --bg-2: #07101a;
  --bg-3: #0b1726;
  --panel: rgba(7, 12, 20, 0.82);
  --panel-2: rgba(10, 16, 27, 0.92);
  --panel-3: rgba(12, 20, 34, 0.88);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.18);
  --muted: rgba(236, 243, 255, 0.74);
  --text: #eef5ff;
  --blue: #55abff;
  --blue-2: #2d81dc;
  --red: #db3848;
  --red-2: #b91f39;
  --success: #8fe0ad;
  --danger: #ffb0b7;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 20px 55px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Rajdhani", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at 16% 18%, rgba(85, 171, 255, 0.18), transparent 24%),
    radial-gradient(circle at 84% 16%, rgba(219, 56, 72, 0.16), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(85, 171, 255, 0.06), transparent 28%),
    linear-gradient(160deg, var(--bg-3), var(--bg-1) 64%);
}

body {
  position: relative;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    linear-gradient(rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02)),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
  opacity: 0.22;
}

body::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.26)),
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.035), transparent 44%);
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
  transform: none !important;
  box-shadow: none !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(236, 243, 255, 0.42);
}

strong {
  color: #ffffff;
}

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

h1,
h2,
h3,
.brand-title,
.panel-title,
.module-title,
.hero-title {
  font-family: "Orbitron", sans-serif;
}

p {
  margin: 0;
}

.shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  width: min(1180px, calc(100vw - 2rem));
  margin: 1rem auto 0;
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--border);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(5, 9, 16, 0.78);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-mark {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: rgba(236, 243, 255, 0.66);
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-shadow:
    0 0 14px rgba(85, 171, 255, 0.22),
    0 0 20px rgba(219, 56, 72, 0.08);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.page-body {
  width: min(1180px, calc(100vw - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.2rem;
}

.hero-card,
.panel-card,
.access-card,
.info-card,
.auth-module,
.application-card,
.review-application-card,
.modal-card,
.summary-panel,
.empty-panel {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.hero-card::before,
.panel-card::before,
.access-card::before,
.auth-module::before,
.info-card::before,
.application-card::before,
.review-application-card::before,
.modal-card::before,
.summary-panel::before,
.empty-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), rgba(255, 255, 255, 0.35), var(--red));
  opacity: 0.85;
}

.hero-card {
  margin-top: 2.6rem;
  padding: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.9fr);
  gap: 1.4rem;
  align-items: stretch;
}

.hero-copy-stack {
  display: grid;
  align-content: center;
  gap: 1rem;
  padding: 0.4rem 0.25rem 0.25rem;
}

.eyebrow,
.module-kicker,
.card-kicker,
.summary-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: rgba(236, 243, 255, 0.72);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-title {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 0 24px rgba(85, 171, 255, 0.16);
}

.hero-copy,
.section-copy,
.small-copy,
.muted,
.panel-subcopy {
  color: var(--muted);
}

.hero-copy,
.section-copy,
.small-copy,
.panel-subcopy {
  line-height: 1.65;
}

.section-spacer {
  margin-top: 1rem;
}

.section-spacer-tight {
  margin-top: 0.7rem;
}

.tag-row,
.role-wrap,
.utility-row,
.roles-inline,
.inline-row,
.role-edit,
.module-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.tag-row {
  margin-top: 0.35rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.1rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.highlight-panel {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.1rem;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(85, 171, 255, 0.08), rgba(219, 56, 72, 0.05)),
    rgba(6, 10, 18, 0.68);
}

.highlight-label {
  color: rgba(236, 243, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.highlight-value,
.summary-value {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 600;
}

.highlight-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.28), transparent);
}

.auth-module {
  padding: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    var(--panel-3);
}

.module-header {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.module-title,
.panel-title {
  margin: 0;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-toggle {
  display: inline-flex;
  padding: 0.3rem;
  margin: 1rem 0;
  gap: 0.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-tab,
.secondary-btn,
.primary-btn,
.link-btn,
.small-btn,
.icon-btn {
  border-radius: 14px;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    opacity 0.18s ease;
}

.auth-tab {
  padding: 0.82rem 1.2rem;
  background: transparent;
  color: rgba(236, 243, 255, 0.76);
}

.auth-tab.active {
  background: linear-gradient(180deg, rgba(85, 171, 255, 0.22), rgba(219, 56, 72, 0.12));
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.primary-btn,
.secondary-btn,
.link-btn,
.small-btn {
  padding: 0.95rem 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.primary-btn {
  color: #ffffff;
  background: linear-gradient(135deg, var(--blue), var(--blue-2) 62%, var(--red-2));
  box-shadow: 0 14px 28px rgba(45, 129, 220, 0.22);
}

.secondary-btn,
.link-btn,
.small-btn,
.icon-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.small-btn {
  padding: 0.7rem 0.95rem;
  font-size: 0.92rem;
}

.compact-btn {
  padding: 0.78rem 1rem;
}

.icon-btn {
  width: 2.75rem;
  min-width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(255, 255, 255, 0.06);
}

.primary-btn:hover,
.secondary-btn:hover,
.link-btn:hover,
.small-btn:hover,
.auth-tab:hover,
.icon-btn:hover {
  transform: translateY(-1px);
}

.primary-btn:hover {
  box-shadow: 0 18px 34px rgba(45, 129, 220, 0.28);
}

.secondary-btn:hover,
.link-btn:hover,
.small-btn:hover,
.icon-btn:hover {
  border-color: rgba(85, 171, 255, 0.28);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.22);
}

.form-panel {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  padding: 1.15rem;
}

.form-panel[hidden] {
  display: none;
}

.form-grid,
.question-form-grid {
  display: grid;
  gap: 0.95rem;
}

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

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

.form-label {
  display: grid;
  gap: 0.45rem;
  color: rgba(236, 243, 255, 0.88);
  font-size: 0.95rem;
  font-weight: 600;
}

.form-input {
  width: 100%;
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: rgba(4, 8, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  outline: none;
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

.form-input:focus {
  border-color: rgba(85, 171, 255, 0.8);
  box-shadow:
    0 0 0 4px rgba(85, 171, 255, 0.12),
    0 0 0 1px rgba(219, 56, 72, 0.08);
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.status-banner {
  min-height: 1.5rem;
  margin-top: 0.9rem;
  font-size: 0.98rem;
  font-weight: 600;
}

.status-banner.error {
  color: var(--danger);
}

.status-banner.success {
  color: var(--success);
}

.dashboard-shell,
.application-shell,
.review-grid,
.application-list {
  display: grid;
  gap: 1.3rem;
}

.welcome-card,
.table-card,
.access-card,
.application-list-card {
  padding: 1.5rem;
}

.welcome-top,
.review-card-header,
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.role-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.05rem;
  padding: 0.45rem 0.82rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.role-pill.civilian {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.95);
}

.role-pill.lspd {
  background: rgba(85, 171, 255, 0.18);
  border-color: rgba(85, 171, 255, 0.32);
  color: #dbeeff;
}

.role-pill.overlook {
  background: rgba(219, 56, 72, 0.18);
  border-color: rgba(219, 56, 72, 0.3);
  color: #ffd7dc;
}

.status-pill.review {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.96);
}

.status-pill.awaiting-interview {
  background: rgba(85, 171, 255, 0.18);
  border-color: rgba(85, 171, 255, 0.34);
  color: #dbeeff;
}

.status-pill.denied {
  background: rgba(219, 56, 72, 0.18);
  border-color: rgba(219, 56, 72, 0.3);
  color: #ffd7dc;
}

.status-pill.none {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.75);
}

.status-meta,
.review-meta {
  display: block;
  margin-top: 0.45rem;
  color: rgba(236, 243, 255, 0.72);
  font-size: 0.92rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info-card {
  padding: 1.3rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    var(--panel-2);
}

.info-card h3,
.application-card h3,
.review-application-card h3 {
  margin: 0.45rem 0 0.65rem;
  font-size: 1.16rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.module-status-box {
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.015)),
    rgba(5, 9, 16, 0.56);
  color: rgba(236, 243, 255, 0.9);
  line-height: 1.55;
}

.muted-box {
  color: rgba(236, 243, 255, 0.7);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.summary-panel {
  padding: 1rem 1.1rem;
  background:
    linear-gradient(180deg, rgba(85, 171, 255, 0.08), rgba(219, 56, 72, 0.04)),
    rgba(6, 10, 18, 0.72);
}

.summary-value {
  margin-top: 0.55rem;
}

.application-card,
.review-application-card {
  padding: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.015)),
    var(--panel-2);
}

.review-side {
  display: grid;
  justify-items: end;
  gap: 0.35rem;
  text-align: right;
}

.question-answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.question-answer {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

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

.question-label {
  color: rgba(236, 243, 255, 0.66);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.55rem;
}

.question-response {
  color: #ffffff;
  white-space: pre-wrap;
  line-height: 1.6;
}

.empty-state {
  text-align: center;
  padding: 3rem 1.2rem;
}

.empty-panel {
  padding: 1.2rem;
  border-radius: 22px;
}

.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 9, 16, 0.56);
}

.user-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: var(--panel-2);
}

.user-table th,
.user-table td {
  padding: 1rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  vertical-align: top;
}

.user-table th {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(236, 243, 255, 0.66);
  background: rgba(255, 255, 255, 0.03);
}

.user-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

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

.checkbox-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 600;
}

.checkbox-chip:hover {
  border-color: rgba(85, 171, 255, 0.26);
}

.checkbox-chip input {
  accent-color: var(--blue);
}

.protected-note {
  margin-top: 0.35rem;
  color: rgba(236, 243, 255, 0.58);
  font-size: 0.85rem;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(1, 4, 8, 0.74);
  backdrop-filter: blur(8px);
  z-index: 20;
}

.modal-card {
  width: min(840px, 100%);
  padding: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015)),
    rgba(5, 9, 16, 0.92);
}

.small-modal {
  width: min(520px, 100%);
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .hero-grid,
  .summary-grid,
  .card-grid,
  .question-form-grid,
  .question-answer-grid {
    grid-template-columns: 1fr;
  }

  .highlight-panel {
    grid-template-columns: 1fr;
  }

  .highlight-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  }

  .review-side {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 680px) {
  .topbar,
  .page-body {
    width: min(calc(100vw - 1rem), 1180px);
  }

  .topbar {
    margin-top: 0.5rem;
    padding: 0.9rem 1rem;
  }

  .hero-card,
  .welcome-card,
  .table-card,
  .access-card,
  .auth-module,
  .application-list-card,
  .panel-card,
  .review-application-card,
  .application-card,
  .modal-card {
    border-radius: 22px;
  }

  .hero-card,
  .welcome-card,
  .table-card,
  .access-card,
  .application-list-card,
  .panel-card,
  .modal-card {
    padding: 1.15rem;
  }

  .hero-title {
    letter-spacing: 0.05em;
  }

  .brand-mark,
  .eyebrow,
  .module-kicker,
  .card-kicker,
  .summary-label,
  .question-label {
    letter-spacing: 0.18em;
  }
}


.status-pill.approved {
  background: rgba(143, 224, 173, 0.16);
  border-color: rgba(143, 224, 173, 0.3);
  color: #dcffe8;
}

.subdivision-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.division-panel {
  position: relative;
  padding: 1.3rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.012)),
    var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.division-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), rgba(255, 255, 255, 0.35), var(--red));
  opacity: 0.85;
}

.division-panel h3 {
  margin: 0.45rem 0 0.65rem;
  font-family: "Orbitron", sans-serif;
  font-size: 1.16rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.error-shell {
  max-width: 760px;
  margin: 3rem auto 0;
}

.error-copy {
  max-width: 52rem;
  margin: 0.6rem auto 0;
}

.error-box {
  margin-left: auto;
  margin-right: auto;
  max-width: 42rem;
}

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

.cid-card .module-status-box {
  min-height: 6.8rem;
}

.cid-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
}

.cid-search-input {
  min-height: 3.2rem;
}

.cid-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.22fr);
  gap: 1.3rem;
  align-items: start;
}

.cid-list-card,
.cid-editor-card {
  padding: 1.4rem;
}

.cid-list-card {
  position: sticky;
  top: 1rem;
}

.case-list {
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
}

.case-list-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.case-list-card:hover,
.case-list-card:focus-visible {
  transform: translateY(-1px);
  outline: none;
  border-color: rgba(85, 171, 255, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

.case-list-card.active {
  border-color: rgba(85, 171, 255, 0.36);
  background: linear-gradient(180deg, rgba(85, 171, 255, 0.09), rgba(255, 255, 255, 0.03));
}

.case-list-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.case-list-name {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1rem;
  color: #ffffff;
}

.case-list-meta,
.case-file-meta,
.attachment-meta {
  display: grid;
  gap: 0.4rem;
  color: var(--muted);
  line-height: 1.55;
}

.case-file-shell {
  display: grid;
  gap: 1.2rem;
}

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

.case-field-card {
  padding: 1rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

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

.case-reference-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(85, 171, 255, 0.28);
  background: rgba(85, 171, 255, 0.12);
  color: #dbeeff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.attachment-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.upload-label {
  position: relative;
  overflow: hidden;
}

.upload-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.attachment-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.attachment-card {
  display: grid;
  gap: 0.8rem;
  padding: 0.95rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.attachment-preview,
.attachment-video {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(4, 8, 15, 0.8);
}

.attachment-preview {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.attachment-video {
  max-height: 320px;
}

.attachment-name {
  color: #ffffff;
  font-weight: 700;
}

.cid-empty-state {
  min-height: 100%;
  display: grid;
  align-items: start;
}

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

  .cid-list-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .cid-toolbar,
  .case-file-grid,
  .attachment-grid {
    grid-template-columns: 1fr;
  }

  .cid-toolbar {
    display: grid;
  }
}

