:root {
  --blue: #075378;
  --pink: #ed167b;
  --muted: #788f99;
  --ink: #435d69;
  --line: #dce2e5;
  --bg: #f5f7f8;
  --staff: 260px;
  --hour: 165px;
  --row: 116px;
  --green: #28754b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font: 14px Arial,Helvetica,sans-serif;
  color: var(--ink);
  background: var(--bg);
}

button,input,select {
  font: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
}

button: focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline: 3px solid #bd47a2;
  outline-offset: 3px;
}

button: disabled {
  cursor: not-allowed;
  opacity: .42;
}

a {
  color: var(--blue);
}

.icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top {
  height: 90px;
  background: linear-gradient(105deg,#064f77 0%,#414279 40%,#b42181 78%,#ed167b 100%);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  padding: 0 24px;
  color: #fff;
}

.brand {
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  color: #fff;
}

.wordmark {
  font-size: 28px;
  line-height: .82;
  letter-spacing: -1.7px;
  font-weight: 300;
  position: relative;
  min-width: 103px;
}

.wordmark small {
  display: block;
  font-size: 29px;
}

.compass {
  font-size: 20px;
  letter-spacing: 0;
}

.brand-caption {
  border-left: 1px solid #ffffff40;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
}

.brand-caption strong {
  display: block;
  font-size: 15px;
  letter-spacing: .1px;
}

.topnav {
  display: flex;
  align-items: stretch;
  gap: 12px;
}

.topnav button {
  color: #ffffffc9;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15px;
  border-bottom: 4px solid transparent;
  font-size: 15px;
}

.topnav button.active {
  color: #fff;
  border-color: #fff;
  background: #ffffff08;
}

.green-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  background: #47c481;
}

.simstrip {
  background: #fff9e9;
  color: #775b21;
  min-height: 33px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 22px;
  font-size: 12px;
  border-bottom: 1px solid #eddfba;
  gap: 12px;
}

.simstrip b {
  font-size: 10px;
  letter-spacing: 1.3px;
  padding-right: 12px;
}

.simstrip button {
  text-decoration: underline;
}

.scenario-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.scenario-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.scenario-title .disc {
  background: #edf5f8;
  color: var(--blue);
  padding: 10px;
  border-radius: 50%;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 1.5px;
  font-weight: bold;
  color: var(--muted);
  text-transform: uppercase;
}

.scenario-title h1 {
  font-size: 18px;
  color: #193e52;
  margin: 3px 0;
}

.scenario-title p {
  font-size: 12px;
  margin: 0;
  color: #78909c;
}

.clock-wrap {
  display: flex;
  gap: 18px;
  align-items: center;
}

.clock {
  font-size: 25px;
  font-weight: bold;
  color: #173c50;
  font-variant-numeric: tabular-nums;
}

.clock small {
  font-size: 11px;
  display: block;
  font-weight: normal;
  color: var(--muted);
}

.btn {
  background: #3985a7;
  color: white;
  padding: 11px 16px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
}

.btn.primary {
  background: var(--blue);
}

.btn.pink {
  background: var(--pink);
}

.btn.secondary {
  background: #eaf1f4;
  color: var(--blue);
}

.btn.outline {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.small {
  font-size: 12px;
  padding: 8px 11px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  background: white;
  border-bottom: 1px solid var(--line);
  padding: 12px 22px;
  gap: 15px;
}

.metric {
  border-right: 1px solid var(--line);
  padding: 0 15px;
}

.metric:first-child {
  padding-left: 0;
}

.metric:last-child {
  border: 0;
}

.metric .num {
  font-size: 24px;
  line-height: 1.4;
  color: #173d51;
  font-weight: 600;
}

.metric label {
  display: block;
  font-size: 11px;
  color: #738993;
}

.metric .num.warn {
  color: #bd6b0f;
}

.metric .num.good {
  color: #27724a;
}

.main-shell {
  display: flex;
  min-height: 530px;
  position: relative;
}

.leftnav {
  width: 60px;
  flex-shrink: 0;
  background: white;
  border-right: 1px solid var(--line);
}

.leftnav button {
  height: 67px;
  width: 59px;
  border-bottom: 1px solid #edf0f1;
  color: #8497a0;
  position: relative;
}

.leftnav button.active {
  color: var(--pink);
  background: #f8f8fa;
  border-left: 3px solid var(--pink);
}

.leftnav button:hover {
  background: #f1f5f7;
}

.leftnav .badge {
  position: absolute;
  right: 7px;
  top: 8px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 8px;
}

.work {
  min-width: 0;
  flex: 1;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  min-height: 63px;
}

.toolbar input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 175px;
  background: #fbfcfd;
}

.toolbar .right {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.capacity {
  font-size: 12px;
  font-weight: bold;
  background: #fff0cf;
  border: 1px solid #dba52c;
  padding: 10px 13px;
  border-radius: 4px;
  color: #84601d;
}

.capacity.green {
  background: #e9f6ed;
  border-color: #97c4a4;
  color: #28704c;
}

.date-label {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 7px;
}

.content {
  display: flex;
  min-height: 480px;
}

.view-content {
  flex: 1;
  min-width: 0;
}

.timeline-scroll {
  overflow: auto;
  max-height: 600px;
  position: relative;
  padding-bottom: 10px;
}

.timeline {
  width: calc(var(--staff) + 5 * var(--hour));
  min-width: 100%;
  position: relative;
}

.ruler {
  height: 48px;
  display: flex;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #f5f7f8;
  border-bottom: 1px solid var(--line);
}

.ruler-label {
  width: var(--staff);
  position: sticky;
  left: 0;
  flex-shrink: 0;
  z-index: 6;
  background: #f5f7f8;
  border-right: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
}

.ruler-label button {
  font-size: 11px;
  background: #899fa9;
  color: #fff;
  border-radius: 3px;
  padding: 7px;
}

.hours {
  display: flex;
  flex: 1;
}

.hour {
  width: var(--hour);
  flex-shrink: 0;
  padding: 13px 5px;
  font-weight: bold;
  font-size: 12px;
  position: relative;
}

.hour:after {
  content: '15     30     45';
  white-space: pre;
  font-weight: normal;
  font-size: 9px;
  color: #98a8af;
  position: absolute;
  left: 38px;
  top: 17px;
}

.staff-row {
  height: var(--row);
  display: flex;
  border-bottom: 1px solid var(--line);
}

.staff-card {
  position: sticky;
  left: 0;
  width: var(--staff);
  flex-shrink: 0;
  z-index: 4;
  background: #f8f9fa;
  border-right: 1px solid var(--line);
  padding: 14px 14px 10px;
}

.staff-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 35px;
  height: 35px;
  border: 1px solid #5bb76b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: bold;
  position: relative;
  font-size: 12px;
}

.avatar:after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #30b04b;
  border: 2px solid white;
}

.sick .avatar {
  border-color: #d2a447;
}

.sick .avatar:after {
  background: #d2a447;
}

.staff-name {
  font-size: 13px;
  font-weight: bold;
  color: #4d6774;
}

.staff-role {
  font-size: 10px;
  color: #8c9fa8;
  margin-top: 3px;
}

.staff-chips {
  display: flex;
  gap: 5px;
  margin-top: 10px;
  font-size: 10px;
  align-items: center;
}

.staff-chips span {
  border: 1px solid #d8e0e4;
  border-radius: 3px;
  padding: 5px 7px;
  background: white;
}

.staff-chips .ill {
  color: #aa701b;
}

.lane {
  flex: 1;
  position: relative;
  background-color: #fff;
  background-image: repeating-linear-gradient(to right,transparent 0,transparent calc(var(--hour)/4 - 1px),#edf0f2 calc(var(--hour)/4 - 1px),#edf0f2 calc(var(--hour)/4));
  min-width: calc(5 * var(--hour));
}

.sick .lane {
  background-color: #fbf4e5;
}

.offshift {
  position: absolute;
  inset: 0 auto 0 0;
  background: #e8edefb0;
  pointer-events: none;
}

.break-tile {
  position: absolute;
  top: 6px;
  bottom: 6px;
  background: #eee9f4;
  border: 1px solid #d2c6df;
  border-radius: 4px;
  padding: 9px 5px;
  font-size: 10px;
  overflow: hidden;
  color: #77658b;
}

.job {
  position: absolute;
  top: 7px;
  height: calc(var(--row) - 14px);
  border: 1px solid #b4c2c9;
  background: #fafcfd;
  border-radius: 4px;
  overflow: hidden;
  text-align: left;
  padding: 8px 7px 23px;
  font-size: 11px;
  color: #374f5b;
  box-shadow: 0 1px 2px #183c5010;
}

.job.urgent {
  background: #fff1d8;
  border-color: #d6b66e;
}

.job.mobility {
  background: #eaf2f6;
  border-color: #afc9d5;
}

.job:hover {
  box-shadow: 0 0 0 2px #07537844;
}

.job strong {
  display: block;
  font-size: 11px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.job .sub {
  display: block;
  font-size: 10px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
}

.status-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: #92999d;
  color: white;
  font-size: 8px;
  text-transform: uppercase;
  text-align: right;
  padding: 4px 5px;
  letter-spacing: .3px;
}

.status-strip.completed {
  background: #2f8855;
}

.status-strip.arrived {
  background: var(--pink);
}

.status-strip.current {
  background: #328bc0;
}

.travel {
  position: absolute;
  top: 7px;
  bottom: 7px;
  border: 1px solid #a4c8de;
  background: #e7f1f8;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7aacc9;
  overflow: hidden;
}

.travel .icon {
  width: 15px;
}

.now-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--staff) + var(--now) * var(--hour)/60);
  width: 0;
  border-left: 2px dashed var(--pink);
  pointer-events: none;
  z-index: 3;
}

.now-line span {
  position: sticky;
  top: 25px;
  font-size: 10px;
  color: var(--pink);
  background: white;
  padding: 2px 4px;
}

.panel {
  width: 270px;
  flex-shrink: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  max-height: 648px;
  overflow-y: auto;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 15px;
  border-bottom: 1px solid var(--line);
  font-weight: bold;
  color: var(--blue);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.panel-head small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  font-weight: normal;
  margin-top: 4px;
}

.panel-body {
  padding: 13px;
}

.queue-card {
  border: 1px solid #ded2ad;
  background: #fff6e3;
  border-radius: 4px;
  margin-bottom: 10px;
  padding: 12px;
  text-align: left;
  width: 100%;
  display: block;
  color: #4b5d64;
}

.queue-card strong {
  display: block;
  font-size: 12px;
}

.queue-card small {
  display: block;
  font-size: 11px;
  margin: 6px 0;
  color: #84939c;
}

.queue-card .due {
  font-size: 10px;
  font-weight: bold;
  color: #976820;
}

.queue-card .due.late {
  color: #b43c42;
}

.queue-card:hover {
  border-color: #b9933e;
  background: #fff0cd;
}

.panel-foot {
  padding: 12px;
  font-size: 11px;
  color: #8699a2;
  line-height: 1.6;
  background: #f7f9fa;
}

.rightnav {
  width: 45px;
  background: #fff;
  border-left: 1px solid var(--line);
  flex-shrink: 0;
}

.rightnav button {
  width: 44px;
  height: 56px;
  color: #8296a0;
  border-bottom: 1px solid #edf0f1;
}

.rightnav button.active {
  color: var(--pink);
  background: #fff1f7;
}

.event {
  border-left: 2px solid #c7dbe4;
  margin: 0 0 15px;
  padding-left: 11px;
}

.event time {
  font-size: 10px;
  color: #8e9fa7;
}

.event strong {
  display: block;
  font-size: 12px;
  margin: 5px 0;
  color: #355467;
}

.event p {
  font-size: 11px;
  line-height: 1.55;
  margin: 0;
}

.bottom {
  padding: 11px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  border-top: 1px solid var(--line);
  background: #fff;
  color: #8599a3;
}

.bottom strong {
  color: #526e7b;
}

.tabular {
  overflow: auto;
  padding: 20px;
  max-height: 600px;
}

.section-title {
  font-size: 21px;
  color: #164967;
  margin: 0 0 8px;
}

.helper {
  font-size: 12px;
  color: #7e929c;
  line-height: 1.6;
  margin: 0 0 20px;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  text-align: left;
  background: #fff;
}

th {
  background: #f2f5f7;
  font-size: 11px;
  color: #708993;
  font-weight: bold;
  padding: 13px 11px;
  border-bottom: 2px solid #dce4e8;
  white-space: nowrap;
}

td {
  padding: 14px 11px;
  border-bottom: 1px solid #e4e9eb;
}

tr.clickable {
  cursor: pointer;
}

tr.clickable:hover {
  background: #f1f7fa;
}

.tag {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 4px 6px;
  border-radius: 3px;
  background: #e9eef1;
  color: #6b828d;
  white-space: nowrap;
}

.tag.completed {
  background: #e6f4ea;
  color: #27784b;
}

.tag.arrived {
  background: #fce5f0;
  color: #ba1761;
}

.tag.escalated {
  background: #f5e9e9;
  color: #9b4545;
}

.tag.unassigned {
  background: #fff0d5;
  color: #a77620;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 14px;
  padding: 22px;
}

.info-card {
  border: 1px solid var(--line);
  background: white;
  border-radius: 5px;
  padding: 20px;
}

.info-card h3 {
  color: #254f63;
  font-size: 15px;
  margin: 0 0 8px;
}

.info-card p {
  font-size: 12px;
  line-height: 1.6;
  color: #78909b;
}

.info-card .big {
  font-size: 35px;
  color: var(--blue);
  margin-top: 15px;
}

.capacity-scale {
  display: flex;
  margin-top: 16px;
  gap: 4px;
}

.capacity-scale i {
  height: 10px;
  flex: 1;
  background: #e3e9ec;
}

.capacity-scale i.on {
  background: #75b592;
}

.map-wrap {
  padding: 22px;
}

.schematic {
  background: #eff4f1;
  border: 1px solid #d5e1dd;
  position: relative;
  height: 400px;
  border-radius: 5px;
  overflow: hidden;
}

.schematic:before {
  content: '';
  position: absolute;
  left: 45%;
  top: -10%;
  width: 11%;
  height: 120%;
  background: #d1e8ed;
  transform: rotate(14deg);
}

.map-road {
  position: absolute;
  background: white;
  box-shadow: 0 0 0 1px #e1e8e4;
}

.map-road.h {
  left: 0;
  right: 0;
  height: 16px;
  top: 49%;
}

.map-road.v {
  top: 0;
  bottom: 0;
  width: 15px;
  left: 28%;
  transform: rotate(-18deg);
}

.map-zone {
  position: absolute;
  font-size: 12px;
  color: #8da298;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.pin {
  position: absolute;
  transform: translate(-50%,-50%);
  border-radius: 25px;
  background: #fff;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-size: 10px;
  padding: 7px 10px;
  box-shadow: 0 2px 8px #223b4920;
  max-width: 130px;
}

.pin.unassigned {
  border-color: #d5a338;
  background: #fff5df;
}

.pin.arrived {
  border-color: var(--pink);
}

.pin.completed {
  border-color: #39905e;
}

.map-key {
  display: flex;
  gap: 18px;
  margin: 14px 0;
  font-size: 11px;
}

.report-hero {
  background: linear-gradient(110deg,#075378,#414779);
  color: white;
  padding: 26px;
  border-radius: 5px;
  margin-bottom: 20px;
}

.report-hero h2 {
  margin: 0 0 10px;
  font-size: 23px;
}

.report-hero p {
  margin: 0;
  line-height: 1.7;
  font-size: 13px;
  color: #ffffffc4;
}

.bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  height: 170px;
  padding-top: 20px;
}

.chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  font-size: 10px;
  gap: 7px;
}

.chart-col i {
  width: 55%;
  min-width: 20px;
  background: #4c94b0;
  border-radius: 3px 3px 0 0;
}

.chart-col i.pink {
  background: #dc4e92;
}

.modal-shade {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: #17303f80;
  display: grid;
  place-items: center;
  padding: 24px;
  backdrop-filter: blur(3px);
}

.modal {
  background: #fff;
  border-radius: 7px;
  width: min(900px,95vw);
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 80px #14283840;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 2;
}

.modal-head h2 {
  margin: 0;
  font-size: 20px;
  color: #234d62;
}

.close {
  font-size: 25px;
  color: #8a9ca5;
  line-height: 1;
  padding: 4px 8px;
}

.modal-content {
  padding: 24px 26px;
}

.intro {
  width: min(760px,95vw);
}

.intro-hero {
  background: linear-gradient(120deg,#075378,#3d4278 65%,#ae287f);
  padding: 35px;
  color: #fff;
}

.intro-hero .eyebrow {
  color: #aed1e0;
}

.intro-hero h2 {
  font-size: 35px;
  line-height: 1.15;
  margin: 14px 0;
}

.intro-hero p {
  max-width: 570px;
  line-height: 1.7;
  color: #dae7ef;
  margin: 0;
  font-size: 14px;
}

.intro-steps {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin: 4px 0 25px;
}

.intro-steps span {
  display: block;
  color: var(--pink);
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
}

.intro-steps strong {
  font-size: 13px;
  color: #244f64;
}

.intro-steps p {
  font-size: 12px;
  line-height: 1.6;
  color: #7d939e;
}

.mode-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mode-choice {
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 16px;
  text-align: left;
}

.mode-choice.active {
  border: 2px solid var(--blue);
  background: #f0f7fa;
  padding: 15px;
}

.mode-choice strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--blue);
}

.mode-choice p {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
}

.intro-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  gap: 20px;
}

.intro-actions small {
  font-size: 10px;
  color: #8499a4;
  line-height: 1.5;
  max-width: 360px;
}

.detail-section {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.detail-section h3 {
  margin: 0;
  padding: 12px 16px;
  background: var(--pink);
  color: #fff;
  font-size: 14px;
}

.detail-fields {
  padding: 16px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}

.detail-fields label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .7px;
  color: #8b9ea7;
  display: block;
  margin-bottom: 6px;
}

.detail-fields p {
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
}

.detail-fields .wide {
  grid-column: 1/-1;
}

.assignment {
  padding: 20px;
  background: #f2f7f9;
  border: 1px solid #c8dce6;
  border-radius: 4px;
}

.assignment h3 {
  font-size: 15px;
  margin: 0 0 7px;
  color: var(--blue);
}

.form-grid {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  align-items: end;
  flex-wrap: wrap;
}

.form-grid label {
  font-size: 11px;
  display: block;
  margin-bottom: 7px;
  color: #647f8c;
}

.form-grid select,.form-grid input,.filter-select {
  padding: 10px;
  border: 1px solid #cedbe2;
  background: white;
  border-radius: 3px;
  max-width: 240px;
  width: 100%;
}

.form-grid>div {
  flex: 1;
  min-width: 150px;
}

.validation {
  font-size: 12px;
  line-height: 1.6;
  padding: 10px 13px;
  background: #fff5dd;
  color: #8a682b;
  margin: 12px 0;
  border-radius: 3px;
}

.validation.error {
  background: #fbe9ea;
  color: #ac4148;
}

.validation.ok {
  background: #e7f5ed;
  color: #33734e;
}

.suggestion {
  border: 1px solid #b7d2df;
  border-radius: 4px;
  background: white;
  padding: 13px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.suggestion strong {
  font-size: 13px;
  color: #25546a;
  display: block;
}

.suggestion small {
  font-size: 11px;
  line-height: 1.7;
  color: #718c99;
}

.detail-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 15px;
}

.note {
  font-size: 11px;
  line-height: 1.7;
  color: #7b919b;
}

.empty {
  text-align: center;
  padding: 40px 20px;
  font-size: 12px;
  color: #89a0aa;
}

.empty .icon {
  width: 35px;
  height: 35px;
  margin-bottom: 12px;
}

.log-summary {
  border: 1px solid var(--line);
  padding: 16px;
  margin-top: 14px;
  background: #fff;
  border-radius: 4px;
}

.log-summary h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  margin: 14px 0;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
}

.footer-controls {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 24px;
}

#toast {
  position: fixed;
  bottom: 66px;
  left: 50%;
  transform: translate(-50%,25px);
  padding: 13px 20px;
  background: #194b64;
  color: #fff;
  border-radius: 5px;
  box-shadow: 0 5px 25px #0002;
  z-index: 60;
  opacity: 0;
  transition: .2s;
  pointer-events: none;
  max-width: 90vw;
  font-size: 12px;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%,0);
}

.detail-drawer {
  background: #fff;
  border-top: 3px solid var(--pink);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.mobile-hint {
  display: none;
}

.event-alert {
  padding: 12px 22px;
  background: #ecf5fa;
  border-bottom: 1px solid #cce0eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.event-alert strong {
  color: var(--blue);
}

.progress-track {
  height: 3px;
  background: #e8eef1;
}

.progress-track span {
  height: 3px;
  display: block;
  background: var(--pink);
}

@media(min-width:1550px) {
  :root {
    --staff: 300px;
    --hour: 190px;
    --row: 124px;
  }
  .panel {
    width: 310px;
  }
  .top {
    height: 100px;
  }
}

@media(max-width:1150px) {
  .topnav {
    gap: 0;
  }
  .topnav button {
    font-size: 12px;
    padding: 0 10px;
  }
  .brand-caption {
    display: none;
  }
  .panel {
    width: 235px;
  }
  .toolbar input {
    width: 125px;
  }
  .date-label {
    display: none;
  }
  .cards-grid {
    grid-template-columns: 1fr 1fr;
  }
  .clock-wrap {
    gap: 10px;
  }
  .scenario-bar {
    padding: 12px 16px;
  }
}

@media(max-width:780px) {
  .top {
    height: 70px;
    padding: 0 12px;
  }
  .wordmark {
    font-size: 23px;
    min-width: 80px;
  }
  .wordmark small {
    font-size: 24px;
  }
  .topnav button {
    padding: 0 8px;
    font-size: 11px;
    gap: 4px;
  }
  .topnav .icon {
    display: none;
  }
  .topnav .resources {
    display: none;
  }
  .simstrip {
    font-size: 10px;
    padding: 7px 12px;
  }
  .simstrip span:last-child {
    display: none;
  }
  .scenario-bar {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
  .scenario-title h1 {
    font-size: 17px;
  }
  .clock-wrap {
    width: 100%;
    justify-content: space-between;
  }
  .clock {
    font-size: 22px;
  }
  .metrics {
    padding: 9px 12px;
    gap: 5px;
  }
  .metric {
    padding: 0 7px;
  }
  .metric .num {
    font-size: 20px;
  }
  .metric label {
    font-size: 9px;
  }
  .leftnav {
    width: 43px;
  }
  .leftnav button {
    width: 42px;
    height: 53px;
  }
  .leftnav .icon {
    width: 19px;
  }
  .rightnav {
    width: 36px;
  }
  .rightnav button {
    width: 35px;
    height: 49px;
  }
  .toolbar {
    padding: 9px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .toolbar .right {
    margin-left: 0;
  }
  .toolbar input {
    width: 130px;
  }
  .toolbar .addvisit {
    display: none;
  }
  .toolbar .btn {
    font-size: 11px;
    padding: 8px 10px;
  }
  .panel {
    width: 220px;
    position: absolute;
    right: 36px;
    z-index: 10;
    box-shadow: -5px 0 20px #193c5020;
    max-height: 550px;
    height: 100%;
  }
  :root {
    --staff: 180px;
    --hour: 150px;
    --row: 105px;
  }
  .staff-card {
    padding: 12px 8px;
  }
  .staff-name {
    font-size: 11px;
  }
  .staff-role {
    font-size: 9px;
  }
  .avatar {
    width: 27px;
    height: 27px;
    font-size: 10px;
  }
  .staff-top {
    gap: 6px;
  }
  .staff-chips {
    gap: 3px;
    font-size: 8px;
  }
  .staff-chips span {
    padding: 4px;
  }
  .ruler-label button {
    font-size: 9px;
    padding: 6px;
  }
  .cards-grid {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .tabular {
    padding: 14px;
  }
  .intro-hero {
    padding: 26px;
  }
  .intro-hero h2 {
    font-size: 29px;
  }
  .intro-steps {
    gap: 12px;
  }
  .modal-shade {
    padding: 10px;
  }
  .modal-content {
    padding: 20px;
  }
  .detail-fields {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
  .modal-head {
    padding: 17px 20px;
  }
  .intro-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .bottom {
    font-size: 9px;
    padding: 10px;
  }
  .event-alert {
    padding: 10px 12px;
    font-size: 11px;
  }
  .map-wrap {
    padding: 12px;
  }
  .mobile-hint {
    display: block;
    font-size: 10px;
    padding: 8px 12px;
    color: #8498a2;
  }
  .mode-choices {
    grid-template-columns: 1fr;
  }
  .intro-steps p {
    font-size: 11px;
  }
  .intro-steps strong {
    font-size: 12px;
  }
  .suggestion {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Controller fidelity pass: measured against Demo v4.79.0 at 1512 CSS pixels. */
:root {
  --staff: 460px;
  --hour: 150px;
  --row: 140px;
  --blue: #00537c;
  --pink: #ed087b;
  --ink: #586e79;
  --muted: #8298a3;
  --line: #d5d9dc;
  --bg: #f7f8fa;
  --panel: 290px;
  --rail: 60px;
}

body {
  font-family: -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Arial,sans-serif;
  font-weight: 300;
  font-size: 14px;
  overflow: hidden;
  color: #586e79;
  background: #f8f9fb;
}

button,input,select {
  font-family: inherit;
  font-weight: 300;
}

.icon {
  width: 23px;
  height: 23px;
  stroke-width: 1.85;
}

.top {
  height: 80px;
  padding: 0 20px;
  background: linear-gradient(110deg,#03527f 0%,#3f437d 35%,#7e3483 64%,#ed087b 100%);
  align-items: flex-end;
}

.brand {
  padding: 0;
  margin-bottom: 9px;
  align-self: center;
}

.official-logo {
  width: 104px;
  height: 58px;
  object-fit: contain;
}

.topnav {
  gap: 18px;
  height: 41px;
  align-items: stretch;
}

.topnav button {
  font-size: 16px;
  font-weight: 300;
  gap: 10px;
  padding: 0 8px 8px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  color: #ffffffa8;
}

.topnav button.active {
  background: none;
  color: white;
  border-color: #fff;
}

.topnav button .icon {
  width: 21px;
  height: 21px;
}

.topnav b {
  font-weight: 600;
  margin-left: -7px;
}

.hcp-total {
  color: #ffffff72;
}

.green-dot {
  width: 9px;
  height: 9px;
  background: #2c974b;
  box-shadow: 0 0 3px #70ad7540;
}

.topnav .integration-tab {
  background: #aa153b75;
  padding: 10px 20px;
  border-radius: 4px 4px 0 0;
  height: 40px;
  align-self: end;
  color: #f5dae0;
  gap: 10px;
}

.simulation-banner {
  height: 52px;
  background: #fcf0dc;
  border: 1px solid #deb566;
  color: #8a621d;
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 0 20px;
  flex-shrink: 0;
}

.sim-description {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 0;
}

.sim-description>.icon {
  width: 23px;
  height: 23px;
  flex-shrink: 0;
}

.sim-description strong {
  font-weight: 600;
}

.sim-description small {
  display: block;
  font-size: 11px;
  line-height: 1.6;
  max-width: 800px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  color: #947848;
}

.sim-description button {
  text-decoration: underline;
  padding: 0;
}

.simulation-clock {
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 2px;
}

.simulation-clock strong {
  font-size: 21px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.simulation-clock span {
  font-size: 10px;
}

.simulation-banner>.btn {
  padding: 9px 13px;
  font-size: 12px;
  white-space: nowrap;
  background: #065780;
}

.main-shell {
  height: calc(100vh - 182px);
  min-height: 0;
  display: flex;
  position: relative;
  overflow: hidden;
}

.leftnav {
  width: 60px;
  background: #fff;
  border-right: 1px solid #d0d5d8;
}

.leftnav button {
  height: 60px;
  width: 59px;
  color: #8498a2;
  border-bottom: 1px solid #f1f2f3;
}

.leftnav button.active {
  background: #fafafa;
  border-left: 0;
  color: var(--pink);
}

.leftnav .icon {
  width: 25px;
  height: 25px;
}

.work {
  margin-right: var(--rail);
  min-width: 0;
  flex: 1;
}

.main-shell.panel-open .work {
  margin-right: calc(var(--rail) + var(--panel));
}

.toolbar {
  height: 60px;
  min-height: 60px;
  padding: 10px;
  gap: 8px;
  background: white;
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  overflow: hidden;
  border-bottom: 0;
}

.toolbar-start {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.btn {
  background: #3885a5;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  padding: 10px 12px;
  min-height: 40px;
  gap: 7px;
  white-space: nowrap;
}

.btn.primary {
  background: #00537c;
}

.btn.muted {
  background: #8199a2;
}

.btn .icon {
  width: 20px;
  height: 20px;
}

.btn.small {
  padding: 8px 11px;
  min-height: 34px;
  font-size: 12px;
}

.toolbar .btn {
  height: 40px;
  min-height: 40px;
  padding: 8px 10px;
  font-size: 14px;
  flex-shrink: 0;
}

.toolbar input {
  height: 42px;
  width: 150px;
  padding: 10px;
  background: #fafbfc;
  font-size: 14px;
  font-weight: 500;
  border-color: #e0e3e6;
  min-width: 55px;
}

.toolbar input::placeholder {
  color: #889aa4;
  opacity: 1;
}

.toolbar .right {
  gap: 9px;
  margin-left: auto;
  flex-shrink: 0;
}

.toolbar .day-arrow {
  width: 38px;
  padding: 7px;
}

.date-label {
  font-size: 12px;
  font-weight: 500;
  padding: 0 3px;
  color: #555;
  white-space: nowrap;
}

.capacity {
  height: 40px;
  min-width: 110px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  background: #fff1cf;
  border-color: #dba32d;
  font-weight: 600;
  color: #171717;
  padding: 8px 12px;
  font-size: 12px;
}

.capacity i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e2a62c;
  box-shadow: 0 0 0 3px #efcf7850;
}

.capacity.green {
  background: #e3f9e9;
  color: #141414;
  border-color: #5ba86b;
}

.capacity.green i {
  background: #1fbc63;
  box-shadow: 0 0 0 3px #b0d9b9;
}

.content {
  min-height: 0;
  height: calc(100% - 60px);
  display: flex;
  background: #f7f8fa;
  position: static;
}

.view-content {
  height: 100%;
  min-height: 0;
  flex: 1;
  min-width: 0;
}

.timeline-frame {
  padding: 20px;
  height: 100%;
}

.timeline-scroll {
  height: 100%;
  max-height: none;
  overflow: auto;
  padding: 0;
  border: 1px solid #dce0e3;
  background: #fff;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #b4c0c6 #f0f3f5;
}

.timeline {
  width: calc(var(--staff) + 24 * var(--hour));
  min-width: 0;
  height: auto;
}

.ruler {
  height: 40px;
  background: #f8f9fa;
  z-index: 8;
}

.ruler-label {
  width: var(--staff);
  padding: 5px 15px;
  gap: 14px;
  background: #f8f9fa;
  z-index: 10;
}

.ruler-label button {
  background: #829aa5;
  border-radius: 3px;
  padding: 8px 10px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  font-weight: 400;
}

.ruler-label .icon {
  width: 15px;
  height: 15px;
}

.hours {
  flex: none;
  width: calc(24 * var(--hour));
}

.hour {
  width: var(--hour);
  display: flex;
  align-items: center;
  padding: 0;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 300;
}

.hour:after {
  display: none;
}

.hour b {
  width: 37.5px;
  font-size: 13px;
  font-weight: 600;
  padding-left: 3px;
}

.hour>span {
  width: 37.5px;
  text-align: center;
  font-size: 10px;
  color: #8a9da6;
}

.staff-row {
  height: var(--row);
  border-bottom: 1px solid #ced4d7;
}

.staff-card {
  width: var(--staff);
  padding: 16px 15px 13px;
  background: #f8f9fa;
  border-right: 1px solid #d4dadd;
  z-index: 5;
  cursor: default;
}

.staff-top {
  gap: 14px;
  height: 45px;
  align-items: center;
}

.avatar {
  width: 40px;
  height: 40px;
  border-color: #4cba63;
  color: #8198a3;
  font-size: 15px;
  font-weight: 500;
  flex-shrink: 0;
}

.avatar:after {
  width: 13px;
  height: 13px;
  bottom: -3px;
  right: -2px;
  border-width: 1px;
}

.staff-name {
  display: flex;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  color: #5c7481;
  gap: 2px;
  white-space: nowrap;
}

.staff-user {
  font-size: 13px;
  color: #5c7481;
  margin: 2px 0 0 16px;
  font-weight: 300;
}

.pin-staff {
  padding: 0;
  line-height: 1;
  color: #5f7580;
}

.pin-staff .icon {
  width: 16px;
  height: 16px;
}

.pin-staff.is-pinned {
  color: #e70a78;
}

.expand-staff {
  background: #8299a3;
  border-radius: 3px;
  color: #fff;
  font-size: 22px;
  width: 20px;
  height: 20px;
  margin-left: auto;
  line-height: 16px;
  padding: 0;
  align-self: flex-start;
}

.staff-controls {
  display: grid;
  grid-template-columns: 1.18fr .82fr 1.26fr;
  gap: 10px;
  margin-top: 13px;
}

.staff-controls button {
  border: 1px solid #d3dade;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fbfcfd;
  padding: 7px 9px;
  height: 35px;
  font-size: 12px;
  white-space: nowrap;
}

.staff-controls button>span {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
}

.staff-controls button>.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: #3d85a3;
}

.staff-controls button>.icon:last-child:not(:first-child) {
  width: 14px;
  height: 14px;
  color: #627883;
}

.staff-controls .ill {
  color: #c3921f;
}

.staff-controls .ill .icon {
  color: #c3921f;
}

.lane {
  flex: none;
  width: calc(24 * var(--hour));
  min-width: calc(24 * var(--hour));
  background-image: repeating-linear-gradient(to right,transparent 0,transparent calc(var(--hour)/4 - 1px),#ecedef calc(var(--hour)/4 - 1px),#ecedef calc(var(--hour)/4));
  position: relative;
}

.offshift {
  z-index: 0;
  top: 0;
  bottom: 0;
  background: #e4e9ecc9;
  inset: auto;
  position: absolute;
  height: 100%;
}

.offshift.before {
  left: 0;
  top: 0;
}

.offshift.after {
  right: 0;
  top: 0;
}

.sick .lane {
  background-color: #f5ecd6;
}

.job,.break-tile,.travel {
  top: 4px;
  height: calc(var(--row) - 8px);
  bottom: auto;
  border-radius: 4px;
  z-index: 1;
  border-width: 1px;
  box-shadow: none;
}

.job {
  padding: 6px 6px 24px;
  font-size: 11px;
  cursor: grab;
  border-color: #9caab1;
  background: #f7f8f9;
}

.job strong {
  font-size: 11px;
  line-height: 1.3;
  font-weight: 500;
}

.job .sub {
  font-size: 10px;
  line-height: 1.35;
  margin-top: 3px;
  color: #222;
}

.job.urgent {
  background: #ffd18b;
  border-color: #bc9a65;
}

.job.followup {
  background: #f6c7df;
  border-color: #a69da3;
}

.job.mobility {
  background: #f8d3e7;
  border-color: #a69da3;
}

.job.double-up {
  background: repeating-linear-gradient(45deg,#ffc46e 0,#ffc46e 10px,#ffdfa5 10px,#ffdfa5 20px);
  border-color: #a99e8f;
}

.job.selected-job {
  outline: 2px solid #e40b77;
  outline-offset: 0;
}

.job-flags {
  position: absolute;
  bottom: 25px;
  left: 7px;
  display: flex;
  gap: 5px;
}

.job-flags .icon {
  width: 16px;
  height: 16px;
  color: #23292d;
}

.status-strip {
  padding: 3px 5px;
  font-size: 10px;
  line-height: 12px;
  background: #9e9e9e;
  letter-spacing: 0;
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-strip.arrived {
  background: #e50b78;
}

.status-strip.completed {
  background: #2d9954;
}

.status-strip.current {
  background: #3286bb;
}

.travel {
  background: #e7f0f6;
  border-color: #8bb2cc;
  color: #6395b4;
  overflow: hidden;
  pointer-events: none;
}

.travel .icon {
  width: 17px;
  height: 17px;
}

.break-tile {
  padding: 8px 5px;
  background: #d4cce5;
  border-color: #a399b6;
  color: #2b2635;
  line-height: 1.3;
  font-size: 10px;
  pointer-events: none;
}

.now-line {
  left: calc(var(--staff) + var(--now) * var(--hour)/60);
  z-index: 7;
  top: 40px;
  border-left-width: 2px;
}

.now-line>span {
  top: 0;
  transform: translateY(-25px);
  display: inline-block;
  padding: 0 2px;
  font-size: 10px;
  white-space: nowrap;
  background: #fff;
  color: #e50b78;
}

.collapsed {
  --row: 54px;
}

.collapsed .staff-controls,.collapsed .staff-user {
  display: none;
}

.collapsed .staff-card {
  padding: 7px 15px;
}

.collapsed .staff-top {
  height: 40px;
}

.collapsed .job .sub,.collapsed .job-flags {
  display: none;
}

.collapsed .job {
  padding-top: 3px;
}

.rightnav {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: var(--rail);
  border-left: 1px solid #d5dadc;
  background: white;
  z-index: 13;
}

.rightnav button {
  width: 59px;
  height: 60px;
  border-bottom: 1px solid #f2f3f4;
}

.rightnav .icon {
  width: 23px;
  height: 23px;
}

.rightnav button.active {
  color: #e40b78;
  background: #fafafa;
}

.panel {
  position: absolute;
  right: var(--rail);
  top: 0;
  bottom: 0;
  width: var(--panel);
  max-height: none;
  background: white;
  z-index: 12;
  border-left: 1px solid #d3dadd;
  overflow-y: auto;
}

.panel-head {
  height: 60px;
  font-size: 16px;
  font-weight: 400;
  color: #00517b;
  padding: 12px 20px;
  border: 0;
  position: sticky;
  top: 0;
  background: white;
  align-items: center;
}

.panel-head small {
  display: none;
}

.panel-head button {
  font-size: 25px;
  font-weight: 300;
  color: #8598a2;
}

.panel-body {
  padding: 10px 18px 18px;
}

.panel-foot {
  padding: 15px 18px;
  font-size: 11px;
  color: #8b9da5;
  background: #f8fafb;
  line-height: 1.5;
}

.queue-filters {
  margin: 0 5px 30px;
}

.queue-filters h3 {
  font-size: 16px;
  font-weight: 400;
  margin: 0 0 15px;
  color: #555;
}

.queue-filters input,.queue-filters select {
  width: 100%;
  height: 40px;
  border: 1px solid #a8b4ba;
  background: #fafbfc;
  margin-bottom: 10px;
  border-radius: 3px;
  padding: 9px;
  font-size: 14px;
  color: #8296a0;
}

.queue-filters p {
  text-align: right;
  margin: 1px 0;
  color: #555;
  font-size: 14px;
}

.queue-drop-label {
  text-align: center;
  font-size: 14px;
  color: #555;
  margin: 10px 0 20px;
  padding: 8px 0;
}

.queue-date {
  height: 35px;
  padding: 8px 18px;
  background: #3885a5;
  border-radius: 3px;
  color: white;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 10px;
}

.queue-date span {
  float: right;
  font-size: 18px;
  line-height: 15px;
}

.queue-card {
  background: #f6c7df;
  border: 1px solid #8d9aa2;
  border-radius: 3px;
  padding: 6px 7px;
  margin-bottom: 10px;
  cursor: grab;
  color: #26262b;
  min-height: 94px;
  position: relative;
  font-weight: 400;
}

.queue-card.urgent {
  background: #ffd18b;
}

.queue-card.double-up {
  background: repeating-linear-gradient(45deg,#ffc36b 0,#ffc36b 10px,#ffe0a7 10px,#ffe0a7 20px);
}

.queue-card strong {
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}

.queue-card .queue-postcode,.queue-card .queue-pathway {
  font-size: 10px;
  display: block;
  line-height: 1.4;
}

.queue-card small {
  font-size: 10px;
  margin: 4px 0;
  color: #5c5557;
}

.queue-card .due {
  font-size: 10px;
  color: #b62d26;
  line-height: 1.5;
  font-weight: 500;
}

.queue-card:hover {
  outline: 1px solid #6d818d;
  border-color: #6d818d;
  background: #ffd18b;
}

.queue-drop {
  min-height: calc(100% - 60px);
  transition: background .15s;
}

.queue-ready {
  background: #e8f7f0;
  outline: 2px dashed #4ca478;
  outline-offset: -6px;
}

.quick-admin {
  display: block;
  border: 1px solid #c6d7df;
  border-radius: 3px;
  background: #d8e9f1;
  margin-bottom: 12px;
  padding: 15px;
  width: 100%;
  text-align: left;
  font-size: 13px;
}

.quick-admin small {
  display: block;
  font-size: 11px;
  margin-top: 6px;
}

.bottom {
  height: 50px;
  min-height: 50px;
  padding: 7px 130px 7px 18px;
  background: #f0f1f4;
  border-top: 1px solid #cdd1d6;
  align-items: center;
  display: flex;
  justify-content: space-between;
  color: #555;
}

.bottom>span:last-child {
  display: flex;
  gap: 5px;
  align-items: center;
}

.simulation-footer {
  font-size: 10px;
  color: #7d9099;
}

.organisation {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #d2d6da;
  border-radius: 3px;
  font-size: 16px;
  color: #555;
  background: #f4f5f7;
  padding: 2px 8px;
  height: 30px;
}

.organisation .icon {
  width: 22px;
  height: 22px;
}

.version {
  font-size: 12px;
  color: #667b86;
  white-space: nowrap;
}

.help-bubbles {
  position: fixed;
  right: 10px;
  bottom: 18px;
  z-index: 20;
  display: flex;
  gap: 10px;
}

.help-bubbles button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: white;
  box-shadow: 0 1px 4px #0002;
}

.help-bubble {
  font-size: 32px;
  font-weight: bold;
  background: #dc257f;
}

.updates-bubble {
  position: relative;
  background: #2f99c4;
  display: grid;
  place-items: center;
}

.updates-bubble .icon {
  width: 27px;
  height: 27px;
}

.updates-bubble i {
  position: absolute;
  top: -2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  background: #f32732;
  border-radius: 10px;
  font-size: 10px;
  font-style: normal;
  font-weight: 500;
  padding: 2px 4px;
}

.tabular {
  height: 100%;
  max-height: none;
  overflow: auto;
  padding: 20px;
}

.section-title {
  font-size: 21px;
  font-weight: 400;
}

.helper {
  font-size: 13px;
}

.job-info {
  height: 245px;
  background: white;
  border-top: 1px solid #cdd4d8;
  position: absolute;
  bottom: 0;
  left: 60px;
  right: var(--rail);
  z-index: 11;
  overflow: hidden;
}

.panel-open .job-info {
  right: calc(var(--rail) + var(--panel));
}

.has-selection .content {
  height: calc(100% - 60px - 245px);
}

.job-info header {
  height: 65px;
  background: #ed087b;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
}

.job-info header strong {
  font-size: 16px;
  font-weight: 400;
}

.job-info header small {
  display: block;
  margin-top: 6px;
  font-size: 11px;
}

.job-info header>div:last-child {
  display: flex;
  align-items: center;
  gap: 16px;
}

.job-info header .tag {
  color: white;
  background: #ffffff20;
}

.close-info {
  font-size: 28px;
  padding: 0;
  color: white;
  font-weight: 300;
}

.job-info-body {
  padding: 15px 20px;
  height: 180px;
  overflow: auto;
}

.job-info-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 28px;
}

.job-info-fields label {
  font-size: 12px;
  color: #3f5866;
  font-weight: 500;
}

.job-info-fields p {
  font-size: 12px;
  line-height: 1.45;
  margin: 5px 0 11px;
  color: #5d717e;
}

.job-info-fields .btn {
  font-size: 12px;
  min-height: 34px;
  padding: 7px 10px;
}

.modal-shade {
  backdrop-filter: none;
  background: #0008;
}

.modal {
  border-radius: 4px;
  box-shadow: none;
}

.modal-head {
  font-weight: 400;
}

.modal-head h2 {
  font-size: 20px;
  font-weight: 400;
  color: #5b7280;
}

.detail-section h3 {
  font-size: 15px;
  font-weight: 400;
  background: #ed087b;
  padding: 14px 18px;
}

.detail-fields label {
  text-transform: none;
  letter-spacing: 0;
  color: #5c7482;
  font-size: 13px;
  font-weight: 600;
}

.detail-fields p {
  font-size: 14px;
  color: #526d7c;
}

.detail-fields {
  padding: 20px;
}

.close {
  font-weight: 300;
}

.assignment {
  background: #f7fafb;
}

.assignment h3 {
  font-weight: 400;
}

.drop-target {
  box-shadow: inset 0 0 0 2px #3187ac;
}

.drop-preview {
  position: absolute;
  top: 4px;
  height: calc(var(--row) - 8px);
  background: #e6f7f0e6;
  border: 2px dashed #2f9b70;
  border-radius: 4px;
  z-index: 6;
  pointer-events: none;
  padding: 8px 6px;
  overflow: hidden;
  color: #1b5e45;
}

.drop-preview.invalid {
  background: #ffe6e6e6;
  border-color: #d64a4a;
  color: #a32828;
}

.drop-preview strong,.drop-preview span,.drop-preview small {
  display: block;
  font-size: 11px;
  white-space: nowrap;
  margin-bottom: 5px;
}

.drag-ghost {
  position: fixed;
  z-index: 100;
  pointer-events: none;
  background: #fff2cf;
  border: 1px solid #ba9b61;
  box-shadow: 0 3px 12px #0003;
  padding: 10px 14px;
  font-size: 12px;
  border-radius: 3px;
  max-width: 220px;
}

.drop-feedback {
  position: fixed;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  z-index: 100;
  pointer-events: none;
  background: #245870;
  color: white;
  font-size: 12px;
  padding: 12px 18px;
  border-radius: 4px;
  max-width: min(650px,90vw);
  box-shadow: 0 3px 15px #0003;
}

.drop-feedback.valid {
  background: #286c50;
}

.drop-feedback.invalid {
  background: #a33b3b;
}

.drag-origin {
  opacity: .35;
}

.is-dragging,.is-dragging * {
  cursor: grabbing!important;
  user-select: none!important;
}

.job,.queue-card {
  touch-action: none;
}

.mobile-hint {
  display: none;
}

@media(max-width:1450px) {
  .topnav {
    gap: 10px;
  }
  .topnav button {
    font-size: 15px;
    gap: 8px;
  }
  .toolbar-start {
    gap: 8px;
  }
  .toolbar input {
    width: 130px;
  }
  .panel-open .toolbar input {
    width: 80px;
  }
  .panel-open .toolbar .btn {
    font-size: 12px;
    padding: 7px 8px;
  }
  .panel-open .toolbar-start {
    gap: 6px;
  }
  .panel-open .toolbar .right {
    gap: 5px;
  }
  .panel-open .date-label {
    font-size: 11px;
  }
  .panel-open .capacity {
    min-width: 95px;
    padding: 6px 8px;
  }
}

@media(max-width:1250px) {
  :root {
    --staff: 400px;
  }
  .topnav {
    gap: 7px;
  }
  .topnav button {
    font-size: 14px;
    padding: 0 5px 8px;
  }
  .topnav .integration-tab {
    padding: 8px 10px;
  }
  .toolbar-start input {
    width: 100px;
  }
  .toolbar .right {
    gap: 5px;
  }
  .toolbar .btn {
    padding: 8px;
    font-size: 12px;
  }
  .panel-open .toolbar .date-label,.panel-open .toolbar .day-arrow {
    display: none;
  }
  .panel-open .toolbar input {
    width: 70px;
  }
  .ruler-label {
    gap: 8px;
    padding: 5px 12px;
  }
  .ruler-label button {
    font-size: 11px;
  }
  .staff-controls {
    grid-template-columns: 1fr .8fr 1.3fr;
  }
  .staff-controls button {
    padding: 7px;
  }
  .staff-controls button span {
    font-size: 11px;
  }
}

@media(max-width:1000px) {
  .topnav .integration-tab {
    display: none;
  }
  .topnav button {
    font-size: 13px;
  }
  .topnav {
    gap: 6px;
  }
  .toolbar .date-label,.toolbar .day-arrow {
    display: none;
  }
  .toolbar-start {
    gap: 6px;
  }
  .toolbar input {
    width: 80px;
  }
  .toolbar .right>.btn:first-of-type {
    font-size: 0;
    gap: 0;
  }
  .toolbar .right>.btn:first-of-type .icon {
    font-size: initial;
  }
  .main-shell.panel-open .work {
    margin-right: var(--rail);
  }
  .panel {
    box-shadow: -3px 0 15px #1d40581a;
  }
  .panel-open .job-info {
    right: var(--rail);
  }
  .simulation-banner {
    padding: 0 15px;
    gap: 12px;
  }
  .simulation-banner .sim-description small {
    max-width: 380px;
  }
}

@media(max-width:780px) {
  :root {
    --staff: 260px;
    --row: 122px;
    --panel: 270px;
    --rail: 42px;
  }
  .top {
    height: 72px;
    padding: 0 12px;
    align-items: center;
  }
  .brand {
    margin: 0;
  }
  .official-logo {
    width: 83px;
    height: 47px;
  }
  .topnav {
    height: 40px;
    gap: 5px;
  }
  .topnav button {
    font-size: 12px;
    padding: 5px 4px 7px;
    gap: 4px;
  }
  .topnav button .icon {
    display: none;
  }
  .topnav button:last-child,.topnav button:nth-last-child(2) {
    display: none;
  }
  .simulation-banner {
    height: 68px;
    padding: 7px 12px;
    gap: 8px;
  }
  .sim-description>.icon {
    display: none;
  }
  .sim-description {
    font-size: 11px;
    line-height: 1.5;
  }
  .sim-description small {
    max-width: 180px;
    font-size: 9px;
  }
  .simulation-clock strong {
    font-size: 18px;
  }
  .simulation-clock span {
    font-size: 9px;
    white-space: nowrap;
  }
  .simulation-banner>.btn {
    font-size: 10px;
    padding: 8px;
    min-height: 35px;
  }
  .simulation-banner>.btn .icon {
    display: none;
  }
  .main-shell {
    height: calc(100vh - 180px);
  }
  .leftnav {
    width: 42px;
  }
  .leftnav button {
    height: 51px;
    width: 41px;
  }
  .leftnav .icon {
    width: 22px;
    height: 22px;
  }
  .work {
    margin-right: 42px;
  }
  .toolbar {
    height: 100px;
    min-height: 100px;
    flex-wrap: wrap;
    align-content: center;
    overflow: visible;
    padding: 8px;
  }
  .toolbar-start {
    width: 100%;
    gap: 6px;
  }
  .toolbar-start .btn {
    font-size: 11px;
    padding: 7px;
    min-height: 34px;
    height: 34px;
  }
  .toolbar-start .btn:first-child .icon {
    display: none;
  }
  .toolbar-start .btn:nth-child(3) {
    display: none;
  }
  .toolbar input {
    width: 70px;
    flex: 1;
    min-width: 0;
    font-size: 12px;
    height: 34px;
  }
  .toolbar .right {
    margin-left: 0;
    gap: 6px;
  }
  .toolbar .capacity {
    height: 32px;
    min-width: 95px;
    font-size: 11px;
  }
  .toolbar .btn {
    height: 32px;
    min-height: 32px;
  }
  .toolbar .right .btn {
    font-size: 11px;
    padding: 5px 8px;
  }
  .toolbar .right>.btn:first-of-type {
    font-size: 11px;
    gap: 5px;
  }
  .toolbar .right .btn .icon {
    height: 15px;
    width: 15px;
  }
  .content {
    height: calc(100% - 100px);
  }
  .timeline-frame {
    padding: 10px;
  }
  .ruler-label {
    padding: 5px 7px;
    gap: 5px;
  }
  .ruler-label button {
    font-size: 9px;
    padding: 7px 5px;
  }
  .ruler-label .icon {
    display: none;
  }
  .ruler-label button:last-child {
    display: none;
  }
  .staff-card {
    padding: 15px 10px;
  }
  .staff-top {
    gap: 8px;
  }
  .avatar {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }
  .staff-name {
    font-size: 13px;
  }
  .staff-user {
    font-size: 11px;
  }
  .staff-controls {
    grid-template-columns: .8fr 1.1fr;
    gap: 6px;
  }
  .staff-controls button:first-child {
    display: none;
  }
  .staff-controls button {
    font-size: 10px;
    height: 33px;
    padding: 6px;
    gap: 4px;
  }
  .staff-controls .icon {
    height: 15px;
    width: 15px;
  }
  .staff-controls button span {
    font-size: 10px;
  }
  .rightnav {
    width: 42px;
  }
  .rightnav button {
    height: 51px;
    width: 41px;
  }
  .panel-head {
    height: 55px;
    font-size: 16px;
  }
  .panel-body {
    padding: 10px 15px;
  }
  .panel {
    width: min(270px,calc(100vw - 84px));
  }
  .queue-filters h3 {
    font-size: 14px;
  }
  .queue-filters input,.queue-filters select {
    font-size: 12px;
    height: 35px;
  }
  .queue-card strong {
    font-size: 12px;
  }
  .queue-card .queue-postcode,.queue-card .queue-pathway,.queue-card small,.queue-card .due {
    font-size: 11px;
  }
  .bottom {
    height: 40px;
    min-height: 40px;
    padding: 5px 95px 5px 10px;
  }
  .organisation {
    font-size: 12px;
    height: 26px;
    padding: 3px 5px;
    gap: 4px;
  }
  .organisation .icon {
    height: 16px;
    width: 16px;
  }
  .version {
    display: none;
  }
  .simulation-footer {
    font-size: 8px;
  }
  .help-bubbles {
    bottom: 5px;
    right: 8px;
    gap: 6px;
  }
  .help-bubbles button {
    width: 34px;
    height: 34px;
  }
  .help-bubble {
    font-size: 24px;
  }
  .updates-bubble .icon {
    width: 21px;
    height: 21px;
  }
  .updates-bubble i {
    font-size: 8px;
    min-width: 13px;
    height: 13px;
    padding: 1px 3px;
  }
  .job-info {
    left: 42px;
    right: 42px;
    height: 240px;
  }
  .job-info header {
    height: 65px;
    padding: 10px;
  }
  .job-info header strong {
    font-size: 13px;
  }
  .job-info header small {
    font-size: 10px;
  }
  .job-info header .btn {
    font-size: 11px;
    min-height: 32px;
    padding: 7px;
  }
  .job-info header>div:last-child {
    gap: 6px;
  }
  .job-info-body {
    padding: 12px;
    height: 175px;
  }
  .job-info-fields {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .job-info-fields>div:first-child {
    display: none;
  }
  .has-selection .content {
    height: calc(100% - 100px - 240px);
  }
  .job-info-fields label,.job-info-fields p {
    font-size: 11px;
  }
  .tabular {
    padding: 15px;
  }
  .detail-fields {
    grid-template-columns: 1fr 1fr;
  }
  .detail-fields p {
    font-size: 12px;
  }
  .detail-fields label {
    font-size: 11px;
  }
  .modal-head h2 {
    font-size: 18px;
  }
  .detail-section h3 {
    font-size: 14px;
  }
  .form-grid select,.form-grid input {
    max-width: none;
  }
  .modal-content {
    padding: 16px;
  }
  .drop-feedback {
    bottom: 48px;
    font-size: 11px;
  }
  .staff-identity {
    min-width: 0;
  }
  .staff-name {
    overflow: hidden;
  }
  .staff-user {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* Final reference alignment */
.job {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
}

.now-line {
  top: 0;
  z-index: 9;
}

.now-line>span {
  top: 4px;
  transform: none;
  background: #fff;
}

/* Live service controls retain the controller banner footprint. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.simulation-clock strong {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 22px;
}

.simulation-clock {
  min-width: 102px;
}

.live-controls {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 6px;
  align-items: center;
  flex-shrink: 0;
}

.live-controls .btn {
  padding: 5px 12px;
  min-height: 28px;
  font-size: 12px;
  background: #075378;
  min-width: 62px;
  justify-content: center;
}

.live-controls select {
  height: 28px;
  padding: 3px 5px;
  border: 1px solid #c5b685;
  border-radius: 3px;
  background: #fff9ea;
  font-size: 11px;
  color: #6f5724;
  max-width: 145px;
}

.live-controls small {
  grid-column: 1/-1;
  text-align: center;
  font-size: 9px;
  line-height: 12px;
  white-space: nowrap;
}

.live-controls .is-live:before {
  content: '●';
  color: #2c9957;
  margin-right: 5px;
}

.simulation-banner .sim-description {
  min-width: 0;
}

.sim-description>span {
  min-width: 0;
}

.simulation-banner .sim-description small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 46vw;
}

.now-line>span {
  font-variant-numeric: tabular-nums;
  min-width: 56px;
}

.new-badge {
  font-size: 9px;
  font-style: normal;
  background: #075378;
  color: #fff;
  padding: 2px 4px;
  border-radius: 2px;
  margin-left: 4px;
}

.queue-card.new-arrival {
  box-shadow: inset 4px 0 #ed087b;
  animation: referral-in .5s ease-out;
}

@keyframes referral-in {
  from {
    transform: translateX(12px);
    opacity: .35;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@media(max-width:1250px) {
  .simulation-banner {
    gap: 9px;
  }
  .simulation-banner .sim-description {
    font-size: 12px;
  }
  .simulation-banner .sim-description small {
    max-width: 35vw;
    font-size: 10px;
  }
  .simulation-banner>.step-clock {
    padding: 8px;
    font-size: 11px;
  }
  .simulation-banner>.step-clock .icon {
    display: none;
  }
}

@media(max-width:780px) {
  .simulation-clock {
    min-width: 80px;
  }
  .simulation-clock strong {
    font-size: 16px;
  }
  .live-controls {
    gap: 2px;
  }
  .live-controls .btn {
    font-size: 10px;
    padding: 4px 7px;
    min-width: 42px;
  }
  .live-controls select {
    font-size: 10px;
    max-width: 90px;
  }
  .live-controls small {
    font-size: 8px;
  }
  .simulation-banner>.step-clock {
    display: none;
  }
  .simulation-banner .sim-description small {
    max-width: 22vw;
  }
}

@media(prefers-reduced-motion:reduce) {
  .queue-card.new-arrival {
    animation: none;
  }
}

.rightnav button {
  position: relative;
}

.queue-badge {
  position: absolute;
  top: 8px;
  right: 6px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 12px;
  background: #ed087b;
  color: white;
  border: 2px solid white;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 1px 3px #0002;
}

.competency-exception {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fff0cf;
  color: #795315;
  border: 1px solid #d4aa53;
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
  margin: 12px 0;
}

.competency-exception[hidden] {
  display: none;
}

.competency-exception input {
  margin-top: 3px;
  flex-shrink: 0;
}

.drop-preview.review {
  background: #fff0cfe6;
  border-color: #b87b19;
  color: #795315;
}

.drop-feedback.review {
  background: #946316;
}

.emergency-row .staff-card {
  background: #ffe3e3;
  box-shadow: inset 5px 0 #c52f3e;
}

.emergency-row .lane {
  background-color: #fff0f0;
  box-shadow: inset 0 2px #d74650,inset 0 -2px #d74650;
}

.emergency-row .avatar {
  border-color: #c52f3e;
  color: #a61e2e;
}

.emergency-review {
  color: #b51e31;
  font-size: 11px;
  font-weight: 700;
  padding: 0;
  text-align: left;
}

.simulation-banner.incident-banner {
  background: #ffe7e7;
  border-color: #d85764;
  color: #aa2132;
}

.incident-banner .sim-description small button {
  text-decoration: underline;
  color: #aa2132;
  font-weight: 700;
}

.job.overrun-job {
  border: 2px solid #c66a13;
  box-shadow: inset -5px 0 #ed9c33;
}

.overrun-flag {
  font-size: 8px;
  color: #8c470a;
  background: #ffe2ad;
  padding: 2px 3px;
  letter-spacing: .3px;
}

.job.overrun-job .status-strip {
  background: #a55b19;
  color: #fff;
}

.emergency-row .avatar:after {
  background: #c52f3e;
}

.emergency-row .staff-controls button:nth-child(2) {
  color: #a61e2e;
  border-color: #dba2a7;
  background: #fff1f1;
}

/* Reusable service sandbox editor */
.sandbox-launch-button {
  background: #075378;
  color: #fff;
  border-radius: 3px;
  padding: 7px 10px;
  margin-right: 10px;
  font-size: 12px;
  font-weight: 600;
}

.sandbox-modal {
  width: min(1140px,96vw);
  max-width: 1140px;
}

.sandbox-modal .modal-content {
  padding: 0 22px 22px;
}

.sandbox-intro {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0 12px;
}

.sandbox-intro strong {
  font-size: 19px;
  color: #075378;
  font-weight: 500;
}

.sandbox-intro p {
  font-size: 12px;
  line-height: 1.6;
  max-width: 720px;
  margin: 8px 0;
}

.sandbox-intro .tag {
  height: fit-content;
  white-space: nowrap;
}

.setup-library {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  padding: 14px;
  background: #edf4f7;
  border: 1px solid #d5e2e8;
  border-radius: 4px;
}

.setup-library label {
  min-width: 210px;
  flex: 1;
}

.setup-library select {
  width: 100%;
  margin-top: 5px;
}

.setup-section {
  border-bottom: 1px solid #d7e1e6;
  padding: 20px 0;
}

.setup-section>header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.setup-section h3 {
  font-size: 17px;
  font-weight: 500;
  color: #075378;
  margin: 0;
}

.setup-section h3 small {
  font-size: 12px;
  color: #748c99;
  margin-left: 10px;
}

.setup-section h4 {
  font-size: 14px;
  color: #075378;
  margin: 20px 0 4px;
}

.setup-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 13px 16px;
}

.setup-grid label,.setup-tools label,.setup-library label,.case-editor>article>label,.incident-editor label {
  font-size: 11px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #526f7e;
}

.sandbox-modal input:not([type=checkbox]),.sandbox-modal select,.sandbox-modal textarea {
  background: #fff;
  color: #375a6d;
  border: 1px solid #bfcfd7;
  border-radius: 3px;
  padding: 7px 9px;
  font: 12px -apple-system,BlinkMacSystemFont,Arial,sans-serif;
  min-width: 0;
  width: 100%;
}

.sandbox-modal input:not([type=checkbox]),.sandbox-modal select {
  height: 34px;
}

.sandbox-modal textarea {
  resize: vertical;
  min-height: 54px;
}

.sandbox-modal input[type=checkbox] {
  margin: 0 5px 0 0;
}

.sandbox-modal .btn.small {
  height: 34px;
  min-height: 34px;
  font-weight: 500;
  white-space: nowrap;
}

.setup-tools {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}

.setup-tools label {
  width: 110px;
}

.setup-table-scroll {
  overflow: auto;
  border: 1px solid #d5e0e6;
  border-radius: 3px;
}

.setup-table {
  min-width: 980px;
  width: 100%;
  border-collapse: collapse;
}

.setup-table th {
  background: #edf4f7;
  font-size: 10px;
  padding: 10px;
  text-align: left;
}

.setup-table td {
  padding: 9px;
  border-top: 1px solid #e0e7eb;
  vertical-align: top;
}

.setup-table td:first-child {
  width: 230px;
}

.setup-table td:nth-child(2) {
  width: 100px;
}

.setup-table td:nth-child(3),.setup-table td:nth-child(4) {
  width: 125px;
}

.setup-table td:nth-child(5) {
  width: 235px;
}

.setup-table td:last-child {
  width: 90px;
}

.setup-table td>input+input {
  margin-top: 6px;
}

.setup-table td label {
  font-size: 10px;
  display: block;
  margin-bottom: 4px;
}

.setup-table td label input:not([type=checkbox]) {
  margin-top: 2px;
}

.setup-table td:last-child label {
  display: flex;
  align-items: center;
  font-size: 11px;
}

.case-editor article {
  background: #f7fafb;
  border: 1px solid #dce6eb;
  border-radius: 4px;
  padding: 14px;
  margin: 12px 0;
}

.case-editor article>label {
  margin: 10px 0;
}

.case-editor article .btn {
  float: right;
}

.case-editor article:after {
  content: '';
  display: block;
  clear: both;
}

.incident-editor>div {
  display: grid;
  grid-template-columns: 1.4fr .7fr 1.5fr 1fr auto;
  gap: 12px;
  align-items: end;
  border: 1px solid #dde5e9;
  background: #fafcfd;
  padding: 12px;
  border-radius: 4px;
  margin-top: 10px;
}

.sandbox-summary {
  background: #eaf3f7;
  color: #075378;
  padding: 14px;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 18px;
  border-left: 4px solid #ed087b;
}

.setup-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
}

.setup-launch p {
  font-size: 11px;
  line-height: 1.6;
  max-width: 650px;
  margin: 0;
}

.setup-launch .btn {
  white-space: nowrap;
}

#sb-message:empty {
  display: none;
}

#sb-message {
  white-space: pre-line;
  margin-top: 14px;
}

.simulation-banner .sim-description>span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.organisation {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag.cancelled {
  background: #e8edf0;
  color: #5a6e79;
}

@media(max-width:800px) {
  .sandbox-modal .modal-content {
    padding: 0 14px 14px;
  }
  .setup-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .incident-editor>div {
    grid-template-columns: 1fr 1fr;
  }
  .sandbox-intro {
    display: block;
  }
  .sandbox-intro .tag {
    display: inline-block;
  }
  .setup-launch {
    align-items: stretch;
    flex-direction: column;
  }
  .setup-launch .btn {
    justify-content: center;
  }
  .sandbox-launch-button {
    font-size: 10px;
    padding: 5px 7px;
    margin-right: 5px;
  }
  .organisation {
    max-width: 160px;
  }
  .sandbox-modal .modal-head h2 {
    font-size: 18px;
  }
  .setup-library .btn {
    flex: 1;
  }
}

@media(max-width:480px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }
  .sandbox-intro strong {
    font-size: 17px;
  }
  .sandbox-launch-button {
    font-size: 9px;
  }
  .organisation {
    max-width: 100px;
  }
}

.setup-sections {
  position: sticky;
  top: -1px;
  z-index: 2;
  display: flex;
  gap: 6px;
  background: white;
  padding: 9px 0;
  border-bottom: 1px solid #dde6eb;
  margin-bottom: 12px;
}

.setup-sections button {
  background: #edf4f7;
  color: #075378;
  border-radius: 3px;
  font-size: 12px;
  padding: 8px 16px;
}

.setup-section {
  scroll-margin-top: 55px;
}

.setup-sections button:hover {
  background: #dceaf1;
}

.sandbox-modal {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.sandbox-modal>.modal-head {
  flex-shrink: 0;
  z-index: 4;
}

.sandbox-modal>.modal-content {
  overflow-y: auto;
  min-height: 0;
}

.sandbox-modal .setup-sections {
  top: 0;
}

/* Coordination is visible without presenting protected time as free capacity. */
.coordination-duty {
  position: absolute;
  top: 0;
  bottom: 0;
  background: repeating-linear-gradient(135deg,#e5eff680,#e5eff680 7px,#f5f8fa80 7px,#f5f8fa80 14px);
  pointer-events: none;
  border-top: 3px solid #52788f;
  overflow: hidden;
}

.coordination-duty>span {
  position: sticky;
  left: 5px;
  color: #3d6075;
  font-size: 11px;
  white-space: nowrap;
  padding: 3px 6px;
  display: inline-block;
}

.staff-controls button:first-child {
  overflow: hidden;
}

.staff-controls button:first-child span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
}

.setup-table {
  min-width: 1250px;
}

#coordinator-reason {
  width: 100%;
  min-height: 65px;
  margin: 8px 0 14px;
}

#coordinator-exception {
  padding: 10px;
  background: #edf3f7;
  margin-top: 12px;
}

/* ---------- Guided set-up ---------- */
.modal.guided {
  width: min(920px, 95vw);
}
#guided-setup {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: #33505f;
}
.gs-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.gs-steps button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font: 600 13px/1.2 inherit;
  cursor: pointer;
  text-align: left;
}
.gs-steps b {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #eef2f4;
  font-size: 12px;
}
.gs-steps .done button {
  color: var(--blue);
}
.gs-steps .done b {
  background: #d7ebe0;
  color: var(--green);
}
.gs-steps .now button {
  border-color: var(--blue);
  color: var(--blue);
  box-shadow: inset 0 -3px 0 var(--pink);
}
.gs-steps .now b {
  background: var(--blue);
  color: #fff;
}
.gs-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.gs-body h3 {
  margin: 4px 0 0;
  font-size: 22px;
  color: #0b2f45;
}
.gs-lead {
  margin: -6px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.gs-label {
  font-weight: 700;
  font-size: 13px;
  color: #0b2f45;
  margin-top: 4px;
}
.gs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  color: #0b2f45;
}
.gs-field input:not([type=range]),
.gs-field select {
  font: inherit;
  font-weight: 400;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #1f3a48;
}
.gs-field input[type=range] {
  accent-color: var(--pink);
}
.gs-field output {
  color: var(--pink);
  font-weight: 700;
}
.gs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-items: end;
}
.gs-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.gs-card,
.gs-pill {
  position: relative;
  cursor: pointer;
  border: 1px solid var(--line);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.gs-card {
  border-radius: 7px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gs-card strong {
  color: #0b2f45;
  font-size: 14px;
}
.gs-card span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.4;
}
.gs-card input,
.gs-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.gs-card:hover,
.gs-pill:hover {
  border-color: #9fb6c2;
}
.gs-card.on,
.gs-pill.on {
  border-color: var(--blue);
  box-shadow: 0 0 0 1px var(--blue), 0 6px 16px -10px rgba(0, 83, 124, .6);
  background: #f3f8fb;
}
.gs-card:focus-within,
.gs-pill:focus-within {
  outline: 2px solid var(--pink);
  outline-offset: 2px;
}
.gs-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.gs-pill {
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #33505f;
}
.gs-pill.on {
  color: var(--blue);
}
.gs-team {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.gs-role {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.gs-role.on {
  border-color: #9fc3d6;
  background: #f3f8fb;
}
.gs-role strong {
  display: block;
  font-size: 13.5px;
  color: #0b2f45;
}
.gs-role span {
  font-size: 12px;
  color: var(--muted);
}
.gs-stepper {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.gs-stepper button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.gs-stepper button:hover {
  border-color: var(--blue);
}
.gs-stepper output {
  min-width: 22px;
  text-align: center;
  font-weight: 700;
  color: #0b2f45;
}
.gs-total {
  margin: 0;
  font-size: 14px;
}
.gs-total b {
  color: var(--pink);
  font-size: 18px;
}
.gs-link {
  background: none;
  border: 0;
  padding: 0;
  margin-left: 8px;
  color: var(--blue);
  text-decoration: underline;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.gs-meter {
  padding: 12px 14px;
  border-radius: 7px;
  background: #eef4f7;
  font-size: 14px;
}
.gs-meter span {
  margin-left: 6px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.gs-meter.light span {
  background: #e4ecf0;
  color: #557080;
}
.gs-meter.ok span {
  background: #d7ebe0;
  color: var(--green);
}
.gs-meter.heavy span {
  background: #fde3ec;
  color: #b0105f;
}
.gs-summary {
  border-left: 4px solid var(--pink);
  background: #f7f9fa;
  border-radius: 0 7px 7px 0;
  padding: 14px 16px;
  font-size: 14px;
}
.gs-summary strong {
  color: #0b2f45;
}
.gs-summary ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.gs-warn {
  margin: 10px 0 0;
  color: #8a4b00;
  background: #fff4e0;
  border-radius: 5px;
  padding: 8px 10px;
}
.gs-error {
  color: #b3261e;
  font-weight: 600;
  font-size: 13.5px;
  min-height: 1em;
}
.gs-error:empty {
  display: none;
}
.gs-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.gs-nav .gs-link {
  margin: 0;
}
.gs-nav span {
  display: flex;
  gap: 8px;
}
.gs-small {
  margin: -6px 0 0;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .gs-steps {
    grid-template-columns: repeat(5, auto);
    overflow-x: auto;
  }
  .gs-steps button {
    white-space: nowrap;
  }
  .gs-row,
  .gs-team {
    grid-template-columns: 1fr;
  }
}
/* keep dialogs above the floating help bubbles */
.modal-shade {
  z-index: 200;
}
#toast {
  z-index: 210;
}
/* guided set-up: keep Back / Next visible however long the step is */
.modal.guided .gs-nav {
  position: sticky;
  bottom: 0;
  background: #fff;
  margin: 0 -2px;
  padding: 14px 2px 4px;
  z-index: 2;
}
/* ---------- Share links ---------- */
#share-dialog,
.link-welcome {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #33505f;
}
.share-summary {
  border-left: 4px solid var(--pink);
  background: #f7f9fa;
  border-radius: 0 7px 7px 0;
  padding: 12px 16px;
  font-size: 14px;
}
.share-summary strong {
  color: #0b2f45;
}
.share-summary ul,
.link-welcome ul {
  margin: 8px 0 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}
#share-dialog textarea {
  font: inherit;
  font-weight: 400;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  resize: vertical;
}
.share-link {
  display: flex;
  gap: 8px;
}
.share-link input {
  flex: 1;
  min-width: 0;
  font: 13px ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f5f8fa;
  color: #33505f;
}
.share-meta {
  margin: -6px 0 0;
  font-size: 13px;
  color: var(--green);
  min-height: 1em;
}
.link-welcome .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pink);
}
.link-welcome h3 {
  margin: 0;
  font-size: 24px;
  color: #0b2f45;
}
.link-welcome blockquote {
  margin: 0;
  padding: 12px 16px;
  border-left: 4px solid var(--blue);
  background: #f3f8fb;
  border-radius: 0 7px 7px 0;
  font-size: 15px;
  color: #1f3a48;
}
.gs-aside {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.gs-scenarios {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.gs-card small {
  font-size: 11.5px;
  color: #557080;
  margin-top: 2px;
}
.gs-level {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .03em;
  vertical-align: 1px;
}
.gs-level.gentle {
  background: #d7ebe0;
  color: var(--green);
}
.gs-level.moderate {
  background: #fff1d6;
  color: #8a5a00;
}
.gs-level.hard {
  background: #fde3ec;
  color: #b0105f;
}
/* ---------- End-of-run summary ---------- */
.run-summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #33505f;
}
.rs-hero {
  border-radius: 8px;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(110deg, #0b5d84, #7a2a8c 65%, #d2367f);
}
.rs-hero.good {
  background: linear-gradient(110deg, #0b5d84, #1f8a5b);
}
.rs-hero.hard {
  background: linear-gradient(110deg, #5b1f3a, #b0105f);
}
.rs-hero .eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .85;
}
.rs-hero h3 {
  margin: 6px 0 2px;
  font-size: 26px;
  color: #fff;
}
.rs-hero p {
  margin: 0;
  opacity: .9;
  font-size: 14px;
}
.rs-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.rs-stats div {
  background: #f5f8fa;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.rs-stats span {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--muted);
}
.rs-stats b {
  font-size: 28px;
  color: #0b2f45;
  line-height: 1.15;
}
.rs-stats small {
  font-size: 12px;
  color: var(--muted);
}
.run-summary h4 {
  margin: 4px 0 0;
  font-size: 14px;
  color: #0b2f45;
}
.rs-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 14px;
}
.rs-compare {
  border-collapse: collapse;
  font-size: 14px;
  width: 100%;
  max-width: 520px;
}
.rs-compare th,
.rs-compare td {
  text-align: left;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
}
.rs-compare th {
  font-size: 12px;
  color: var(--muted);
}
.rs-compare td.up {
  color: var(--green);
  font-weight: 700;
}
.rs-compare td.down {
  color: #b0105f;
  font-weight: 700;
}
.rs-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px solid #f3b6d2;
  background: #fff5fa;
  border-radius: 8px;
  padding: 14px 16px;
}
.rs-cta strong {
  color: #0b2f45;
}
.rs-cta p {
  margin: 4px 0 0;
  font-size: 13.5px;
  max-width: 52ch;
}
.rs-cta-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 760px) {
  .rs-stats {
    grid-template-columns: 1fr 1fr;
  }
}
/* ---------- Access gate ---------- */
.modal.gate {
  width: min(620px, 95vw);
}
.gate-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 22px 26px 24px;
}
.gate-form .full {
  grid-column: 1 / -1;
}
.gate-hp {
  position: absolute !important;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.gate-check {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  color: #33505f;
}
.gate-check input {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}
.gate-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.gate-form .gs-small a {
  color: var(--blue);
}
@media (max-width: 560px) {
  .gate-form {
    grid-template-columns: 1fr;
  }
}
/* ---------- Moving along the swim lanes ---------- */
.timeline-scroll {
  scrollbar-width: auto;
  scrollbar-color: #8fa3ad #eef2f4;
  cursor: grab;
}
.timeline-scroll.panning {
  cursor: grabbing;
  user-select: none;
}
.timeline-scroll [data-job],
.timeline-scroll button,
.timeline-scroll .staff-card {
  cursor: pointer;
}
.timeline-scroll::-webkit-scrollbar {
  height: 14px;
  width: 12px;
}
.timeline-scroll::-webkit-scrollbar-track {
  background: #eef2f4;
}
.timeline-scroll::-webkit-scrollbar-thumb {
  background: #9fb2bc;
  border-radius: 8px;
  border: 3px solid #eef2f4;
}
.timeline-scroll::-webkit-scrollbar-thumb:hover {
  background: #6f8793;
}
.tl-arrow {
  position: absolute;
  top: 50%;
  z-index: 15;
  width: 40px;
  height: 64px;
  margin-top: -32px;
  border: 1px solid #c9d3d8;
  background: rgba(255, 255, 255, .94);
  color: var(--blue);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 6px 18px -8px rgba(11, 47, 69, .45);
  transition: background .15s, transform .15s;
}
.tl-arrow:hover {
  background: #fff;
  transform: scale(1.06);
}
.tl-arrow:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 2px;
}
.tl-arrow.left {
  left: calc(var(--staff) + 6px);
  border-radius: 0 10px 10px 0;
}
.tl-arrow.right {
  right: 18px;
  border-radius: 10px 0 0 10px;
}
.tl-arrow[hidden] {
  display: none;
}
/* ---------- Reset ---------- */
.btn.reset-btn {
  background: #fff;
  color: #b0105f;
  border: 1px solid #f0b3cf;
  font-weight: 600;
}
.btn.reset-btn:hover {
  background: #fff3f8;
  border-color: #b0105f;
}
.reset-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.reset-option {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  color: #33505f;
}
button.reset-option {
  cursor: pointer;
}
button.reset-option:hover {
  border-color: var(--blue);
  background: #f3f8fb;
}
.reset-option strong {
  color: #0b2f45;
  font-size: 15px;
}
.reset-option span {
  font-size: 13.5px;
}
.reset-option.danger {
  border-color: #f3b6d2;
  background: #fff5fa;
}
.reset-option.danger .btn {
  align-self: flex-start;
  margin-top: 6px;
}
/* ---------- Meetings and events ---------- */
.admin-tile {
  position: absolute;
  top: 8px;
  bottom: 8px;
  z-index: 2;
  border-radius: 5px;
  padding: 6px 8px;
  overflow: hidden;
  cursor: pointer;
  font-size: 12px;
  line-height: 1.3;
  color: #2f3f6b;
  background: repeating-linear-gradient(135deg, #e8ecfb 0 8px, #dde3f7 8px 16px);
  border: 1px solid #a9b6e6;
  border-left: 4px solid #5368c4;
  box-sizing: border-box;
}
.admin-tile strong {
  display: block;
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-tile span {
  display: block;
  white-space: nowrap;
  opacity: .85;
}
.admin-tile:hover,
.admin-tile:focus-visible {
  border-color: #5368c4;
  box-shadow: 0 4px 12px -6px rgba(39, 56, 140, .6);
  outline: none;
}
.admin-tile.now {
  border-left-color: var(--pink);
}
.admin-tile.past {
  opacity: .55;
}
.admin-tile.admin-training,
.admin-tile.admin-supernumerary {
  background: repeating-linear-gradient(135deg, #e9f4ee 0 8px, #dcefe4 8px 16px);
  border-color: #9fcfb3;
  border-left-color: #2f8855;
  color: #1f4d33;
}
.admin-tile.admin-break {
  background: #eee9f4;
  border-color: #cdbfe0;
  border-left-color: #7b5ea7;
  color: #4a3768;
}
.admin-tile.admin-triage,
.admin-tile.admin-phone,
.admin-tile.admin-documentation {
  background: repeating-linear-gradient(135deg, #fdf3e3 0 8px, #f9e8cc 8px 16px);
  border-color: #e9c98f;
  border-left-color: #c98a1b;
  color: #6b4a10;
}
.qa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}
.qa-grid .quick-admin {
  width: 100%;
  cursor: pointer;
  text-align: left;
}
.qa-grid .quick-admin:disabled {
  opacity: .5;
  cursor: default;
}
.qa-item {
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-left: 4px solid #5368c4;
  border-radius: 6px;
  margin-top: 8px;
  background: #fff;
}
.qa-item.past {
  opacity: .6;
}
.qa-open {
  flex: 1;
  min-width: 0;
  text-align: left;
  background: none;
  border: 0;
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  color: #33505f;
}
.qa-open strong {
  display: block;
  font-size: 13px;
  color: #0b2f45;
}
.qa-open span {
  font-size: 12px;
}
.qa-remove {
  border: 0;
  background: none;
  font-size: 18px;
  color: #b0105f;
  cursor: pointer;
  padding: 4px 10px;
}
.admin-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.adm-staff {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.adm-staff small {
  color: var(--muted);
}
#adm-msg .btn {
  margin-left: 8px;
}
.adm-staff[hidden] {
  display: none;
}
/* ---------- Moving meetings and events ---------- */
.admin-tile:not(.now):not(.past) {
  cursor: grab;
  touch-action: none;
}
.admin-tile.event-dragging {
  opacity: .35;
}
.event-drop-preview {
  position: absolute;
  top: 6px;
  bottom: 6px;
  z-index: 6;
  border-radius: 5px;
  border: 2px dashed #2f8855;
  background: rgba(47, 136, 85, .12);
  padding: 5px 7px;
  font-size: 12px;
  color: #1f4d33;
  pointer-events: none;
  overflow: hidden;
  white-space: nowrap;
  box-sizing: border-box;
}
.event-drop-preview strong,
.event-drop-preview span {
  display: block;
}
.event-drop-preview.review {
  border-color: #c98a1b;
  background: rgba(201, 138, 27, .14);
  color: #6b4a10;
}
.event-drop-preview.invalid {
  border-color: #c0392b;
  background: rgba(192, 57, 43, .1);
  color: #8a2318;
}
.event-drop-feedback {
  position: fixed;
  z-index: 300;
  max-width: 320px;
  padding: 7px 10px;
  border-radius: 6px;
  background: #0b2f45;
  color: #fff;
  font-size: 12.5px;
  pointer-events: none;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5);
}
.event-drop-feedback.valid {
  background: #1f6b43;
}
.event-drop-feedback.review {
  background: #8a5a00;
}
.event-drop-feedback.invalid {
  background: #8a2318;
}
