/* Design tokens (Jay 2026-07-21, UI_INTERACTION_SPEC.md) — shared by
   every drag-and-drop assignment surface (wizard Step 7 now, Team View
   next). Values are drawn from colors already in use elsewhere in this
   file (panel bg/border, accent green, warning/danger), named as
   tokens here so both surfaces read from the same source rather than
   drifting into two slightly-different palettes. */
:root {
  --surface-1: #eef2ef;   /* recessed zone background, one step down from a panel */
  --surface-2: #f7faf8;   /* panel background */
  --border: #d5e3da;
  --border-strong: #b8c7bd;
  --accent: #1d4d3a;
  --bg-accent: #eaf7ee;   /* drop-target hover tint */
  --warning-border: #d6a51f;
  --warning-bg: #fff7e6;
  --warning-text: #6b4e00;
  --danger-border: #8a2323;
  --danger-bg: #fdecec;
  --danger-text: #6b1a1a;
  --radius-panel: 12px;
  --radius-control: 8px;
}

body {
  margin: 0;
  padding: 0;
  background-color: #eef3f0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #22303f;
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
}

/* Sidebar navigation (2026-07-19, mirroring tstools' tool nav). */
.sidebar {
  flex: 0 0 200px;
  background-color: #1d4d3a;
  color: #ffffff;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  box-sizing: border-box;
}

.sidebar-brand {
  font-weight: 700;
  font-size: 1.15em;
  color: #ffffff;
  text-decoration: none;
}

.sidebar-category {
  display: block;
  margin-top: 6px;
  font-size: 0.78em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9cc4b2;
}

.sidebar-nav ul {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
}

.sidebar-nav li a {
  display: block;
  color: #cfe8dc;
  text-decoration: none;
  padding: 5px 8px;
  border-radius: 6px;
}

.sidebar-nav li a:hover {
  background-color: #2a6b51;
  color: #ffffff;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 0.85em;
  color: #cfe8dc;
  word-break: break-all;
}

.sidebar-footer a { color: #ffffff; }

.content {
  flex: 1;
  min-width: 0;
  padding: 0 0 40px 0;
}

.customer-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid #1d4d3a;
  margin: 12px 0 18px;
}

.customer-tabs a, .customer-tabs .tab-current {
  padding: 6px 14px;
  border-radius: 6px 6px 0 0;
  text-decoration: none;
}

.customer-tabs a { background-color: #d8e6de; color: #1d4d3a; }
.customer-tabs a:hover { background-color: #c3d9cd; }
.customer-tabs .tab-current { background-color: #1d4d3a; color: #ffffff; font-weight: 600; }

@media (max-width: 720px) {
  body { flex-direction: column; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .sidebar-footer { margin-top: 0; }
}

.card {
  /* Wide tables (People) need room on large screens (Jay 2026-07-19);
     anything still wider scrolls INSIDE the card instead of spilling
     past its rounded edges. */
  width: calc(100% - 48px);
  max-width: 1280px;
  margin: 24px auto;
  background: #ffffff;
  border-radius: 12px;
  padding: 32px 40px;
  box-shadow: 0 4px 16px rgba(20, 80, 50, 0.08);
  box-sizing: border-box;
  overflow-x: auto;
}

.login-card {
  max-width: 420px;
  text-align: center;
  margin-top: 80px;
}

.code-boxes {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.code-box {
  width: 40px;
  height: 48px;
  text-align: center;
  font-size: 1.4rem;
  border: 1px solid #b8c7bd;
  border-radius: 8px;
}

.qr-wrap {
  max-width: 220px;
  margin: 0 auto;
}

.qr-wrap svg {
  width: 100%;
  height: auto;
}

.recovery-codes {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: left;
  max-width: 320px;
  margin: 16px auto;
}

.recovery-codes code {
  display: block;
  padding: 6px 10px;
  background: #f0f4f1;
  border-radius: 6px;
}

.rollout-tracker {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  border-left: 3px solid #d8e2dc;
}

.rollout-step {
  position: relative;
  padding: 4px 0 20px 24px;
}

.rollout-marker {
  position: absolute;
  left: -14px;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #d8e2dc;
  color: #143c2c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.rollout-step.done .rollout-marker { background: #1d4d3a; color: #fff; }
.rollout-step.current .rollout-marker { background: #d9a441; color: #fff; }

.rollout-label {
  font-weight: 700;
  color: #143c2c;
}

.rollout-body { margin-top: 6px; }

.adoption-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.adoption-row {
  display: grid;
  grid-template-columns: 100px 1fr 32px;
  align-items: center;
  gap: 8px;
}

.adoption-bar-track {
  background: #eef2ef;
  border-radius: 6px;
  height: 10px;
  overflow: hidden;
}

.adoption-bar-fill {
  display: block;
  height: 100%;
  background: #1d4d3a;
}

.wizard-shell {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.wizard-rail {
  width: 190px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 12px;
  padding: 16px 0;
  box-shadow: 0 4px 16px rgba(20, 80, 50, 0.08);
}

.wizard-rail-title {
  font-weight: 700;
  color: #143c2c;
  padding: 0 16px 12px;
  border-bottom: 1px solid #eef2ef;
  margin-bottom: 8px;
}

.wizard-rail ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wizard-rail-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.wizard-rail-step a { color: #143c2c; text-decoration: none; }
.wizard-rail-step.current { background: #eef2ef; font-weight: 700; }
.wizard-rail-step.done a { color: #1d4d3a; }
.wizard-rail-step.skipped a, .wizard-rail-step.skipped span { font-style: italic; color: #8a9990; }
.wizard-rail-step.locked span { color: #b8c7bd; }
.wizard-rail-icon { font-size: 0.75rem; color: #8a9990; }

.wizard-panel {
  flex: 1;
  min-width: 0;
}

.wizard-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
}

.wizard-footer-left { display: flex; gap: 8px; }

.launchpad {
  list-style: none;
  padding: 0;
}

.launchpad li {
  padding: 8px 0;
  border-bottom: 1px solid #eef2ef;
}

ul.two-col {
  columns: 2;
  list-style: none;
  padding: 0;
}

ul.two-col li { padding: 2px 0; }

.rank-list-capped {
  max-height: 220px;
  overflow: hidden;
}

h1 {
  color: #143c2c;
  font-size: 1.5rem;
}

h2 {
  color: #143c2c;
  font-size: 1.1rem;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
}

.btn-google { background-color: #1d6fb8; }
.btn-microsoft { background-color: #14395c; }

button {
  background-color: #1d4d3a;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 0.95rem;
  cursor: pointer;
}

button:hover { background-color: #14382a; }

/* Reactivate stands apart from the green actions (Jay 2026-07-19). */
button.btn-warn { background-color: #e0a800; color: #2b2b2b; }
button.btn-warn:hover { background-color: #c79500; }

/* Links styled as buttons so row actions sit as a uniform group. */
a.btn {
  display: inline-block;
  background-color: #1d4d3a;
  color: #ffffff;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 0.95rem;
  text-decoration: none;
}
a.btn:hover { background-color: #14382a; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9rem;
  margin: 8px 0 16px 0;
}

th, td {
  border: 1px solid #d5e3da;
  padding: 6px 10px;
  text-align: left;
}

thead th {
  background-color: #1d4d3a;
  color: #ffffff;
}

table.kv th {
  background-color: #eef5f0;
  color: #143c2c;
  width: 180px;
}

.flash {
  background-color: #eaf7ee;
  border: 1px solid #bfe3cc;
  color: #1e6b34;
  border-radius: 6px;
  padding: 8px 12px;
}

.hint {
  font-size: 0.8rem;
  color: #4a6478;
}

input[type="text"], input[type="password"], input[type="date"],
input[type="datetime-local"], select {
  border: 1px solid #c3d4c9;
  border-radius: 6px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

/* Timecard summary tiles — rendered per customer category (dynamic count),
   wrap to additional rows past 4 rather than assuming a fixed layout. */
.summary-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
}

.summary-tile {
  flex: 1 1 120px;
  max-width: 180px;
  background-color: #eef5f0;
  border: 1px solid #d5e3da;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: center;
}

.summary-tile.summary-total {
  background-color: #1d4d3a;
  border-color: #1d4d3a;
  color: #ffffff;
}

.summary-label {
  font-size: 0.8rem;
  font-weight: 600;
}

.summary-hours {
  font-size: 1.4rem;
  font-weight: 700;
}

.day-empty td {
  color: #9ab0a3;
  background-color: #f7faf8;
}

.status-unsigned { color: #8a6d23; }
.status-approved { color: #1e6b34; }
.status-declined { color: #8a2323; }

.signoff-actions {
  margin-top: 20px;
  padding: 16px;
  background-color: #f7faf8;
  border: 1px solid #d5e3da;
  border-radius: 8px;
}

.decline-form {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #d5e3da;
}

button.btn-decline {
  background-color: #8a2323;
}

button.btn-decline:hover {
  background-color: #6b1a1a;
}

.decline-note {
  background-color: #fdecec;
  border: 1px solid #e3bcbc;
  color: #8a2323;
  border-radius: 6px;
  padding: 8px 12px;
}

.dev-warning {
  background-color: #fff3cd;
  border: 2px solid #b8860b;
  color: #6b4e00;
  border-radius: 6px;
  padding: 10px 14px;
  font-weight: 600;
}

.viewer-banner {
  background-color: #eef3fb;
  border: 1px solid #bcd0e8;
  color: #274b73;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.proxy-note {
  background-color: #f3ecfb;
  border: 1px solid #d0bce8;
  color: #4b2773;
  border-radius: 6px;
  padding: 8px 12px;
}

.proxy-panel {
  margin-top: 20px;
  padding: 16px;
  background-color: #f8f5fc;
  border: 2px solid #b49ad6;
  border-radius: 8px;
}

.proxy-panel h2 {
  margin-top: 0;
  color: #4b2773;
}

.proxy-confirm {
  display: inline-block;
  margin: 10px 0;
  font-weight: 600;
}

.proxy-badge {
  background-color: #4b2773;
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.chip-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.chip {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid #d5e3da;
  border-radius: 16px;
  background-color: #f7faf8;
  text-decoration: none;
  font-size: 0.9rem;
}

.chip-active {
  border-color: #1e6b34;
  background-color: #e2f2e7;
  font-weight: 600;
}

.chip-approved { color: #1e6b34; }
.chip-declined { color: #8a2323; }
.chip-unsigned { color: #8a6d23; }

.chip-search {
  margin-left: auto;
  display: flex;
  gap: 6px;
  align-items: center;
}

.split-badge {
  background-color: #23628a;
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 6px;
}

/* Pay-rules engine: rows a rule produced/altered (converted OT, pads,
   rounding) carry a badge + the rule's note so the signer sees exactly
   what was calculated. */
.rule-badge {
  background-color: #6b4e00;
  color: #fff;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 6px;
}

.preview-banner {
  background-color: #fff7e6;
  border: 2px solid #d6a51f;
  color: #6b4e00;
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.outside-period td {
  color: #6b7a86;
  background-color: #f4f7f9;
}

.review-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin: 10px 0 12px;
}
.review-tools input, .review-tools select { padding: 4px 8px; }

.preview-limitation {
  margin-top: 8px;
  padding: 8px 12px;
  background-color: #fdecec;
  border: 1px solid #e3bcbc;
  color: #8a2323;
  border-radius: 6px;
}

/* Action-button cells: buttons breathe instead of touching. */
.actions-cell {
  display: flex;
  flex-wrap: nowrap;   /* side by side, never stacked — column widens instead */
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.actions-cell form { margin: 0; }

td.nowrap { white-space: nowrap; }

/* Side-by-side add/link panels (People page, 2026-07-19). */
.panel-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 16px 0;
}

.panel {
  flex: 1 1 320px;
  background-color: #f7faf8;
  border: 1px solid #d5e3da;
  border-radius: 12px;
  padding: 16px 20px;
}

.chip-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-list li {
  background: #eef2ef;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.85rem;
}

.panel h2 { margin-top: 0; }

/* One field per line inside panels and edit pages. */
.stacked-fields label { display: block; margin: 10px 0 4px; font-weight: 600; }
.stacked-fields label:has(input[type="checkbox"]) { font-weight: 400; }
.stacked-fields input[type="text"], .stacked-fields select,
.stacked-fields input[type="password"],
.stacked-fields input[type="date"], .stacked-fields input[type="datetime-local"],
.stacked-fields textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

.stacked-fields textarea {
  border: 1px solid #c3d4c9;
  border-radius: 6px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 0.9rem;
}

/* Rank pick lists (Pay Rules): compact multi-column checkbox grid and
   position/at-rank equivalence rows. */
.rank-picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 2px 10px;
  margin: 4px 0 8px;
}
.rank-picks label { font-weight: 400; margin: 0; display: block; }
.equiv-row { display: flex; gap: 8px; margin: 6px 0; }
.equiv-row select { flex: 1 1 0; display: inline-block; width: auto; }

.panel code { word-break: break-all; }
.panel fieldset {
  border: 1px solid #d5e3da;
  border-radius: 8px;
  margin: 12px 0;
  padding: 4px 12px 12px;
}
.panel fieldset legend { font-weight: 600; font-size: 0.85rem; color: #143c2c; }
.stacked-fields input[type="checkbox"] { width: auto; display: inline; }
.stacked-fields button { margin-top: 12px; }

/* Compact capability flags — no more column blowout. */
.flags-cell { white-space: nowrap; }
.flag-chip {
  display: inline-block;
  min-width: 1.4em;
  text-align: center;
  background-color: #1d4d3a;
  color: #ffffff;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-right: 3px;
  cursor: default;
}

/* Card navigation strip: prev period | user switcher | next period. */
.card-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  min-height: 1.8em;
}
.card-nav-side { flex: 1 1 0; }
.card-nav-right { text-align: right; }
.card-nav-switch { display: flex; align-items: center; gap: 6px; margin: 0; }

/* Team View (Jay 2026-07-20, Phase A5): focus-group panels with
   dashed Signers/Crew zones, drag-and-drop chip staging, breadcrumb,
   child-group summary cards, and unassigned pool. 12px panel radius
   matches the .panel/.card convention already used everywhere else. */

.team-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin: 8px 0 16px;
  font-size: 0.9rem;
}
.team-breadcrumb a { color: #1d4d3a; }
.team-breadcrumb .sep { color: #9ab0a3; }

.team-zone {
  border: 0.5px dashed var(--border-strong);
  border-radius: var(--radius-control);
  padding: 12px;
  min-height: 64px;
  background-color: var(--surface-1);
  transition: background-color 0.15s, border-color 0.15s, outline-color 0.15s;
}
.team-zone.drag-over {
  background-color: var(--bg-accent);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
/* Signers zone distinguished by fill (surface-2 vs surface-1), per
   UI_INTERACTION_SPEC.md, rather than a differently-colored border —
   same convention as the wizard's Sign-off Hierarchy step. */
.team-zone-signers { background-color: var(--surface-2); }
.team-zone-signers.drag-over { background-color: var(--warning-bg); outline-color: var(--warning-border); }
.team-zone h4 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4a6478;
}
.team-zone.empty-signers-warning { border-color: var(--danger-border); background-color: var(--danger-bg); }

.team-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  margin: 3px 4px 3px 0;
  border: 0.5px solid var(--border);
  border-radius: var(--radius-control);
  background-color: var(--surface-2);
  font-size: 13px;
  cursor: grab;
  user-select: none;
}
.team-chip:active { cursor: grabbing; }
.team-chip.dragging { opacity: 0.4; }
/* Staged but not yet committed — visible feedback the moment a chip is
   dragged/moved, so staging doesn't feel like it did nothing. */
.team-chip.pending {
  border: 1px dashed #1e6b34;
  background-color: #eaf7ee;
}
.team-chip input[type="checkbox"] { margin: 0; }
.team-chip .signer-mark {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  line-height: 1.1em;
  text-align: center;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

/* Avatar-initials circle + rank text (Jay 2026-07-21, matching the
   approved nested-hierarchy mockup) — every chip everywhere in Team
   View gets one, signer or crew alike. */
.team-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--surface-1);
  color: #143c2c;
  font-size: 10px;
  font-weight: 700;
  flex-shrink: 0;
}
.team-chip-rank {
  font-size: 11.5px;
  color: #6b8078;
}

/* Nested group containment (Jay 2026-07-21) — a parent group's card
   visibly CONTAINS its children's cards, all the way down, matching
   the approved mockup's Office-of-the-Chief > Battalion > Shift
   structure rather than a one-level "drill in" summary-card grid. */
.team-nested-group {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-panel);
  background-color: var(--surface-2);
  padding: 12px 16px 16px;
  margin: 12px 0;
}
.team-nested-group.zero-signer { border-color: var(--danger-border); }
.team-nested-header { margin-bottom: 8px; }
.team-nested-header a { text-decoration: none; color: #143c2c; }
.team-nested-header .hint { margin: 2px 0 0; }
.team-nested-children {
  margin: 12px 0 0 20px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.team-nested-children .team-nested-group { margin: 0; }

.team-groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 12px 0;
}
.team-group-card {
  border: 0.5px solid var(--border);
  border-radius: var(--radius-panel);
  padding: 12px 14px;
  background-color: var(--surface-2);
  transition: background-color 0.15s, border-color 0.15s;
}
.team-group-card.drag-over { background-color: var(--bg-accent); border-color: var(--accent); }
.team-group-card.zero-signer { border-color: var(--danger-border); }
.team-group-card a { font-weight: 600; text-decoration: none; color: #143c2c; }
.team-group-card .hint { margin: 4px 0 0; }

.staged-counter {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 16px;
  background-color: #1d4d3a;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.staged-counter.zero { background-color: #9ab0a3; }

.team-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 12px 0;
  padding: 10px 14px;
  background-color: #f7faf8;
  border: 1px solid #d5e3da;
  border-radius: 12px;
}
.team-toolbar form { margin: 0; display: inline-flex; align-items: center; gap: 6px; }

.review-warning {
  background-color: #fff7e6;
  border: 1px solid #d6a51f;
  color: #6b4e00;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 0;
}
.review-hardblock {
  background-color: #fdecec;
  border: 2px solid #8a2323;
  color: #6b1a1a;
  border-radius: 8px;
  padding: 10px 14px;
  margin: 10px 0;
  font-weight: 600;
}

/* --- Shared drag-and-drop assignment surface (UI_INTERACTION_SPEC.md,
   2026-07-21) — built for wizard Step 7, written generically so any
   future drag surface (Team View included) reads from the same
   classes/tokens instead of a parallel set. Server always renders the
   no-JS baseline (table/dropdown/Assign); static/js/drag_assign.js
   hides it and builds everything below from a data blob, so nothing
   here is ever the ONLY way to perform an assignment. */

.dnd-root { display: none; }
.dnd-root.dnd-active { display: block; }

.dnd-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.dnd-panel {
  border-radius: var(--radius-panel);
  border: 0.5px solid var(--border);
  background-color: var(--surface-2);
  padding: 10px;
}

.dnd-panel-name {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 0.95rem;
  font-weight: 600;
  color: #143c2c;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  padding: 3px 5px;
  margin-bottom: 8px;
}
.dnd-panel-name:hover, .dnd-panel-name:focus {
  border-color: var(--border-strong);
  background-color: #ffffff;
  outline: none;
}

.dnd-label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4a6478;
  margin: 8px 0 4px;
}
.dnd-label .dnd-icon { font-size: 12px; }

.dnd-zone {
  border: 0.5px dashed var(--border-strong);
  border-radius: var(--radius-control);
  background-color: var(--surface-1);
  padding: 6px 8px;
  min-height: 42px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 6px;
  transition: background-color 0.15s, border-color 0.15s, outline-color 0.15s;
}
.dnd-zone-supervisors { background-color: var(--surface-2); }
.dnd-zone.dnd-drag-over {
  background-color: var(--bg-accent);
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.dnd-zone-empty-hint {
  font-size: 0.8rem;
  color: #8a9990;
  align-self: center;
}

.dnd-pool {
  margin: 16px 0;
}
.dnd-pool-heading {
  font-size: 0.85rem;
  font-weight: 600;
  color: #143c2c;
  margin: 0 0 6px;
}

.dnd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-control);
  border: 0.5px solid var(--border);
  background-color: var(--surface-2);
  padding: 3px 9px;
  font-size: 13px;
  cursor: grab;
  user-select: none;
}
.dnd-chip:active { cursor: grabbing; }
.dnd-chip.dnd-dragging { opacity: 0.4; }
.dnd-chip-rank { font-size: 11.5px; color: #6b8078; }
.dnd-chip-signer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background-color: var(--accent);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
}
.dnd-chip-remove {
  border: none;
  background: transparent;
  color: #8a9990;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0 2px;
  cursor: pointer;
}
.dnd-chip-remove:hover { color: var(--danger-text); }

.dnd-panel-remove {
  display: block;
  margin-top: 8px;
  font-size: 0.78rem;
  padding: 3px 8px;
}
.dnd-panel-remove:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.dnd-warning-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-control);
  background-color: var(--warning-bg);
  border: 0.5px solid var(--warning-border);
  color: var(--warning-text);
  padding: 4px 8px;
  font-size: 0.8rem;
  width: 100%;
}

/* Save/update toast notifications (Jay 2026-07-21) — see
   static/js/notify.js. Stacks bottom-right, each toast fades in/out
   independently so a burst of quick saves never clobbers the previous
   one's visibility. */
#toast-stack {
  position: fixed;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  pointer-events: none;
}

.toast {
  background-color: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-control);
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(20, 80, 50, 0.25);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
  max-width: 320px;
}

.toast-visible {
  opacity: 1;
  transform: translateY(0);
}
