/*
 * Oberflaeche im Stil der Epoche: Pergament, Sepia, gedecktes Messing.
 * Dunkle Rahmen, helle Karte - damit die Karte selbst der helle
 * Blickfang bleibt und die Bedienelemente zuruecktreten.
 */

:root {
  --ink:        #e8dcc4;
  --ink-dim:    #a9977a;
  --ink-bright: #fdf6e4;

  --bg:       #14110d;
  --panel:    #1e1a14;
  --panel-2:  #262019;
  --line:     #3a3027;
  --line-2:   #4d4032;

  --brass:      #c9a44c;
  --brass-dim:  #8f7536;
  --accent:     #a85b3c;
  --good:       #7fa650;
  --bad:        #a85040;

  --sidebar-w: 310px;
  --topbar-h:  52px;
  --status-h:  26px;

  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Georgia", "Times New Roman", serif;
}

* { box-sizing: border-box; }

/* Muss Layout-Regeln mit eigenem `display` überstimmen, sonst bleibt ein
 * Element mit [hidden] sichtbar. */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------------------- Layout */

.app {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  grid-template-rows: var(--topbar-h) 1fr var(--status-h);
  grid-template-areas:
    "topbar topbar"
    "stage  sidebar"
    "status status";
  height: 100%;
}

/* --------------------------------------------------------------- Topbar */

.topbar {
  grid-area: topbar;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 150px;
}

.brand-mark {
  color: var(--brass);
  font-size: 20px;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1.2px;
  color: var(--ink-bright);
}

.turnbox {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 4px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.turn-season { color: var(--ink-dim); }

.turn-year {
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--brass);
}

.turn-no {
  color: var(--ink-dim);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  gap: 9px;
}

/* -------------------------------------------------------------- Buttons */

.btn {
  font: inherit;
  padding: 7px 15px;
  color: var(--ink-bright);
  background: linear-gradient(180deg, #403424, #2e261a);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .14s, filter .14s;
}

.btn:hover:not(:disabled) {
  border-color: var(--brass-dim);
  filter: brightness(1.15);
}

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

.btn-ghost {
  background: transparent;
  color: var(--ink-dim);
}

.btn-ghost:hover {
  color: var(--ink-bright);
}

/* ---------------------------------------------------------------- Stage */

.stage {
  grid-area: stage;
  position: relative;
  overflow: hidden;
  background: #6d8597;
}

#map {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;   /* Zoom und Pan werden selbst behandelt */
}

.legend {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 9px 12px;
  background: rgba(20, 17, 13, .82);
  border: 1px solid var(--line);
  border-radius: 5px;
  backdrop-filter: blur(3px);
  pointer-events: none;
}

.legend { pointer-events: auto; }

.legend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 6px;
}

.legend-title {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-dim);
}

.legend-toggle {
  font: 10px var(--font);
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 2px 7px;
  color: var(--ink-dim);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
}
.legend-toggle:hover { color: var(--brass); border-color: var(--brass-dim); }

.legend-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 3px 14px;
  font-size: 12px;
}

.legend-list li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-swatch {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  border: 1px solid rgba(0, 0, 0, .35);
}

.hint {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 13px;
  font-size: 12px;
  color: var(--ink-dim);
  background: rgba(20, 17, 13, .78);
  border: 1px solid var(--line);
  border-radius: 20px;
  pointer-events: none;
  transition: opacity .5s;
}

.hint.faded { opacity: 0; }

/* -------------------------------------------------------------- Sidebar */

.sidebar {
  grid-area: sidebar;
  background: var(--panel);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  padding: 14px;
}

.panel h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-bright);
  letter-spacing: .3px;
}

.panel-empty h2 {
  font-size: 15px;
  color: var(--ink-dim);
  font-family: var(--font);
}

.panel-empty p {
  color: var(--ink-dim);
  font-size: 13px;
  margin: 8px 0 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  margin-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.chip {
  flex: none;
  font-size: 11px;
  padding: 3px 9px;
  color: var(--brass);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 11px;
}

.stats {
  margin: 0 0 18px;
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.stats > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 7px 11px;
  background: var(--panel-2);
}

.stats dt {
  color: var(--ink-dim);
  font-size: 12px;
}

.stats dd {
  margin: 0;
  color: var(--ink-bright);
  font-variant-numeric: tabular-nums;
}

.subhead {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-dim);
  margin-bottom: 8px;
}

.neighbours {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.neighbours li {
  font-size: 12px;
  padding: 4px 9px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color .12s, color .12s;
}

.neighbours li:hover {
  border-color: var(--brass-dim);
  color: var(--ink-bright);
}

.neighbours li.strait::after {
  content: " ⚓";
  color: var(--brass-dim);
}

/* ------------------------------------------------------------ Statusbar */

.statusbar {
  grid-area: status;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  font-size: 11.5px;
  color: var(--ink-dim);
  background: var(--panel-2);
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}

/* ----------------------------------------------------------- Ladeschirm */

.boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: var(--bg);
  z-index: 50;
  transition: opacity .35s;
}

.boot.done {
  opacity: 0;
  pointer-events: none;
}

.boot-inner { text-align: center; }

.boot-mark {
  font-size: 44px;
  color: var(--brass);
  margin-bottom: 14px;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: .45; }
  50%      { opacity: 1; }
}

.boot-text { color: var(--ink-dim); }

.boot-error {
  margin-top: 16px;
  max-width: 540px;
  padding: 12px 16px;
  text-align: left;
  color: #e7bfb4;
  background: rgba(168, 80, 64, .14);
  border: 1px solid var(--bad);
  border-left-width: 3px;
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
}

.boot-error code {
  display: block;
  margin-top: 8px;
  padding: 7px 9px;
  background: #000;
  border-radius: 3px;
  color: var(--ink-dim);
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ----------------------------------------------------- Nation, Armeen */

.nationbox {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.nationbox select {
  font: inherit;
  background: transparent;
  color: var(--ink-bright);
  border: none;
  cursor: pointer;
  max-width: 190px;
}
.nationbox select option { background: var(--panel-2); color: var(--ink); }

.purse {
  color: var(--ink-dim);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.swatch {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.4);
  flex: none;
  vertical-align: -1px;
  margin-right: 6px;
}

.owner-line {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  color: var(--ink-bright);
}

.dim { color: var(--ink-dim); }

.officer-card {
  padding: 7px 10px;
  margin-bottom: 13px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--brass);
  border-radius: 3px;
}
.officer-card.sub { border-left-color: var(--line-2); }
.officer-rank { color: var(--ink-dim); font-size: 11px; }
.officer-name { color: var(--ink-bright); font-size: 13px; }
.officer-trait { color: var(--brass); font-size: 11px; font-style: italic; }
.officer-abilities {
  display: flex; flex-wrap: wrap; gap: 9px;
  margin-top: 4px; font-size: 11px; color: var(--ink-dim);
  font-variant-numeric: tabular-nums;
}
.officer-abilities b { color: var(--ink); font-weight: 600; }

.actions-row { display: flex; gap: 5px; margin-bottom: 12px; }

.btn-small { padding: 5px 10px; font-size: 12px; flex: 1; }

.hint-inline {
  font-size: 11.5px;
  color: var(--ink-dim);
  padding: 6px 9px;
  background: var(--panel-2);
  border-radius: 3px;
  margin-bottom: 12px;
}

.unitlist { list-style: none; margin: 0; padding: 0; }
.unitlist li {
  display: flex; align-items: center; gap: 7px;
  padding: 4px 6px; border-radius: 3px; font-size: 12px;
}
.unitlist li:nth-child(odd) { background: var(--panel-2); }
.u-cat { width: 14px; text-align: center; color: var(--ink-dim); flex: none; }
.u-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u-str { color: var(--ink-dim); font-variant-numeric: tabular-nums; flex: none; }

/* -------------------------------------------------------------- Dialog */

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 9, 6, .78);
  backdrop-filter: blur(3px);
  z-index: 40;
  padding: 20px;
}

/* Die Grundbreite traegt Formulare und kurze Listen. Breite Tabellen
   bekommen ueber eine Zusatzklasse mehr Platz - gequetschte Felder in
   einem Fenster, neben dem die halbe Karte frei bleibt, waren der
   haeufigste Grund, warum etwas schwer zu lesen war. */
.modal-card {
  width: min(1020px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  overflow: hidden;
}

.modal-card.is-wide { width: min(1340px, 100%); }
/* Fuer die Offiziersliste: dreizehn Spalten brauchen die volle Breite. */
.modal-card.is-full { width: 100%; max-height: 94vh; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink-bright);
}

.modal-close {
  font: 22px/1 var(--font);
  background: none;
  border: none;
  color: var(--ink-dim);
  cursor: pointer;
  padding: 0 6px;
}
.modal-close:hover { color: var(--ink-bright); }

.modal-body { padding: 20px 24px 24px; overflow-y: auto; }
.modal-body p { margin: 0 0 13px; }

.modal-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 18px;
}

.recruit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}
.recruit-table th, .recruit-table td {
  padding: 6px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.recruit-table th {
  color: var(--ink-dim); font-weight: 600; font-size: 11px;
  text-transform: uppercase; letter-spacing: .5px;
}
.recruit-table td.num, .recruit-table th.num { text-align: right; }
.recruit-table .num { font-variant-numeric: tabular-nums; }

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}
.staff-grid .officer-card { margin-bottom: 0; }

/* Reiter im Offiziersdialog */

.tabs {
  display: flex;
  gap: 2px;
  margin: 16px 0 12px;
  border-bottom: 1px solid var(--line);
}

.tab {
  font: inherit;
  font-size: 12px;
  padding: 7px 14px;
  background: none;
  color: var(--ink-dim);
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  margin-bottom: -1px;
}
.tab:hover { color: var(--ink-bright); }
.tab.active { color: var(--brass); border-bottom-color: var(--brass); }

/* Meldung im Dialog, wenn er nach einer Anordnung offen bleibt */
.dialog-note {
  padding: 8px 12px;
  margin-bottom: 14px;
  font-size: 12.5px;
  color: var(--ink-bright);
  background: rgba(201, 164, 76, .12);
  border: 1px solid var(--brass-dim);
  border-left-width: 3px;
  border-radius: 3px;
  animation: noteIn .25s ease-out;
}

@keyframes noteIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* Fehler im Dialog, nicht dahinter auf der Karte. */
.dialog-note.error {
  color: #f0c4bb;
  background: rgba(168, 80, 64, .16);
  border-color: var(--bad);
}

/* Armee ohne Befehlshaber */
.officer-card.vacant {
  border-left-color: var(--bad);
  background: rgba(168, 80, 64, .1);
}
.officer-card.vacant .officer-rank { color: #e7bfb4; }

/* Nationaler Offizierspool */
.pool-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 11px;
  margin-bottom: 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 3px;
}
.pool-head b { color: var(--ink-bright); }
.pool-head .dim { font-size: 11.5px; margin-top: 2px; }
.pool-head .btn-small { flex: none; }

.pool-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 12px;
}
.pool-controls label { color: var(--ink-dim); }
.pool-controls select {
  font: inherit;
  margin-left: 6px;
  padding: 4px 8px;
  color: var(--ink-bright);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 3px;
}
.pool-controls select option { background: var(--panel-2); }

.tabcount {
  display: inline-block;
  min-width: 16px;
  padding: 0 4px;
  margin-left: 4px;
  font-size: 10px;
  color: #2a2008;
  background: var(--brass);
  border-radius: 8px;
}

/* Versetzung */

.assign-row.picked { background: #322a1c; }
.assign-row.picked td { color: var(--ink-bright); }

/* Unbesetzte Führung */
.assign-row.vacant-row { background: rgba(168, 80, 64, .1); }
.vacant-note { color: #e7bfb4; font-style: italic; font-size: 11.5px; }

/* Rangleiter */

.ranknum {
  display: inline-block;
  min-width: 17px;
  text-align: center;
  font-size: 10px;
  padding: 1px 0;
  margin-right: 5px;
  color: var(--brass);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
}

.recruit-table.ladder tbody tr:first-child .ranknum {
  color: #2a2008;
  background: var(--brass);
  border-color: var(--brass);
}

.rank-controls { display: inline-flex; gap: 2px; }

.rankbtn {
  font: 11px var(--font);
  width: 22px;
  padding: 3px 0;
  color: var(--ink-dim);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  cursor: pointer;
}
.rankbtn:hover:not(:disabled) { color: var(--brass); border-color: var(--brass-dim); }
.rankbtn:disabled { opacity: .3; cursor: not-allowed; }

/* Umgliederung */

.transfer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}
.transfer-head label { color: var(--ink-dim); font-size: 12px; }
.transfer-head select,
.transfer-head input {
  font: inherit;
  margin-left: 7px;
  padding: 4px 8px;
  color: var(--ink-bright);
  background: var(--panel-2);
  border: 1px solid var(--line-2);
  border-radius: 3px;
}
.transfer-head select option { background: var(--panel-2); }

.recruit-table tr.picked { background: #322a1c; }
.recruit-table input[type="checkbox"] { accent-color: var(--brass); cursor: pointer; }

/* Chronik */

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

.chron-entry {
  padding: 10px 12px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-left: 2px solid var(--brass-dim);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color .12s;
}
.chron-entry:hover { border-left-color: var(--brass); }

.chron-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
}
.chron-place {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink-bright);
}
.chron-turn { font-size: 11px; color: var(--ink-dim); }

.chron-parties {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.chron-party { display: flex; align-items: center; gap: 5px; color: var(--ink-dim); }
.chron-party b { color: var(--bad); font-variant-numeric: tabular-nums; }
.chron-party small { color: var(--ink-dim); }
.chron-party.won { color: var(--ink-bright); }
.chron-vs { color: var(--ink-dim); font-size: 11px; }

.chron-outcome { font-size: 12px; color: var(--ink-dim); }
.chron-outcome b { color: var(--brass); }

.chron-fallen {
  margin-top: 5px;
  font-size: 11.5px;
  color: #e7bfb4;
  font-style: italic;
}

/* Diplomatie */

.stance {
  font-size: 11px;
  padding: 2px 9px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
}
.stance-peace    { color: var(--ink-dim); }
.stance-war      { color: #e8b0a4; background: rgba(168, 80, 64, .2); border-color: var(--bad); }
.stance-alliance { color: #bcd9a0; background: rgba(127, 166, 80, .16); border-color: var(--good); }

.stance-actions { display: flex; gap: 4px; justify-content: flex-end; }
.stance-actions .btn-small { flex: none; }

.btn-war { border-color: rgba(168, 80, 64, .6); }
.btn-war:hover { border-color: var(--bad); color: #f0c4bb; }

.btn-battles {
  color: #e8b0a4;
  border-color: rgba(168, 80, 64, .55);
}
.btn-battles:hover { border-color: var(--bad); }

/* ------------------------------------------------------------ Schmalbild */

@media (max-width: 860px) {
  .app {
    grid-template-columns: 1fr;
    grid-template-rows: var(--topbar-h) 1fr 190px var(--status-h);
    grid-template-areas:
      "topbar"
      "stage"
      "sidebar"
      "status";
  }
  .sidebar {
    border-left: none;
    border-top: 1px solid var(--line);
  }
  .hint { display: none; }
}

/* ------------------------------------------- Besatzung und Belagerung */

.occupation {
  margin: 8px 0;
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  background: rgba(168, 91, 60, .12);
  font-size: 12px;
  line-height: 1.5;
}
.occupation b { color: var(--ink-bright); }

.siege-bar {
  margin-top: 6px;
  height: 7px;
  background: rgba(0, 0, 0, .35);
  border: 1px solid var(--line-2);
  border-radius: 4px;
  overflow: hidden;
}
.siege-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--brass));
}

.btn-strong { border-color: var(--brass-dim); color: var(--brass); }
.btn-strong:hover { border-color: var(--brass); color: var(--ink-bright); }

/* ------------------------------------------------- Tabellen im Dialog */

.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 14px;
}
.ledger th {
  text-align: left;
  font-weight: 600;
  color: var(--ink-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-2);
  position: sticky;
  top: 0;
  background: var(--panel);
}
.ledger td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.ledger tr:hover td { background: rgba(201, 164, 76, .06); }
.ledger .num { text-align: right; }
.ledger th.num { text-align: right; }
.ledger tr.inactive td { opacity: .58; }
.ledger .historical { color: var(--brass); }

.ledger input,
.ledger select,
.form-field input,
.form-field select,
.picker-row input,
.picker-row select,
.bulk-row input {
  background: var(--bg);
  border: 1px solid var(--line-2);
  color: var(--ink);
  border-radius: 3px;
  padding: 6px 9px;
  font: inherit;
  font-size: 13px;
  width: 100%;
  min-width: 0;
}
.ledger input:focus,
.form-field input:focus,
.form-field select:focus { outline: none; border-color: var(--brass-dim); }

.num-input { text-align: right; width: 7.5em; }
.num-input.tiny { width: 4.2em; padding-left: 4px; padding-right: 4px; }
.wide-input { min-width: 11em; }
.color-input { width: 32px; height: 28px; padding: 1px; flex: none; }
.party-name { display: flex; gap: 6px; align-items: center; }
.search-input { max-width: 20em; }

.btn-tiny {
  font-size: 12px;
  padding: 5px 11px;
  border: 1px solid var(--line-2);
  background: var(--panel-2);
  color: var(--ink);
  border-radius: 3px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-tiny:hover { border-color: var(--brass-dim); color: var(--ink-bright); }
.btn-danger:hover { border-color: var(--bad); color: #f0c4bb; }

.bulk-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--ink-dim);
  flex-wrap: wrap;
}
.bulk-row input { width: 9em; }

.picker-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.picker-row label { font-size: 12px; color: var(--ink-dim); }
.picker-row select { width: auto; min-width: 12em; }

/* -------------------------------------------------- Regierungsfenster */

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 14px 20px;
  margin: 16px 0;
}
.form-field { display: flex; flex-direction: column; gap: 3px; }
.form-field label {
  font-size: 11px;
  color: var(--ink-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.seat-bar {
  display: flex;
  height: 16px;
  margin: 10px 0 6px;
  border: 1px solid var(--line-2);
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg);
}
.seat-bar i { display: block; height: 100%; }
.seat-bar i.free {
  background: repeating-linear-gradient(
    45deg, transparent, transparent 3px,
    rgba(169, 151, 122, .25) 3px, rgba(169, 151, 122, .25) 6px);
}

.ok-note   { color: var(--good);  font-size: 12px; margin: 4px 0; }
.warn-note { color: var(--brass); font-size: 12px; margin: 4px 0; }

.roster { font-size: 12.5px; }
.roster td { padding: 5px 6px; }
.roster th { padding: 8px 6px; }
