@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Space+Mono:ital,wght@0,400;0,700;1,400&display=swap');

/* ============================================================
   ADJACENT INTERACTIVE — GLOBAL STYLES
   Theme system: 3 dark, 3 light. Swapped via data-theme on <html>
   ============================================================ */

/* --- CLEARANCE (default light) --- */
:root,
[data-theme="clearance"] {
  --bg:           #ECEEF2;
  --bg-secondary: #F4F5F8;
  --surface:      #FFFFFF;
  --surface-alt:  #F0F2F6;
  --border:       #D2D6E0;
  --border-subtle:#E4E6EC;
  --text:         #141829;
  --text-muted:   #5C6478;
  --text-faint:   #9AA0B4;
  --accent:       #2A5CBD;
  --accent-hover: #1E4499;
  --accent-dim:   rgba(42,92,189,0.12);
  --accent-text:  #FFFFFF;
  --danger:       #C0392B;
  --success:      #1E7E45;
  --warning:      #B8860B;
  --tag-bg:       rgba(42,92,189,0.08);
  --shadow:       0 1px 4px rgba(20,24,41,0.08), 0 4px 16px rgba(20,24,41,0.04);
  --shadow-md:    0 2px 8px rgba(20,24,41,0.10), 0 8px 24px rgba(20,24,41,0.06);
  --radius:       6px;
  --radius-lg:    10px;
  --sidebar-w:    240px;
}

/* --- DECLASSIFIED (light, red stamp) --- */
[data-theme="declassified"] {
  --bg:           #F7F7F5;
  --bg-secondary: #EFEFED;
  --surface:      #FFFFFF;
  --surface-alt:  #F2F2F0;
  --border:       #DDDDD9;
  --border-subtle:#EAEAE6;
  --text:         #111111;
  --text-muted:   #5A5A56;
  --text-faint:   #999994;
  --accent:       #CC0000;
  --accent-hover: #AA0000;
  --accent-dim:   rgba(204,0,0,0.10);
  --accent-text:  #FFFFFF;
  --danger:       #CC0000;
  --success:      #1E7E45;
  --warning:      #B8860B;
  --tag-bg:       rgba(204,0,0,0.07);
  --shadow:       0 1px 4px rgba(0,0,0,0.07), 0 4px 16px rgba(0,0,0,0.04);
  --shadow-md:    0 2px 8px rgba(0,0,0,0.09), 0 8px 24px rgba(0,0,0,0.05);
}

/* --- FIELD REPORT (light, aged document) --- */
[data-theme="field-report"] {
  --bg:           #F2ECD8;
  --bg-secondary: #EBE4CC;
  --surface:      #F9F5E8;
  --surface-alt:  #EDE6D0;
  --border:       #D0C49A;
  --border-subtle:#DDD3B0;
  --text:         #2A1F0A;
  --text-muted:   #6E5C34;
  --text-faint:   #9A8860;
  --accent:       #5C4A1E;
  --accent-hover: #4A3A14;
  --accent-dim:   rgba(92,74,30,0.12);
  --accent-text:  #F2ECD8;
  --danger:       #AA2200;
  --success:      #2A5C30;
  --warning:      #8C6A00;
  --tag-bg:       rgba(92,74,30,0.10);
  --shadow:       0 1px 4px rgba(42,31,10,0.10), 0 4px 16px rgba(42,31,10,0.05);
  --shadow-md:    0 2px 8px rgba(42,31,10,0.12), 0 8px 24px rgba(42,31,10,0.06);
}

/* --- BLACK SITE (dark, matrix green) --- */
[data-theme="black-site"] {
  --bg:           #090909;
  --bg-secondary: #0F0F0F;
  --surface:      #141414;
  --surface-alt:  #1A1A1A;
  --border:       #242424;
  --border-subtle:#1C1C1C;
  --text:         #E0E0E0;
  --text-muted:   #707070;
  --text-faint:   #404040;
  --accent:       #00FF41;
  --accent-hover: #00CC34;
  --accent-dim:   rgba(0,255,65,0.10);
  --accent-text:  #000000;
  --danger:       #FF4444;
  --success:      #00FF41;
  --warning:      #FFB300;
  --tag-bg:       rgba(0,255,65,0.08);
  --shadow:       0 1px 4px rgba(0,0,0,0.40), 0 4px 16px rgba(0,0,0,0.30);
  --shadow-md:    0 2px 8px rgba(0,0,0,0.50), 0 8px 24px rgba(0,0,0,0.40);
}

/* --- CLASSIFIED (dark, amber) --- */
[data-theme="classified"] {
  --bg:           #0D0F1A;
  --bg-secondary: #111320;
  --surface:      #161826;
  --surface-alt:  #1C1F30;
  --border:       #252840;
  --border-subtle:#1D2035;
  --text:         #E0E4F0;
  --text-muted:   #6B7490;
  --text-faint:   #3A4060;
  --accent:       #FFB300;
  --accent-hover: #E09F00;
  --accent-dim:   rgba(255,179,0,0.12);
  --accent-text:  #0D0F1A;
  --danger:       #FF5555;
  --success:      #44CC77;
  --warning:      #FFB300;
  --tag-bg:       rgba(255,179,0,0.09);
  --shadow:       0 1px 4px rgba(0,0,0,0.50), 0 4px 16px rgba(0,0,0,0.35);
  --shadow-md:    0 2px 8px rgba(0,0,0,0.60), 0 8px 24px rgba(0,0,0,0.45);
}

/* --- DEEP COVER (dark, electric blue) --- */
[data-theme="deep-cover"] {
  --bg:           #070B12;
  --bg-secondary: #0B101C;
  --surface:      #101624;
  --surface-alt:  #161E2E;
  --border:       #1E2A40;
  --border-subtle:#141D30;
  --text:         #CCE0F5;
  --text-muted:   #5A7A9A;
  --text-faint:   #2A4060;
  --accent:       #00CFFF;
  --accent-hover: #00AADA;
  --accent-dim:   rgba(0,207,255,0.12);
  --accent-text:  #070B12;
  --danger:       #FF4466;
  --success:      #44DDAA;
  --warning:      #FFCC44;
  --tag-bg:       rgba(0,207,255,0.09);
  --shadow:       0 1px 4px rgba(0,0,0,0.50), 0 4px 16px rgba(0,0,0,0.35);
  --shadow-md:    0 2px 8px rgba(0,0,0,0.60), 0 8px 24px rgba(0,0,0,0.45);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  transition: background 0.25s ease, color 0.25s ease;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: opacity 0.15s; }
a:hover { opacity: 0.80; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* Background texture — subtle dot grid */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(var(--border-subtle) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h3 { font-size: 1.125rem; }
h4 { font-size: 0.9375rem; }

p { color: var(--text-muted); line-height: 1.7; }

.mono { font-family: 'Space Mono', monospace; }

.label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ============================================================
   LAYOUT — AUTHENTICATED (sidebar)
   ============================================================ */
.app-layout {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.sidebar {
  width: var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 24px 20px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.sidebar-logo .logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.sidebar-logo .logo-text {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.2;
}

.sidebar-logo .logo-text span {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin-top: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
}

.nav-section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 10px 8px 6px;
  margin-top: 8px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.15s;
  margin-bottom: 1px;
}

.nav-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
.nav-item:hover { background: var(--accent-dim); color: var(--accent); opacity: 1; }
.nav-item:hover svg { opacity: 1; }
.nav-item.active { background: var(--accent-dim); color: var(--accent); font-weight: 600; }
.nav-item.active svg { opacity: 1; }

.sidebar-footer {
  padding: 16px 12px;
  border-top: 1px solid var(--border);
}

.user-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-family: 'Space Mono', monospace;
}

.user-info { flex: 1; min-width: 0; }
.user-info .name { font-size: 0.8125rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-info .role { font-family: 'Space Mono', monospace; font-size: 0.5rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-faint); }

.main-content {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-title { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.topbar-title .page-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
}

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.page-body {
  flex: 1;
  padding: 28px;
  max-width: 1200px;
  width: 100%;
}

/* ============================================================
   LAYOUT — PUBLIC (full page)
   ============================================================ */
.public-layout {
  position: relative;
  z-index: 1;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.pub-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.pub-logo .logo-text {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.pub-logo .logo-sub {
  display: block;
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  font-weight: 400;
  margin-top: 1px;
}

/* ============================================================
   COMPONENTS
   ============================================================ */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  transition: all 0.15s;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  font-family: inherit;
}
.btn svg { width: 15px; height: 15px; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
}
.btn-primary:hover { background: var(--accent-hover); opacity: 1; }

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-secondary); opacity: 1; }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: var(--surface-alt); color: var(--text); opacity: 1; }

.btn-danger {
  background: var(--danger);
  color: #fff;
}
.btn-danger:hover { opacity: 0.88; }

.btn-sm { padding: 6px 12px; font-size: 0.8125rem; }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* Cards */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-sm { padding: 16px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.card-title { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.card-subtitle { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 100px;
  font-family: 'Space Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--tag-bg);
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}

.badge-success { background: rgba(30,126,69,0.10); color: var(--success); border-color: rgba(30,126,69,0.20); }
.badge-warning { background: rgba(184,134,11,0.10); color: var(--warning); border-color: rgba(184,134,11,0.20); }
.badge-danger  { background: rgba(192,57,43,0.10);  color: var(--danger);  border-color: rgba(192,57,43,0.20); }
.badge-neutral { background: var(--bg-secondary); color: var(--text-muted); border-color: var(--border); }

/* Forms */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-label-mono {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  -webkit-appearance: none;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.form-textarea { resize: vertical; min-height: 90px; }
.form-hint { font-size: 0.75rem; color: var(--text-faint); margin-top: 5px; }
.form-error { font-size: 0.75rem; color: var(--danger); margin-top: 5px; }

/* Dividers */
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.divider-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--text-faint);
  font-family: 'Space Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.divider-label::before, .divider-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Theme Switcher */
.theme-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.theme-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  position: relative;
}
.theme-dot:hover { transform: scale(1.2); }
.theme-dot.active { border-color: var(--text); }

/* Scrum Board */
.scrum-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: start;
}

.scrum-col {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  min-height: 400px;
}

.scrum-col-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.scrum-col-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.col-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.col-dot-todo { background: var(--text-faint); }
.col-dot-inprog { background: var(--warning); }
.col-dot-done { background: var(--success); }

.scrum-count {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  color: var(--text-faint);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 1px 7px;
}

.scrum-cards { padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 300px; }

.task-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  cursor: grab;
  transition: box-shadow 0.15s, transform 0.15s;
}
.task-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.task-card.dragging { opacity: 0.5; cursor: grabbing; }
.task-card.drag-over { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-dim); }

.task-card-title { font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.task-card-desc { font-size: 0.75rem; color: var(--text-muted); line-height: 1.5; margin-bottom: 10px; }
.task-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }

/* Stats row */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 28px; }

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.stat-change {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 4px;
}

/* Table */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead tr { border-bottom: 2px solid var(--border); }
thead th {
  text-align: left;
  padding: 10px 12px;
  font-family: 'Space Mono', monospace;
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}
tbody tr { border-bottom: 1px solid var(--border-subtle); transition: background 0.12s; }
tbody tr:hover { background: var(--bg-secondary); }
tbody td { padding: 12px 12px; font-size: 0.875rem; color: var(--text); vertical-align: middle; }

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  width: 100%;
  max-width: 500px;
  box-shadow: var(--shadow-md);
  transform: translateY(10px);
  transition: transform 0.2s;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.modal-title { font-size: 1.0625rem; font-weight: 600; color: var(--text); }
.modal-close { background: none; border: none; color: var(--text-faint); font-size: 1.25rem; cursor: pointer; padding: 0; line-height: 1; }
.modal-close:hover { color: var(--text); }

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 18px;
  font-size: 0.875rem;
  color: var(--text);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toast-in 0.25s ease;
  max-width: 320px;
}
.toast-success { border-left: 3px solid var(--success); }
.toast-error   { border-left: 3px solid var(--danger); }
.toast-info    { border-left: 3px solid var(--accent); }

@keyframes toast-in { from { transform: translateX(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Tabs */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 16px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.15s;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); font-weight: 600; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Access denied / empty states */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}
.empty-state svg { margin: 0 auto 16px; opacity: 0.3; }
.empty-state h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 0.875rem; max-width: 320px; margin: 0 auto; }

/* ============================================================
   PUBLIC LANDING PAGE
   ============================================================ */
.hero {
  padding: 80px 40px 60px;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero-eyebrow {
  font-family: 'Space Mono', monospace;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-eyebrow::before, .hero-eyebrow::after {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; margin-bottom: 18px; color: var(--text); }
.hero h1 span { color: var(--accent); }
.hero p { font-size: 1.0625rem; color: var(--text-muted); max-width: 560px; margin: 0 auto 32px; line-height: 1.7; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px 80px;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.role-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--accent); }
.role-card .role-icon { font-size: 1.5rem; margin-bottom: 12px; }
.role-card h3 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.role-card p { font-size: 0.8125rem; line-height: 1.6; color: var(--text-muted); }

/* ============================================================
   AUTH PAGES
   ============================================================ */
.auth-layout {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
}

.auth-logo {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo svg { margin: 0 auto 12px; }

.auth-logo .logo-text {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text);
}

.auth-logo .logo-sub {
  font-family: 'Space Mono', monospace;
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: block;
  margin-top: 3px;
}

.auth-heading { font-size: 1.25rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.auth-sub { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 24px; }

/* ============================================================
   ALERT BANNER
   ============================================================ */
.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  border: 1px solid;
  margin-bottom: 16px;
}
.alert-warning { background: rgba(184,134,11,0.08); border-color: rgba(184,134,11,0.25); color: var(--warning); }
.alert-info    { background: var(--accent-dim); border-color: rgba(42,92,189,0.25); color: var(--accent); }
.alert-success { background: rgba(30,126,69,0.08); border-color: rgba(30,126,69,0.25); color: var(--success); }
.alert-danger  { background: rgba(192,57,43,0.08); border-color: rgba(192,57,43,0.25); color: var(--danger); }

/* ============================================================
   PENDING PAGE (awaiting approval)
   ============================================================ */
.pending-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }

  .sidebar { transform: translateX(-240px); transition: transform 0.25s; width: 240px; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .page-body { padding: 20px 16px; }
  .public-nav { padding: 16px 20px; }
  .hero { padding: 48px 20px 40px; }
  .roles-grid { padding: 0 20px 48px; }
  .scrum-board { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   UTILITIES
   ============================================================ */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.font-semibold { font-weight: 600; }
.hidden { display: none !important; }
.w-full { width: 100%; }
