:root {
  --bg: #f4f1eb;
  --bg-wash: #ece7df;
  --surface: #ffffff;
  --surface-soft: #faf8f4;
  --text: #1f1f1c;
  --muted: #66665f;
  --border: #ded9d1;
  --accent: #2f2f2b;
  --accent-strong: #181816;
  --success: #2f6a49;
  --warning: #9a6e33;
  --danger: #9a3e35;
  --shadow: 0 12px 30px rgba(28, 27, 23, 0.08);
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Suisse Intl", "Avenir Next", "Inter", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(40, 40, 36, 0.07), transparent 45%),
    linear-gradient(180deg, var(--bg-wash), var(--bg));
}

.app {
  max-width: 1040px;
  margin: 24px auto 52px;
  padding: 18px;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #292925, #1f1f1c);
  color: #f4f1eb;
  border-radius: 22px;
  padding: 28px 24px;
  margin-bottom: 16px;
  box-shadow: 0 18px 34px rgba(27, 26, 23, 0.3);
}

.hero::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.75rem;
  font-weight: 700;
  opacity: 0.92;
}

.hero h1 {
  margin: 5px 0 0;
  font-size: 2rem;
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.intro {
  margin: 11px 0 0;
  max-width: 68ch;
  line-height: 1.52;
  color: rgba(244, 241, 235, 0.94);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}

h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 8px;
}

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

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

label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #2f2f2b;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: none;
  border-color: #bdb8af;
  box-shadow: 0 0 0 3px rgba(47, 47, 43, 0.12);
}

button {
  border: none;
  border-radius: 10px;
  padding: 10px 13px;
  background: linear-gradient(180deg, #30302c, #1f1f1c);
  color: #f8f6f2;
  font-weight: 700;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(27, 26, 23, 0.25);
}

button:active {
  transform: translateY(0);
}

.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.muted {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.93rem;
}

.status {
  margin: 10px 0 0;
  min-height: 1.25em;
  color: var(--success);
  font-size: 0.92rem;
}

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

.hidden {
  display: none;
}

.session-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.session-row .muted {
  margin: 0;
}

.session-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.account-panel {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 10px;
}

.account-details {
  margin-top: 10px;
}

.account-details summary {
  cursor: pointer;
  font-weight: 700;
  color: #2b2b28;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-weight: 600;
}

.checkbox-row input {
  width: auto;
  margin-top: 2px;
}

.site-footer {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #fdfcf9, #f5f2ec);
  color: var(--muted);
  font-size: 0.86rem;
}

.site-footer p {
  margin: 0;
}

.site-footer p + p {
  margin-top: 6px;
}

.site-footer a {
  color: #2e2e2a;
  text-decoration: none;
}

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

.download-btn {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: linear-gradient(180deg, #353531, #232320);
  color: #f9f7f3;
  text-decoration: none;
  font-size: 0.83rem;
  font-weight: 700;
}

.secondary-btn {
  background: linear-gradient(180deg, #f0ece6, #e6e1d8);
  color: #2e2e2a;
  border: 1px solid #d3ccc2;
}

.secondary-btn:hover {
  box-shadow: 0 6px 14px rgba(47, 46, 41, 0.12);
}

.requirements,
.uploads,
.admin-checklist,
.admin-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.requirement-item,
.upload-item,
.admin-item {
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 10px;
  background: var(--surface-soft);
}

.requirement-item,
.upload-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.requirement-info,
.upload-info {
  display: grid;
  gap: 4px;
}

.requirement-name,
.upload-name {
  font-weight: 700;
}

.requirement-details,
.upload-details {
  color: var(--muted);
  font-size: 0.88rem;
}

.flag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.8rem;
  color: #fff;
  background: #8a8982;
}

.flag.done {
  background: var(--success);
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #ded8ce;
  overflow: hidden;
}

.progress-fill {
  width: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #737169, #2f2f2b);
  transition: width 200ms ease;
}

.admin-filters,
.admin-communications,
.admin-sections,
.admin-exam-grid,
.admin-internal {
  display: grid;
  gap: 8px;
}

.admin-communications h3,
.admin-subpanel h3,
.admin-card h3,
.admin-internal h4 {
  margin: 0;
  font-size: 1rem;
}

.admin-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #fff, #f8f5ef);
}

.admin-item {
  display: grid;
  gap: 7px;
  background: #fff;
}

.admin-item-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.badge {
  border-radius: 999px;
  padding: 4px 9px;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
}

.badge.pending {
  background: var(--warning);
}

.badge.approved {
  background: var(--success);
}

.badge.denied {
  background: var(--danger);
}

.badge.not-submitted {
  background: #7e7d77;
}

.admin-comment {
  width: 100%;
  min-height: 66px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 10px;
}

.admin-internal {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed #cfc8bc;
}

.admin-exam-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 180px);
  gap: 8px;
  align-items: center;
}

.approve-btn {
  background: linear-gradient(180deg, #3f7a5c, #2f6a49);
}

.deny-btn {
  background: linear-gradient(180deg, #ad5248, #9a3e35);
}

#submit-package-btn[disabled] {
  opacity: 0.56;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .app {
    padding: 14px;
  }

  .hero {
    padding: 20px 18px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .grid-2,
  .admin-exam-row {
    grid-template-columns: 1fr;
  }

  .session-row,
  .admin-item-head,
  .requirement-item,
  .upload-item {
    flex-direction: column;
    align-items: flex-start;
  }
}
