* {
  box-sizing: border-box;
}
:root {
  --bg: #111313;
  --panel: #191c1b;
  --line: #323633;
  --muted: #b3b9b3;
  --ink: #f3f4ed;
  --gold: #fbba00;
  --deep: #242823;
  --red: #ffae95;
  color: var(--ink);
  background: var(--bg);
  font:
    16px/1.5 "Inter",
    "Segoe UI",
    sans-serif;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
select,
textarea,
input {
  min-height: 2.7rem;
  border-radius: 0.5rem;
  border: 1px solid #484d46;
  background: var(--deep);
  color: var(--ink);
  padding: 0.45rem 0.8rem;
}
button {
  cursor: pointer;
  font-weight: 600;
}
button:hover {
  background: #343b32;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--gold);
  color: #241e0c;
  border-color: var(--gold);
}
.primary:hover {
  background: #ffd250;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.85rem, 3vw, 3.2rem);
  line-height: 1.07;
  letter-spacing: -0.055em;
}
h2 {
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}
h3 {
  font-size: 1rem;
}
.muted,
.hint {
  color: var(--muted);
}
.small {
  font-size: 0.86rem;
}
.mono,
time,
.projectcode {
  font-family: Consolas, "Courier New", monospace;
  font-variant-numeric: tabular-nums;
}
.logo {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 9.5rem;
  max-width: 100%;
}
.logo img {
  display: block;
  width: 100%;
  height: auto;
}
.logo span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
}
.shell {
  display: grid;
  grid-template-columns: 235px minmax(0, 1fr);
  min-height: 100vh;
}
.side {
  background: #161917;
  border-right: 1px solid var(--line);
  padding: 1.5rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.side .logo {
  padding: 0.3rem 0.45rem;
}
.caption {
  font-size: 0.77rem;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.nav {
  display: grid;
  gap: 0.35rem;
}
.nav .module-link,
.nav button {
  border: 0;
  text-align: left;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav button.active {
  background: #303126;
  color: #ffcf46;
}
.nav .module-link {
  text-decoration: none;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
}
.module-link:hover,
.release-link:hover {
  text-decoration: underline;
}
.release-link {
  color: var(--gold);
  font-size: 0.88rem;
  line-height: 1.25;
}
.release-link small {
  white-space: nowrap;
}
.nav button:hover {
  background: #252a25;
}
.icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
  flex-shrink: 0;
}
.acct {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: grid;
  gap: 0.45rem;
}
.quiet {
  background: transparent;
}
.workspace {
  min-width: 0;
}
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 3.5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  min-height: 64px;
}
.bar span {
  color: var(--muted);
}
.dev {
  color: #c6cbbd;
  border: 1px solid #41463c;
  padding: 0.25rem 0.55rem;
  border-radius: 1rem;
  font-size: 0.8rem;
}
.tabs {
  display: flex;
  align-items: center;
  overflow: auto;
  background: #171a17;
  padding: 0 clamp(1rem, 3.5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  gap: 0.1rem;
}
.tabs > div {
  display: flex;
  align-items: center;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.tabs .selected {
  border-color: var(--gold);
}
.tabs button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.88rem;
  min-height: 2.65rem;
}
.tabs .selected button {
  color: var(--ink);
}
.tabs .close {
  padding: 0.3rem 0.5rem;
}
.content {
  padding: clamp(1.4rem, 3.6vw, 3.5rem);
  max-width: 1680px;
  margin: auto;
}
.heading,
.panelhead,
.spread {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.heading {
  margin-bottom: 1.8rem;
  align-items: flex-end;
}
.heading .caption {
  margin-bottom: 0.7rem;
  color: #d5bc78;
}
.heading .muted {
  margin-top: 0.65rem;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.3rem;
}
.stat,
.panel,
.pcard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0.85rem;
}
.stat {
  padding: 1.15rem 1.3rem;
}
.stat strong {
  font-size: 1.6rem;
  display: block;
  line-height: 1.3;
  letter-spacing: -0.04em;
}
.stat span {
  color: var(--muted);
  font-size: 0.87rem;
}
.stat.alert strong,
.blocked {
  color: var(--red);
}
.ready {
  color: #a9dca4;
}
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(240px, 0.95fr);
  gap: 1.1rem;
  align-items: start;
}
.panel {
  overflow: hidden;
  margin-bottom: 1rem;
}
.panelhead {
  padding: 1.15rem 1.25rem;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.panelbody {
  padding: 1.15rem 1.25rem;
}
.row {
  padding: 0.95rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}
.row:last-child {
  border-bottom: 0;
}
.row .when {
  font:
    600 1rem Consolas,
    monospace;
  color: #f6ce62;
  min-width: 3.5rem;
}
.row .end {
  margin-left: auto;
  white-space: nowrap;
}
.row .sub,
.sub {
  color: var(--muted);
  font-size: 0.86rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-radius: 1rem;
  border: 1px solid #53584f;
  padding: 0.15rem 0.6rem;
  font-size: 0.82rem;
}
.pill.blocked {
  background: #392822;
  border-color: #765043;
}
.pill.ready {
  background: #243426;
  border-color: #48634c;
}
.check input {
  accent-color: var(--gold);
  min-height: 1.2rem;
  width: 1.15rem;
  flex: none;
}
.check strong {
  font-size: 0.97rem;
  display: block;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: 1rem;
}
.pcard {
  padding: 1.3rem;
  display: grid;
  gap: 0.9rem;
  text-align: left;
  align-content: start;
  min-height: 170px;
}
.pcard:hover {
  border-color: var(--gold);
}
.projectcode {
  color: #e7bf56;
  font-size: 0.87rem;
}
.pcard h2 {
  font-size: 1.5rem;
}
.empty {
  padding: 1.3rem;
  color: var(--muted);
}
.filter {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.filter select {
  max-width: 100%;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.loginArt {
  background: #1a1c17;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.3rem;
}
.loginArt::before {
  position: absolute;
  content: "";
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 59px, #363a2b 59px 60px),
    repeating-linear-gradient(90deg, transparent 0 59px, #363a2b 59px 60px);
}
.loginArt .logo {
  z-index: 1;
  width: clamp(10rem, 18vw, 16rem);
}
.loginForm {
  max-width: 440px;
  width: 100%;
  margin: auto;
  padding: 2rem;
  display: grid;
  gap: 1.25rem;
}
.loginForm h1 {
  font-size: 2.4rem;
}
.loginForm header {
  display: grid;
  gap: 0.45rem;
}
label.field {
  display: grid;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.field textarea,
.field input,
.field select {
  width: 100%;
  color: var(--ink);
}
.loginForm button {
  width: 100%;
}
.error,
#form-error {
  color: var(--red);
  min-height: 1em;
}
#notice {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  max-width: min(460px, 90vw);
  padding: 0.9rem 1.1rem;
  background: #363a30;
  border: 1px solid #878c70;
  border-radius: 0.6rem;
  z-index: 8;
}
dialog {
  color: var(--ink);
  background: #1e211e;
  border: 1px solid #52584d;
  border-radius: 1rem;
  width: min(460px, 94vw);
  padding: 1.4rem;
}
dialog::backdrop {
  background: #060806bb;
}
dialog header,
dialog footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}
dialog #fields {
  display: grid;
  gap: 0.8rem;
  margin: 1.1rem 0;
}
dialog footer {
  justify-content: flex-end;
}
.venue {
  margin-bottom: 1rem;
}
.venue h2,
.venue h3 {
  overflow-wrap: anywhere;
}
.venue-details {
  margin: 0;
}
.venue-details dt {
  font-weight: 600;
}
.venue-details dd {
  margin: 0 0 0.65rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.venue-details dd:last-child {
  margin-bottom: 0;
}
.task-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#integration-board > .panel,
#task-board > .panel {
  margin-bottom: 1rem;
}
#task-board dialog button {
  margin: 0.25rem;
}
.field textarea {
  resize: vertical;
}
dialog #dismiss {
  border: 0;
  background: transparent;
  font-size: 1.3rem;
}
.stale {
  background: #3b3020;
  color: #faddaa;
  padding: 0.65rem 1rem;
}
.day {
  padding: 0.4rem 1.25rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  background: #242820;
  color: var(--muted);
  font-weight: 600;
}
.history {
  list-style: none;
  margin: 0;
  padding: 0;
}
.history li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}
.history li:last-child {
  border: 0;
}
@media (max-width: 1040px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .cols {
    grid-template-columns: 1fr;
  }
  .side {
    padding: 1rem 0.7rem;
  }
}
.availability-list {
  list-style: none;
  padding: 0;
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
}
.availability-unknown {
  color: var(--muted);
}
.availability-unavailable {
  color: var(--gold);
}
.directory-search input[type="date"] {
  width: auto;
}
.crew-shifts {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
  font-variant-numeric: tabular-nums;
}
#shift-hours:not([hidden]) {
  display: grid;
  gap: 0.7rem;
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .side {
    display: block;
    border-right: 0;
  }
  .side .logo {
    width: 7.5rem;
  }
  .side > .caption {
    display: none;
  }
  .nav {
    display: flex;
    overflow: auto;
    margin: 0.5rem 0;
  }
  .nav button {
    white-space: nowrap;
    font-size: 0.85rem;
  }
  .acct {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.4rem;
  }
  .acct button {
    min-height: 2rem;
  }
  .bar {
    min-height: 0;
    padding: 0.55rem 1rem;
  }
  .content {
    padding: 1.2rem 1rem;
  }
  .heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .stats {
    gap: 0.4rem;
  }
  .stat {
    padding: 0.7rem;
  }
  .stat strong {
    font-size: 1.2rem;
  }
  .stat span {
    font-size: 0.8rem;
  }
  .row {
    padding: 0.85rem 0.8rem;
    gap: 0.6rem;
  }
  .login {
    grid-template-columns: 1fr;
    grid-template-rows: 90px 1fr;
  }
  .loginArt {
    padding: 1rem 2rem;
    align-items: center;
  }
  .loginArt .logo {
    width: 8rem;
  }
  .loginForm {
    margin: 2rem auto;
  }
  .filter select {
    min-width: 0;
  }
}
@media print {
  .side,
  .bar,
  .tabs,
  button,
  .filter,
  #notice {
    display: none !important;
  }
  .shell,
  .cols {
    display: block;
  }
  .content {
    padding: 0;
  }
  :root,
  .panel,
  .stat,
  body {
    color: #111;
    background: white;
  }
  .muted,
  .sub,
  .row .sub,
  .row .when,
  .caption {
    color: #333;
  }
  .panel {
    break-inside: auto;
  }
  .row {
    break-inside: avoid;
  }
}
.history.panelbody {
  padding: 0.2rem 1.25rem 0.65rem;
}
.side > .logo {
  line-height: 1.2;
}
.removed summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
}
.remove-slot {
  justify-self: start;
}
.day-choices {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  max-height: 14rem;
  overflow: auto;
}
.day-choices label {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.45rem;
}
.day-choices input {
  width: 1.1rem;
  min-height: 1.1rem;
  accent-color: var(--gold);
}
.crew-row {
  flex-wrap: wrap;
}
.crew-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.booking-warning {
  color: var(--gold);
  margin-top: 0.45rem;
  font-size: 0.87rem;
}
.booking-warning ul {
  margin: 0.15rem 0 0;
  padding-left: 1.15rem;
}
.directory-search {
  align-items: end;
}
.directory-search input {
  width: min(22rem, 100%);
}
.crew-row .sub.end {
  max-width: 36rem;
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .slot {
    flex-wrap: wrap;
  }
  .slot > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}
.transfer-digest { overflow-wrap: anywhere; }

/* Shared product signature and accessible module navigation. */
.product-mark, .logo .product-mark {
  color: var(--ink);
  font-family: Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -.06em;
  line-height: 1;
  white-space: nowrap;
}
.product-mark b {color: #FBBA00; font-weight: inherit}
.logo img {max-width: 6.3rem}
.side .logo {align-items: flex-start}
.side .product-mark {font-size: 2rem}
.loginArt {
  isolation: isolate;
  display: grid;
  align-content: center;
  justify-items: start;
  padding: clamp(2rem,6vw,6.5rem);
  background: #101410;
}
.loginArt::before {
  z-index: -1;
  opacity: .34;
  background: repeating-linear-gradient(0deg,transparent 0 47px,#30352f 47px 48px),
              repeating-linear-gradient(90deg,transparent 0 47px,#30352f 47px 48px);
}
.login-identity .product-mark {font-size: clamp(3.25rem,8.8vw,8.5rem);color:#fff}
.login-identity p {margin: 1.15rem 0 0; font-size:clamp(.95rem,1.6vw,1.5rem);color:#e4e6df}
.login-maker {position:absolute;inset-inline-start:clamp(2rem,7.5vw,7rem);bottom:clamp(1.5rem,4vw,4rem);display:flex;align-items:center;gap:1rem;color:#b0b6ad;font-size:.82rem}
.login-maker img {display:block;width:5.5rem;height:auto}
.module-picker {position:relative;display:inline-block;color:var(--ink);flex-shrink:0}
.module-picker summary {cursor:pointer;padding:.48rem .7rem;border:1px solid var(--line);border-radius:.45rem;font-weight:650}
.module-picker > nav {position:absolute;z-index:9;top:calc(100% + .4rem);left:0;width:max-content;max-width:min(32rem,calc(100vw - 2rem));display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.25rem;padding:.45rem;border:1px solid var(--line);border-radius:.55rem;background:var(--panel,#191d19);box-shadow:0 8px 24px #0005}
.module-picker nav a {display:flex;gap:.65rem;align-items:center;color:var(--ink);text-decoration:none;padding:.6rem;border-radius:.3rem}
.module-picker nav a:hover,.module-picker nav a:focus-visible {background:#33382e}
.module-picker nav small {display:block;color:var(--muted);font-size:.75rem}
.module-picker nav .icon {color:var(--gold);flex-shrink:0}
.media-top .module-picker {margin-left:auto}
.media-top .module-picker nav {right:0;left:auto}
@media(max-width:700px){
  .login {grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(10rem,28vh) 1fr}
  .loginForm {min-width:0; grid-template-columns:minmax(0,1fr)}
  .loginForm h1 {font-size:clamp(1.65rem,7.2vw,2.4rem); overflow-wrap:anywhere}
  .loginArt {padding:1.5rem}
  .login-identity p {margin:.5rem 0 1.6rem}
  .login-maker {inset-inline-start:1.5rem;bottom:.8rem;font-size:.7rem;gap:.5rem}
  .login-maker img {width:3.2rem}
  .workspace-name {display:none}
  .media-top,.bar {flex-wrap:wrap}
  .module-picker>nav {grid-template-columns:1fr;max-height:60vh;overflow:auto}
}
@media print {.module-picker {display:none}}

.workspace-tools {display:flex; align-items:center; gap:.45rem; flex-shrink:0}
.workspace-search-open {font-weight:650; background:transparent}
#encoder-presets .bar > a {color:var(--ink)}
#encoder-presets .bar > a:has(.product-mark) {display:inline-flex;align-items:center;gap:.5rem;text-decoration:none}
.media-top .workspace-tools {margin-left:auto}
.module-row {display:flex; align-items:center; gap:.2rem; min-width:0}
.module-row a {flex:1; min-width:0}
.module-group-title,.module-status {grid-column:1/-1; margin:.35rem .6rem; font-size:.82rem}
.module-group-title {color:var(--gold)}
.module-group-title[hidden],.module-status:empty {display:none}
.module-picker .favorite-toggle {flex-shrink:0; width:2.5rem; height:2.5rem; padding:0; background:transparent; border-color:transparent; font-size:1.45rem; line-height:1}
.favorite-toggle[aria-pressed="true"] span {color:var(--gold)}
.favorite-toggle:hover,.favorite-toggle:focus-visible {border-color:var(--gold)}
.workspace-search {width:min(36rem,calc(100vw - 1.5rem)); max-height:85dvh; overflow:auto}
.workspace-search header {margin-bottom:1.1rem}
.workspace-search h2 {font-size:1.3rem; margin:0}
.workspace-search [role="status"] {color:var(--muted); font-size:.85rem; margin:.75rem 0}
.workspace-search ul {list-style:none; margin:0; padding:0}
.workspace-search li + li {border-top:1px solid var(--line)}
.workspace-search li a {display:grid; gap:.2rem; padding:.65rem .5rem; color:var(--ink); text-decoration:none; overflow-wrap:anywhere}
.workspace-search li a:hover,.workspace-search li a:focus-visible {background:#33382e}
.workspace-search li small {color:var(--muted)}
.row.slot:focus {outline:2px solid var(--gold); outline-offset:-2px}
@media(max-width:700px){
  .media-top,.bar {position:relative}
  .workspace-tools,.workspace-tools .module-picker {position:static}
  .workspace-tools .module-picker nav {left:.5rem; right:.5rem; width:auto; max-width:none; top:100%}
  .workspace-tools button,.workspace-tools summary {min-height:44px}
  .module-picker .favorite-toggle {width:44px; height:44px}
}
@media print {.workspace-tools,.workspace-search-open,.workspace-search {display:none}}
