/* ==========================================================
   TSD Daily Time Sheet  –  Modern Design System
   ========================================================== */

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

:root {
  /* Brand colours – TSD Blue */
  --c-primary:          #1d4ed8;
  --c-primary-hover:    #1e40af;
  --c-primary-light:    #dbeafe;
  --c-primary-text:     #ffffff;

  /* Semantic colours */
  --c-success:          #059669;
  --c-success-bg:       #ecfdf5;
  --c-success-border:   #6ee7b7;
  --c-success-text:     #065f46;

  --c-danger:           #dc2626;
  --c-danger-bg:        #fef2f2;
  --c-danger-border:    #fca5a5;
  --c-danger-text:      #991b1b;

  --c-info-bg:          #eff6ff;
  --c-info-border:      #bfdbfe;
  --c-info-text:        #1e40af;

  /* Neutrals */
  --c-bg:               #f0f4f9;
  --c-surface:          #ffffff;
  --c-surface-2:        #f8fafc;
  --c-border:           #e2e8f0;
  --c-border-focus:     #1d4ed8;
  --c-text:             #0f172a;
  --c-text-2:           #475569;
  --c-text-3:           #94a3b8;

  /* Topbar */
  --c-topbar:           #0d1b3e;

  /* Hero gradient */
  --c-hero-from:        #0d1b3e;
  --c-hero-to:          #1e3a8f;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(15,23,42,.07), 0 1px 2px rgba(15,23,42,.05);
  --shadow-md:  0 4px 14px rgba(15,23,42,.10);
  --shadow-lg:  0 10px 30px rgba(15,23,42,.12);

  /* Radii */
  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   14px;
  --r-xl:   20px;
  --r-full: 9999px;

  /* Motion */
  --t-fast: 0.14s ease;
  --t-base: 0.20s ease;
}

/* ── Reset ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ── Top Navigation Bar ──────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-topbar);
  box-shadow: 0 1px 0 rgba(255,255,255,.06), var(--shadow-sm);
}

.topbar-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}

.topbar-logo {
  width: 30px;
  height: 30px;
  object-fit: contain;
  background: rgba(255,255,255,.12);
  border-radius: var(--r-sm);
  padding: 3px;
}

.topbar-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 6px 12px;
  border-radius: var(--r-sm);
  color: rgba(255,255,255,.65);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background var(--t-fast), color var(--t-fast);
}

.nav-link:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-link.active { background: rgba(255,255,255,.14); color: #fff; }
.nav-link.nav-dev { color: #fbbf24; }
.nav-link.nav-dev:hover { color: #fde68a; }

/* ── Hero Section ────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--c-hero-from) 0%, var(--c-hero-to) 100%);
  padding: 48px 24px 40px;
}

.hero-content {
  max-width: 980px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin: 0 0 10px;
}

.hero-title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.hero-sub {
  margin: 0;
  color: rgba(255,255,255,.68);
  font-size: 0.97rem;
  max-width: 500px;
}

/* ── Page Main & Container ───────────────────────────── */
.page-main {
  min-height: calc(100vh - 58px);
}

.content-container {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

/* ── Status Row ──────────────────────────────────────── */
.status-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.status-card {
  background: var(--c-surface);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.status-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-3);
}

.status-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--c-text);
}

.mono {
  font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

/* ── Alert / Info Banners ─────────────────────────────── */
.alert {
  border-radius: var(--r-md);
  padding: 12px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 10px;
  border: 1px solid transparent;
  transition: background var(--t-base), border-color var(--t-base), color var(--t-base);
}

.alert--closed {
  background: var(--c-danger-bg);
  border-color: var(--c-danger-border);
  color: var(--c-danger-text);
}

.alert--open {
  background: var(--c-success-bg);
  border-color: var(--c-success-border);
  color: var(--c-success-text);
}

.info-bar {
  border-radius: var(--r-md);
  padding: 12px 16px;
  background: var(--c-info-bg);
  border: 1px solid var(--c-info-border);
  color: var(--c-info-text);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 20px;
  min-height: 44px;
  transition: background var(--t-base);
}

.info-bar:empty { display: none; }

/* ── Buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: none;
  border-radius: var(--r-md);
  padding: 10px 18px;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast), opacity var(--t-fast);
  text-decoration: none;
  line-height: 1.4;
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-primary);
  color: var(--c-primary-text);
  box-shadow: 0 1px 2px rgba(0,0,0,.12);
}

.btn--primary:hover:not(:disabled) {
  background: var(--c-primary-hover);
  box-shadow: 0 4px 14px rgba(29,78,216,.30);
  transform: translateY(-1px);
}

.btn--primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn--secondary {
  background: var(--c-surface);
  color: var(--c-text);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm);
}

.btn--secondary:hover:not(:disabled) {
  background: var(--c-surface-2);
  border-color: var(--c-text-3);
}

.btn--ghost {
  background: transparent;
  color: var(--c-text-2);
  border: 1px solid var(--c-border);
}

.btn--ghost:hover:not(:disabled) {
  background: var(--c-surface-2);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--r-lg);
}

.btn--sm {
  padding: 7px 13px;
  font-size: 0.83rem;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none !important;
  box-shadow: none !important;
}

/* ── Action Section (main page CTA) ─────────────────── */
.action-section {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  text-align: center;
}

.action-hint {
  margin: 10px 0 0;
  color: var(--c-text-3);
  font-size: 0.83rem;
}

/* ── Form Page Two-Column Layout ─────────────────────── */
.form-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: start;
}

.sidebar-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  position: sticky;
  top: 74px;
}

.sidebar-section + .sidebar-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--c-border);
}

.sidebar-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--c-text-3);
  margin: 0 0 10px;
}

/* ── Custom Form Card ────────────────────────────────── */
.form-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}

.form-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 22px;
  color: var(--c-text);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--c-border);
}

.custom-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text-2);
}

.req {
  color: var(--c-danger);
  margin-left: 2px;
}

.custom-form input,
.custom-form select,
.custom-form textarea {
  width: 100%;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
  appearance: auto;
}

.custom-form input:focus,
.custom-form select:focus,
.custom-form textarea:focus {
  border-color: var(--c-border-focus);
  box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}

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

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  flex-wrap: wrap;
}

#formMessage {
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
}

/* ── Developer Page ──────────────────────────────────── */
.dev-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 20px;
  align-items: start;
}

.dev-status-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Login Card */
.dev-login-card {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
}

.dev-login-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--c-text-3);
  margin: 0 0 16px;
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.login-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-text-2);
}

.login-input {
  width: 100%;
  border: 1.5px solid var(--c-border);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  font-size: 0.9375rem;
  font-family: inherit;
  background: var(--c-surface);
  color: var(--c-text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}

.login-input:focus {
  border-color: var(--c-border-focus);
  box-shadow: 0 0 0 3px rgba(29,78,216,.12);
}

#devAuthMessage {
  font-size: 0.875rem;
  font-weight: 500;
  margin: 8px 0 0;
}

/* Dashboard Dark Panel */
.dev-panel-card {
  background: #0f172a;
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid #1e293b;
}

.dev-panel-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #475569;
  margin: 0 0 18px;
}

.dev-metric {
  background: #1e293b;
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid #334155;
}

.dev-metric-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #64748b;
  margin-bottom: 4px;
}

.dev-metric-value {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
  font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
}

#devTimeStatus {
  font-size: 0.875rem;
  color: #64748b;
  font-family: 'SF Mono', 'Fira Code', 'Roboto Mono', monospace;
  margin: 0 0 16px;
}

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

.btn--dev {
  background: #1e293b;
  color: #93c5fd;
  border: 1px solid #334155;
  border-radius: var(--r-sm);
  padding: 8px 15px;
  font-size: 0.83rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast);
}

.btn--dev:hover { background: #334155; border-color: #475569; }
.btn--dev-reset { color: #fcd34d; }
.btn--dev-logout { color: #f87171; }

/* ── Page Nav Links ──────────────────────────────────── */
.page-nav-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.page-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--c-primary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-primary-light);
  background: var(--c-primary-light);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.page-nav-link:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

/* ── Tasks Section (Developer Dashboard) ────────────── */
.tasks-section {
  max-width: 980px;
  margin: 0 auto 48px;
  padding: 0 24px;
}

.tasks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tasks-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tasks-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 0;
}

.tasks-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 22px;
  padding: 0 8px;
  background: var(--c-primary-light);
  color: var(--c-primary);
  border-radius: var(--r-full);
  font-size: 0.78rem;
  font-weight: 700;
}

.tasks-container {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tasks-state {
  padding: 32px;
  text-align: center;
  color: var(--c-text-3);
  margin: 0;
  font-size: 0.9rem;
}

.tasks-error { color: var(--c-danger-text) !important; }

.tasks-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.tasks-table thead {
  background: var(--c-surface-2);
  border-bottom: 1.5px solid var(--c-border);
}

.tasks-table th {
  padding: 10px 14px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--c-text-3);
  white-space: nowrap;
}

.tasks-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--c-border);
  vertical-align: top;
  color: var(--c-text);
}

.tasks-table tbody tr:last-child td { border-bottom: none; }

.tasks-table tbody tr:hover td {
  background: var(--c-surface-2);
}

.td-num   { color: var(--c-text-3); font-variant-numeric: tabular-nums; width: 36px; }
.td-name  { font-weight: 600; white-space: nowrap; }
.td-date  { white-space: nowrap; color: var(--c-text-2); }
.td-task  { max-width: 320px; }
.td-comment { max-width: 220px; color: var(--c-text-2); }
.td-ts    { white-space: nowrap; font-size: 0.8rem; color: var(--c-text-3); font-family: 'SF Mono','Fira Code',monospace; }

.tasks-del-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  color: var(--c-text-3);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 3px 7px;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}

.tasks-del-btn:hover {
  background: var(--c-danger-bg);
  border-color: var(--c-danger-border);
  color: var(--c-danger-text);
}

@media (max-width: 740px) {
  .tasks-section { padding: 0 16px; }
  .td-task, .td-comment { max-width: 140px; }
}
/* ── Draft Banner ─────────────────────────────────────── */
.draft-banner {
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 16px;
  transition: opacity 0.6s ease;
  opacity: 1;
}

.draft-banner--restored {
  background: #fefce8;
  border: 1px solid #fde047;
  color: #854d0e;
}

.draft-banner--saved {
  background: var(--c-success-bg, #f0fdf4);
  border: 1px solid var(--c-success-border, #bbf7d0);
  color: var(--c-success-text, #166534);
}

.hint {
  margin: 10px 0 0;
  color: var(--c-text-3);
  font-size: 0.875rem;
}

/* ── Hidden ──────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--c-topbar);
  color: rgba(255,255,255,.45);
  font-size: 0.8rem;
  padding: 18px 24px;
  margin-top: auto;
}

.site-footer-inner {
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.site-footer a {
  color: rgba(255,255,255,.65);
  text-decoration: none;
  transition: color var(--t-fast);
}

.site-footer a:hover { color: #fff; }

.footer-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-item svg { flex-shrink: 0; opacity: .6; }

/* ── Tasks copy button ───────────────────────────────── */
.tasks-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 5px;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  transition: background var(--motion-fast), color var(--motion-fast), border-color var(--motion-fast);
}
.tasks-copy-btn:hover { background: rgba(255,255,255,.08); color: #e2e8f0; border-color: rgba(255,255,255,.28); }
.tasks-copy-btn.copied { background: #1d4ed8; color: #bfdbfe; border-color: #60a5fa; }

.tasks-actions-cell { display: flex; gap: 5px; align-items: center; }

/* ── Confirm modal ───────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(3px);
  animation: modalFadeIn .15s ease;
}
.modal-overlay[hidden] { display: none; }

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  background: #1e293b;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 28px 28px 22px;
  max-width: 380px;
  width: calc(100% - 40px);
  box-shadow: 0 20px 60px rgba(0,0,0,.6);
  animation: modalSlideIn .17s ease;
}

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

.modal-message {
  margin: 0 0 22px;
  font-size: .95rem;
  line-height: 1.55;
  color: #cbd5e1;
}
.modal-message strong { color: #f1f5f9; }

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 8px 20px;
  border-radius: 7px;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity var(--motion-fast), transform var(--motion-fast);
}
.modal-btn:active { transform: scale(.97); }
.modal-btn:disabled { opacity: .5; cursor: not-allowed; }

.modal-btn-danger  { background: #dc2626; color: #fff; }
.modal-btn-danger:hover  { background: #b91c1c; }
.modal-btn-cancel  { background: rgba(255,255,255,.08); color: #cbd5e1; border: 1px solid rgba(255,255,255,.15); }
.modal-btn-cancel:hover  { background: rgba(255,255,255,.14); }

/* ── Info Pages (About / Privacy / Rules) ───────────── */
.info-page-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.info-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.info-card h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--c-text);
  margin: 28px 0 10px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border);
}

.info-card h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.info-card p {
  color: var(--c-text-2);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0 0 10px;
}

.info-card ul, .info-card ol {
  padding-left: 22px;
  margin: 0 0 12px;
  color: var(--c-text-2);
  font-size: 0.95rem;
  line-height: 1.8;
}

.info-card li + li { margin-top: 4px; }

.info-card strong { color: var(--c-text); }

.info-card .rule-badge {
  display: inline-block;
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: var(--r-full);
  margin-right: 8px;
  vertical-align: middle;
}

.info-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.info-nav a {
  padding: 6px 14px;
  border-radius: var(--r-sm);
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--t-fast), color var(--t-fast);
}

.info-nav a:hover, .info-nav a.active {
  background: var(--c-primary);
  color: #fff;
}

/* ── Quick Info Cards on Main Page ───────────────────── */
.info-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.info-link-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--c-text);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast);
}

.info-link-card:hover {
  border-color: var(--c-primary);
  box-shadow: 0 4px 16px rgba(29,78,216,.12);
  transform: translateY(-2px);
}

.info-link-card-icon {
  font-size: 1.4rem;
  line-height: 1;
  margin-bottom: 2px;
}

.info-link-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--c-text);
}

.info-link-card-desc {
  font-size: 0.78rem;
  color: var(--c-text-3);
  line-height: 1.5;
}

/* ── Notify Panel (Developer Dashboard) ─────────────── */
.notify-card {
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
}

.notify-card-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #475569;
  margin: 0 0 14px;
}

.notify-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.notify-input {
  flex: 1;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--r-sm);
  color: #e2e8f0;
  padding: 8px 12px;
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--t-fast);
  min-width: 0;
}

.notify-input:focus { border-color: #93c5fd; }
.notify-input::placeholder { color: #475569; }

.btn--notify {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #1d4ed8;
  color: #fff;
  border: none;
  border-radius: var(--r-sm);
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--t-fast), opacity var(--t-fast);
}

.btn--notify:hover { background: #1e40af; }
.btn--notify:disabled { opacity: .45; cursor: not-allowed; }

.notify-feedback {
  font-size: 0.78rem;
  margin-top: 8px;
  min-height: 16px;
}

/* ── Notification permission modal ──────────────────── */
.notif-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  padding: 20px;
  animation: modalFadeIn .2s ease;
}

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

.notif-modal-card {
  background: #fff;
  border-radius: var(--r-xl);
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 72px rgba(0,0,0,.22);
  text-align: center;
  animation: modalSlideIn .22s ease;
}

.notif-modal-icon { font-size: 2.6rem; line-height: 1; margin-bottom: 14px; }

.notif-modal-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 14px;
  line-height: 1.25;
}

.notif-modal-body {
  font-size: 0.9rem;
  color: var(--c-text-2);
  line-height: 1.65;
  margin: 0 0 10px;
}

.notif-modal-body strong { color: var(--c-text); }

.notif-modal-note {
  font-size: 0.78rem;
  color: var(--c-text-3);
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 9px 13px;
  text-align: left;
  margin-top: 4px;
}

.notif-modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }

.notif-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: var(--r-md);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: none;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}

.notif-btn:active { transform: scale(.98); }

.notif-btn-allow {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(29,78,216,.28);
}

.notif-btn-allow:hover { background: var(--c-primary-hover); box-shadow: 0 4px 16px rgba(29,78,216,.36); }

.notif-btn-later {
  background: transparent;
  color: var(--c-text-3);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px;
}

.notif-btn-later:hover { color: var(--c-text-2); }

/* ── Notification permission banner (hidden – replaced by modal) */
.notif-permission-bar { display: none !important; }

/* ── Toast Notifications ─────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 24px;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  z-index: 99999;
  pointer-events: none;
  max-width: 390px;
  width: calc(100vw - 48px);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0,0,0,.18), 0 2px 10px rgba(0,0,0,.10);
  overflow: hidden;
  pointer-events: all;
  position: relative;
  animation: toastSlideIn .38s cubic-bezier(.21,1.02,.73,1) both;
}

.toast.toast--out {
  animation: toastSlideOut .32s cubic-bezier(.55,0,1,.45) both;
  pointer-events: none;
}

/* Colour bar on the left */
.toast-bar {
  width: 5px;
  flex-shrink: 0;
  align-self: stretch;
  border-radius: 14px 0 0 14px;
}
.toast--info    .toast-bar { background: linear-gradient(180deg, #1d4ed8, #3b82f6); }
.toast--success .toast-bar { background: linear-gradient(180deg, #15803d, #22c55e); }
.toast--warning .toast-bar { background: linear-gradient(180deg, #b45309, #f59e0b); }

/* Icon */
.toast-icon {
  font-size: 1.35rem;
  padding: 14px 10px 14px 13px;
  line-height: 1;
  flex-shrink: 0;
}

/* Text block */
.toast-body {
  flex: 1;
  min-width: 0;
  padding: 13px 8px 13px 0;
}

.toast-title {
  font-weight: 700;
  font-size: .875rem;
  color: #0f172a;
  margin: 0 0 3px;
  line-height: 1.35;
}

.toast-msg {
  font-size: .82rem;
  color: #475569;
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
}

/* Close button */
.toast-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 1.15rem;
  padding: 10px 14px;
  align-self: flex-start;
  line-height: 1;
  flex-shrink: 0;
  transition: color .15s;
}
.toast-close:hover { color: #334155; }

/* Progress bar (shrinks from full to 0 over the toast duration) */
.toast-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 14px 14px;
  transform-origin: left center;
}
.toast--info    .toast-progress { background: #3b82f6; }
.toast--success .toast-progress { background: #22c55e; }
.toast--warning .toast-progress { background: #f59e0b; }

/* Keyframes */
@keyframes toastSlideIn {
  from { opacity: 0; transform: translateX(calc(100% + 28px)); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes toastSlideOut {
  from { opacity: 1; transform: translateX(0); max-height: 200px; margin-bottom: 0; }
  to   { opacity: 0; transform: translateX(calc(100% + 28px)); max-height: 0; margin-bottom: -10px; }
}

@keyframes toastProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* ── Date Mismatch Warning Dialog ───────────────────── */
.dw-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 22, 50, 0.62);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99998;
  padding: 20px;
  animation: dwFadeIn .22s ease both;
}

.dw-overlay[hidden] { display: none !important; }

@keyframes dwFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.dw-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.22), 0 4px 16px rgba(0,0,0,.12);
  padding: 36px 32px 28px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: dwSlideUp .28s cubic-bezier(.21,1.02,.73,1) both;
}

@keyframes dwSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.dw-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px rgba(245,158,11,.25);
}

.dw-icon { font-size: 2rem; line-height: 1; }

.dw-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 12px;
}

.dw-msg {
  font-size: .93rem;
  font-weight: 600;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0 0 10px;
  line-height: 1.5;
}

.dw-sub {
  font-size: .82rem;
  color: #64748b;
  margin: 0 0 24px;
  line-height: 1.5;
}

.dw-actions {
  display: flex;
  gap: 10px;
  flex-direction: column;
}

.dw-btn-keep {
  background: #e2e8f0;
  color: #334155;
  font-weight: 600;
  border-radius: 10px;
  padding: 11px 20px;
  font-size: .88rem;
  border: none;
  cursor: pointer;
  transition: background .15s;
}
.dw-btn-keep:hover { background: #cbd5e1; }

.dw-btn-change {
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #fff;
  font-weight: 700;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: .88rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(29,78,216,.35);
  transition: box-shadow .15s, transform .1s;
}
.dw-btn-change:hover { box-shadow: 0 6px 20px rgba(29,78,216,.45); transform: translateY(-1px); }

/* ── Grant Profile ───────────────────────────────────── */
.name-field-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.name-field-row select { flex: 1; }

.btn--grant-profile {
  background: linear-gradient(135deg, #0d1b3e, #1e3a8f);
  color: #e2e8f0;
  border: 1px solid #3b82f6;
  border-radius: var(--r-sm);
  padding: 8px 14px;
  font-size: .8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, box-shadow .15s;
}
.btn--grant-profile:hover { background: linear-gradient(135deg, #1e3a8f, #1d4ed8); box-shadow: 0 2px 10px rgba(29,78,216,.3); }

.grant-status-text {
  font-size: .8rem;
  margin: 7px 0 0;
  min-height: 1.2em;
}

.topbar-profile-area {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* Compact variant when Grant Profile btn is in the topbar */
.topbar-profile-area .btn--grant-profile {
  font-size: .78rem;
  padding: 5px 12px;
  border-radius: 999px;
  line-height: 1.4;
}

/* ── Profile chip wrapper (relative for dropdown) ─────────── */
.profile-chip-wrap {
  position: relative;
}

/* ── Profile chip button ─────────────────────────────────── */
.topbar-profile-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.26);
  color: #e2e8f0;
  font-size: .80rem;
  font-weight: 600;
  padding: 5px 10px 5px 5px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, border-color .15s;
  white-space: nowrap;
}
.topbar-profile-chip:hover { background: rgba(255,255,255,.18); }
.topbar-profile-chip.hidden { display: none !important; }

.profile-chip-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-transform: uppercase;
}

.profile-chip-name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-chip-caret {
  font-size: .65rem;
  opacity: .7;
  margin-left: 2px;
}

/* ── Profile dropdown ────────────────────────────────────── */
.profile-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 1000;
  overflow: hidden;
  animation: dd-in .12s ease;
}
@keyframes dd-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.profile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 11px 16px;
  background: transparent;
  border: none;
  color: #e2e8f0;
  font-size: .875rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background .12s;
}
.profile-dropdown-item:hover { background: rgba(255,255,255,.08); }
.profile-dropdown-item + .profile-dropdown-item { border-top: 1px solid rgba(255,255,255,.07); }

/* ── Dropdown divider ────────────────────────────────── */
.profile-dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: 4px 0;
}

/* ── User ID row in dropdown ─────────────────────────── */
.profile-dropdown-userid-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 14px;
  cursor: default;
}
.userid-label {
  font-size: .72rem;
  color: #64748b;
  flex-shrink: 0;
}
.userid-value {
  font-family: monospace;
  font-size: .78rem;
  color: #93c5fd;
  letter-spacing: .04em;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.userid-copy-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,.15);
  color: #94a3b8;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: .80rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .12s, color .12s;
  font-family: inherit;
}
.userid-copy-btn:hover { background: rgba(255,255,255,.08); color: #e2e8f0; }

/* Sign Out item */
.profile-dropdown-item--danger { color: #f87171 !important; }
.profile-dropdown-item--danger:hover { background: rgba(248,113,113,.12) !important; }

/* ── Sign In button in topbar ────────────────────────── */
.btn--sign-in-id {
  background: transparent;
  border: 1px solid rgba(255,255,255,.22);
  color: rgba(255,255,255,.72);
  font-size: .76rem;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--sign-in-id:hover { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.4); }

/* ── User ID reveal box (in first-approval modal) ────── */
.userid-reveal-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 14px 16px;
}
.userid-reveal-code {
  font-family: monospace;
  font-size: 1.18rem;
  font-weight: 700;
  color: #38bdf8;
  letter-spacing: .12em;
  flex: 1;
}
.userid-reveal-copy-btn {
  background: #1e3a5f;
  border: 1px solid #2563eb;
  color: #93c5fd;
  border-radius: 7px;
  padding: 6px 14px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
  white-space: nowrap;
}
.userid-reveal-copy-btn:hover { background: #1d4ed8; color: #fff; }

/* ── My Submissions sort bar ─────────────────────────────── */
.my-subs-sort-bar {
  display: flex;
  gap: 6px;
  padding: 12px 20px 0;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 4px;
}
.my-subs-sort-tab {
  padding: 6px 14px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: .82rem;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  border-radius: 4px 4px 0 0;
  transition: color .15s;
}
.my-subs-sort-tab:hover { color: #1e293b; }
.my-subs-sort-tab--active {
  color: #2563eb;
  border-bottom-color: #2563eb;
}

/* ── Month group heading ─────────────────────────────────── */
.my-subs-month-heading {
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #94a3b8;
  padding: 14px 0 6px;
  border-bottom: 1px solid #e2e8f0;
  margin: 0 0 8px;
}

.profile-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: linear-gradient(135deg, #0d1b3e, #1e3a8f);
  border: 1px solid #3b82f6;
  border-radius: 10px;
  padding: 10px 16px;
  margin-top: 10px;
}
.profile-banner.hidden { display: none; }

.profile-banner-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e2e8f0;
  font-size: .88rem;
}

.profile-badge {
  background: #3b82f6;
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
}

.profile-banner-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}

.btn--profile-action {
  background: rgba(255,255,255,.12);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 7px;
  padding: 5px 12px;
  font-size: .8rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.btn--profile-action:hover { background: rgba(255,255,255,.22); }

.btn--profile-revoke {
  background: transparent;
  color: #f87171;
  border: 1px solid #f87171;
  border-radius: 7px;
  padding: 5px 10px;
  font-size: .78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s;
}
.btn--profile-revoke:hover { background: rgba(248,113,113,.1); }

/* ── My Submissions modal ────────────────────────────── */
.modal-card--wide {
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.modal-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
}

.modal-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #94a3b8;
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 4px;
  transition: color .15s;
}
.modal-close-btn:hover { color: #0f172a; }

.my-subs-content {
  overflow-y: auto;
  flex: 1;
}

.my-sub-card {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
  background: #f8fafc;
}

.my-sub-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 4px;
}

.my-sub-date {
  font-weight: 700;
  font-size: .9rem;
  color: #1d4ed8;
  background: #dbeafe;
  padding: 2px 10px;
  border-radius: 999px;
}

.my-sub-ts {
  font-size: .75rem;
  color: #94a3b8;
}

.my-sub-label {
  font-size: .72rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 3px;
}

.my-sub-text {
  font-size: .88rem;
  color: #1e293b;
  margin: 0 0 10px;
  line-height: 1.5;
}

.my-sub-textarea {
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: .88rem;
  font-family: inherit;
  color: #0f172a;
  background: #fff;
  resize: vertical;
  margin-bottom: 8px;
  outline: none;
  transition: border-color .15s;
}
.my-sub-textarea:focus { border-color: #1d4ed8; }

.my-sub-edit-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 6px;
}

.my-sub-edit-msg {
  font-size: .8rem;
  min-height: 1.2em;
  margin: 0;
}

/* ── Export Section ──────────────────────────────────── */
.export-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--r-md);
  padding: 14px 18px;
  margin-bottom: 16px;
}

.export-bar-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #64748b;
  white-space: nowrap;
}

.export-select, .export-date {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: var(--r-sm);
  color: #e2e8f0;
  padding: 6px 10px;
  font-size: 0.83rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--t-fast);
}

.export-select:focus, .export-date:focus { border-color: #93c5fd; }

.export-date::-webkit-calendar-picker-indicator { filter: invert(1); }

.export-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}

.btn--export {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0f172a;
  color: #93c5fd;
  border: 1px solid #334155;
  border-radius: var(--r-sm);
  padding: 6px 14px;
  font-size: 0.83rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
  white-space: nowrap;
}

.btn--export:hover { background: #1e293b; border-color: #475569; color: #e2e8f0; }
.btn--export:disabled { opacity: .45; cursor: not-allowed; }
.btn--export-pdf  { color: #f87171; }
.btn--export-docx { color: #86efac; }
.btn--export-csv  { color: #fcd34d; }
.btn--export-txt  { color: #cbd5e1; }

/* ── Responsive ──────────────────────────────────────── */
@media (max-width: 740px) {
  .form-layout  { grid-template-columns: 1fr; }
  .dev-layout   { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .export-bar   { flex-direction: column; align-items: flex-start; }
  .export-btns  { margin-left: 0; }
}

@media (max-width: 560px) {
  .hero-section       { padding: 34px 16px 28px; }
  .content-container  { padding: 22px 16px 48px; }
  .topbar-inner       { padding: 0 16px; }
  .form-card          { padding: 18px 16px; }
  .action-section     { padding: 24px 18px; }
  .dev-login-card,
  .dev-panel-card     { padding: 18px 16px; }
}