.orion-departments {
  --odc-bg: #07131e;
  --odc-panel: #112636;
  --odc-panel-dark: #0d202e;
  --odc-border: #35617d;
  --odc-border-soft: #25445a;
  --odc-text: #edf3f7;
  --odc-muted: #a9bdcb;
  --odc-gold: #d4b15c;
  position: relative;
  left: 50%;
  width: 100vw;
  margin-left: -50vw;
  overflow: hidden;
  color: var(--odc-text);
  background: radial-gradient(circle at 50% 0, #153550 0, #0b1d2c 30%, var(--odc-bg) 72%, #050c12 100%);
}
.orion-departments *, .orion-departments *::before, .orion-departments *::after { box-sizing: border-box; }
.odc-canvas { width: min(1440px, 100%); margin: 0 auto; padding: 44px 42px 74px; }
.odc-status, .odc-empty { padding: 50px 20px; color: var(--odc-muted); text-align: center; }
.odc-status.is-error { color: #e9aaaa; }

.odc-page-header { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-bottom: 24px; padding: 16px 18px; border: 1px solid var(--odc-border); border-top: 3px solid var(--odc-gold); border-radius: 3px; background: linear-gradient(90deg, #3b3525, #173448 45%, #112a3b); }
.odc-kicker { display: block; color: #e3c978; font: 700 10px/1.2 Arial, sans-serif; letter-spacing: .08em; }
.odc-page-header h1 { margin: 4px 0 5px; color: #fff; font: 700 28px/1.05 Arial, sans-serif; }
.odc-page-header p { margin: 0; color: var(--odc-muted); font: 12px/1.45 Arial, sans-serif; }
.odc-summary { display: grid; grid-template-columns: auto auto; gap: 3px 12px; flex: 0 0 auto; padding: 8px 12px; border: 1px solid #4d7893; background: rgba(5, 18, 28, .28); }
.odc-summary strong { color: #fff; font: 700 13px Arial, sans-serif; text-align: right; }
.odc-summary span { color: var(--odc-muted); font: 10px Arial, sans-serif; text-transform: uppercase; }

.odc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 22px 30px; }
.odc-department { --department-accent: #4f7895; min-width: 0; overflow: hidden; border: 1px solid var(--odc-border); border-top: 4px solid var(--department-accent); border-radius: 3px; background: #0c1c28; box-shadow: 0 14px 30px rgba(0, 0, 0, .24); }
.odc-department:last-child:nth-child(odd) { grid-column: 1 / -1; width: calc(50% - 15px); justify-self: center; }
.odc-department__header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 86px; padding: 13px 16px; border-bottom: 1px solid var(--odc-border); background: linear-gradient(90deg, #1b3a4d, #173448 72%); }
.odc-department__identity { min-width: 0; }
.odc-department__identity .odc-kicker { color: var(--department-accent); }
.odc-department__identity h2 { margin: 3px 0 0; color: #fff; font: 700 24px/1.1 Arial, sans-serif; }
.odc-department__identity p { max-width: 540px; margin: 6px 0 0; color: #b5c9d5; font: 11px/1.35 Arial, sans-serif; }
.odc-strength { flex: 0 0 auto; padding: 5px 7px; color: #d0e2ed; border: 1px solid #4d7893; border-radius: 2px; background: rgba(5, 18, 28, .28); font: 600 9px/1 Arial, sans-serif; }
.odc-department__rows { background: var(--odc-panel-dark); }
.odc-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; padding: 8px 13px; border-bottom: 1px solid rgba(70, 95, 114, .35); font: 12px/1.3 Arial, sans-serif; }
.odc-row:last-child { border-bottom: 0; }
.odc-position-name { min-width: 150px; color: var(--odc-muted); }
.odc-row-members { display: flex; min-width: 0; align-items: flex-end; flex-direction: column; gap: 3px; text-align: right; }
.odc-row-members strong { overflow: hidden; max-width: 310px; color: var(--odc-text); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.odc-vacant { color: #7793a5; font-size: 10px; font-style: italic; }
.odc-unassigned { color: #7793a5; font-size: 9px; }

@media (max-width: 900px) {
  .odc-canvas { padding: 36px 20px 58px; }
  .odc-grid { gap: 18px; }
}
@media (max-width: 700px) {
  .orion-departments { left: 0; width: 100%; margin-left: 0; }
  .odc-canvas { padding: 24px 10px 42px; }
  .odc-page-header { align-items: flex-start; flex-direction: column; gap: 14px; }
  .odc-page-header h1 { font-size: 25px; }
  .odc-grid { grid-template-columns: 1fr; }
  .odc-department:last-child:nth-child(odd) { grid-column: auto; width: 100%; }
  .odc-department__header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .odc-row { align-items: flex-start; flex-direction: column; gap: 4px; }
  .odc-row-members { align-items: flex-start; text-align: left; }
}
