/* ==========================================================================
   ARMY SCREEN — 3 COMPETING DESIGN ARCHITECTURES
   Design 1: Tactical War Council (Command Post Ledger & Folio)
   Design 2: Sovereign Muster Field (Card Roster with Visual Staging Banner)
   Design 3: Expedition Logistics Board (Three-Column Mission Pipeline)
   ========================================================================== */

/* Army Window Container */
.army-window {
  width: 1340px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--parchment-base);
  color: var(--parchment-text);
  border: 2px solid #845e2a;
}

.army-window-body {
  padding: 14px 18px 18px 18px;
  background: #dfcbab url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" opacity="0.03"><rect width="80" height="80" fill="%23000"/></svg>');
}

/* Master Design Switcher Banner in Header Controls */
.army-design-switch-bar {
  display: inline-flex;
  align-items: center;
  background: rgba(22, 13, 6, 0.85);
  border: 1.5px solid #a37c3e;
  border-radius: 4px;
  padding: 2px 4px;
  gap: 4px;
  margin-right: 8px;
}

.army-d-btn {
  background: transparent;
  border: 1px solid transparent;
  color: #dfcaa0;
  font-family: var(--font-primary);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.army-d-btn:hover {
  color: #fff3c4;
  background: rgba(255, 223, 133, 0.15);
}

.army-d-btn.active {
  background: linear-gradient(180deg, #785024 0%, #462c10 100%);
  color: #ffeb99;
  border-color: #d4a34b;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Common UI Elements across all Army Designs */
.army-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 800;
}

.army-badge-pill.gold {
  background: #faeed1;
  border: 1px solid #c79e49;
  color: #633e0d;
}

.army-badge-pill.green {
  background: #e2f4e3;
  border: 1px solid #5ca863;
  color: #17521e;
}

.army-badge-pill.amber {
  background: #feeedb;
  border: 1px solid #d47e2c;
  color: #7a3e07;
}

.army-badge-pill.crimson {
  background: #fde8e5;
  border: 1px solid #c24638;
  color: #8c1a0e;
}

/* Stepper Input Component for Army Units */
.army-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid #a37c3e;
  border-radius: 3px;
  background: #fdf8ef;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.army-step-btn {
  background: #f0debe;
  border: none;
  width: 24px;
  height: 26px;
  color: #38200d;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  user-select: none;
}

.army-step-btn:hover {
  background: #e4caa0;
}

.army-step-input {
  width: 38px;
  height: 26px;
  border: none;
  background: transparent;
  text-align: center;
  font-family: var(--font-primary);
  font-size: 12.5px;
  font-weight: 800;
  color: #221308;
  outline: none;
}

.army-max-btn {
  background: #68451c;
  border: none;
  border-left: 1px solid #a37c3e;
  color: #ffe6aa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  padding: 0 6px;
  height: 26px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.army-max-btn:hover {
  background: #8b5b24;
  color: #fff;
}

/* Mission Selector Radio Cards */
.mission-choice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.mission-choice-card {
  border: 1.5px solid #bba27a;
  border-radius: 4px;
  background: #fbf6ec;
  padding: 10px 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mission-choice-card:hover {
  border-color: #8f6428;
  background: #fffbf2;
  box-shadow: 0 2px 6px rgba(90, 60, 20, 0.12);
}

.mission-choice-card.selected {
  border-color: #b3382c;
  background: #fdf2f0;
  box-shadow: 0 0 0 1px #b3382c, 0 3px 8px rgba(179, 56, 44, 0.15);
}

.mission-choice-card.selected.transport {
  border-color: #2b70b5;
  background: #edf5fe;
  box-shadow: 0 0 0 1px #2b70b5, 0 3px 8px rgba(43, 112, 181, 0.15);
}

.mission-choice-card.selected.station {
  border-color: #3f8f48;
  background: #f0faf1;
  box-shadow: 0 0 0 1px #3f8f48, 0 3px 8px rgba(63, 143, 72, 0.15);
}

.mission-choice-card.selected.settle {
  border-color: #2e7d32;
  background: #f1f8e9;
  box-shadow: 0 0 0 1px #2e7d32, 0 3px 8px rgba(46, 125, 50, 0.15);
}

.mission-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mission-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 800;
  color: #2a1608;
}

.mission-radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #845e2a;
  background-color: #ffffff;
  box-sizing: border-box;
  flex-shrink: 0;
  display: block;
}

.mission-choice-card.selected .mission-radio-dot {
  border-color: #a3382c;
  background: radial-gradient(circle at 50% 50%, #a3382c 0%, #a3382c 3px, #ffffff 3.5px);
}

.mission-choice-card.selected.transport .mission-radio-dot {
  border-color: #2b70b5;
  background: radial-gradient(circle at 50% 50%, #2b70b5 0%, #2b70b5 3px, #ffffff 3.5px);
}

.mission-choice-card.selected.station .mission-radio-dot {
  border-color: #3f8f48;
  background: radial-gradient(circle at 50% 50%, #3f8f48 0%, #3f8f48 3px, #ffffff 3.5px);
}

.mission-choice-card.selected.settle .mission-radio-dot {
  border-color: #2e7d32;
  background: radial-gradient(circle at 50% 50%, #2e7d32 0%, #2e7d32 3px, #ffffff 3.5px);
}

.mission-choice-card .mission-radio-dot::after {
  content: none !important;
  display: none !important;
}

.mission-desc {
  font-size: 12.5px;
  color: #614629;
  line-height: 1.35;
}

/* Destination Targeter Component */
.dest-targeter-box {
  background: #fbf6ec;
  border: 1.5px solid #bba27a;
  border-radius: 4px;
  padding: 12px 14px;
}

.dest-row-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.dest-select-group {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dest-lbl {
  font-size: 12px;
  font-weight: 800;
  color: #5a3e1a;
  letter-spacing: 0.5px;
}

.dest-dropdown {
  height: 32px;
  border: 1.5px solid #a37c3e;
  border-radius: 3px;
  background: #fffaf0;
  padding: 0 10px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  color: #221308;
  outline: none;
  cursor: pointer;
}

.dest-coords-group {
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.coord-num-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.coord-num-input {
  width: 64px;
  height: 32px;
  border: 1.5px solid #a37c3e;
  border-radius: 3px;
  background: #fffaf0;
  text-align: center;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 800;
  color: #221308;
  outline: none;
}

.coord-num-input:focus,
.dest-dropdown:focus {
  border-color: #6a3e12;
  box-shadow: 0 0 0 2px rgba(163, 124, 62, 0.25);
}

.btn-dest-resolve {
  height: 32px;
  background: linear-gradient(180deg, #6c471c 0%, #462c10 100%);
  border: 1px solid #9e7536;
  border-radius: 3px;
  color: #fff2cf;
  font-size: 13px;
  font-weight: 800;
  padding: 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.btn-dest-resolve:hover {
  background: linear-gradient(180deg, #845722 0%, #573614 100%);
  color: #fff;
}

/* Dispatch CTA Master Button */
.btn-dispatch-army {
  background: linear-gradient(180deg, #5a1e16 0%, #2e0d08 100%);
  border: 1.5px solid #a3382c;
  color: #ffe6e2;
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 10px 24px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.btn-dispatch-army:hover {
  background: linear-gradient(180deg, #74271c 0%, #3e120b 100%);
  border-color: #ff5e4d;
  color: #fff;
  box-shadow: 0 5px 14px rgba(116, 39, 28, 0.45);
  transform: translateY(-1px);
}

.btn-dispatch-army.transport-btn {
  background: linear-gradient(180deg, #1d4872 0%, #0d253d 100%);
  border-color: #3b7dc2;
  color: #e3f1ff;
}

.btn-dispatch-army.transport-btn:hover {
  background: linear-gradient(180deg, #255d94 0%, #133454 100%);
  border-color: #64a6f2;
}

.btn-dispatch-army.station-btn {
  background: linear-gradient(180deg, #2b6131 0%, #15381a 100%);
  border-color: #4da656;
  color: #e5fbe7;
}

.btn-dispatch-army.station-btn:hover {
  background: linear-gradient(180deg, #377d3f 0%, #1c4a22 100%);
  border-color: #6ed179;
}

/* ==========================================================================
   DESIGN 1: TACTICAL WAR COUNCIL (FOLIO LEDGER WITH SIDEBAR TELEMETRY)
   ========================================================================== */
.army-d1-container {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 16px;
  align-items: flex-start;
}

.d1-main-folio {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.d1-section-panel {
  background: #fbf6ec;
  border: 1.5px solid #c7b08b;
  border-radius: 4px;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.d1-sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid #d9c5a3;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

.d1-sec-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  color: #38200d;
  letter-spacing: 0.8px;
}

.d1-sec-subtitle {
  font-size: 12.5px;
  font-weight: 700;
  color: #684a26;
}

/* Unit Selection Grid / Table in Design 1 */
.d1-roster-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}

.d1-roster-row {
  background: #f6ecdb;
  border: 1px solid #cbb692;
  border-radius: 3px;
  transition: all 0.15s ease;
}

.d1-roster-row:hover {
  background: #fdf3e5;
  border-color: #9f753c;
}

.d1-roster-row td {
  padding: 8px 10px;
  vertical-align: middle;
}

.d1-unit-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.d1-unit-avatar {
  width: 38px;
  height: 38px;
  border-radius: 3px;
  border: 1.5px solid #a37c3e;
  object-fit: cover;
  background: #1e1005;
  flex-shrink: 0;
}

.d1-unit-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.d1-unit-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #221308;
}

.d1-unit-meta {
  font-size: 12px;
  color: #6b4e2c;
  display: flex;
  gap: 8px;
}

.d1-unit-avail {
  font-size: 12.5px;
  font-weight: 800;
  color: #3f6828;
}

/* Worker Drafting Strip in Design 1 */
.d1-worker-draft-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f3e7ce;
  border: 1.5px dashed #a5814a;
  border-radius: 4px;
  padding: 10px 14px;
}

.d1-wd-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.d1-wd-icon {
  font-size: 26px;
}

.d1-wd-text h4 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  color: #38200d;
}

.d1-wd-text p {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: #6e4e2a;
}

/* Design 1 Sidebar Telemetry Ledger */
.d1-sidebar-telemetry {
  background: #fbf6ec;
  border: 1.5px solid #c7b08b;
  border-radius: 4px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 14px;
}

.d1-side-header {
  border-bottom: 2px solid #a37c3e;
  padding-bottom: 8px;
}

.d1-side-header h3 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 900;
  color: #38200d;
  letter-spacing: 0.8px;
}

.d1-manifest-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 4px;
}

.d1-manifest-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding: 4px 6px;
  border-bottom: 1px dotted #cbb692;
  color: #2c1a0c;
}

.d1-manifest-item strong {
  color: #7c4712;
}

.d1-telemetry-metrics {
  background: #eee1c4;
  border: 1.5px solid #c0a87f;
  border-radius: 3px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.d1-metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.d1-m-lbl {
  font-size: 11.5px;
  font-weight: 800;
  color: #6b4d2b;
  letter-spacing: 0.5px;
}

.d1-m-val {
  font-size: 13px;
  font-weight: 900;
  color: #221308;
}

/* ==========================================================================
   DESIGN 2: SOVEREIGN MUSTER FIELD (PORTRAIT CARDS & EXPEDITION BANNER)
   ========================================================================== */
.army-d2-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.d2-muster-banner-header {
  background: #fbf6ec;
  border: 1.5px solid #c7b08b;
  border-radius: 4px;
  padding: 12px 18px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  align-items: center;
}

.d2-unit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.d2-unit-card {
  background: #fbf6ec;
  border: 1.5px solid #c5ad87;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.d2-unit-card:hover {
  border-color: #8f6428;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.12);
}

.d2-unit-card.active-selected {
  border-color: #8c5b23;
  background: #fffdf7;
  box-shadow: 0 0 0 1px #a37c3e, 0 4px 10px rgba(163, 124, 62, 0.25);
}

.d2-card-img-wrap {
  width: 100%;
  height: 110px;
  overflow: hidden;
  position: relative;
  background: #1e1106;
}

.d2-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.d2-card-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(22, 13, 6, 0.85);
  border: 1px solid #d4a34b;
  color: #ffdf85;
  font-size: 11.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 2px;
}

.d2-card-avail {
  position: absolute;
  bottom: 6px;
  right: 6px;
  background: rgba(30, 70, 25, 0.9);
  border: 1px solid #78c445;
  color: #e5fbe7;
  font-size: 12px;
  font-weight: 800;
  padding: 1px 7px;
  border-radius: 2px;
}

.d2-card-body {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.d2-card-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.d2-card-name {
  font-size: 13px;
  font-weight: 900;
  color: #2a1608;
}

.d2-card-stats {
  font-size: 12px;
  color: #6c4f2e;
  display: flex;
  gap: 10px;
}

.d2-card-ctrl {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 4px;
  border-top: 1px solid #e7d8be;
}

/* Worker Special Card in Design 2 Grid */
.d2-worker-card {
  background: #f7eedc;
  border: 1.5px dashed #a5814a;
}

.d2-worker-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #c5a777 0%, #9b7744 100%);
  color: #2a1608;
  font-size: 42px;
}

/* Design 2 Staging Dock (Bottom Banner) */
.d2-staging-dock {
  background: #fbf6ec;
  border: 2px solid #a37c3e;
  border-radius: 4px;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
}

.d2-dock-chips-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.d2-dock-chip {
  background: #eee2c8;
  border: 1.5px solid #bda27b;
  border-radius: 3px;
  padding: 4px 10px;
  font-size: 12.5px;
  font-weight: 800;
  color: #2c1a0b;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.d2-dock-chip .chip-qty {
  color: #8c1a0e;
  background: #faeed1;
  border-radius: 2px;
  padding: 1px 5px;
}

/* Top Horizontal Muster Banner */
.army-muster-header-banner {
  position: relative;
  width: 100%;
  height: 160px;
  border-radius: 4px;
  overflow: hidden;
  border: 1.5px solid #a88349;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.22), inset 0 0 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 14px;
  background: #2b1a0d;
}

.army-muster-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: contrast(1.02) saturate(1.05);
}

.army-muster-banner-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(20, 10, 5, 0.1) 0%, rgba(20, 10, 5, 0) 40%, rgba(20, 10, 5, 0.45) 100%),
              radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.35) 100%);
  border: 1px solid rgba(255, 230, 170, 0.2);
}

.army-muster-banner-badge {
  position: absolute;
  bottom: 8px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 18, 9, 0.82);
  backdrop-filter: blur(4px);
  border: 1px solid #c89f5c;
  border-radius: 3px;
  padding: 3px 10px;
  font-family: var(--font-primary, serif);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #faecd0;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.army-d3-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items: stretch;
}

.d3-pipeline-col {
  background: #fbf6ec;
  border: 1.5px solid #c7b08b;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.d3-col-header {
  background: #eee1c4;
  border-bottom: 2px solid #a37c3e;
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.d3-col-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  color: #38200d;
}

.d3-step-num {
  background: #38200d;
  color: #ffe6aa;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.d3-col-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

/* Quick Selection Action Bar */
.d3-quick-select-bar {
  display: flex;
  gap: 6px;
  align-items: center;
  background: #f1e4cb;
  border: 1px solid #c7af85;
  border-radius: 4px;
  padding: 6px 8px;
}

.d3-quick-select-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #3b230d;
  background: linear-gradient(180deg, #fdf7eb 0%, #ecd7b5 100%);
  border: 1px solid #a88349;
  border-radius: 3px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: all 0.15s ease;
  white-space: nowrap;
}

.d3-quick-select-btn:hover {
  background: linear-gradient(180deg, #fffcf5 0%, #f6e3c5 100%);
  border-color: #7b5825;
  color: #1a0e05;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.d3-quick-select-btn:active {
  transform: translateY(0);
  background: #e3cca6;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

.d3-quick-select-btn.clear {
  flex: 0 0 auto;
  padding: 6px 10px;
  color: #8c2a1c;
  background: linear-gradient(180deg, #fff5f2 0%, #ebd3cc 100%);
  border-color: #b78377;
}

.d3-quick-select-btn.clear:hover {
  background: linear-gradient(180deg, #fffafa 0%, #e2bebe 100%);
  color: #a31c0b;
  border-color: #a31c0b;
}

/* Unit Scrollable Stack in Column 1 */
.d3-unit-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 440px;
  overflow-y: auto;
  padding-right: 4px;
}

.d3-unit-row {
  background: #f5ead8;
  border: 1px solid #cbb692;
  border-radius: 3px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s ease, border-color 0.15s ease;
  transform: none !important;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.d3-unit-row:hover {
  background: #fdf2e3;
  border-color: #9f753c;
  transform: none !important;
}

.d3-ur-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.d3-ur-thumb {
  width: 32px;
  height: 32px;
  border-radius: 2px;
  border: 1px solid #845e2a;
  object-fit: cover;
}

.d3-ur-meta strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: #221308 !important;
  text-shadow: none !important;
  transform: none !important;
}

.d3-ur-meta span {
  font-size: 12px;
  color: #6c4e2b;
}

/* Favorite Destinations Quick Buttons in Column 2 */
.fav-dest-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.fav-dest-btn {
  background: #f0e2ca;
  border: 1px solid #bca37a;
  border-radius: 3px;
  padding: 4px 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: #3b220d;
  cursor: pointer;
  transition: all 0.15s;
}

.fav-dest-btn:hover {
  background: #dfcbab;
  border-color: #8c5d23;
  color: #1a0b02;
}

.fav-dest-btn.active {
  background: #5a3818;
  border-color: #ffd86b;
  color: #fff2cf;
}

/* Dispatch Confirmation Summary in Column 3 */
.d3-summary-ledger {
  background: #f3e5c9;
  border: 1.5px solid #bfa478;
  border-radius: 3px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.d3-ledger-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #3a220e;
  border-bottom: 1px dotted #caa97b;
  padding-bottom: 4px;
}

.d3-ledger-row strong {
  color: #1f1004;
  font-weight: 800;
}


/* Shared Top Panoramic Banners in Tavern, Trade, Resources & Workshop */
.tavern-body > .army-muster-header-banner,
.trade-window-body > .army-muster-header-banner,
.res-ledger-container > .army-muster-header-banner {
  margin-bottom: 2px;
}

.smelter-window-body > .army-muster-header-banner {
  margin-bottom: 16px;
}

/* ==========================================================================
   EXPEDITION CARGO & LOGISTICS (DRAWER SYSTEM)
   ========================================================================== */
.cargo-seal-d2 {
  background: #f6ede2;
  border: 1.5px solid #d4be94;
  border-radius: 4px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.cs2-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cs2-ico {
  font-size: 20px;
  line-height: 1;
}

.cs2-meta {
  flex: 1;
}

.cs2-val {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: #256619;
}

.cs2-track {
  height: 8px;
  background: #e2d2ba;
  border: 1px solid #b89f7b;
  border-radius: 3px;
  overflow: hidden;
}

.cs2-fill {
  height: 100%;
  background: linear-gradient(90deg, #1e6b0f, #7cb359);
  transition: width 0.25s ease;
}

.btn-toggle-d2-drawer {
  background: #f5eedc;
  border: 1.5px solid #8c5d26;
  border-radius: 3px;
  color: #3d2109;
  font-size: 12px;
  font-weight: 800;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-toggle-d2-drawer:hover {
  background: #fffdfa;
  border-color: #5c3714;
}

.cargo-drawer-d2 {
  background: #1e1107;
  border: 2px solid #b8863b;
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #dfcfab;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  margin-top: 8px;
}

.cd2-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #573717;
  padding-bottom: 6px;
}

.cd2-tab-btn {
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 800;
  background: #331f10;
  border: 1px solid #573717;
  color: #dfcfab;
  cursor: pointer;
}

.cd2-tab-btn.active {
  background: #c9983e;
  border-color: #ffd875;
  color: #1a0e05;
}

.cd2-sliders-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding-right: 4px;
}

.cd2-slider-row {
  background: #140a04;
  border: 1px solid #482c12;
  border-radius: 3px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cd2-sr-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
}

.cd2-slider {
  width: 100%;
  accent-color: #c9983e;
  cursor: pointer;
}

.d3-cargo-breakdown {
  font-size: 11.5px;
  color: #6e4e2a;
  padding-left: 6px;
  font-style: italic;
  line-height: 1.35;
  border-left: 2px solid #c9a66b;
  margin-top: 2px;
}
