:root {
  --blue: #070b16;
  --navy: #0d1426;
  --panel: #111a2e;
  --panel-2: #17223a;
  --brand-blue: #5d7cff;
  --brand-blue-2: #79c8ff;
  --cyan: #9fdcff;
  --chrome: #1a2742;
  --chrome-light: #101827;
  --chrome-dark: #02040a;
  --yellow: #f5d76e;
  --accent-blue: #79c8ff;
  --accent-yellow: #f5d76e;
  --accent-teal: #55d6c2;
  --grid: #f7f9fc;
  --ink: #050505;
  --line: #2d3b5c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  width: 100vw;
  height: 100vh;
  color: var(--ink);
  background: #050810;
  color-scheme: dark;
  font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-window {
  width: 100vw;
  height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 48px 42px minmax(0, 1fr) 24px;
  background: #050810;
}

.login-locked .app-window {
  display: none;
}

.login-screen {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 24px;
  color: #edf4ff;
  background:
    linear-gradient(90deg, rgba(5, 8, 16, .94), rgba(8, 15, 30, .8)),
    linear-gradient(145deg, #050810, #0f1728 58%, #02040a);
  overflow: auto;
}

.login-brand {
  position: absolute;
  top: 24px;
  left: 28px;
  right: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-shell {
  width: min(940px, calc(100vw - 36px));
  display: grid;
  grid-template-columns: minmax(250px, .82fr) minmax(320px, 430px);
  gap: 18px;
  align-items: stretch;
}

.login-command-panel,
.login-card,
.login-footnote {
  background: rgba(12, 18, 34, .92);
  border: 1px solid #3a5080;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.login-command-panel {
  display: grid;
  align-content: end;
  min-height: 430px;
  padding: 28px;
  background:
    linear-gradient(180deg, rgba(23, 34, 58, .78), rgba(9, 14, 26, .96)),
    repeating-linear-gradient(0deg, rgba(159, 220, 255, .08) 0 1px, transparent 1px 34px);
}

.login-command-panel > span,
.login-card > span,
.login-footnote span {
  color: var(--brand-blue-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.login-command-panel h2 {
  margin: 8px 0 24px;
  color: #fff;
  font-size: 42px;
  line-height: 1;
}

.login-command-panel dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.login-command-panel div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(159, 220, 255, .18);
}

.login-command-panel dt,
.login-command-panel dd {
  margin: 0;
}

.login-command-panel dt {
  color: #9fb2d6;
}

.login-command-panel dd {
  color: #f5d76e;
  font-weight: 900;
  text-align: right;
}

.login-card {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.login-card h1 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
}

.login-card label {
  display: grid;
  justify-content: stretch;
  gap: 5px;
}

.login-card label span {
  color: #b9caef;
  font-size: 12px;
}

.login-card input {
  width: 100%;
  height: 40px;
  color: #07101f;
  background: #f7f9fc;
  border: 1px solid #9fb2d6;
  border-radius: 6px;
  padding: 0 12px;
}

.login-card button {
  height: 42px;
  color: #07101f;
  background: linear-gradient(#84d5ff, #5d7cff);
  border: 1px solid #9fdcff;
  border-radius: 8px;
  font-weight: 900;
}

.login-card .login-help {
  display: flex;
  gap: 8px;
}

.login-card .login-help button {
  flex: 1;
  min-width: 0;
  color: #dbe8ff;
  background: #101827;
  border-color: #33486f;
}

.login-card p {
  margin: 0;
  color: #9fb2d6;
  font-size: 12px;
}

.login-card p.login-error {
  color: #ffb8b8;
}

.login-card p.login-success {
  color: #83f1b2;
}

.login-footnote {
  grid-column: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px 14px;
}

.login-footnote strong {
  color: #edf4ff;
}

.login-footnote code {
  color: #f5d76e;
  font-weight: 900;
}

body:not(.login-locked) .login-screen {
  display: none;
}

@media (max-width: 760px) {
  .login-brand {
    position: static;
    margin-bottom: 18px;
  }

  .login-screen {
    display: block;
  }

  .login-shell {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .login-command-panel {
    min-height: 220px;
  }

  .login-command-panel h2 {
    font-size: 32px;
  }

  .login-footnote {
    grid-column: auto;
  }
}

.titlebar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  color: #eef4ff;
  background: linear-gradient(90deg, #060914, #111a2e);
  border-bottom: 1px solid var(--line);
}

.titlebar strong {
  flex: 1;
  color: #9fb2d6;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  text-align: center;
}

.archai-mark {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  position: relative;
  min-width: 146px;
  padding-left: 35px;
  color: #f6f9ff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0;
}

.archai-mark::before,
.archai-mark::after {
  position: absolute;
  top: 3px;
  width: 9px;
  height: 24px;
  content: "";
  background: linear-gradient(#d8e4e9, #6b7880);
  border: 1px solid #315fa9;
  transform-origin: top center;
}

.archai-mark::before {
  left: 8px;
  transform: skewX(-21deg);
}

.archai-mark::after {
  left: 21px;
  transform: skewX(21deg);
}

.archai-mark i {
  position: absolute;
  left: 15px;
  top: 14px;
  width: 10px;
  height: 10px;
  background: linear-gradient(135deg, #8ad7ff, #446bd6);
  border: 1px solid #315fa9;
  transform: rotate(45deg);
}

.archai-mark b,
.archai-mark em {
  position: relative;
  z-index: 1;
}

.archai-mark em {
  color: #4b8fe8;
  font-style: normal;
}

.lawaxis-product {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 232px;
  color: #f8fbff;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1;
}

.lawaxis-product .la-badge {
  width: 42px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #f8fbff;
  background: linear-gradient(135deg, #202a52, #121b38);
  border: 1px solid #2d3b72;
  border-radius: 5px;
  box-shadow: 0 0 18px rgba(93, 124, 255, .28);
  font-size: 20px;
  font-weight: 900;
}

.lawaxis-product b,
.lawaxis-product small {
  display: block;
}

.lawaxis-product b {
  font-size: 22px;
}

.lawaxis-product small {
  color: #9fb2d6;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

#saveState {
  color: #9fb2d6;
  font-size: 12px;
}

.title-action {
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  color: #eaf2ff;
  background: #17223a;
  border: 1px solid #2e4068;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
}

.title-action.icon-action {
  width: 30px;
  padding: 0;
}

.title-action.icon-action svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-bar,
.tool-bar,
.tab-bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  background: var(--chrome-light);
}

.brand-nav {
  grid-column: 1 / -1;
  grid-row: 2;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 5px 14px;
  color: #e9f2ff;
  background: rgba(11, 18, 24, .96);
  border-bottom: 1px solid var(--line);
}

.brand-nav a,
.brand-nav button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  color: #e9f2ff;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  text-decoration: none;
}

.brand-nav a.active,
.brand-nav button.active {
  color: #061018;
  background: var(--brand-blue-2);
  box-shadow: 0 0 0 1px rgba(159, 220, 255, .5);
}

.brand-nav > div {
  position: relative;
}

.brand-nav > div::after {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 8px;
  content: "";
}

.brand-nav a:hover,
.brand-nav button:hover,
.brand-nav > div:focus-within button {
  color: #061018;
  background: var(--brand-blue-2);
}

.brand-nav menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 210px;
  display: none;
  margin: 0;
  padding: 8px;
  background: #101720;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .36);
}

.brand-nav > div:hover menu,
.brand-nav > div:focus-within menu {
  display: grid;
}

.brand-nav menu a {
  justify-content: flex-start;
  width: 100%;
  color: #dbe8ff;
}

.menu-bar {
  gap: 20px;
  padding: 0 4px;
  border-bottom: 1px solid #8d8d8d;
}

.menu-bar button {
  padding: 0;
  background: transparent;
  border: 0;
  font-size: 14px;
}

.tool-bar {
  grid-row: 3;
  gap: 6px;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line);
}

.tool-bar button {
  min-width: 0;
  height: 30px;
  padding: 0 12px;
  color: #d9e5ff;
  background: #17223a;
  border: 1px solid #2e4068;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 900;
  opacity: 1;
}

.tool-bar button:hover,
.tool-bar button:focus {
  opacity: 1;
}

.tab-bar {
  gap: 2px;
  padding-top: 2px;
  background: #0a1020;
  border-bottom: 1px solid var(--line);
}

.tab-bar button {
  min-height: 21px;
  padding: 1px 6px;
  color: #cddaff;
  background: #121c31;
  border: 1px solid #2b3d63;
  border-radius: 6px 6px 0 0;
  font-size: 13px;
  font-weight: 800;
}

.tab-bar button.active {
  color: #fff;
  background: linear-gradient(#3155d8, #172c88);
}

.module-rail {
  grid-column: 1;
  grid-row: 4;
  min-height: 0;
  overflow: auto;
  padding: 9px;
  background: #080d19;
  border-right: 1px solid var(--line);
}

.rail-title {
  margin-bottom: 7px;
  padding: 7px;
  color: #fff;
  background: linear-gradient(135deg, #14244a, #0b1020);
  border: 1px solid #38528a;
  border-radius: 8px;
}

.rail-title span {
  display: block;
  color: var(--cyan);
  font-size: 11px;
  text-transform: uppercase;
}

.rail-title strong {
  font-size: 17px;
}

.module-rail button {
  width: 100%;
  min-height: 40px;
  display: grid;
  align-content: center;
  gap: 1px;
  margin-bottom: 6px;
  padding: 5px 6px;
  color: #eef4ff;
  background: linear-gradient(#1d2b49, #11182b);
  border: 1px solid #31456f;
  border-radius: 8px;
  text-align: left;
  box-shadow: 0 8px 16px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
}

.module-rail button b {
  font-size: 13px;
}

.module-rail button span {
  color: #92a7d0;
  font-size: 11px;
}

.module-rail button.active {
  color: #fff;
  background: linear-gradient(135deg, #5d7cff, #263ca8);
  border-color: #9fdcff;
}

.module-rail button.active span {
  color: #ccffff;
}

.module-rail button:active {
  border-color: #626262 #fff #fff #626262;
  box-shadow: none;
  transform: translate(2px, 2px);
}

.blue-screen {
  grid-column: 1;
  grid-row: 3;
  min-height: 0;
  overflow: hidden;
  color: var(--cyan);
  background:
    linear-gradient(135deg, rgba(93, 124, 255, .12), transparent 34%),
    #070b16;
}

.screen {
  display: none;
}

.screen.active {
  display: grid;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto auto minmax(150px, 1fr) minmax(128px, .54fr);
}

.control-band {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto minmax(500px, 1fr);
  align-items: stretch;
  gap: 10px 14px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(121, 200, 255, .08);
}

label {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
}

.control-band > label {
  white-space: nowrap;
}

.date-command-group,
.filter-command-group {
  align-items: center;
  min-width: 0;
}

.date-command-group {
  display: flex;
  gap: 8px 12px;
  padding: 6px 10px;
  background:
    linear-gradient(180deg, rgba(18, 28, 52, .9), rgba(8, 13, 26, .72)) padding-box,
    linear-gradient(90deg, rgba(121, 200, 255, .46), rgba(245, 215, 110, .28), rgba(85, 214, 194, .34)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.filter-command-group {
  display: flex;
  flex-wrap: nowrap;
  justify-content: end;
  align-items: center;
  gap: 8px 14px;
  padding: 6px 10px;
  background:
    linear-gradient(180deg, rgba(18, 28, 52, .9), rgba(8, 13, 26, .72)) padding-box,
    linear-gradient(90deg, rgba(121, 200, 255, .46), rgba(245, 215, 110, .28), rgba(85, 214, 194, .34)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.filter-command-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.command-readout {
  min-width: 58px;
  color: var(--brand-blue-2);
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 1700px) {
  .control-band {
    grid-template-columns: minmax(760px, 1fr);
    align-items: start;
  }

  .filter-command-group {
    justify-content: start;
  }
}

@media (max-width: 1040px) {
  .filter-command-group,
  .detail-command-group {
    flex-wrap: wrap;
  }
}

@media (max-width: 1500px) {
  .detail-identity-group {
    justify-content: flex-start;
  }

  .identity-display {
    flex: 0 0 340px;
  }
}

label span {
  color: #c7dcff;
}

.date-field {
  position: relative;
  justify-content: flex-start;
}

#weekday {
  display: inline-flex;
  justify-content: flex-start;
  min-width: 106px;
  color: var(--brand-blue-2);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

input,
select {
  height: 32px;
  color: #edf4ff;
  background: #16233d;
  border: 1px solid #3a5080;
  border-radius: 6px;
  color-scheme: dark;
}

.control-band input,
.control-band select {
  width: 104px;
}

.date-field input {
  width: 132px;
  padding-right: 30px;
  color: #f4f8ff;
  background:
    linear-gradient(#1d2d50, #121d36) padding-box,
    linear-gradient(135deg, rgba(121, 200, 255, .8), rgba(245, 215, 110, .42), rgba(85, 214, 194, .55)) border-box;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.date-picker-button {
  width: 28px;
  height: 28px;
  margin-left: -33px;
  color: #dfeaff;
  background: rgba(8, 14, 28, .58);
  border: 1px solid rgba(121, 200, 255, .28);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.date-picker-button:hover,
.date-picker-button.active {
  color: #07101f;
  background: linear-gradient(#f7df89, #d9bd61);
  border-color: rgba(245, 215, 110, .85);
}

.date-picker-popover {
  position: absolute;
  top: calc(100% + 6px);
  left: 44px;
  z-index: 30;
  width: 286px;
  padding: 10px;
  color: #edf4ff;
  background:
    linear-gradient(#111b32, #080d1a) padding-box,
    linear-gradient(135deg, var(--accent-blue), rgba(245, 215, 110, .72), var(--accent-teal)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .48), inset 0 1px 0 rgba(255, 255, 255, .07);
}

.date-picker-head {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.date-picker-head strong {
  color: #f4f8ff;
  text-align: center;
  font-size: 13px;
}

.date-picker-head button,
.date-picker-foot button,
.date-picker-day {
  height: 28px;
  color: #eaf2ff;
  background: #17233d;
  border: 1px solid #31466f;
  border-radius: 6px;
}

.date-picker-head button:hover,
.date-picker-foot button:hover,
.date-picker-day:hover {
  border-color: #79c8ff;
  background: #20345c;
}

.date-picker-weekdays,
.date-picker-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.date-picker-weekdays {
  margin-bottom: 4px;
  color: #9fdcff;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.date-picker-day {
  padding: 0;
  font-size: 13px;
  font-weight: 800;
}

.date-picker-day.muted {
  color: #7f8aa3;
  background: #0e1628;
}

.date-picker-day.selected {
  color: #fff;
  background: linear-gradient(#5f7dff, #3856d9);
  border-color: #9fdcff;
}

.date-picker-day.today {
  box-shadow: inset 0 0 0 1px rgba(245, 215, 110, .88);
}

.date-picker-foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 9px;
}

.date-picker-foot button {
  flex: 1;
  font-size: 12px;
  font-weight: 800;
}

input[type="date"] {
  color-scheme: dark;
}

input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: .88;
  filter: invert(94%) sepia(15%) saturate(476%) hue-rotate(178deg) brightness(102%);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

.control-band #startFilter {
  width: 84px;
}

#division {
  width: 70px;
}

#subdivision {
  width: 78px;
}

.control-band #subdivision {
  width: 78px;
}

#rosterScope {
  width: 92px;
}

.day-nav {
  display: flex;
  gap: 4px;
  align-items: center;
}

.silver.small {
  width: auto;
  min-width: 64px;
  height: 32px;
  font-size: 12px;
}

.active-input {
  color: #0a0f1d;
  background: var(--yellow);
}

.action-band {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px 10px;
  min-height: 52px;
  padding: 8px 12px;
  background: rgba(3, 6, 13, .16);
}

.silver {
  height: 36px;
  padding: 0 12px;
  color: #eef4ff;
  background: linear-gradient(#223459, #14203a);
  border: 1px solid #3a5080;
  border-radius: 7px;
  font-size: 13px;
}

.action-band .silver {
  height: 32px;
}

.silver:active {
  transform: translateY(1px);
}

.silver[disabled] {
  color: #787878;
}

.duty-time {
  display: none;
  justify-content: flex-end;
}

.duty-time input {
  width: 112px;
}

.duty-time select {
  width: 112px;
}

.roster-workspace {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10px var(--shift-board-width, clamp(360px, 26vw, 520px));
  gap: 8px;
  padding: 0 8px;
}

.grid-shell {
  margin-right: 0;
  height: auto;
  min-height: 0;
  overflow: auto;
  background: var(--grid);
  border: 1px solid #2d3b5c;
  border-radius: 6px;
}

.roster-grid {
  width: max-content;
  min-width: 0;
  table-layout: auto;
  border-collapse: collapse;
  color: #111;
  background: #fff;
  font-size: 12px;
}

.roster-grid th {
  position: sticky;
  top: 0;
  z-index: 1;
  min-width: 46px;
  padding: 2px 7px;
  text-align: left;
  font-weight: 400;
  color: #dbe8ff;
  background: #18243d;
  border-right: 1px solid #33486f;
  border-bottom: 1px solid #33486f;
  user-select: none;
  cursor: pointer;
}

.roster-grid th[draggable="true"] {
  cursor: grab;
}

.roster-grid th.dragging {
  opacity: .5;
}

.roster-grid th.sorted-asc .sort-mark::after {
  content: " A-Z";
  color: var(--brand-blue-2);
  font-size: 10px;
}

.roster-grid th.sorted-desc .sort-mark::after {
  content: " Z-A";
  color: var(--brand-blue-2);
  font-size: 10px;
}

.col-resizer {
  position: absolute;
  top: 0;
  right: -3px;
  width: 7px;
  height: 100%;
  cursor: col-resize;
}

.col-resizer::after {
  position: absolute;
  top: 4px;
  right: 3px;
  width: 1px;
  height: calc(100% - 8px);
  content: "";
  background: rgba(159, 220, 255, .5);
}

.roster-grid td {
  height: 18px;
  padding: 1px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border: 0;
}

.roster-grid tr.selected td {
  background: #e8efff;
}

.lower-workspace {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 8px 12px 12px;
}

.detail-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  padding: 0;
  color: var(--cyan);
}

.detail-panel::before {
  content: none;
}

.detail-panel label {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  min-width: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

.detail-panel label span {
  min-width: auto;
  text-align: left;
  color: #c7dcff;
}

.identity-display {
  min-height: auto;
  display: inline-flex;
  align-items: center;
  min-width: 170px;
  max-width: 260px;
  padding: 0;
  color: var(--brand-blue-2);
  background: transparent;
  border: 0;
  border-radius: 0;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-panel input,
.detail-panel select {
  width: 96px;
  height: 34px;
  padding: 0 8px;
  font-size: 13px;
}

.detail-command-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  gap: 8px 14px;
  min-width: 0;
  min-height: 64px;
  height: auto;
  padding: 6px 10px;
  background:
    linear-gradient(180deg, rgba(18, 28, 52, .9), rgba(8, 13, 26, .72)) padding-box,
    linear-gradient(90deg, rgba(121, 200, 255, .46), rgba(245, 215, 110, .28), rgba(85, 214, 194, .34)) border-box;
  border: 1px solid transparent;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
}

.detail-identity-group {
  justify-content: flex-start;
}

.detail-assignment-group {
  justify-content: flex-start;
}

.detail-personnel-control {
  flex: 0 1 auto;
}

.detail-personnel-control select {
  width: 86px;
  min-width: 86px;
}

.detail-personnel-search {
  flex: 0 1 210px;
}

.detail-personnel-search input {
  width: 100%;
  min-width: 150px;
}

.detail-equipment-control {
  flex: 0 1 190px;
}

.detail-equipment-control select {
  width: 100%;
}

.detail-note-control {
  flex: 1 1 230px;
}

.detail-note-control input {
  width: 100%;
  min-width: 190px;
}

.check-row input {
  width: auto;
  height: auto;
}

.check-row span {
  min-width: 0;
  text-align: left;
}

.detail-assignment-group #detailAttendance {
  width: 164px;
}

.detail-identity-group #detailAttendance {
  width: 70px;
}

.detail-identity-group #detailDuty {
  width: 72px;
}

.detail-identity-group #detailShift {
  width: 62px;
}

.detail-assignment-group #detailStart,
.detail-assignment-group #detailEnd {
  width: 92px;
}

.detail-assignment-group #detailUnit,
.detail-assignment-group #detailPost {
  width: 78px;
}

.detail-state-readout {
  min-width: 82px;
}

.detail-duty-status-readout,
.detail-duty-readout,
.detail-tour-readout,
.detail-unit-readout,
.detail-post-readout {
  min-width: 78px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail-duty-status-readout {
  min-width: 110px;
}

.detail-unit-readout {
  min-width: 72px;
  max-width: 112px;
}

.detail-post-readout {
  min-width: 76px;
  max-width: 130px;
}

.old-list-box {
  color: #111;
  min-width: 0;
}

.roster-workspace .old-list-box {
  align-self: stretch;
  display: grid;
  grid-template-rows: 22px 1fr auto;
  min-height: 0;
  height: auto;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background:
    linear-gradient(#070b16, #070b16) padding-box,
    linear-gradient(180deg, var(--accent-blue), var(--accent-yellow), var(--accent-teal)) border-box;
}

.workspace-divider {
  align-self: stretch;
  cursor: col-resize;
  background: linear-gradient(180deg, #2a3d67, #101827);
  border: 1px solid #33486f;
  border-radius: 6px;
}

.workspace-divider:hover {
  background: linear-gradient(180deg, #3552a0, #17223a);
}

.lower-workspace .old-list-box {
  margin-top: 12px;
  color: #111;
}

.list-title {
  height: 22px;
  padding: 2px 6px;
  color: #e9f2ff;
  background: #18243d;
  border: 0;
  border-bottom: 1px solid rgba(159, 220, 255, .45);
  font-size: 13px;
}

#rosterListBox {
  width: 100%;
  height: 100%;
  color: #000;
  background: #fff;
  border: 0;
  border-radius: 0 0 8px 8px;
  font-family: Tahoma, "MS Sans Serif", Arial, sans-serif;
  font-size: 13px;
  overflow-x: hidden;
}

#rosterListBox option {
  white-space: nowrap;
}

#rosterListBox optgroup {
  color: #6b748d;
  font-weight: 900;
}

#rosterListBox optgroup + optgroup {
  border-top: 2px solid #dbe8ff;
}

#rosterListBox option:checked {
  color: #fff;
  background: #355eea;
}


.placeholder {
  place-content: start;
  gap: 8px;
  padding: 36px 42px;
}

.placeholder h1 {
  margin: 0;
  color: #ffff00;
  font-size: 24px;
  font-weight: 400;
}

.placeholder p {
  margin: 0;
  color: var(--cyan);
  font-size: 16px;
}

.schedule-build-screen.active {
  grid-template-rows: auto minmax(0, 1fr);
}

.build-launch {
  color: #07101f;
  background: linear-gradient(#ffe38a, #d8b45a);
  border-color: #f4d67a;
}

.schedule-build-screen {
  min-height: 0;
  overflow: hidden;
  display: grid;
  gap: 12px;
  padding: 12px;
  color: #edf4ff;
}

.build-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(23, 34, 58, .96), rgba(9, 14, 26, .98));
  border: 1px solid #33486f;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.build-hero h1 {
  margin: 2px 0 6px;
  color: #ffffff;
  font-size: 28px;
  line-height: 1;
}

.build-hero p {
  max-width: 820px;
  margin: 0;
  color: #b9caef;
  line-height: 1.4;
}

.build-kicker {
  display: inline-flex;
  color: var(--brand-blue-2);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.build-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.build-shell {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  gap: 12px;
}

.build-controls,
.build-preview {
  min-height: 0;
  overflow: hidden;
  border: 1px solid #33486f;
  border-radius: 8px;
}

.build-controls {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 12px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(17, 26, 46, .96), rgba(10, 16, 32, .98));
}

.build-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.build-control-grid label {
  display: grid;
  align-items: start;
  gap: 4px;
}

.build-control-grid label span {
  color: #c7dcff;
  font-size: 12px;
}

.build-control-grid select,
.build-control-grid input {
  width: 100%;
}

.build-control-grid .span-2 {
  grid-column: span 2;
}

.build-day-plan {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #33486f;
  border-radius: 8px;
  background: #101827;
}

.build-day-plan-title {
  margin: 0;
  color: #edf4ff;
  font-size: 13px;
  font-weight: 700;
}

.build-day-plan-rows {
  display: grid;
  gap: 6px;
}

.build-day-plan-row {
  display: grid;
  grid-template-columns: 56px 1fr 1fr;
  gap: 6px;
  align-items: center;
}

.build-day-plan-row span {
  color: #c7dcff;
  font-size: 12px;
  font-weight: 700;
}

.build-day-plan-row select {
  width: 100%;
}

.build-summary {
  display: grid;
  gap: 8px;
}

.build-summary div {
  padding: 8px 10px;
  color: #edf4ff;
  background: #101827;
  border: 1px solid #33486f;
  border-radius: 8px;
}

.build-summary strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
}

.build-summary span {
  color: #9fb2d6;
  font-size: 12px;
}

.build-weekline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.weekday-chip {
  min-height: 72px;
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  color: #dbe8ff;
  background: #101827;
  border: 1px solid #33486f;
  border-radius: 8px;
}

.weekday-chip strong {
  color: #ffffff;
  font-size: 15px;
}

.weekday-chip span {
  color: inherit;
  font-size: 11px;
}

.weekday-chip small {
  color: #9fb2d6;
  font-size: 10px;
  line-height: 1.25;
}

.weekday-chip.on {
  background: linear-gradient(135deg, rgba(93, 124, 255, .26), rgba(16, 24, 39, .98));
  border-color: #5871cf;
}

.weekday-chip.off {
  color: #7d879f;
  background: #0c1320;
}

.weekday-chip.primary {
  border-color: #5871cf;
}

.weekday-chip.floaters {
  border-color: #71c8ff;
}

.weekday-chip.supervisor {
  border-color: #f5d76e;
}

.weekday-chip.late {
  border-color: #b49dff;
}

.weekday-chip.reduced {
  border-color: #d2d8e6;
}

.weekday-chip.friday {
  box-shadow: inset 0 0 0 1px rgba(245, 215, 110, .22);
}

.build-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rotation-chip {
  flex: 1 1 120px;
  min-height: 58px;
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  color: #dbe8ff;
  background: #101827;
  border: 1px solid #33486f;
  border-radius: 8px;
  text-align: left;
}

.rotation-chip strong {
  font-size: 15px;
}

.rotation-chip span {
  color: inherit;
  opacity: .85;
  font-size: 11px;
}

.rotation-chip.active {
  color: #ffffff;
  background: linear-gradient(135deg, #5d7cff, #263ca8);
  border-color: #9fdcff;
}

.rotation-note {
  flex-basis: 100%;
  padding: 8px 10px;
  color: #c7dcff;
  background: rgba(7, 11, 22, .82);
  border: 1px dashed #33486f;
  border-radius: 8px;
}

.rotation-note strong {
  display: block;
  color: #ffffff;
}

.build-preview {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(13, 20, 38, .96), rgba(7, 11, 22, .98));
}

.build-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.build-preview-head strong {
  color: #edf4ff;
  font-size: 18px;
}

.build-preview-head span {
  color: #9fb2d6;
  font-size: 12px;
}

.build-calendar {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  overflow: auto;
  padding-right: 2px;
}

.build-month {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 6px;
  padding: 8px;
  color: #0c1220;
  background: #f5f7fb;
  border: 1px solid #ccd7ea;
  border-radius: 8px;
}

.build-month header {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.build-month header strong {
  color: #14244a;
  font-size: 16px;
}

.build-month header span {
  color: #5a6480;
  font-size: 11px;
}

.build-weekdays,
.build-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 2px;
}

.build-weekdays span {
  color: #64728f;
  font-size: 10px;
  font-weight: 800;
  text-align: center;
}

.build-day {
  min-height: 44px;
  padding: 4px 5px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #0c1220;
  background: #eef3fb;
  border: 1px solid #d7e1ef;
  border-radius: 6px;
  font-size: 11px;
}

.build-day.empty {
  background: transparent;
  border-color: transparent;
}

.build-day b {
  font-size: 14px;
  line-height: 1;
}

.build-day small {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.build-day em {
  display: block;
  max-height: 2.5em;
  overflow: hidden;
  color: #4f5c77;
  font-size: 9px;
  font-style: normal;
  line-height: 1.2;
}

.build-day.work {
  color: #102347;
  background: linear-gradient(180deg, #d8e9ff, #bdd4ff);
  border-color: #9fb9e6;
  box-shadow: inset 0 0 0 1px rgba(93, 124, 255, .18);
}

.build-day.off,
.build-day.holiday {
  color: #6f7993;
  background: #e7ebf2;
}

.build-day.primary {
  border-color: #8ea6dd;
}

.build-day.floaters {
  border-color: #9fdcff;
}

.build-day.supervisor {
  border-color: #f5d76e;
}

.build-day.late {
  border-color: #b49dff;
}

.build-day.reduced {
  border-color: #d2d8e6;
}

.build-day.holiday {
  color: #75621b;
  background: linear-gradient(180deg, #fff3c9, #f7e3a0);
  border-color: #e7c85d;
}

.build-day.weekend:not(.work) {
  background: #edf0f5;
}

.build-day.holiday {
  background: #dde3ee;
}

.build-month footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #64728f;
  font-size: 11px;
}

.master-screen.active {
  display: block;
  min-height: 0;
}

.standards-screen.active {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: clamp(240px, 24vw, 300px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  color: #edf4ff;
  background:
    linear-gradient(135deg, rgba(93, 124, 255, .12), transparent 34%),
    #070b16;
  overflow: hidden;
}

.standards-tree {
  min-height: 0;
  overflow: auto;
  padding: 10px 8px;
  color: #edf4ff;
  background: linear-gradient(180deg, #111a2e, #0b1020);
  border-right: 1px solid #33486f;
}

.standards-tree-title {
  display: grid;
  gap: 4px;
  margin-bottom: 8px;
  padding: 7px 9px;
  color: #fff;
  border-bottom: 1px solid #33486f;
}

.standards-tree-title span {
  color: #d8e8ff;
  font-size: 12px;
}

.standards-tree-title strong {
  font-size: 17px;
}

.standard-chapter,
.standard-node {
  width: 100%;
  min-height: 28px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  color: #f7fbff;
  background: transparent;
  border: 0;
  border-radius: 2px;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.standard-chapter {
  margin-top: 4px;
  font-weight: 800;
  font-size: 14px;
}

.standard-node {
  padding-left: 24px;
  color: #eef6ff;
  font-size: 12px;
}

.standard-node.active {
  color: #fff;
  background: linear-gradient(135deg, rgba(93, 124, 255, .55), rgba(23, 34, 58, .95));
  box-shadow: inset 3px 0 0 #79c8ff;
}

.standards-tree .collapsed {
  display: none;
}

.standard-reader {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
  background: #070b16;
}

.standard-tabs {
  display: flex;
  gap: 0;
  min-height: 44px;
  padding-left: 18px;
  background: #0d1426;
  border-bottom: 1px solid #33486f;
}

.standard-tabs button {
  min-width: 120px;
  padding: 0 14px;
  color: #c7dcff;
  background: #0d1426;
  border: 0;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.standard-tabs button.active {
  color: #07101f;
  background: linear-gradient(#9fdcff, #79c8ff);
}

.standard-breadcrumb {
  padding: 12px 22px 6px;
  color: #9fdcff;
  font-size: 13px;
  font-weight: 800;
}

.standard-document {
  min-height: 0;
  overflow: auto;
  margin: 10px 22px 18px;
  border: 1px solid #33486f;
  background: #0b1020;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

.standard-document header {
  padding: 18px 24px;
  background: linear-gradient(180deg, #17223a, #101827);
  border-bottom: 1px solid #33486f;
}

.standard-document header span {
  color: #79c8ff;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.standard-document h1 {
  margin: 8px 0 0;
  color: #f8fbff;
  font-size: clamp(22px, 3vw, 28px);
}

#standardBody {
  padding: 18px 24px 24px;
  color: #e5efff;
  font-size: 15px;
  line-height: 1.5;
}

#standardBody h2 {
  margin: 0 0 14px;
  color: #f8fbff;
}

.standard-text p {
  margin: 0 0 12px;
}

.standard-statement {
  color: #f8fbff;
  font-size: 16px;
}

.guidance-line {
  margin-top: 16px;
  padding: 12px 14px;
  color: #dbe8ff;
  background: #0d1425;
  border: 1px solid #263a61;
  border-left: 4px solid #79c8ff;
  border-radius: 6px;
}

.guidance-line strong {
  color: #9ed0ff;
}

.standard-proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.standard-proof-grid article {
  display: grid;
  gap: 8px;
  padding: 14px;
  background: #111a2e;
  border: 1px solid #33486f;
  border-radius: 6px;
}

.standard-proof-grid strong {
  color: #79c8ff;
}

.standard-proof-grid button {
  justify-self: start;
  min-height: 30px;
  padding: 0 12px;
  color: #07101f;
  background: #79c8ff;
  border: 1px solid #4d98c8;
  border-radius: 4px;
  font-weight: 800;
}

.assessment-meter {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  padding: 14px;
  color: #eaf2ff;
  background: #111a2e;
  border: 1px solid #33486f;
  border-radius: 6px;
}

.assessment-meter > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.assessment-meter strong {
  color: #f8fbff;
}

.assessment-meter span {
  color: #79c8ff;
  font-weight: 900;
}

.assessment-meter p {
  margin: 0;
  color: #b9caef;
}

.meter-bar {
  height: 10px;
  overflow: hidden;
  background: #070b16;
  border: 1px solid #33486f;
  border-radius: 999px;
}

.meter-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #ff8a8a, #f5d76e, #83f1b2);
}

.requirement-list {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.requirement-list li,
.standard-proof-list {
  display: block;
}

.requirement-disclosure {
  overflow: hidden;
  background: #111a2e;
  border: 1px solid #33486f;
  border-radius: 6px;
}

.requirement-disclosure summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(150px, auto);
  gap: 10px;
  align-items: start;
  padding: 10px;
  cursor: pointer;
  list-style: none;
}

.requirement-disclosure summary::-webkit-details-marker {
  display: none;
}

.requirement-disclosure summary::after {
  grid-column: 1 / -1;
  height: 0;
  color: #79c8ff;
  content: "Click to view proofs";
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease;
}

.requirement-disclosure summary:hover::after,
.requirement-disclosure[open] summary::after {
  height: auto;
  opacity: .8;
  transform: translateY(0);
}

.requirement-disclosure summary > span {
  color: #79c8ff;
  font-weight: 900;
}

.requirement-disclosure summary p {
  margin: 0;
}

.requirement-disclosure summary em {
  color: #f5d76e;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.requirement-disclosure[open] {
  border-color: #79c8ff;
  box-shadow: inset 0 1px 0 rgba(121, 200, 255, .16);
}

.inline-proof-panel {
  display: grid;
  gap: 10px;
  padding: 0 10px 12px 52px;
}

.inline-proof-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  color: #9fb3d8;
  font-size: 12px;
}

.inline-proof-heading strong {
  color: #9ed0ff;
}

.standard-proof-list {
  margin-bottom: 16px;
}

.standard-proof-list .requirement-disclosure summary {
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) minmax(150px, auto);
}

.proof-year-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.proof-checklist {
  display: grid;
  gap: 12px;
}

.standard-level-proofs {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  background: #0d1425;
  border: 1px solid #33486f;
  border-radius: 6px;
}

.standard-level-proofs h3 {
  margin: 0;
  color: #9ed0ff;
  font-size: 15px;
}

.standard-level-proofs div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 8px;
}

.standard-level-proofs a {
  display: grid;
  gap: 4px;
  padding: 10px;
  color: #eaf2ff;
  background: #070b16;
  border: 1px solid #263a61;
  border-radius: 6px;
  text-decoration: none;
}

.standard-level-proofs a span {
  color: #9fb3d8;
  font-size: 12px;
}

.proof-row {
  display: grid;
  gap: 12px;
  padding: 14px;
  background: #111a2e;
  border: 1px solid #33486f;
  border-radius: 6px;
}

.proof-row header {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.proof-row header strong {
  color: #9ed0ff;
  font-size: 15px;
}

.proof-row header p {
  margin: 0;
  color: #f8fbff;
}

.proof-year-slots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.proof-slot {
  display: grid;
  gap: 8px;
  min-height: 96px;
  padding: 10px;
  background: #070b16;
  border: 1px solid #263a61;
  border-radius: 6px;
}

.proof-slot h3 {
  margin: 0;
  color: #f8fbff;
  font-size: 13px;
}

.proof-slot p {
  margin: 0;
  color: #f5d76e;
  font-size: 12px;
}

.proof-slot button {
  justify-self: start;
  min-height: 28px;
  padding: 0 10px;
  color: #07101f;
  background: #9ed0ff;
  border: 1px solid #79c8ff;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
}

.proof-slot a {
  display: grid;
  gap: 4px;
  color: #eaf2ff;
  text-decoration: none;
}

.proof-slot a span {
  color: #9fb3d8;
  font-size: 12px;
}

.proof-year {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  background: #111a2e;
  border: 1px solid #33486f;
  border-radius: 6px;
}

.proof-year h3 {
  margin: 0 0 4px;
  color: #79c8ff;
}

.proof-year a {
  display: grid;
  gap: 3px;
  padding: 8px;
  color: #eaf2ff;
  text-decoration: none;
  background: #0b1020;
  border: 1px solid #263957;
  border-radius: 4px;
}

.proof-year a span,
.proof-year p {
  margin: 0;
  color: #9fb2d6;
  font-size: 12px;
}

.standard-history {
  margin: 0;
  padding-left: 20px;
}

.module-menu {
  min-height: 0;
  overflow: auto;
  padding: 10px;
  color: #111;
  background: #0c1222;
  border-right: 1px solid var(--line);
}

.module-menu-title {
  display: grid;
  gap: 2px;
  margin-bottom: 10px;
  padding: 8px;
  color: #fff;
  background: #152341;
  border: 2px solid;
  border-color: #6d8bd1 #0b1224 #0b1224 #6d8bd1;
}

.module-menu-title span {
  color: #8db4ff;
  font-size: 12px;
  text-transform: uppercase;
}

.module-menu-title strong {
  font-size: 18px;
}

.module-menu button {
  width: 100%;
  min-height: 31px;
  margin-bottom: 5px;
  padding: 4px 8px;
  color: #e8f0ff;
  background: linear-gradient(#1d2b49, #11182b);
  border: 1px solid #31456f;
  border-radius: 8px;
  text-align: left;
  font-weight: 800;
}

.module-menu button.active {
  color: #fff;
  background: linear-gradient(135deg, #5d7cff, #263ca8);
}

.module-detail {
  min-height: 0;
  overflow: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-content: start;
  padding: 20px;
  color: #e9fbff;
  background:
    linear-gradient(135deg, rgba(147, 255, 255, .08), transparent 34%),
    var(--blue);
}

.function-strip {
  grid-column: 1 / -1;
  grid-row: 4;
}

.module-card,
.admin-dream {
  background: rgba(10, 14, 24, .38);
  border: 1px solid #3a5080;
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
}

.module-card {
  min-height: 0;
  padding: 22px;
}

.module-workspace {
  max-width: 1100px;
}

.module-card span,
.admin-dream span {
  color: #bffcff;
}

.module-card h1,
.admin-dream h2 {
  margin: 8px 0 12px;
  color: #f8fbff;
  font-weight: 400;
  letter-spacing: 0;
}

.module-card h1 {
  font-size: 30px;
}

.module-card p,
.admin-dream p {
  max-width: 760px;
  margin: 0 0 18px;
  color: #f5ffff;
  font-size: 18px;
  line-height: 1.45;
}

.module-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.module-points div,
.dream-grid div {
  padding: 12px;
  color: #eaf2ff;
  background: #17223a;
  border: 1px solid #3a5080;
  border-radius: 8px;
}

.module-points strong,
.dream-grid strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-blue-2);
}

.module-points span,
.dream-grid span {
  display: block;
  color: #c7dcff;
}

.admin-dream {
  padding: 22px;
}

.admin-dream h2 {
  font-size: 25px;
}

.dream-grid {
  display: grid;
  gap: 10px;
}

.function-strip {
  grid-column: 1 / -1;
  grid-row: 4;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 2px 8px;
  color: #111;
  color: #d7e4ff;
  background: #0a1020;
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.function-strip span {
  min-width: 0;
}

#localAdminDrawer {
  position: fixed;
  top: 94px;
  right: 12px;
  bottom: 36px;
  width: min(420px, calc(100vw - 24px));
  z-index: 40;
  display: grid;
  grid-template-rows: auto auto minmax(220px, 1fr) auto auto auto;
  gap: 10px;
  padding: 14px;
  color: #edf4ff;
  background:
    linear-gradient(180deg, rgba(12, 18, 34, .98), rgba(7, 11, 22, .98)),
    #070b16;
  border: 1px solid #3a5080;
  border-radius: 10px;
  box-shadow: 0 28px 72px rgba(0, 0, 0, .52);
  overflow-y: auto;
  overflow-x: hidden;
}

#localAdminDrawer[hidden] {
  display: none;
}

.local-admin-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.local-admin-header span {
  color: #9fdcff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.local-admin-header h2 {
  margin: 4px 0 0;
  color: #fff;
  font-size: 22px;
  font-weight: 400;
}

.local-admin-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.local-admin-summary,
.local-admin-notes {
  padding: 10px 12px;
  background: rgba(17, 26, 46, .9);
  border: 1px solid #2e4068;
  border-radius: 8px;
}

.local-admin-summary {
  display: grid;
  gap: 8px;
}

.local-admin-summary p {
  margin: 0;
  color: #cfdcff;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.local-admin-summary strong {
  display: block;
  color: #fff;
}

.local-admin-notes {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
}

.local-admin-notes h3 {
  margin: 0;
  color: #9fdcff;
  font-size: 14px;
  text-transform: uppercase;
}

.local-admin-notes pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  color: #eef4ff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.45;
}

.local-admin-controls,
.local-admin-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.local-admin-controls button,
.local-admin-footer a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  color: #eaf2ff;
  background: #17223a;
  border: 1px solid #2e4068;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.local-admin-controls button {
  cursor: pointer;
}

.local-admin-message {
  min-height: 18px;
  margin: 0;
  color: #c7dcff;
  font-size: 12px;
}

.local-admin-message.success {
  color: #83f1b2;
}

.local-admin-message.error {
  color: #ffb3b3;
}

#apiState {
  margin-left: auto;
  text-align: right;
  font-weight: 800;
}

@media (max-width: 980px) {
  .app-window {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
  }

  .titlebar,
  .brand-nav,
  .menu-bar,
  .tool-bar,
  .tab-bar,
  .module-rail,
  .control-band,
  .action-band,
  .detail-panel,
  .function-strip {
    overflow-x: auto;
  }

  .module-rail {
    grid-column: 1;
    grid-row: auto;
    display: flex;
    gap: 7px;
    padding: 7px;
  }

  .rail-title {
    min-width: 120px;
    margin-bottom: 0;
  }

  .module-rail button {
    min-width: 116px;
    margin-bottom: 0;
  }

  .blue-screen {
    grid-column: 1;
    grid-row: auto;
  }

  .control-band {
    width: auto;
    padding: 6px;
    grid-template-columns: minmax(720px, 1fr);
    align-items: start;
  }

  .date-command-group,
  .filter-command-group {
    justify-content: flex-start;
  }

  .action-band {
    width: auto;
    gap: 12px;
    padding: 0 6px 8px;
  }

  .roster-workspace {
    width: auto;
    grid-template-columns: minmax(720px, 1fr) 10px 280px;
  }

  .build-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .build-calendar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-shell {
    height: 44vh;
  }

  .lower-workspace {
    width: auto;
    grid-template-columns: minmax(720px, 1fr);
    padding-right: 8px;
  }

  .detail-panel {
    padding: 12px 0 0 8px;
  }

  .master-screen.active {
    grid-template-columns: 1fr;
  }

  .module-detail {
    grid-template-columns: 1fr;
  }

  #localAdminDrawer {
    top: 86px;
    right: 10px;
    bottom: 28px;
    left: 10px;
    width: auto;
  }
}

.build-assignment-pane {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: rgba(7, 11, 22, .74);
  border: 1px solid #33486f;
  border-radius: 8px;
}

.build-assignment-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.build-code-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  min-height: 38px;
  padding: 0 8px;
  color: #102347;
  background: linear-gradient(180deg, #d8e9ff, #bdd4ff);
  border: 1px solid #9fb9e6;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.build-assignment-row strong {
  display: block;
  color: #edf4ff;
  font-size: 13px;
  line-height: 1.15;
}

.build-assignment-row span {
  color: #9fb2d6;
  font-size: 11px;
}

.build-control-grid select,
.build-control-grid input,
.build-control-grid .build-code-box {
  width: 100%;
}

.build-day.holiday {
  color: #6d5b18;
  background: linear-gradient(180deg, #fff6d8, #f5d76e);
  border-color: #d6b94b;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

.build-day.holiday small {
  color: #7a671d;
}

.build-day.holiday em {
  color: #6d5b18;
}

.build-day.holiday.work {
  color: #4d4010;
  background: linear-gradient(180deg, #fff6d8, #f9e28f);
}

.build-day.holiday.off {
  color: #6d5b18;
  background: linear-gradient(180deg, #fff1bf, #efd27b);
}

.build-preview-head span {
  max-width: 56ch;
  text-align: right;
}

@media (max-width: 1100px) {
  .build-assignment-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }
}
