/* Font loaded via <link> in base.html */

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
  --bg:              #0e0e0f;
  --surface:         #18181a;
  --surface-raised:  #222224;
  --border:          #2c2c2e;
  --border-focus:    #f0a500;

  --accent:          #f0a500;
  --accent-dark:     #c88a00;

  --text:            #e8e6e1;
  --text-muted:      #88857f;
  --text-faint:      #4a4844;

  --green:           #22c55e;
  --red:             #ef4444;
  --amber:           #f0a500;

  --radius:          6px;
  --font:            'Barlow', system-ui, -apple-system, sans-serif;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

/* ─── Layout ─────────────────────────────────────────────────── */
.page-center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0;
}

.container {
  width: 100%;
  max-width: 480px;
  padding: 0 20px;
}

/* ─── Logo ───────────────────────────────────────────────────── */
.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
}

.logo img {
  height: 32px;
  width: auto;
}

/* ─── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  width: 100%;
}

/* ─── Form chrome ─────────────────────────────────────────────── */
.form-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.form-group {
  margin-bottom: 18px;
}

.form-group + .form-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ─── Labels ─────────────────────────────────────────────────── */
label:not(.skill-option) {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.label-optional {
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-left: 4px;
}

/* ─── Inputs ─────────────────────────────────────────────────── */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"] {
  display: block;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  padding: 11px 14px;
  min-height: 48px;
  transition: border-color 0.12s;
  -webkit-appearance: none;
}

input:focus {
  outline: none;
  border-color: var(--border-focus);
}

input::placeholder {
  color: var(--text-faint);
  font-weight: 400;
}

input.field-error {
  border-color: var(--red);
}

.field-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 5px;
}

/* ─── Error lists ─────────────────────────────────────────────── */
.errorlist {
  list-style: none;
  margin-top: 6px;
}
.errorlist li {
  font-size: 0.8125rem;
  color: var(--red);
}

.form-errors {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 20px;
  list-style: none;
}
.form-errors li {
  font-size: 0.875rem;
  color: var(--red);
}

/* ─── Skills grid ─────────────────────────────────────────────── */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 6px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 2px;
}

.skill-option {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: pointer;
  min-height: 46px;
  transition: border-color 0.12s, background 0.12s;
  /* override the generic label rule */
  font-size: 0.9375rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--text) !important;
  margin-bottom: 0 !important;
}

.skill-option:has(input:checked),
.skill-option.is-checked {
  border-color: var(--accent);
  background: rgba(240, 165, 0, 0.07);
}

.skill-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: unset;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

/* ─── Skill tags (selected skills shown above grid) ──────────── */
.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.skill-tags:empty {
  display: none;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(240, 165, 0, 0.12);
  border: 1px solid rgba(240, 165, 0, 0.35);
  border-radius: 4px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 4px 8px 4px 10px;
  line-height: 1.3;
}

.skill-tag-remove {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1;
  padding: 0 0 0 2px;
  opacity: 0.55;
  transition: opacity 0.12s;
}
.skill-tag-remove:hover {
  opacity: 1;
}

/* ─── Button ─────────────────────────────────────────────────── */
.btn {
  display: block;
  width: 100%;
  background: var(--accent);
  border: none;
  border-radius: var(--radius);
  color: #0e0e0f;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 14px 20px;
  min-height: 52px;
  text-align: center;
  transition: background 0.12s;
  -webkit-appearance: none;
  margin-top: 24px;
}
.btn:hover  { background: var(--accent-dark); }
.btn:active { background: var(--accent-dark); }

.btn-amber {
  display: inline-block;
  width: auto;
  margin-top: 16px;
  padding: 10px 20px;
  min-height: unset;
  font-size: 0.875rem;
}

/* ─── Form footer ─────────────────────────────────────────────── */
.form-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ─── Status badges ──────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 3px;
}
.badge-confirmed { background: rgba(34,197,94,.15);  color: var(--green); }
.badge-tentative { background: rgba(240,165,0,.15);  color: var(--amber); }
.badge-refused   { background: rgba(239,68,68,.15);  color: var(--red);   }

/* ─── Admin panel ────────────────────────────────────────────── */
.panel-body { background: var(--bg); color: var(--text); font-family: var(--font); }

.panel-topbar {
  position: sticky; top: 0; left: 0; z-index: 20;
  width: 100%; box-sizing: border-box;
  height: 52px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; gap: 16px;
}
.panel-topbar-brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.panel-topbar-logo { height: 18px; width: auto; display: block; }
.panel-topbar-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-faint);
}
.panel-topbar-exit {
  font-size: 0.8125rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; transition: color 0.12s;
}
.panel-topbar-exit:hover { color: var(--text); text-decoration: none; }

.panel-layout {
  display: flex;
  min-height: calc(100vh - 52px);
}

.panel-sidebar {
  width: 196px;
  flex-shrink: 0;
  position: sticky;
  top: 52px;
  height: calc(100vh - 52px);
  overflow-y: auto;
  border-right: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}
.panel-nav-link {
  display: block;
  padding: 9px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.12s, background 0.12s;
  border-left: 2px solid transparent;
}
.panel-nav-link:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.panel-nav-link--active {
  color: var(--text);
  border-left-color: var(--accent);
  background: var(--surface);
}
.panel-nav-link--soon { opacity: 0.35; pointer-events: none; }
.panel-nav-divider { height: 1px; background: var(--border); margin: 12px 0; }

.panel-main {
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 36px 40px;
  max-width: 860px;
}

.panel-page-title {
  font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em;
  color: var(--text); margin-bottom: 28px;
}

/* Stats grid */
.panel-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 700px) { .panel-stat-grid { grid-template-columns: repeat(2, 1fr); } }

.panel-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.panel-stat-card--warn { border-color: rgba(240,165,0,0.4); background: rgba(240,165,0,0.05); }
.panel-stat-value {
  font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: var(--text); line-height: 1;
}
.panel-stat-card--warn .panel-stat-value { color: var(--accent); }
.panel-stat-label { font-size: 0.8125rem; color: var(--text-muted); }

/* Settings form */
.panel-settings-form { max-width: 520px; }
.panel-settings-section { margin-bottom: 32px; }
.panel-settings-section-title {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-faint);
  margin-bottom: 14px;
}

.panel-toggle-row {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); cursor: pointer;
  transition: border-color 0.12s;
}
.panel-toggle-row:hover { border-color: var(--text-muted); }

.panel-toggle-input { display: none; }
.panel-toggle-wrap { flex-shrink: 0; padding-top: 2px; }
.panel-toggle-track {
  display: block; width: 36px; height: 20px;
  background: var(--border); border-radius: 999px;
  position: relative; transition: background 0.15s;
}
.panel-toggle-input:checked ~ .panel-toggle-track { background: var(--accent); }
.panel-toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; transition: left 0.15s;
}
.panel-toggle-input:checked ~ .panel-toggle-track .panel-toggle-thumb { left: 19px; }

.panel-toggle-info { display: flex; flex-direction: column; gap: 3px; }
.panel-toggle-label { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.panel-toggle-hint { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.4; }

.panel-save-btn {
  margin-top: 8px;
  padding: 10px 24px;
  background: var(--accent); color: var(--bg);
  font-family: var(--font); font-size: 0.875rem; font-weight: 700;
  border: none; border-radius: var(--radius); cursor: pointer;
  transition: background 0.12s;
}
.panel-save-btn:hover { background: var(--accent-dark); }

.panel-notice {
  padding: 11px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem; font-weight: 600;
  margin-bottom: 24px;
}
.panel-notice--ok { background: rgba(34,197,94,0.1); color: #22c55e; border: 1px solid rgba(34,197,94,0.25); }

/* ── Member list ── */
.panel-search-form {
  display: flex; align-items: center; gap: 8px; margin-bottom: 12px;
}
.panel-search-input {
  flex: 1; max-width: 320px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 7px 12px;
  font-family: var(--font); font-size: 0.875rem; color: var(--text);
  outline: none; transition: border-color 0.12s;
}
.panel-search-input:focus { border-color: var(--accent); }
.panel-search-btn {
  padding: 7px 16px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font); font-size: 0.875rem;
  font-weight: 600; color: var(--text-muted); cursor: pointer;
  transition: border-color 0.12s, color 0.12s;
}
.panel-search-btn:hover { border-color: var(--accent); color: var(--accent); }
.panel-search-clear {
  font-size: 0.8125rem; color: var(--text-faint); text-decoration: none;
  transition: color 0.12s;
}
.panel-search-clear:hover { color: var(--text-muted); text-decoration: none; }
.panel-list-meta { font-size: 0.8125rem; color: var(--text-faint); margin-bottom: 16px; }

.panel-table-wrap { max-width: 100%; }
.panel-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
}
.panel-table thead th {
  text-align: left; padding: 8px 12px;
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-faint);
  border-bottom: 1px solid var(--border);
}
.panel-table tbody td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.panel-table-row:hover td { background: var(--surface); }
.panel-td-name { font-weight: 700; color: var(--text); }
.panel-td-muted { color: var(--text-muted); }
.panel-td-phone { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.panel-td-empty { color: var(--text-faint); padding: 24px 12px; text-align: center; }

.panel-badge {
  display: inline-block; padding: 2px 8px; border-radius: 4px;
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.panel-badge--green { background: rgba(34,197,94,0.12); color: #22c55e; }
.panel-badge--red   { background: rgba(239,68,68,0.12); color: #ef4444; }
.panel-badge--muted { background: var(--surface-raised); color: var(--text-faint); }
.panel-badge--dim   { background: transparent; color: var(--text-faint); border: 1px solid var(--border); }

.panel-pagination {
  display: flex; align-items: center; gap: 16px; margin-top: 20px;
}
.panel-page-btn {
  font-size: 0.8125rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; transition: color 0.12s;
}
.panel-page-btn:hover { color: var(--text); text-decoration: none; }
.panel-page-info { font-size: 0.8125rem; color: var(--text-faint); }

/* ── Member detail ── */
.panel-detail-breadcrumb { margin-bottom: 16px; }
.panel-detail-back {
  font-size: 0.8125rem; font-weight: 600; color: var(--text-muted);
  text-decoration: none; transition: color 0.12s;
}
.panel-detail-back:hover { color: var(--text); text-decoration: none; }

.panel-detail-section {
  margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--border);
}
.panel-detail-section:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.panel-detail-section-title {
  font-size: 0.6875rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 14px;
}
.panel-detail-sub {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 6px;
}
.panel-detail-hint { font-size: 0.8125rem; color: var(--text-faint); margin-bottom: 12px; }
.panel-detail-empty { font-size: 0.875rem; color: var(--text-faint); }
.panel-link { color: var(--accent); text-decoration: none; }
.panel-link:hover { text-decoration: underline; }

.panel-field-grid {
  display: grid; grid-template-columns: 140px 1fr;
  gap: 8px 16px; font-size: 0.875rem;
}
.panel-field-grid dt { color: var(--text-muted); font-weight: 600; }
.panel-field-grid dd { color: var(--text); }
.panel-field-label {
  display: block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--text-muted); margin-bottom: 6px;
}

.panel-project-list {
  list-style: none; display: flex; flex-direction: column; gap: 4px;
}
.panel-project-list li {
  font-size: 0.875rem; color: var(--text-muted);
  padding: 6px 0; border-bottom: 1px solid var(--border);
}
.panel-project-list li:last-child { border-bottom: none; }

.panel-action-row { display: flex; gap: 10px; flex-wrap: wrap; }
.panel-action-btn {
  padding: 8px 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); font-family: var(--font);
  font-size: 0.8125rem; font-weight: 700; color: var(--text-muted);
  cursor: pointer; transition: border-color 0.12s, color 0.12s;
  white-space: nowrap;
}
.panel-action-btn:hover { border-color: var(--accent); color: var(--accent); }
.panel-action-btn--off:hover { border-color: var(--text-muted); color: var(--text-muted); }
.panel-action-btn--danger { color: #ef4444; border-color: rgba(239,68,68,0.3); }
.panel-action-btn--danger:hover { border-color: #ef4444; color: #ef4444; background: rgba(239,68,68,0.07); }
.panel-action-btn--accent { color: var(--accent); border-color: rgba(240,165,0,0.35); }
.panel-action-btn--accent:hover { border-color: var(--accent); background: rgba(240,165,0,0.08); }

.panel-flash {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 20px;
}
.panel-flash--success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #4ade80; }

.panel-plan-form {}
.panel-plan-row { display: flex; gap: 8px; align-items: center; }
.panel-select {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 7px 10px;
  font-family: var(--font); font-size: 0.875rem; color: var(--text);
  outline: none; transition: border-color 0.12s; cursor: pointer;
}
.panel-select:focus { border-color: var(--accent); }

.panel-suspend-form { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; max-width: 400px; }
.panel-notes-form { display: flex; flex-direction: column; gap: 0; max-width: 480px; }

/* ─── Panel — project list ───────────────────────────────────── */
.panel-select--inline { margin-left: 6px; }

/* ─── Panel — project detail ─────────────────────────────────── */
.panel-interval-block {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 12px; overflow: hidden;
}
.panel-interval-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--border);
}
.panel-interval-name { font-weight: 600; color: var(--text); font-size: 0.9rem; }
.panel-interval-dates { font-size: 0.8rem; color: var(--text-muted); }
.panel-crew-list { list-style: none; margin: 0; padding: 8px 0; }
.panel-crew-item {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 14px; border-bottom: 1px solid var(--border);
}
.panel-crew-item:last-child { border-bottom: none; }
.panel-crew-name { flex: 1; font-size: 0.875rem; color: var(--text); }
.panel-crew-role { font-size: 0.8rem; color: var(--text-muted); }
.panel-action-btn--plain {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: var(--radius);
  font-family: var(--font); font-size: 0.8rem; font-weight: 600;
  border: 1px solid var(--border); color: var(--text-muted);
  background: transparent; cursor: pointer; text-decoration: none;
  transition: border-color 0.12s, color 0.12s;
}
.panel-action-btn--plain:hover { border-color: var(--text-muted); color: var(--text); }

/* ─── Panel — fraud screen ───────────────────────────────────── */
.panel-fraud-group {
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 16px; overflow: hidden;
}
.panel-fraud-group-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px; background: rgba(255,165,0,0.06);
  border-bottom: 1px solid var(--border);
}
.panel-fraud-suffix { font-weight: 700; color: var(--accent); font-size: 0.9rem; letter-spacing: 0.04em; }
.panel-fraud-count { font-size: 0.78rem; color: var(--text-muted); }
.panel-fraud-entries { list-style: none; margin: 0; padding: 0; }
.panel-fraud-entry {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  padding: 9px 14px; border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.panel-fraud-entry:last-child { border-bottom: none; }
.panel-fraud-name { font-weight: 600; color: var(--text); min-width: 120px; }
.panel-fraud-email, .panel-fraud-phone { color: var(--text-muted); }
.panel-badge--amber { background: rgba(240,165,0,0.12); color: var(--accent); }
.panel-flag-btn {
  margin-left: auto; padding: 3px 10px; border-radius: var(--radius);
  font-family: var(--font); font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--border); background: transparent;
  color: var(--text-muted); cursor: pointer; transition: border-color 0.12s;
}
.panel-flag-btn:hover { border-color: var(--accent); color: var(--accent); }
.panel-inline-link { color: var(--accent); text-decoration: none; }
.panel-inline-link:hover { text-decoration: underline; }

/* ─── Panel — GDPR section ───────────────────────────────────── */
.panel-gdpr-erase { border-top: 1px solid var(--border); padding-top: 16px; margin-top: 4px; }

/* ─── Panel — audit log ──────────────────────────────────────── */
.panel-audit-filters {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px;
}
.panel-date-input {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 8px 10px;
  font-family: var(--font); font-size: 0.85rem; color: var(--text);
  outline: none; transition: border-color 0.12s;
  color-scheme: dark;
}
.panel-date-input:focus { border-color: var(--accent); }
.panel-audit-table { font-size: 0.82rem; }
.panel-audit-ts { white-space: nowrap; min-width: 130px; }
.panel-audit-actor { min-width: 100px; }
.panel-audit-action {
  display: inline-block; padding: 2px 7px; border-radius: 4px;
  background: rgba(240,165,0,0.1); color: var(--accent);
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
  font-family: monospace;
}
.panel-audit-type {
  display: inline-block; margin-right: 5px; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.panel-audit-target { min-width: 140px; }
.panel-audit-detail { font-size: 0.8rem; max-width: 260px; }
.panel-textarea {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 12px;
  font-family: var(--font); font-size: 0.875rem; color: var(--text);
  resize: vertical; outline: none; transition: border-color 0.12s; width: 100%;
}
.panel-textarea:focus { border-color: var(--accent); }

/* ─── Dashboard shell ────────────────────────────────────────── */
.dashboard {
  min-height: 100vh;
}

/* ─── Topbar ─────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 56px;
}

.topbar-logo img {
  height: 22px;
  width: auto;
  display: block;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.12s;
}
.topbar-name:hover {
  color: var(--text);
  text-decoration: none;
}

/* ─── Dash content ───────────────────────────────────────────── */
.dash-content {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* ─── Section ────────────────────────────────────────────────── */
.dash-section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ─── Pending card ───────────────────────────────────────────── */
.pending-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.pending-project {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
}

.pending-meta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pending-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pending-sep {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.pending-window {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.pending-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-confirm {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.35);
  border-radius: var(--radius);
  color: var(--green);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 14px;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}
.btn-confirm:hover {
  background: rgba(34, 197, 94, 0.2);
  border-color: var(--green);
}

.btn-refuse {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 14px;
  white-space: nowrap;
  transition: border-color 0.12s, color 0.12s;
}
.btn-refuse:hover {
  border-color: var(--red);
  color: var(--red);
}

/* ─── Project card ───────────────────────────────────────────── */
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 8px;
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow: hidden;
}

.project-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 14px 4px 14px 16px;
  text-decoration: none;
  color: inherit;
}
.project-card-body:hover { text-decoration: none; }

.project-card-name {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-card-body:hover .project-card-name {
  overflow-x: auto;
  text-overflow: clip;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.project-card-body:hover .project-card-name::-webkit-scrollbar { display: none; }

.project-card-sub {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-card-actions {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
}

.card-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  color: var(--text-faint);
  text-decoration: none;
  border-left: 1px solid var(--border);
  transition: background 0.12s, color 0.12s;
}
.card-icon-btn:hover {
  background: var(--surface-raised);
  color: var(--text-muted);
  text-decoration: none;
}

/* ─── Manager badge ──────────────────────────────────────────── */
.manager-badge {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(240, 165, 0, 0.12);
  color: var(--amber);
}

/* ─── Empty state ────────────────────────────────────────────── */
.empty-state {
  padding: 20px 0 4px;
}

.empty-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 4px;
}

.empty-sub {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 8px 14px;
  min-height: unset;
  width: auto;
  display: inline-block;
  margin-top: 0;
  transition: border-color 0.12s, color 0.12s;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--text-muted);
  color: var(--text);
  text-decoration: none;
}

/* ─── Profile section divider ────────────────────────────────── */
.profile-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ─── Inner pages (create, detail) ───────────────────────────── */
.inner-page {
  min-height: 100vh;
}

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

.back-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.12s;
}
.back-link:hover {
  color: var(--text);
  text-decoration: none;
}

.inner-content {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

.page-title {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 24px;
}

/* ─── Intervals section (create form) ────────────────────────── */
.intervals-header {
  margin-bottom: 12px;
}

.section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.interval-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
}

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

.interval-counter {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.btn-remove-interval {
  background: none;
  border: none;
  color: var(--text-faint);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0;
  transition: color 0.12s;
}
.btn-remove-interval:hover {
  color: var(--red);
}

.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.date-row .form-group {
  margin-bottom: 0;
}

/* ─── Date input ─────────────────────────────────────────────── */
input[type="date"] {
  color-scheme: dark;
}

/* ─── Add interval button ────────────────────────────────────── */
.btn-add-interval {
  display: block;
  width: 100%;
  background: transparent;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 12px;
  text-align: center;
  transition: border-color 0.12s, color 0.12s;
  margin-top: 4px;
}
.btn-add-interval:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Project detail ─────────────────────────────────────────── */
.detail-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-heading .page-title {
  margin-bottom: 0;
}

.interval-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.interval-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.interval-item-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.interval-item-dates {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.prep-badge {
  display: inline-block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 6px;
  vertical-align: middle;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--amber);
  cursor: pointer;
  flex-shrink: 0;
}

/* ─── Textarea ───────────────────────────────────────────────── */
textarea {
  display: block;
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  padding: 11px 14px;
  resize: vertical;
  transition: border-color 0.12s;
  -webkit-appearance: none;
}
textarea:focus {
  outline: none;
  border-color: var(--border-focus);
}
textarea::placeholder {
  color: var(--text-faint);
  font-weight: 400;
}
textarea.field-error { border-color: var(--red); }

/* ─── Project detail additions ───────────────────────────────── */
.detail-description {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.6;
}

.interval-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.interval-item-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.interval-assignments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.assignment-role {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(240, 165, 0, 0.1);
  border: 1px solid rgba(240, 165, 0, 0.25);
  border-radius: 3px;
  padding: 2px 8px;
}

.interval-next-day {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-top: 8px;
}

/* ─── Form actions row ───────────────────────────────────────── */
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 32px;
}
.form-actions .btn {
  flex: 1;
  margin-top: 0;
  width: auto;
}

/* ─── QR block ───────────────────────────────────────────────── */
.qr-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.qr-image {
  width: 240px;
  height: 240px;
  display: block;
  border-radius: 4px;
}
.qr-url {
  font-size: 0.75rem;
  color: var(--text-faint);
  word-break: break-all;
  text-align: center;
  max-width: 280px;
}
.qr-share-btn {
  margin-top: 0;
  min-width: 120px;
  text-align: center;
}

/* ─── Merge page ─────────────────────────────────────────────── */
.merge-block {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 28px;
}
.merge-title {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
  margin-bottom: 12px;
}
.merge-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 8px;
}
.merge-body:last-child { margin-bottom: 0; }
.merge-actions { display: flex; flex-direction: column; gap: 10px; }
.merge-actions .btn,
.merge-actions .btn-ghost { margin-top: 0; text-align: center; }

/* ─── Conflict warning ───────────────────────────────────────── */
.conflict-block {
  padding: 20px;
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius);
  margin-bottom: 24px;
}
.conflict-title {
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--red);
  margin-bottom: 12px;
}
.conflict-body {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 8px;
}
.conflict-body:last-child { margin-bottom: 0; }
.conflict-actions {
  display: flex;
  gap: 12px;
}
.conflict-actions .btn-danger,
.conflict-actions .btn-ghost { flex: 1; text-align: center; }

/* ─── Danger zone ────────────────────────────────────────────── */
.danger-zone {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(239, 68, 68, 0.2);
}

.danger-zone-title {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}

.danger-zone-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.danger-zone-row:last-child { border-bottom: none; }

.danger-zone-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.danger-zone-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.btn-danger {
  flex-shrink: 0;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius);
  color: var(--red);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 14px;
  transition: background 0.12s, border-color 0.12s;
}
.btn-danger:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: var(--red);
}
.btn-danger--strong {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.5);
}
.btn-outline-danger {
  display: inline-block;
  background: transparent;
  border: 1px solid var(--red);
  border-radius: var(--radius);
  color: var(--red);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 14px;
  text-decoration: none;
  transition: background 0.12s;
}
.btn-outline-danger:hover {
  background: rgba(239, 68, 68, 0.12);
}
.btn-danger-solid {
  display: inline-block;
  background: #c0392b;
  border: 1px solid #c0392b;
  border-radius: var(--radius);
  color: #fff;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 8px 14px;
  text-decoration: none;
  transition: background 0.12s;
}
.btn-danger-solid:hover {
  background: #a93226;
  border-color: #a93226;
}

/* ─── Crew management ────────────────────────────────────────── */
.crew-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

.crew-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.crew-item-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.crew-item-row1 { display: flex; align-items: baseline; gap: 6px; }
.crew-item-row2 { display: flex; align-items: baseline; gap: 4px; }
.crew-item-name { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.crew-item-type {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.crew-item-role { font-size: 0.8125rem; color: var(--text-muted); }
.crew-day-count { font-size: 0.8125rem; color: var(--text-muted); opacity: 0.7; }

.crew-add-section { margin-top: 24px; }
.crew-add-section + .crew-add-section { margin-top: 16px; }

/* ─── Day management ─────────────────────────────────────────── */
.day-month { border: none; margin-bottom: 8px; }
.day-month-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 0 8px;
}
.day-month-heading::-webkit-details-marker { display: none; }
.day-month-chevron { flex-shrink: 0; transition: transform 0.15s ease; }
.day-month:not([open]) .day-month-chevron { transform: rotate(-90deg); }

.day-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }

.day-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
}
.day-item:hover { border-color: var(--border-focus); }
.day-item--past { opacity: 0.55; }

.day-item-link {
  flex: 1;
  min-width: 0;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.day-item-left { flex: 1; min-width: 0; }
.day-item-right { flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.day-item-date { font-size: 0.9375rem; font-weight: 700; color: var(--text); }
.day-item-meta { font-size: 0.8125rem; color: var(--text-muted); margin-top: 2px; }

.day-today-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  vertical-align: middle;
}

.day-crew-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.day-crew-dot--on { background: var(--green); }
.day-crew-dot--off { background: var(--border-focus); }

.roster-section { margin-bottom: 24px; }
.roster-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}

.roster-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 8px;
}

.roster-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.roster-item-name { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.roster-item-role { font-size: 0.8125rem; color: var(--text-muted); }

.guest-url-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.guest-url-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}
.guest-url-link {
  font-size: 0.8125rem;
  color: var(--accent);
  word-break: break-all;
  text-decoration: none;
}
.guest-url-link:hover { text-decoration: underline; }

/* ─── Crewlist / presence states ─────────────────────────────── */
.crewlist-day-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.crewlist-day-date {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}
.crewlist-day-window {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.presence-list { display: flex; flex-direction: column; gap: 8px; }

.presence-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
}
.presence-item--mine { border-color: var(--accent); }

.presence-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}
.presence-name { font-size: 0.9375rem; font-weight: 700; color: var(--text); }
.presence-role { font-size: 0.8125rem; color: var(--text-muted); }

.state-badge {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
}
.state-tentative  { background: rgba(240,165,0,0.12);  color: var(--amber); }
.state-confirmed  { background: rgba(34,197,94,0.12);  color: var(--green); }
.state-refused    { background: rgba(239,68,68,0.12);  color: var(--red); }
.state-removed    { background: rgba(74,72,68,0.2);    color: var(--text-faint); }

.presence-actions { display: flex; gap: 8px; margin-top: 10px; }

.presence-item-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.presence-dept {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.presence-dept + .presence-dept { margin-top: 8px; }
.presence-dept-name {
  list-style: none;
  padding: 10px 14px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--surface);
  cursor: pointer;
  user-select: none;
}
.presence-dept-name::-webkit-details-marker { display: none; }
.presence-dept .presence-item {
  border-radius: 0;
  border: none;
  border-top: 1px solid var(--border);
}

/* ─── Refusal attention block ────────────────────────────────── */
.attention-block {
  background: rgba(239,68,68,0.06);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 20px;
}
.attention-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.refused-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(239,68,68,0.15);
}
.refused-item:last-child { border-bottom: none; padding-bottom: 0; }
.refused-item-info { display: flex; flex-direction: column; gap: 2px; }
.refused-item-name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.refused-item-role { font-size: 0.8125rem; color: var(--text-muted); }
.refused-item-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ─── Guest crewlist ─────────────────────────────────────────── */
.guest-page {
  min-height: 100vh;
  background: var(--bg);
  padding: 24px 20px 48px;
  max-width: 480px;
  margin: 0 auto;
}
.guest-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.guest-project-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
}
.guest-day-info {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 24px;
}
.guest-search {
  margin-left: auto;
  width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 7px 10px;
  outline: none;
  -webkit-appearance: none;
}
.guest-search::placeholder { color: var(--text-muted); }
.guest-search:focus { border-color: var(--accent); width: 200px; transition: width 0.15s ease; }
.guest-search::-webkit-search-cancel-button { -webkit-appearance: none; }
.guest-dept { border: none; }
.guest-dept + .guest-dept { margin-top: 4px; }
.guest-dept-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 18px 0 6px;
}
.guest-dept-heading::-webkit-details-marker { display: none; }
.guest-dept:first-of-type .guest-dept-heading { padding-top: 4px; }
.guest-dept-chevron { flex-shrink: 0; transition: transform 0.15s ease; }
.guest-dept:not([open]) .guest-dept-chevron { transform: rotate(-90deg); }
.guest-crew-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 8px;
}
.guest-crew-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.guest-crew-name { font-size: 0.9375rem; font-weight: 700; color: var(--text); }
.guest-crew-role { font-size: 0.8125rem; color: var(--text-muted); }
.guest-crew-actions { display: flex; gap: 8px; }
.guest-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 13px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text);
}
.guest-action-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ── Flash messages ── */
.flash-messages { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 999; display: flex; flex-direction: column; gap: 8px; width: min(480px, calc(100vw - 32px)); }
.flash { padding: 12px 16px; border-radius: var(--radius); font-size: 0.875rem; font-weight: 600; border: 1px solid transparent; }
.flash--error { background: #3a1a1a; border-color: var(--refused); color: #ff8080; }
.flash--success { background: #1a2e1a; border-color: var(--confirmed); color: #6ddb6d; }
.flash--info { background: var(--surface); border-color: var(--border); color: var(--text-muted); }

/* ── Today screen ── */
/* ── Home crewlist ── */
.home-chevron-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-bottom: 10px;
}
.home-chevron-btn {
  background: none;
  border: none;
  padding: 4px 10px;
  font-size: 1.375rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  transition: color 0.12s;
  user-select: none;
}
.home-chevron-btn:hover { color: var(--text); }
.home-chevron-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  text-align: center;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-chevron-name:hover { color: var(--text); }

.home-crewlist--hidden { display: none; }

.home-next-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.call-time-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.call-time-bar--single {
  grid-template-columns: 1fr;
}
.call-time-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 12px;
  gap: 2px;
}
.call-time-bar .call-time-col + .call-time-col {
  border-left: 1px solid var(--border);
}
.call-time-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.call-time-value {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.today-project-link {
  display: block;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 14px;
  padding: 2px 0;
}
.today-project-link:hover { color: var(--text); }

.today-date {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.today-empty { padding: 48px 0 24px; }
.today-empty-label { font-size: 1.125rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.today-empty-sub { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; }

/* ── Global topbar (new) ── */
.topbar-left { display: flex; align-items: center; gap: 4px; }
.topbar-logo-link { display: flex; align-items: center; text-decoration: none; margin-right: 6px; }
.topbar-logo-link:hover { text-decoration: none; }

.topbar-nav-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius);
  transition: color 0.12s, background 0.12s;
}
.topbar-nav-link:hover { color: var(--text); background: var(--surface); text-decoration: none; }

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

.topbar-search-form { display: flex; }
.topbar-search-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.8125rem;
  padding: 5px 10px;
  width: 120px;
  outline: none;
  transition: border-color 0.12s, width 0.2s;
  -webkit-appearance: none;
}
.topbar-search-input::placeholder { color: var(--text-faint); }
.topbar-search-input:focus { border-color: var(--border-focus); width: 180px; }

.topbar-sep {
  font-size: 0.875rem;
  color: var(--border);
  user-select: none;
}

.topbar-notif-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  transition: color 0.12s, background 0.12s;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.topbar-notif-btn:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.topbar-notif-btn--active { color: #4caf7d; }
.topbar-notif-btn--active:hover { color: #4caf7d; }

.topbar-notif-icon-wrap { position: relative; display: flex; }
.topbar-notif-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4caf7d;
  border: 1.5px solid var(--bg);
}

/* ── Notifications page ── */
.notif-list { display: flex; flex-direction: column; gap: 8px; }
.notif-item {
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left-width: 3px;
  border-left-color: transparent;
  border-radius: var(--radius);
}
.notif-item--unread { border-left-color: var(--accent); }
.notif-message { font-size: 0.9rem; color: var(--text); line-height: 1.5; margin-bottom: 4px; }
.notif-time { font-size: 0.8125rem; color: var(--text-faint); }

.topbar-gear-wrap { position: relative; }
.topbar-gear-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  transition: color 0.12s, background 0.12s;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.topbar-gear-btn:hover { color: var(--text); background: var(--surface); }

.topbar-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 176px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  z-index: 200;
  overflow: hidden;
}
.topbar-dropdown.is-open { display: block; }

.topbar-dropdown-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 11px 14px 10px;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.topbar-dropdown-item {
  display: block;
  width: 100%;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  padding: 10px 14px;
  text-decoration: none;
  transition: background 0.1s;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font);
  text-align: left;
  line-height: 1.4;
}
.topbar-dropdown-item:hover { background: var(--surface-raised); text-decoration: none; color: var(--text); }
.topbar-dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.back-nav { margin-bottom: 20px; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 20px;
  height: 38px;
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  gap: 0;
}
.breadcrumb-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.7;
  transition: opacity 0.12s;
}
.breadcrumb-logo:hover { opacity: 1; text-decoration: none; }
.breadcrumb-logo img { height: 13px; width: auto; display: block; }
.breadcrumb-sep { color: var(--text-faint); margin: 0 7px; user-select: none; font-weight: 400; }
.breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.breadcrumb-link:hover { color: var(--text); text-decoration: none; }
.breadcrumb-current {
  color: var(--text-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

/* ── Settings page ── */
.settings-top-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 480px) {
  .settings-top-grid { grid-template-columns: 1fr; }
}
.settings-card {
  display: flex;
  flex-direction: column;
}
.settings-card .section-title { margin-bottom: 0; }
.settings-card .btn-ghost { text-align: center; }

.toggle-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}
.toggle-label input[type="checkbox"] {
  accent-color: var(--accent);
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  cursor: pointer;
}

.settings-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.settings-job-list { display: flex; flex-direction: column; gap: 8px; }
.settings-job-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.settings-job-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.settings-job-name { font-size: 0.9375rem; font-weight: 700; color: var(--text); }
.settings-job-roles { font-size: 0.8125rem; color: var(--accent); }
.settings-job-dates { font-size: 0.8125rem; color: var(--text-muted); }
.settings-job-actions { display: flex; gap: 8px; flex-shrink: 0; }

.btn-sm {
  font-size: 0.8125rem;
  font-weight: 700;
  padding: 6px 12px;
  min-height: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  transition: border-color 0.12s, color 0.12s;
  width: auto;
  margin: 0;
}
.btn-sm:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }
.btn-sm--danger:hover { border-color: var(--red); color: var(--red); }

/* Archive tabs */
.archive-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.archive-tab {
  font-size: 0.8125rem;
  font-weight: 700;
  font-family: var(--font);
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 16px 10px;
  cursor: pointer;
  margin-bottom: -1px;
  transition: color 0.12s, border-color 0.12s;
  letter-spacing: 0.01em;
}
.archive-tab:hover { color: var(--text); }
.archive-tab--active { color: var(--text); border-bottom-color: var(--accent); }
.archive-panel--hidden { display: none; }

.settings-archive-list { display: flex; flex-direction: column; gap: 6px; }
.settings-archive-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.settings-archive-name { font-size: 0.9rem; font-weight: 700; color: var(--text); min-width: 0; }
.settings-archive-dates { font-size: 0.8125rem; color: var(--text-muted); flex-shrink: 0; white-space: nowrap; }

/* Subscription plan row */
.settings-plan-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 4px;
}
.settings-plan-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.settings-plan-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(240,165,0,0.15);
  color: var(--accent);
}
.settings-plan-note {
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.empty-state-inline {
  font-size: 0.875rem;
  color: var(--text-faint);
  padding: 4px 0;
}

/* ─── Jobs ───────────────────────────────────────────────────── */
.jobs-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.jobs-tab {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 16px 10px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  letter-spacing: 0.01em;
  transition: color 0.12s, border-color 0.12s;
}
.jobs-tab:hover { color: var(--text); text-decoration: none; }
.jobs-tab--active { color: var(--text); border-bottom-color: var(--accent); }

.jobs-feed { display: flex; flex-direction: column; gap: 12px; }

.job-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.job-card--manager { border-left: 3px solid var(--border-focus); }

.job-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.job-card-role {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-right: 8px;
}
.job-card-expiry {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.job-card-meta {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.job-card-project { font-weight: 600; color: var(--text); }
.job-card-sep { color: var(--text-faint); }
.job-card-description {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}
.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}
.job-card-count {
  font-size: 0.8rem;
  color: var(--text-faint);
}
.job-apply-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  align-items: flex-end;
}
.job-note-input {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.85rem;
  resize: vertical;
  line-height: 1.4;
}
.job-note-input:focus {
  outline: none;
  border-color: var(--border-focus);
}
.job-note-input::placeholder { color: var(--text-faint); }

/* Job badges */
.job-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  vertical-align: middle;
  margin-left: 2px;
}
.job-badge--applied   { background: rgba(240,165,0,0.15); color: var(--amber); }
.job-badge--active    { background: rgba(34,197,94,0.15); color: var(--green); }
.job-badge--expired   { background: rgba(74,72,68,0.3);   color: var(--text-faint); }
.job-badge--cancelled { background: rgba(239,68,68,0.15); color: var(--red); }
.job-badge--declined  { background: rgba(239,68,68,0.15); color: var(--red); }

/* Small button variants */
.btn--sm { padding: 7px 14px; font-size: 0.85rem; min-height: 36px; margin-top: 0; }
.btn-ghost--sm { padding: 7px 12px; font-size: 0.8rem; min-height: 36px; }
.btn-ghost--danger { color: var(--red); border-color: var(--red); }
.btn-ghost--danger:hover { background: rgba(239,68,68,0.1); }

.jobs-empty {
  padding: 32px 0;
  text-align: center;
  color: var(--text-muted);
}

/* ─── Job applicants ─────────────────────────────────────────── */
.job-applicants-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.job-applicants-link:hover { text-decoration: underline; }

.applicant-notice {
  background: rgba(240,165,0,0.08);
  border: 1px solid rgba(240,165,0,0.25);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.applicant-list { display: flex; flex-direction: column; gap: 10px; }

.applicant-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.applicant-row--selected { border-left: 3px solid var(--green); }
.applicant-row--rejected { opacity: 0.55; }

.applicant-info { flex: 1; min-width: 0; }

.applicant-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}
.applicant-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}
.applicant-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 6px;
}
.applicant-contact-link {
  font-size: 0.85rem;
  color: var(--amber);
  text-decoration: none;
}
.applicant-contact-link:hover { text-decoration: underline; }
.applicant-privacy-note {
  font-size: 0.72rem;
  color: var(--text-faint);
  font-style: italic;
}
.applicant-skills {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.applicant-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 4px;
}
.applicant-date {
  font-size: 0.75rem;
  color: var(--text-faint);
}
.applicant-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
  align-self: center;
  width: 100px;
}
.applicant-actions form {
  display: block;
  width: 100%;
}
.applicant-actions form button {
  display: block;
  width: 100%;
  text-align: center;
}

/* ─── Ignored applicants accordion ──────────────────────────── */
.ignored-accordion { border: none; }
.ignored-accordion-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.ignored-accordion-toggle::-webkit-details-marker { display: none; }
.ignored-accordion-toggle::before {
  content: "▶";
  font-size: 0.6rem;
  transition: transform 0.15s;
}
details[open] .ignored-accordion-toggle::before { transform: rotate(90deg); }

/* ─── Crew department accordion (interval_crew) ─────────────── */
.crew-dept {
  margin-bottom: 4px;
}
.crew-dept-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 2px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.crew-dept-heading::-webkit-details-marker { display: none; }
.crew-dept-chevron {
  transition: transform 0.18s;
  color: var(--text-faint);
  flex-shrink: 0;
}
.crew-dept[open] .crew-dept-chevron { transform: rotate(180deg); }
.crew-dept .crew-list { margin-bottom: 8px; }

/* ─── Search result count badge ─────────────────────────────── */
.search-count {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-faint);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1px 7px;
  vertical-align: middle;
  margin-left: 6px;
  letter-spacing: 0;
}

/* ─── Admin panel breadcrumbs ────────────────────────────────── */
.panel-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.panel-breadcrumb-link {
  color: var(--text-muted);
  text-decoration: none;
}
.panel-breadcrumb-link:hover { color: var(--accent); }
.panel-breadcrumb-sep { color: var(--text-faint); }
.panel-breadcrumb-current { color: var(--text); font-weight: 600; }

/* ─── Dashboard attention cards ──────────────────────────────── */
.panel-attention-section { margin-bottom: 28px; }
.panel-attention-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}
.panel-attention-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: border-color 0.15s;
}
.panel-attention-card:hover { border-color: var(--accent); }
.panel-attention-card--warn {
  border-color: rgba(240,165,0,0.35);
  background: rgba(240,165,0,0.05);
}
.panel-attention-card--info {
  border-color: rgba(96,165,250,0.3);
  background: rgba(96,165,250,0.05);
}
.panel-attention-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}
.panel-attention-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.panel-attention-card--warn .panel-attention-value { color: var(--accent); }
.panel-attention-card--info .panel-attention-value { color: #60a5fa; }

/* ─── Member list bulk action bar ───────────────────────────── */
.panel-bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  margin-top: 10px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 6px;
  flex-wrap: wrap;
}
.panel-bulk-count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  min-width: 80px;
}
.panel-bulk-reason {
  flex: 1;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  padding: 6px 10px;
}
.panel-bulk-reason:focus { outline: none; border-color: var(--accent); }

/* ─── Fraud screen additions ─────────────────────────────────── */
.panel-fraud-group--confirmed {
  border-left: 3px solid var(--status-red);
}
.panel-fraud-group--dismissed {
  opacity: 0.6;
}
.panel-fraud-entry--dim {
  opacity: 0.65;
}
.panel-fraud-actions {
  padding: 8px 0 4px;
}
.panel-fraud-dismissed {
  margin-top: 0;
}
.panel-fraud-dismissed-summary {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 2px;
  list-style: none;
  user-select: none;
}
.panel-fraud-dismissed-summary::-webkit-details-marker { display: none; }
.panel-fraud-dismissed-summary:hover { color: var(--text); }

/* ─── Audit log meta row ─────────────────────────────────────── */
.panel-audit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.panel-audit-meta .panel-list-meta { margin-bottom: 0; }

/* ─── Small action button variant ───────────────────────────── */
.panel-action-btn--sm {
  font-size: 0.78rem;
  padding: 5px 12px;
}

/* ─── Broadcast / generic form fields ───────────────────────── */
.panel-field-block { display: flex; flex-direction: column; gap: 4px; }
.panel-field-error {
  font-size: 0.8rem;
  color: var(--status-red);
  margin: 0;
}
.panel-text-input {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  padding: 9px 12px;
  width: 100%;
  box-sizing: border-box;
}
.panel-text-input:focus { outline: none; border-color: var(--accent); }
.panel-broadcast-form { max-width: 560px; }
