:root {
  /* ── 2026 Brand Palette ────────────────────────────── */
  --cyan: #0596a6;
  --blue: #1dcbf2;
  --blue2: #19d9f7;
  --blue3: #0076a3;
  --yellow: #f2e205;
  --orange: #f26e22;
  --dark1: #0b2f33;
  --dark2: #1e2528;
  --creme: #f2f0d8;
  --green: #08c892;

  /* ── Semantic Surface & Text Tokens ────────────────── */
  --surface: var(--creme);
  --white: #ffffff;
  --text: var(--dark2);
  --muted: color-mix(in srgb, var(--cyan) 38%, var(--dark2));
  --deep: var(--dark1);

  /* ── Interactive Tokens ─────────────────────────────── */
  --tide: var(--cyan);
  --ocean: var(--blue3);
  --foam: color-mix(in srgb, var(--blue) 20%, #ffffff);
  --sand: color-mix(in srgb, var(--creme) 70%, #ffffff);
  --submit-tab: var(--orange);
  --submit-hover: color-mix(in srgb, var(--orange) 82%, var(--dark1));
  --sun: var(--orange);

  /* ── Border Tokens ──────────────────────────────────── */
  --border: color-mix(in srgb, var(--cyan) 28%, #ffffff);

  /* ── Feedback Tokens ────────────────────────────────── */
  --error: color-mix(in srgb, var(--orange) 72%, var(--dark1));
  --error-border: color-mix(in srgb, var(--orange) 48%, #ffffff);

  /* ── Component Tokens ───────────────────────────────── */
  --instr-bg: color-mix(in srgb, var(--blue) 12%, #ffffff);
  --instr-border: color-mix(in srgb, var(--cyan) 32%, #ffffff);
  --subcategory-bg: color-mix(in srgb, var(--blue) 10%, var(--creme));
  --badge-art-bg: color-mix(in srgb, var(--blue) 22%, #ffffff);
  --badge-write-bg: color-mix(in srgb, var(--cyan) 14%, var(--creme));
  --badge-media-bg: color-mix(in srgb, var(--orange) 16%, var(--creme));
  --badge-media-txt: color-mix(in srgb, var(--orange) 78%, var(--dark1));

  /* ── Shadow Tokens ──────────────────────────────────── */
  --shadow-focus: 0 0 0 3px color-mix(in srgb, var(--cyan) 18%, transparent);
  --shadow-toast: 0 4px 20px color-mix(in srgb, var(--dark1) 28%, transparent);

  /* ── Spacing / Shape ────────────────────────────────── */
  --radius: 10px;
  --radius-lg: 16px;
  --s1: calc(1em * 1.618);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "neue-haas-grotesk-display", sans-serif;
  background: var(--white);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
}

.strong {
  font-weight: 600;
}
.italic {
  font-style: italic;
}

/* ─── HEADER ─── */

header {
  background: var(--creme);
  padding: 0;
}

.header-inner {
  /*max-width: 880px;*/
  padding: 0 var(--s1);
  height: 137px;
  display: flex;
  align-items: center;
}

.header-logo a {
  display: block;
  line-height: 0;
}

.header-logo img {
  height: 64px;
  width: auto;
  display: block;
}

/* ─── FOOTER ─── */
footer {
  background: var(--dark2);
  padding: 0;
  margin-top: 3rem;
}

.footer-inner {
  padding: 0 var(--s1);
  height: 137px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo-left a, .footer-logo-right a {
  display: block;
  line-height: 0;
}

.footer-logo-left img {
  height: 44px;
  width: auto;
  display: block;
}

.footer-logo-right img {
  height: 52px;
  width: auto;
  display: block;
}

/* ─── TABS ─── */
.tabs-wrapper {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tabs-nav {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs-nav::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  font-weight: 500;
  text-transform: uppercase;
  border: none;
  background: none;
  cursor: pointer;
  padding: 1rem 1.6rem;
  color: var(--muted);
  position: relative;
  white-space: nowrap;
  font-variation-settings: "wght" 500;
  transition:
    color 0.2s,
    font-variation-settings 0.3s ease;
}

.tab-btn::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--tide);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.tab-btn:hover {
  color: var(--ocean);
}

.tab-btn.active {
  color: var(--ocean);
  font-weight: 900;
  font-variation-settings: "wght" 900;
}
.tab-btn.active::after {
  transform: scaleX(1);
}

.tab-btn.submit-tab {
  color: var(--white);
  background: var(--submit-tab);
  border-radius: var(--radius) var(--radius) 0 0;
  margin-left: auto;
  padding: 1rem 2rem;
}
.tab-btn.submit-tab:hover {
  background: var(--submit-hover);
  color: var(--white);
}
.tab-btn.submit-tab::after {
  display: none;
}
.tab-btn.submit-tab.active {
  background: var(--submit-hover);
  color: var(--white);
}

/* ─── TAB PANELS ─── */
.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}
.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ─── CONTENT TYPOGRAPHY ─── */
.section-heading {
  font-family: "mixta-pro", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 600;
  color: var(--deep);
  line-height: 2.5rem;
}

.section-lead {
  color: var(--muted);
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  margin-bottom: 2rem;
  font-style: italic;
}

.content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin-bottom: 1.25rem;
}

.content-card h3 {
  font-family: "mixta-pro", serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ocean);
  margin-bottom: 0.6rem;
}

.content-card p {
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  color: var(--text);
  line-height: 1.75;
}

.content-card p a, .content-card p a:link, .content-card p a:hover, .content-card p a:active, .content-card p a:focus, .content-card p a:visited, .section-lead a, .section-lead a:link {
  color: var(--orange);
  text-decoration: underline;
}

.content-card.reverse {
  background: var(--blue3);
}

.content-card.reverse p {
  color: var(--white);
}

.rule-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rule-list li {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  line-height: 1.65;
}

.rule-num {
  min-width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--foam);
  color: var(--ocean);
  font-size: 0.75rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}

/* ─── CATEGORIES ─── */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.cat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.cat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.cat-card.art::before {
  background: var(--cyan);
}
.cat-card.writing::before {
  background: var(--blue3);
}
.cat-card.media::before {
  background: var(--orange);
}

.cat-card h3 {
  font-family: "mixta-pro", serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cat-card.art h3 {
  color: var(--cyan);
}
.cat-card.writing h3 {
  color: var(--blue3);
}
.cat-card.media h3 {
  color: var(--orange);
}

.dashed-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dashed-list li {
  font-size: 0.92rem;
  color: var(--muted);
  padding-left: 1rem;
  letter-spacing: 0.5px;
  position: relative;
}

.dashed-list li::before {
  content: "–";
  font-weight: 600;
  position: absolute;
  left: 0;
  color: var(--border);
}

/* ─── FAQ ─── */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: var(--white);
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.1rem 1.5rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.5px;
  font-weight: 500;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background 0.15s;
}

.faq-q:hover {
  background: color-mix(in srgb, var(--orange) 10%, var(--creme));
}
.faq-q[aria-expanded="true"] {
  background: color-mix(in srgb, var(--orange) 10%, var(--creme));
  color: var(--orange);
}

.faq-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  transition: transform 0.25s;
  margin-top: -0.2rem;
  line-height: 20px;
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  padding: 1rem 1.5rem 1.25rem;
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  color: var(--muted);
  line-height: 1.75;
  border-top: 1px solid var(--border);
}

.faq-a.open {
  display: block;
}

/* ─── SUBMIT PANEL ─── */
.submit-panel-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.submit-instructions {
  background: var(--instr-bg);
  border-bottom: 1px solid var(--instr-border);
  padding: 1.5rem 2rem;
}

.submit-instructions h3 {
  font-family: "mixta-pro", serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blue3);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.instr-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.instr-list li {
  font-size: 0.88rem;
  color: var(--blue3);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  line-height: 1.55;
}

.instr-list li::before {
  content: "✦";
  color: var(--cyan);
  font-size: 0.65rem;
  margin-top: 0.3rem;
  flex-shrink: 0;
}

/* ─── FORM ─── */
.form-body {
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-field label {
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--muted);
}

.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="tel"], .form-field textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.9rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 0.92rem;
  color: var(--text);
  background: var(--surface);
  outline: none;
  letter-spacing: 0.5px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.form-field input:focus, .form-field textarea:focus {
  border-color: var(--tide);
  box-shadow: var(--shadow-focus);
  background: var(--white);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.char-count {
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.5px;
  text-align: right;
  margin-top: -0.2rem;
}

/* ─── RADIO GROUPS ─── */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.3rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 50px;
  padding: 0.4rem 0.9rem;
  transition: all 0.15s;
  user-select: none;
}

.radio-label input[type="radio"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all 0.15s;
  position: relative;
  background: var(--white);
}

.radio-label input[type="radio"]::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--white);
  transition: background 0.15s;
}

.radio-label input[type="radio"]:checked {
  border-color: var(--tide);
  background: var(--tide);
}

.radio-label input[type="radio"]:checked::after {
  background: var(--white);
}

.radio-label:has(input:checked) {
  border-color: var(--tide);
  background: var(--foam);
  color: var(--ocean);
}

.sub-category-group {
  display: none;
  background: var(--subcategory-bg);
  border: 1.5px solid var(--foam);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-top: 0.75rem;
}

.sub-category-group.visible {
  display: block;
}

.sub-category-group label.sub-label {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--tide);
  display: block;
  margin-bottom: 0.6rem;
}

/* ─── FILE / LINK TOGGLE ─── */
.upload-toggle {
  display: flex;
  gap: 0;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.upload-toggle-btn {
  border: none;
  background: none;
  padding: 0.5rem 1.2rem;
  letter-spacing: 0.5px;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--muted);
  transition: all 0.15s;
}

.upload-toggle-btn.active {
  background: var(--tide);
  color: var(--white);
}

.upload-area {
  display: none;
}
.upload-area.active {
  display: block;
}

.file-drop-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
  position: relative;
}

.file-drop-zone:hover,
.file-drop-zone.dragging {
  border-color: var(--tide);
  background: var(--foam);
}

.file-drop-zone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.file-drop-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: var(--muted);
}

.file-drop-zone p {
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.file-drop-zone p strong {
  color: var(--tide);
}

.file-info {
  display: none;
  background: var(--foam);
  border: 1px solid var(--tide);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--ocean);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.5rem;
}

.file-info.visible {
  display: flex;
}

.file-remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1;
  padding: 0;
  transition: color 0.15s;
}

.file-remove:hover {
  color: var(--orange);
}

/* ─── SUBMIT BUTTON ─── */
.submit-btn {
  width: 100%;
  padding: 0.9rem;
  background: var(--submit-tab);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.1s;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.submit-btn:hover {
  background: var(--submit-hover);
}
.submit-btn:active {
  transform: scale(0.99);
}

/* ─── TOAST ─── */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  background: var(--deep);
  color: var(--white);
  border-radius: var(--radius);
  padding: 0.85rem 1.2rem;
  font-size: 0.9rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
  max-width: 320px;
  box-shadow: var(--shadow-toast);
  animation:
    slideIn 0.3s ease,
    fadeOut 0.4s ease 2.8s forwards;
  pointer-events: all;
}

.toast.success {
  background: var(--cyan);
}
.toast.error {
  background: var(--error);
}

@keyframes slideIn {
  from {
    transform: translateX(60px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
    pointer-events: none;
  }
}

/* ─── SUBMISSIONS LOG ─── */
.submissions-section {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.sub-log-heading {
  font-family: "mixta-pro", serif;
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--deep);
  margin-bottom: 0.25rem;
}

.sub-log-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
  font-style: italic;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

thead th {
  background: var(--dark1);
  color: var(--blue2);
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.75rem;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child {
  border-bottom: none;
}
tbody tr:hover {
  background: var(--sand);
}

tbody td {
  padding: 0.75rem 1rem;
  color: var(--text);
  vertical-align: top;
}

.id-badge {
  background: var(--foam);
  color: var(--ocean);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.cat-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 500;
  display: inline-block;
}

.cat-badge.art {
  background: var(--badge-art-bg);
  color: var(--blue3);
}
.cat-badge.writing {
  background: var(--badge-write-bg);
  color: var(--dark1);
}
.cat-badge.multimedia {
  background: var(--badge-media-bg);
  color: var(--badge-media-txt);
}

.empty-state {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.btn-clear {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 1rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: 1rem;
}

.btn-clear:hover {
  border-color: var(--orange);
  color: var(--orange);
}

/* ── Save Info Checkbox ── */
.save-info-field {
  margin-bottom: 0.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  user-select: none;
  width: fit-content;
}

.checkbox-label input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-box {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 4px;
  background: var(--surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
  position: relative;
}

.checkbox-box::after {
  content: "";
  width: 5px;
  height: 9px;
  border: 2px solid var(--white);
  border-top: none;
  border-left: none;
  transform: rotate(45deg) scale(0);
  transition: transform 0.15s ease;
  margin-top: -2px;
}

.checkbox-label:has(input:checked) .checkbox-box {
  background: var(--tide);
  border-color: var(--tide);
}

.checkbox-label:has(input:checked) .checkbox-box::after {
  transform: rotate(45deg) scale(1);
}

.checkbox-label:hover .checkbox-box {
  border-color: var(--tide);
}

.autofill-banner {
  display: none;
  background: color-mix(in srgb, var(--cyan) 10%, var(--creme));
  border: 1px solid color-mix(in srgb, var(--cyan) 30%, var(--creme));
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: var(--blue3);
  margin-bottom: 1.25rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.autofill-banner.visible {
  display: flex;
}

.autofill-btn {
  background: var(--blue3);
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 0.3rem 0.9rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  flex-shrink: 0;
}

.autofill-btn:hover {
  background: var(--submit-hover);
}

.required-star {
  color: var(--sun);
  margin-left: 1px;
}

.form-note {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.2rem;
}

.field-error {
  font-size: 0.78rem;
  color: var(--error);
  margin-top: 0.2rem;
  display: none;
}

.form-field input.invalid, .form-field textarea.invalid {
  border-color: var(--error-border);
}

/* ─── MEDIA QUERIES ─── */
@media (max-width: 580px) {
  .header-inner {
    padding: 0 var(--s1);
  }
  .header-logo img {
    height: 44px;
  }
  .footer-inner {
    padding: 0 var(--s1);
  }
  .footer-logo-left img {
    height: 32px;
  }
  .footer-logo-right img {
    height: 38px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  .header-inner {
    padding: 2rem 1.5rem 2.5rem;
  }
  .tabs-wrapper {
    padding: 0 1rem;
  }
  .form-body {
    padding: 1.25rem;
  }
  .content-card {
    padding: 1.25rem;
  }
  .submit-instructions {
    padding: 1.25rem;
  }
  .cat-grid {
    grid-template-columns: 1fr;
  }

  .tabs-nav {
    flex-direction: column;
    border-bottom: none;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    margin-bottom: 1.75rem;
    gap: 0;
  }

  .tab-btn {
    width: 100%;
    text-align: left;
    padding: 0.9rem 1.2rem;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border);
    white-space: normal;
  }

  .tab-btn:last-child {
    border-bottom: none;
  }

  .tab-btn::after {
    bottom: auto;
    top: 0;
    left: 0;
    right: auto;
    width: 3px;
    height: 100%;
    transform: scaleY(0);
    transition: transform 0.2s ease;
  }

  .tab-btn.active::after {
    transform: scaleY(1);
  }

  .tab-btn.submit-tab {
    border-radius: 0;
    margin-left: 0;
    border-bottom: none;
    padding: 0.9rem 1.2rem;
  }
}
/* ── Submission Column ── */
.submission-cell {
  vertical-align: middle;
  min-width: 160px;
}

.file-path {
  display: block;
  font-family: monospace;
  font-size: 0.8rem;
  color: var(--blue3);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-actions {
  display: flex;
  gap: 0.3rem;
  margin-top: 0.35rem;
}

.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 5px;
  width: 26px;
  height: 26px;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--muted);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  padding: 0;
  line-height: 1;
}

.dl-btn:hover {
  background: color-mix(in srgb, var(--cyan) 10%, var(--creme));
  color: var(--cyan);
  border-color: var(--cyan);
}

.save-btn:hover {
  background: color-mix(in srgb, var(--orange) 10%, var(--creme));
  color: var(--orange);
  border-color: var(--orange);
}

.submission-link {
  color: var(--blue3);
  font-size: 0.82rem;
  text-decoration: none;
  word-break: break-all;
  transition: color 0.15s;
}

.submission-link:hover {
  color: var(--cyan);
  text-decoration: underline;
}

/* ── Export Row ── */
.export-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.export-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.export-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  background: var(--surface);
  color: var(--text);
}

.export-btn--csv {
  border-color: var(--cyan);
  color: var(--cyan);
}

.export-btn--csv:hover {
  background: color-mix(in srgb, var(--cyan) 10%, var(--creme));
}

.export-btn--xlsx {
  border-color: var(--blue3);
  color: var(--blue3);
}

.export-btn--xlsx:hover {
  background: color-mix(in srgb, var(--blue3) 10%, var(--creme));
}


/* ─── ADMIN PAGE ─── */
.admin-page .submissions-section {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.admin-header {
  margin-bottom: 2rem;
}

.sub-log-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
}

.statement-cell {
  max-width: 220px;
  font-size: 0.82rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ─── CLEAR-ALL CONFIRMATION MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--dark1) 55%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}

.modal-overlay[hidden] {
  display: none;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) * 1.5);
  box-shadow: 0 8px 40px color-mix(in srgb, var(--dark1) 32%, transparent);
  padding: 2rem 2rem 1.75rem;
  max-width: 420px;
  width: calc(100% - 2rem);
}

.modal-title {
  font-family: "mixta-pro", serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--deep);
  margin-bottom: 0.75rem;
}

.modal-body {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-btn {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 0.85rem;
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
}

.modal-btn--cancel {
  background: none;
  border-color: var(--border);
  color: var(--muted);
}

.modal-btn--cancel:hover {
  border-color: var(--cyan);
  color: var(--deep);
}

.modal-btn--confirm {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

.modal-btn--confirm:hover {
  background: var(--submit-hover);
  border-color: var(--submit-hover);
}


/* ─── ROW CHECKBOXES ─── */
.cb-th,
.cb-cell {
  width: 40px;
  min-width: 40px;
  text-align: center;
  padding: 0.5rem 0.5rem !important;
}

.cb-th input[type="checkbox"],
.cb-cell input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--cyan);
  cursor: pointer;
  vertical-align: middle;
}

tr.row-selected td {
  background: color-mix(in srgb, var(--cyan) 10%, var(--surface));
}

/* ─── SELECTION BAR ─── */
.selection-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--deep);
  color: var(--blue2);
  border-radius: var(--radius);
  padding: 0.5rem 0.875rem;
  margin-bottom: 0.6rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 0.84rem;
  width: fit-content;
}

.selection-bar[hidden] {
  display: none;
}

.selection-count {
  font-weight: 500;
  letter-spacing: 0.02em;
}

.sel-delete-btn {
  background: none;
  border: none;
  color: var(--blue2);
  cursor: pointer;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  transition: color 0.15s, background 0.15s;
}

.sel-delete-btn:hover {
  color: var(--orange);
  background: color-mix(in srgb, var(--orange) 12%, transparent);
}


/* ─── ADMIN LOGIN OVERLAY ─── */
/* ─── ADMIN LOGIN — SPLIT PANEL ─── */
.login-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  z-index: 2000;
}

.login-overlay[hidden] {
  display: none;
}

/* Left: cover image */
.login-cover {
  flex: 0 0 54%;
  overflow: hidden;
}

.login-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Right: form panel */
.login-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark2);
  padding: 3rem 2rem;
  overflow-y: auto;
}

.login-form-wrap {
  width: 100%;
  max-width: 360px;
}

.login-title {
  font-family: "mixta-pro", serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--orange);
  margin-bottom: 0.15rem;
  line-height: 1.1;
}

/*
.login-title {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--deep);
  margin-bottom: 0.5rem;
  line-height: 1.15;
}
*/

.login-subtitle {
  font-size: 0.9rem;
  color: var(--white);
  margin-bottom: 2.25rem;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

/* Inputs: underline style matching the reference */
.login-field {
  margin-bottom: 1.5rem;
}

.login-field::placeholder {
  color: var(--white);
}

.login-field input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--yellow);
  border-radius: 0;
  padding: 0.65rem 0;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 0.95rem;
  color: var(--white);
  background: transparent;
  outline: none;
  letter-spacing: 0.3px;
  transition: border-color 0.2s;
}

.login-field input::placeholder {
  color: color-mix(in srgb, var(--white) 35%, transparent);
}

.login-field input:focus {
  border-bottom-color: var(--cyan);
}

.login-error {
  font-size: 0.84rem;
  color: var(--orange);
  margin-bottom: 1rem;
  padding: 0.55rem 0.8rem;
  background: color-mix(in srgb, var(--orange) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--orange) 25%, transparent);
  border-radius: var(--radius);
}

.login-error[hidden] {
  display: none;
}

.login-btn {
  width: 100%;
  margin-top: 0.25rem;
  background: var(--yellow);
  color: var(--dark2);
  border: none;
  border-radius: var(--radius);
  padding: 0.85rem 1.5rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.15s;
}

.login-btn:hover:not(:disabled) {
  background: var(--cyan);
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── ADMIN TOOLBAR (greeting + sign out) ─── */
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.login-greeting {
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.25rem;
}

.btn-logout {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 1rem;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.btn-logout:hover {
  border-color: var(--orange);
  color: var(--orange);
}


/* ─── ADMIN HEADER PROFILE ─── */
.admin-page .header-inner {
  justify-content: space-between;
}

.admin-profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.admin-profile[hidden] {
  display: none;
}

.profile-btn {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
}

.profile-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2.5px solid var(--orange);
  background: color-mix(in srgb, var(--orange) 12%, var(--creme));
  flex-shrink: 0;
}

.profile-name {
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--dark1) 14%, transparent);
  min-width: 130px;
  overflow: hidden;
  z-index: 500;
}

.profile-menu[hidden] {
  display: none;
}

.profile-menu-item {
  display: block;
  width: 100%;
  background: none;
  border: none;
  padding: 0.65rem 1rem;
  text-align: left;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-size: 0.85rem;
  color: var(--text);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
}

.profile-menu-item:hover {
  background: color-mix(in srgb, var(--orange) 10%, transparent);
  color: var(--orange);
}


/* ─── PASSWORD SHOW/HIDE TOGGLE ─── */
.login-field--password {
  position: relative;
}

.login-field--password input {
  padding-right: 2rem;
}

.pw-toggle {
  position: absolute;
  right: 0;
  bottom: 0.6rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: color-mix(in srgb, var(--white) 40%, transparent);
  line-height: 0;
  transition: color 0.15s;
}

.pw-toggle:hover {
  color: var(--cyan);
}

.pw-icon[hidden] {
  display: none;
}


/* ─── LOGIN RESPONSIVE ─── */

/* Tablet: hide the cover image, form takes full width */
@media (max-width: 860px) {
  .login-cover {
    display: none;
  }

  .login-panel {
    flex: 1;
    padding: 3rem 2.5rem;
  }

  .login-form-wrap {
    max-width: 420px;
  }
}

/* Mobile: tighter padding and slightly smaller type */
@media (max-width: 480px) {
  .login-panel {
    padding: 2.5rem 1.5rem;
    align-items: flex-start;
    padding-top: 3.5rem;
  }

  .login-form-wrap {
    max-width: 100%;
  }

  .login-eyebrow {
    font-size: 1.35rem;
  }

  .login-title {
    font-size: 1.45rem;
  }

  .login-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1.75rem;
  }

  .login-btn {
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
  }
}
