:root {
  color-scheme: dark;
  --ink: #edf6f7;
  --muted: #9fb0b7;
  --quiet: #6d7d84;
  --line: #27343b;
  --panel: #111c22;
  --panel-2: #17252c;
  --panel-3: #22313a;
  --page: #061826;
  --accent: #42c9b5;
  --accent-2: #65a6ff;
  --green: #22c06f;
  --amber: #e2aa28;
  --red: #ee4b4b;
  --blue: #3a89ff;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
  --type-micro: 9.5px;
  --type-xs: 10.5px;
  --type-sm: 11.5px;
  --type-md: 12.5px;
  --type-body: 13px;
  --type-title: 15px;
  --type-large: 18px;
  --type-display: 24px;
  --weight-regular: 450;
  --weight-medium: 560;
  --weight-semibold: 650;
  --weight-bold: 720;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  min-height: 100vh;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

button:not(:disabled),
a[href],
[role="button"],
[data-action] {
  cursor: pointer;
}

input[data-action],
textarea[data-action] {
  cursor: text;
}

a {
  color: inherit;
  text-decoration: none;
}

.boot {
  padding: 32px;
  color: var(--muted);
}

.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 22% 12%, rgba(58, 137, 255, 0.12), transparent 34%),
    linear-gradient(135deg, #061826 0%, #071d2d 54%, #092236 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-card {
  width: min(420px, 100%);
  border: 1px solid rgba(73, 116, 146, 0.48);
  border-radius: 10px;
  background: rgba(8, 28, 43, 0.92);
  box-shadow: var(--shadow);
  padding: 26px;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.login-brand .brand-mark {
  width: 36px;
  height: 36px;
}

.login-brand strong {
  display: flex;
  gap: 2px;
  font-size: 18px;
  letter-spacing: 0.02em;
}

.login-brand strong span:first-child {
  color: #f5fbfd;
  font-weight: var(--weight-bold);
}

.login-brand strong span:last-child {
  color: #9eb4c2;
  font-weight: var(--weight-semibold);
}

.login-brand small,
.login-copy p,
.login-hint span {
  color: var(--muted);
}

.login-copy h1 {
  margin: 0 0 8px;
  font-size: 24px;
  letter-spacing: 0;
}

.login-copy p {
  margin: 0 0 22px;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 13px;
}

.login-form label {
  display: grid;
  gap: 7px;
  color: #c9d9df;
  font-size: var(--type-sm);
  font-weight: var(--weight-medium);
}

.login-form input {
  width: 100%;
  border: 1px solid rgba(83, 126, 154, 0.58);
  border-radius: 7px;
  background: #071827;
  color: var(--ink);
  outline: none;
  padding: 11px 12px;
}

.login-form input:focus {
  border-color: rgba(101, 166, 255, 0.82);
  box-shadow: 0 0 0 3px rgba(101, 166, 255, 0.12);
}

.login-error {
  border: 1px solid rgba(238, 75, 75, 0.32);
  border-radius: 7px;
  background: rgba(238, 75, 75, 0.1);
  color: #ffc7c7;
  padding: 9px 10px;
}

.login-primary {
  border: 1px solid rgba(66, 201, 181, 0.42);
  border-radius: 7px;
  background: linear-gradient(180deg, #2b8f9a, #167078);
  color: #ffffff;
  font-weight: var(--weight-semibold);
  padding: 11px 14px;
  margin-top: 4px;
}

.login-primary:hover {
  filter: brightness(1.08);
}

.login-hint {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(73, 116, 146, 0.34);
  font-size: var(--type-xs);
}

.login-hint code {
  color: #d7e8ef;
}

.desktop-frame {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  min-height: 100vh;
  background: #061826;
  transition: grid-template-columns 180ms ease;
}

.desktop-frame.sidebar-expanded {
  grid-template-columns: 82px minmax(0, 1fr);
}

.rail {
  border-right: 1px solid rgba(49, 86, 113, 0.58);
  background: #0a1d2d;
  padding: 14px 7px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: visible;
}

.rail-top {
  display: grid;
  grid-template-columns: 38px;
  align-items: center;
  justify-items: center;
  position: relative;
  min-height: 34px;
}

.rail-brand {
  display: none;
  color: #dbe9ef;
  min-width: 0;
}

.sidebar-expanded .rail-brand {
  display: grid;
  align-items: center;
}

.rail-brand strong {
  display: block;
  font-size: 12px;
  line-height: 1.05;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-brand strong span {
  display: block;
}

.rail-brand strong span:first-child {
  color: #f4fbfd;
  font-weight: 740;
}

.rail-brand strong span:last-child {
  color: #aab8c2;
  font-weight: 650;
}

.rail-sync i {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--green);
}

.sidebar-expanded .rail-top {
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 5px;
  min-height: 50px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
}

.brand-mark svg {
  width: 32px;
  height: 32px;
}

.brand-mark rect {
  fill: #102f45;
  stroke: #3b6682;
  stroke-width: 1.2;
}

.brand-mark path {
  fill: none;
  stroke: #e3f1f4;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-toggle {
  width: 18px;
  height: 18px;
  border: 1px solid #2d3a49;
  border-radius: 50%;
  background: #0c1b29;
  color: #8092a2;
  display: grid;
  place-items: center;
  padding: 0;
  cursor: pointer;
  position: absolute;
  right: -1px;
  top: 6px;
}

.sidebar-expanded .rail-toggle {
  position: absolute;
  right: -1px;
  top: 4px;
  justify-self: auto;
  align-self: auto;
}

.rail-toggle:hover {
  color: #e2f4f6;
  border-color: rgba(95, 165, 231, 0.52);
}

.rail-toggle svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.sidebar-expanded .rail-toggle svg {
  transform: rotate(180deg);
}

.rail-nav {
  display: grid;
  gap: 6px;
}

.rail-separator {
  width: 30px;
  height: 1px;
  background: #253246;
  margin: 3px auto;
}

.sidebar-expanded .rail-separator {
  width: calc(100% - 12px);
}

.rail a {
  position: relative;
  width: 40px;
  height: 36px;
  display: grid;
  place-items: center;
  grid-template-columns: 38px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #a7b7c2;
}

.sidebar-expanded .rail a {
  width: 100%;
  height: 60px;
  grid-template-columns: 1fr;
  grid-template-rows: 22px 16px;
  align-content: center;
  justify-items: center;
  padding: 5px 3px;
  row-gap: 5px;
}

.rail a.active,
.rail a:hover {
  color: #e3f4f6;
  border-color: rgba(96, 155, 210, 0.34);
  background: rgba(46, 104, 158, 0.28);
}

.rail a.active::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 999px;
  background: #5fa5e7;
}

.nav-icon {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-label {
  position: absolute;
  left: 45px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  background: #111a28;
  border: 1px solid #2d3a49;
  color: #ecf5f8;
  padding: 6px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 800;
  box-shadow: var(--shadow);
  z-index: 40;
}

.rail a:hover .nav-label {
  opacity: 1;
}

.sidebar-expanded .nav-label {
  position: static;
  transform: none;
  opacity: 1;
  pointer-events: auto;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.05;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-bottom {
  margin-top: auto;
  display: grid;
  gap: 8px;
  justify-items: center;
  border-top: 1px solid #202b38;
  padding-top: 12px;
}

.sidebar-expanded .rail-bottom {
  justify-items: stretch;
}

.rail-summary {
  display: none;
  padding: 8px 6px;
  border: 1px solid #172d3c;
  border-radius: 6px;
  background: rgba(9, 24, 36, 0.86);
}

.sidebar-expanded .rail-summary {
  display: none;
}

.rail-summary > span {
  color: #8fa4b0;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.rail-summary div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #9fb0bb;
  font-size: 10px;
}

.rail-summary b {
  color: #e9f6f8;
}

.rail-sync {
  display: none;
  color: #9db2c0;
  font-size: 11px;
  line-height: 1.35;
  padding: 10px 2px 0;
}

.sidebar-expanded .rail-sync {
  display: none;
}

.rail-sync i {
  flex: 0 0 auto;
  margin-top: 4px;
}

.rail-mini,
.rail-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #a7b7c2;
}

.rail-mini svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rail-avatar {
  border-radius: 50%;
  background: #f2f6f7;
  color: #14212d;
  font-size: 10px;
  font-weight: 900;
}

.desktop-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  min-height: 72px;
  border-bottom: 1px solid rgba(49, 86, 113, 0.58);
  background: #061826;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand-stack {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
}

.brand-stack.page-heading {
  display: grid;
  align-content: center;
  gap: 6px;
}

.page-title-row {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.brand-stack h1,
.page-title-row h1 {
  color: #f4fbfd;
  font-size: 21px;
  line-height: 1.05;
  margin: 0;
  letter-spacing: 0;
  font-weight: 720;
}

.page-tabs {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 56px;
}

.page-tabs button {
  height: 56px;
  position: relative;
  border: 0;
  background: transparent;
  color: #8fa3b0;
  font-size: 12px;
  font-weight: 800;
  cursor: default;
  padding: 0;
}

.page-tabs button.active {
  color: #eaffff;
}

.page-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  height: 2px;
  border-radius: 999px;
  background: #5fa5e7;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #6f8796;
  font-size: 10px;
  font-weight: 720;
}

.breadcrumbs span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.breadcrumbs span:not(:first-child)::before {
  content: ">";
  color: #465464;
}

.breadcrumbs .current {
  color: #d9e7ee;
}

.station-scope {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  color: #c0ccd4;
  background: transparent;
  font-size: 13.5px;
  font-weight: 520;
  white-space: nowrap;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}

.station-scope span {
  color: #6f8796;
  font-size: 11px;
}

.station-scope:hover {
  color: #f0f8fa;
}

.demo-label {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-menu-wrap {
  position: relative;
  display: grid;
}

.global-search {
  width: min(320px, 30vw);
  height: 36px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(42, 78, 99, 0.76);
  border-radius: 7px;
  color: #8fa4b2;
  background: #071e2e;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.global-search:focus-within,
.global-search:hover {
  border-color: rgba(82, 132, 164, 0.78);
  background: #092438;
  box-shadow: 0 0 0 1px rgba(82, 132, 164, 0.12);
}

.global-search span,
.top-icon {
  display: grid;
  place-items: center;
}

.global-search svg,
.top-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.global-search input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.global-search input::placeholder {
  color: #7890a0;
}

.global-search kbd {
  color: #8396a4;
  font-size: 11px;
  font-family: inherit;
}

.top-icon {
  position: relative;
  width: 36px;
  height: 36px;
  border: 0;
  border-left: 1px solid #1a3042;
  background: transparent;
  color: #adc0cb;
  border-radius: 7px;
  transition: color 140ms ease, background 140ms ease, border-color 140ms ease;
}

.top-icon:hover {
  color: #edf8fb;
  border-left-color: transparent;
  background: rgba(37, 76, 102, 0.42);
}

.top-icon.has-badge > span {
  position: absolute;
  right: 7px;
  top: 4px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid #061722;
  background: #d94b55;
  color: #fff;
  font-size: 9px;
  font-weight: 760;
  line-height: 1;
}

.operator-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 150px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
  cursor: pointer;
  border-radius: 8px;
  transition: background 140ms ease, color 140ms ease;
}

.operator-card:hover {
  background: rgba(37, 76, 102, 0.28);
}

.operator-card > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #dbeaf0;
  background: #1b3852;
  font-weight: 760;
  font-size: 11px;
}

.operator-card div {
  display: grid;
  gap: 2px;
}

.operator-card strong {
  font-size: 11px;
  font-weight: 720;
}

.operator-card small {
  color: #9eb2bf;
}

.top-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 20;
  width: 280px;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(49, 76, 94, 0.82);
  border-radius: 10px;
  background: rgba(8, 24, 37, 0.98);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.dropdown-head,
.profile-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 3px 8px;
  border-bottom: 1px solid rgba(49, 76, 94, 0.54);
}

.dropdown-head strong,
.profile-summary strong {
  color: #eef7f8;
  font-size: 12px;
  font-weight: 680;
}

.dropdown-head span {
  color: #9fb1bc;
  font-size: 11px;
}

.top-dropdown button,
.top-dropdown a {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #b8c8d0;
  display: grid;
  gap: 3px;
  padding: 7px 8px;
  text-align: left;
  font-size: 11px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease;
}

.top-dropdown button:hover,
.top-dropdown a:hover {
  border-color: rgba(79, 108, 126, 0.52);
  background: rgba(35, 58, 73, 0.42);
}

.top-dropdown button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.top-dropdown button:disabled:hover {
  border-color: transparent;
  background: transparent;
}

.notifications-menu button {
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
}

.station-menu {
  left: 0;
  right: auto;
  width: 240px;
}

.station-menu button {
  display: grid;
  gap: 3px;
}

.station-menu button strong {
  color: #e5f0f3;
  font-size: 11px;
  font-weight: 660;
}

.station-menu button span {
  color: #7f95a4;
  font-size: 10px;
}

.station-menu button.selected {
  border-color: rgba(95, 165, 231, 0.46);
  background: rgba(44, 94, 145, 0.34);
}

.notifications-menu button span {
  color: #8195a2;
  font-size: 10px;
}

.notifications-menu button strong {
  color: #d5e2e8;
  font-size: 11px;
  font-weight: 610;
}

.notifications-menu button.required {
  border-left: 3px solid rgba(221, 106, 78, 0.58);
}

.notifications-menu button.waiting {
  border-left: 3px solid rgba(216, 164, 59, 0.54);
}

.notifications-menu button.monitor {
  border-left: 3px solid rgba(114, 165, 207, 0.48);
}

.notifications-menu button.resolved {
  border-left: 3px solid rgba(94, 167, 124, 0.46);
}

.profile-summary {
  justify-content: flex-start;
}

.profile-summary > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #dbeaf0;
  background: #1b3852;
  font-weight: 760;
  font-size: 11px;
}

.profile-summary div {
  display: grid;
  gap: 2px;
}

.profile-summary small {
  color: #9eb2bf;
  font-size: 11px;
}

.top-dropdown .muted-action {
  color: #d8aaa5;
}

.clock-pill,
.session-pill,
.state-pill,
.source-pill,
.tiny-pill {
  border: 1px solid #334149;
  background: #15232a;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  font-weight: 650;
  font-size: 11px;
}

.tiny-pill {
  min-height: 22px;
  font-size: 11px;
  color: var(--muted);
  padding: 0 7px;
}

.state-pill[data-state="CRITICAL"],
.state-pill.critical {
  color: #fff;
  background: rgba(238, 75, 75, 0.22);
  border-color: rgba(238, 75, 75, 0.56);
}

.state-pill[data-state="AT RISK"],
.state-pill.risk {
  color: #ffe3aa;
  background: rgba(226, 170, 40, 0.16);
  border-color: rgba(226, 170, 40, 0.48);
}

.state-pill[data-state="MONITOR"] {
  color: #cde5ff;
  background: rgba(58, 137, 255, 0.13);
  border-color: rgba(58, 137, 255, 0.35);
}

.state-pill[data-state="STABLE"],
.state-pill.good {
  color: #bff3d7;
  background: rgba(34, 192, 111, 0.13);
  border-color: rgba(34, 192, 111, 0.35);
}

.state-pill.standby {
  color: #b6c8d6;
  background: rgba(91, 135, 184, 0.13);
  border-color: rgba(91, 135, 184, 0.36);
}

.button,
.icon-button,
.primary-button,
.danger-button,
.quiet-button {
  min-height: 34px;
  border: 1px solid #2b3847;
  background: #172231;
  padding: 0 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 750;
  font-size: 13px;
  border-radius: 6px;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 120ms ease;
}

.button:not(:disabled):hover,
.icon-button:not(:disabled):hover,
.primary-button:not(:disabled):hover,
.danger-button:not(:disabled):hover,
.quiet-button:not(:disabled):hover {
  border-color: rgba(87, 132, 164, 0.72);
  background: #1a344b;
  color: #edf8fb;
}

.button:not(:disabled):active,
.icon-button:not(:disabled):active,
.primary-button:not(:disabled):active,
.danger-button:not(:disabled):active,
.quiet-button:not(:disabled):active {
  transform: translateY(1px);
}

.icon-button {
  width: 34px;
  padding: 0;
}

.primary-button {
  background: #f0f5f7;
  color: #071114;
  border-color: #f0f5f7;
}

.danger-button {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.quiet-button {
  background: transparent;
}

.button:disabled,
.primary-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.icon-action span,
.filter-button span,
.turn-search > span {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
}

.icon-action svg,
.filter-button svg,
.turn-search svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.view {
  padding: 16px 20px 26px;
  display: grid;
  gap: 14px;
}

.turnaround-view {
  width: 100%;
  max-width: none;
  padding: 12px 18px 18px 14px;
  margin: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.turn-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid rgba(30, 65, 85, 0.76);
  border-radius: 8px;
  overflow: hidden;
  background: #0a2133;
}

.turn-kpi {
  min-height: 76px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-right: 1px solid rgba(31, 65, 84, 0.72);
}

.turn-kpi:last-child {
  border-right: 0;
}

.kpi-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: var(--accent-2);
  background: rgba(58, 137, 255, 0.06);
}

.turn-kpi.green .kpi-icon { color: var(--accent); background: rgba(66, 201, 181, 0.08); }
.turn-kpi.amber .kpi-icon { color: #f2a61e; background: rgba(242, 166, 30, 0.1); }

.kpi-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.turn-kpi div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.turn-kpi span:not(.kpi-icon) {
  color: #8da4b3;
  font-size: 9px;
  font-weight: 690;
  text-transform: uppercase;
}

.turn-kpi strong {
  color: #f2fbfd;
  font-size: 18px;
  font-weight: 690;
  line-height: 1;
}

.turn-kpi small {
  font-size: 10px;
  line-height: 1.1;
}

.turn-kpi small.muted {
  color: #879baa;
}

.turn-kpi small.amber {
  color: #d7a954;
}

.turn-kpi small.info {
  color: #88acd0;
}

.kpi-meter {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #213645;
  overflow: hidden;
}

.kpi-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #ff9f2f;
}

.turnaround-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(268px, 18vw, 360px);
  gap: 14px;
  align-items: start;
}

.turn-board,
.ai-side > section {
  border: 1px solid rgba(43, 82, 108, 0.82);
  border-radius: 8px;
  background: #082033;
  box-shadow: none;
}

.turn-board {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-color: rgba(86, 132, 162, 0.56) rgba(7, 28, 44, 0.8);
  scrollbar-width: thin;
}

.turn-board-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(49, 89, 116, 0.72);
}

.turn-board-head h2 {
  margin: 0;
  color: #f3fbfd;
  font-size: 14px;
  font-weight: 680;
}

.turn-board-head h2 span,
.notifications-card strong span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  margin-left: 8px;
  border-radius: 8px;
  background: #21394c;
  color: #c9d9e2;
  font-size: 12px;
}

.turn-board-tabs {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 42px;
}

.turn-board-tabs button {
  position: relative;
  min-height: 42px;
  border: 0;
  background: transparent;
  color: #879baa;
  padding: 0;
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
  transition: color 140ms ease;
}

.turn-board-tabs button:hover {
  color: #d9e9ef;
}

.turn-board-tabs button strong {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  font: inherit;
}

.turn-board-tabs button.active {
  color: #f3fbfd;
}

.turn-board-tabs button.active::after {
  content: none;
}

.turn-board-tabs button.active strong::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #5fa5e7;
}

.turn-board-tabs span {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 7px;
  margin-left: 6px;
  border-radius: 999px;
  color: #c9d9e2;
  background: #14314a;
  font-size: 10px;
}

.turn-board-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.turn-board-actions button,
.turn-board-foot button,
.ai-actions button {
  min-height: 30px;
  border: 1px solid rgba(55, 95, 124, 0.78);
  border-radius: 7px;
  background: #102d45;
  color: #c5d6df;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 120ms ease;
}

.turn-board-actions button:hover,
.turn-board-foot button:hover,
.ai-actions button:hover {
  border-color: rgba(87, 132, 164, 0.72);
  background: #14314a;
  color: #edf8fb;
}

.turn-board-actions button:active,
.turn-board-foot button:active,
.ai-actions button:active {
  transform: translateY(1px);
}

.turn-board-actions button.selected {
  background: rgba(44, 94, 145, 0.2);
  color: #9bc8f3;
}

.turn-board-actions svg,
.turn-board-foot svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.turn-board-table {
  width: 100%;
  min-width: 1074px;
}

.turn-board-header,
.turn-row {
  display: grid;
  grid-template-columns: 134px minmax(720px, 1fr) 88px 58px 74px;
  align-items: center;
}

.turn-board-header {
  min-height: 32px;
  color: #8398a7;
  font-size: 8.5px;
  font-weight: 660;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(49, 89, 116, 0.7);
}

.turn-board-header span {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 9px;
}

.turn-board-header span:not(:first-child) {
  border-left: 1px solid rgba(54, 93, 120, 0.46);
}

.turn-row {
  min-height: 74px;
  border-bottom: 1px solid rgba(49, 89, 116, 0.54);
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease;
}

.turn-row:hover {
  background: rgba(38, 81, 109, 0.34);
  box-shadow: inset 2px 0 rgba(95, 165, 231, 0.34);
}

.turn-row:hover .turn-flight strong {
  color: #ffffff;
}

.turn-row.is-focused {
  background: rgba(44, 77, 95, 0.28);
  box-shadow: inset 3px 0 rgba(92, 166, 205, 0.68);
}

.turn-row:focus-visible {
  outline: 1px solid rgba(142, 166, 180, 0.56);
  outline-offset: -2px;
  background: rgba(27, 55, 72, 0.28);
}

.turn-empty {
  min-height: 124px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  color: #93a7b3;
  border-bottom: 1px solid rgba(31, 62, 82, 0.72);
}

.turn-empty strong {
  color: #d7e3e8;
  font-size: 13px;
  font-weight: 650;
}

.turn-empty span {
  font-size: 11px;
}

.turn-flight {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 0 10px 0 12px;
}

.turn-flight-top {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.turn-flight strong {
  color: #f4fbfd;
  font-size: 12.5px;
  font-weight: 720;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.turn-flight span {
  color: #a7b8c2;
  font-size: 10px;
  font-weight: 610;
  white-space: nowrap;
}

.turn-flight small {
  color: #8ca0aa;
  font-size: 9.5px;
  font-weight: 560;
}

.turn-flight em {
  width: fit-content;
  min-width: 34px;
  flex: 0 0 auto;
  padding: 1px 5px;
  border: 1px solid rgba(134, 153, 165, 0.22);
  border-radius: 4px;
  color: #b5c4cc;
  background: rgba(126, 145, 157, 0.08);
  font-style: normal;
  font-size: 9.5px;
  font-weight: 620;
}

.turn-flight-state {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8fa4b0;
  font-size: 9.5px;
  font-weight: 590;
  line-height: 1;
}

.turn-flight-state::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid currentColor;
  background: transparent;
}

.turn-flight-state.good {
  color: #67b486;
}

.turn-flight-state.good::before {
  background: rgba(103, 180, 134, 0.2);
}

.turn-flight-state.critical {
  color: #d66c60;
}

.turn-flight-state.critical::before {
  background: rgba(214, 108, 96, 0.24);
}

.turn-flight-state.risk {
  color: #d3a95d;
}

.turn-flight-state.risk::before {
  background: rgba(211, 169, 93, 0.24);
}

.turn-flight-state.monitor {
  color: #8fb8d8;
}

.turn-flight-state.monitor::before {
  background: rgba(143, 184, 216, 0.18);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(78px, 1fr));
  gap: 7px;
  min-height: 74px;
  align-items: center;
  border-left: 1px solid rgba(54, 93, 120, 0.48);
  overflow: hidden;
  padding: 0 18px 0 14px;
}

.process-step {
  position: relative;
  min-height: 46px;
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  align-items: center;
  justify-content: center;
  column-gap: 5px;
  row-gap: 2px;
  border: 1px solid transparent;
  border-radius: 5px;
  overflow: hidden;
  background: transparent;
  padding: 5px 4px 5px 5px;
  transition: border-color 140ms ease, background 140ms ease;
}

.turn-row:hover .process-step:not(.at-risk):not(.warning) {
  background: rgba(23, 60, 86, 0.18);
}

.process-step i {
  position: relative;
  grid-column: 1;
  grid-row: 1;
  width: 10px !important;
  height: 10px;
  border: 1.4px solid #7d929e;
  border-radius: 50%;
  background: transparent;
}

.process-step::after {
  content: "";
  position: absolute;
  left: 8.5px;
  top: calc(50% - 10px);
  width: 5px;
  height: 3px;
  border-left: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  color: transparent;
  transform: rotate(-45deg);
}

.process-step.completed,
.process-step.done {
  color: #62ad81;
}

.process-step.active {
  color: #6f9fd0;
}

.process-step.completed i,
.process-step.done i {
  border-color: rgba(102, 181, 134, 0.9);
  background: rgba(102, 181, 134, 0.12);
}

.process-step.completed::after,
.process-step.done::after {
  color: #66b586;
}

.process-step.active i {
  border-color: rgba(114, 165, 207, 0.95);
  background: rgba(114, 165, 207, 0.95);
}

.process-step.at-risk,
.process-step.warning {
  border-color: rgba(194, 145, 50, 0.68);
  background: rgba(121, 87, 34, 0.13);
  box-shadow: none;
}

.process-step.at-risk i,
.process-step.warning i {
  border-color: rgba(216, 164, 59, 0.95);
  background: rgba(216, 164, 59, 0.95);
}

.process-step.at-risk::after,
.process-step.warning::after {
  content: "!";
  left: 6px;
  top: calc(50% - 14px);
  width: 10px;
  height: 10px;
  border: 0;
  color: #fff;
  display: grid;
  place-items: center;
  transform: none;
  font-size: 8px;
  font-weight: 800;
}

.process-step.is-focused {
  border-color: rgba(143, 188, 214, 0.82);
  box-shadow: 0 0 0 1px rgba(143, 188, 214, 0.2), inset 0 0 0 1px rgba(143, 188, 214, 0.16);
}

.process-step.upcoming,
.process-step.future {
  opacity: 1;
}

.process-step.not-started {
  opacity: 1;
}

.process-step.not-started i,
.process-step.upcoming i {
  border-color: rgba(139, 158, 170, 0.8);
  background: transparent;
}

.process-step strong {
  grid-column: 2;
  grid-row: 1;
  color: #d3e0e7;
  font-size: 9.5px;
  font-weight: 630;
  text-transform: none;
  line-height: 1.1;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-step.active strong,
.process-step.at-risk strong,
.process-step.warning strong {
  color: #f0f6f8;
}

.process-step span {
  grid-column: 2;
  grid-row: 2;
  color: #8da2ae;
  font-size: 8.8px;
  line-height: 1.12;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.process-step.at-risk span,
.process-step.warning span {
  color: #dcc28e;
}

.process-step.at-risk.critical,
.process-step.warning.critical {
  border-color: rgba(213, 92, 76, 0.74);
  background: rgba(163, 72, 60, 0.13);
  box-shadow: none;
}

.process-step.at-risk.critical i,
.process-step.warning.critical i {
  border-color: rgba(221, 106, 78, 0.95);
  background: rgba(221, 106, 78, 0.95);
}

.process-step.at-risk.critical span,
.process-step.warning.critical span {
  color: #e4b1a8;
}

.departure-targets,
.sched-dep {
  display: grid;
  gap: 2px;
  justify-items: start;
  min-height: 74px;
  align-content: center;
  border-left: 1px solid rgba(54, 93, 120, 0.48);
  padding: 0 7px 0 9px;
  color: #dce8ef;
}

.departure-targets span {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #d4e0e6;
  font-size: 10.5px;
  line-height: 1.1;
}

.departure-targets b {
  min-width: 25px;
  color: #879baa;
  font-size: 8.5px;
  font-weight: 680;
}

.sched-dep strong {
  font-size: 12px;
  font-weight: 680;
}

.sched-dep span {
  color: #879baa;
  font-size: 10px;
}

.delay {
  min-height: 74px;
  display: flex;
  align-items: center;
  border-left: 1px solid rgba(54, 93, 120, 0.48);
  color: #aab9c2;
  font-size: 10.5px;
  font-weight: 600;
  text-align: left;
  white-space: nowrap;
  padding-left: 10px;
  padding-right: 8px;
}

.delay.late {
  color: #d6aa70;
}

.delay.low {
  color: #8396a4;
  font-weight: 560;
}

.turn-status {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-start;
  min-width: 0;
  min-height: 74px;
  border-left: 1px solid rgba(54, 93, 120, 0.36);
  padding: 0 6px 0 8px;
}

.turn-status b {
  color: #6f8490;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  margin-left: auto;
}

.turn-status svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.turn-status .state-pill {
  min-height: 21px;
  min-width: 58px;
  justify-content: center;
  padding: 0 6px;
  font-size: 8px;
  font-weight: 650;
  white-space: nowrap;
  flex: 0 0 auto;
  text-transform: uppercase;
}

.turn-status .state-pill.good {
  color: #9dd0b6;
  background: rgba(64, 138, 98, 0.1);
  border-color: rgba(82, 153, 113, 0.34);
}

.turn-status .state-pill.risk {
  color: #d5b676;
  background: rgba(154, 118, 42, 0.1);
  border-color: rgba(176, 132, 44, 0.42);
}

.turn-status .state-pill.monitor {
  color: #a8c6dc;
  background: rgba(50, 86, 116, 0.1);
  border-color: rgba(96, 139, 177, 0.38);
}

.turn-status .state-pill.critical {
  color: #e2a49b;
  background: rgba(163, 72, 60, 0.12);
  border-color: rgba(187, 82, 67, 0.46);
}

.turn-status .state-pill.standby {
  color: #aebdc6;
  background: rgba(92, 112, 126, 0.12);
  border-color: rgba(107, 128, 141, 0.28);
}

.turn-board-foot {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 12px;
  color: #879baa;
  font-size: 10.5px;
}

.turn-pagination {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.turn-pagination button {
  width: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  justify-content: center;
  border-radius: 6px;
  color: #8ea2af;
  background: transparent;
  transition: border-color 140ms ease, background 140ms ease, color 140ms ease, transform 120ms ease;
}

.turn-pagination button:not(:disabled):hover {
  color: #edf8fb;
  border-color: rgba(87, 132, 164, 0.68);
  background: rgba(31, 66, 90, 0.68);
}

.turn-pagination button:not(:disabled):active {
  transform: translateY(1px);
}

.turn-pagination button.active {
  color: #f1fafc;
  border-color: rgba(62, 101, 126, 0.74);
  background: rgba(36, 67, 90, 0.82);
}

.turn-pagination button:disabled {
  opacity: 0.34;
  cursor: default;
}

.turn-stand-map {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid rgba(31, 62, 82, 0.72);
}

.turn-stand-card {
  min-height: 92px;
  display: grid;
  align-content: start;
  gap: 6px;
  border: 1px solid rgba(76, 101, 116, 0.42);
  border-left: 3px solid rgba(114, 165, 207, 0.45);
  border-radius: 7px;
  background: rgba(18, 37, 50, 0.66);
  color: inherit;
  padding: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, transform 120ms ease;
}

.turn-stand-card:hover {
  border-color: rgba(87, 132, 164, 0.68);
  background: rgba(27, 55, 72, 0.34);
  transform: translateY(-1px);
}

.turn-stand-card span {
  color: #91a4af;
  font-size: 10px;
  font-weight: 760;
}

.turn-stand-card strong {
  color: #f4fbfd;
  font-size: 14px;
  font-weight: 700;
}

.turn-stand-card small {
  color: #9fb2bc;
  font-size: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.turn-stand-card em {
  width: fit-content;
  margin-top: 2px;
  padding: 2px 7px;
  border-radius: 999px;
  color: #b9cede;
  background: rgba(50, 86, 116, 0.14);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 700;
}

.turn-stand-card.good { border-left-color: rgba(82, 153, 113, 0.52); }
.turn-stand-card.monitor { border-left-color: rgba(96, 139, 177, 0.54); }
.turn-stand-card.risk { border-left-color: rgba(176, 132, 44, 0.58); }
.turn-stand-card.critical { border-left-color: rgba(187, 82, 67, 0.62); }

.ai-side {
  display: grid;
  gap: 8px;
}

.ai-card,
.notifications-card {
  padding: 10px;
}

.ai-card {
  display: grid;
  gap: 7px;
}

.ai-side-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 32px;
  padding: 0 2px;
}

.ai-side-title strong {
  color: #edf5f7;
  font-size: 12px;
  font-weight: 680;
}

.ai-side-title span {
  min-width: 70px;
  min-height: 20px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(192, 130, 67, 0.48);
  border-radius: 999px;
  color: #d8b78d;
  background: rgba(132, 82, 38, 0.14);
  font-size: 10.5px;
  font-weight: 650;
}

.ai-card.required {
  border-color: rgba(213, 92, 76, 0.68);
  border-left: 1px solid rgba(213, 92, 76, 0.68);
  box-shadow: inset 0 0 0 1px rgba(213, 92, 76, 0.04);
}

.ai-card.waiting {
  border-color: rgba(204, 153, 58, 0.68);
  border-left: 1px solid rgba(204, 153, 58, 0.68);
}

.ai-card.monitor {
  border-color: rgba(106, 151, 190, 0.54);
  border-left: 1px solid rgba(106, 151, 190, 0.54);
}

.ai-card.resolved {
  border-color: rgba(82, 153, 113, 0.34);
  border-left: 3px solid rgba(94, 167, 124, 0.5);
}

.priority-identity {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.priority-identity div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.priority-identity strong {
  color: #f3fafb;
  font-size: 12.5px;
  font-weight: 720;
}

.priority-context {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.priority-context span {
  min-width: 0;
  color: #91a4af;
  font-size: 10.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.priority-identity b {
  color: #d99c72;
  font-size: 10.5px;
  font-weight: 690;
  white-space: nowrap;
}

.workflow-state {
  width: fit-content;
  flex: 0 0 auto;
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 0 5px;
  border: 1px solid rgba(130, 153, 168, 0.3);
  border-radius: 5px;
  color: #aebec7;
  background: rgba(71, 91, 105, 0.13);
  font-size: 8px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.ai-card h3 {
  margin: 0;
  color: #f5fbfd;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.25;
}

.ai-card.required .workflow-state {
  color: #e6b0a5;
  border-color: rgba(190, 93, 72, 0.38);
  background: rgba(163, 72, 60, 0.12);
}

.ai-card.waiting .workflow-state {
  color: #dcc28e;
  border-color: rgba(194, 145, 50, 0.36);
  background: rgba(120, 88, 35, 0.13);
}

.ai-card.monitor .workflow-state {
  color: #b9cede;
  border-color: rgba(96, 139, 177, 0.34);
  background: rgba(50, 86, 116, 0.14);
}

.ai-card.resolved .workflow-state {
  color: #a9d8c2;
  border-color: rgba(82, 153, 113, 0.28);
  background: rgba(64, 138, 98, 0.12);
}

.ai-card p,
.ai-card > span {
  margin: 0;
  color: #aebfc8;
  font-size: 10px;
  line-height: 1.3;
}

.priority-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.priority-chips span {
  min-height: 18px;
  display: inline-flex;
  align-items: center;
  padding: 0 5px;
  border: 1px solid rgba(116, 140, 154, 0.26);
  border-radius: 999px;
  color: #b8c8d0;
  background: rgba(105, 126, 139, 0.08);
  font-size: 9px;
  font-weight: 600;
}

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

.ai-actions button.apply {
  color: #f2f7f8;
  border-color: rgba(183, 116, 65, 0.5);
  background: rgba(146, 86, 44, 0.4);
  min-height: 28px;
  font-size: 9.5px;
  font-weight: 700;
}

.priority-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 2px;
  color: #879baa;
  font-size: 11px;
}

.notifications-card {
  display: grid;
  gap: 10px;
}

.notifications-card div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.notifications-card strong {
  color: #dbe7ee;
  font-size: 12px;
  text-transform: uppercase;
}

.notifications-card a {
  color: #4da3ff;
  font-size: 12px;
  font-weight: 900;
}

.notifications-card p {
  margin: 0;
  color: #93a8b6;
  font-size: 12px;
}

.notifications-card b {
  color: #b8c9d3;
  margin-right: 8px;
}

@media (min-width: 1700px) {
  .turnaround-view {
    padding-right: 22px;
  }

  .turnaround-shell {
    grid-template-columns: minmax(0, 1fr) clamp(340px, 19vw, 390px);
    gap: 16px;
  }

  .turn-board-header,
  .turn-row {
    grid-template-columns: 150px minmax(820px, 1fr) 104px 70px 86px;
  }

  .process-grid {
    grid-template-columns: repeat(8, minmax(86px, 1fr));
    gap: 8px;
    padding-left: 16px;
    padding-right: 20px;
  }

  .ai-card,
  .notifications-card {
    padding: 12px;
  }

  .ai-card p,
  .ai-card > span {
    font-size: 10.5px;
  }
}

@media (max-width: 1360px) {
  .turnaround-view {
    padding: 12px 10px 20px;
  }

  .topbar {
    padding: 0 16px;
    gap: 14px;
  }

  .brand-stack {
    gap: 18px;
  }

  .page-tabs {
    gap: 14px;
  }

  .global-search {
    width: min(230px, 24vw);
  }

  .turnaround-shell {
    grid-template-columns: minmax(0, 1fr) 264px;
    gap: 10px;
  }

  .turn-kpi {
    min-height: 72px;
    padding: 10px;
  }

  .sidebar-expanded .turn-board-table {
    min-width: 1074px;
  }
}

@media (max-width: 980px) {
  .desktop-frame.sidebar-expanded {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .sidebar-expanded .rail-brand,
  .sidebar-expanded .rail-summary,
  .sidebar-expanded .rail-sync {
    display: none;
  }

  .sidebar-expanded .nav-label {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    background: #111a28;
    border: 1px solid #2d3a49;
    padding: 6px 8px;
    box-shadow: var(--shadow);
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 16px;
  }

  .brand-stack,
  .top-actions {
    width: 100%;
  }

  .page-tabs {
    overflow-x: auto;
    max-width: 100%;
    height: 40px;
  }

  .page-tabs button {
    height: 40px;
    white-space: nowrap;
  }

  .page-tabs button.active::after {
    bottom: 4px;
  }

  .global-search {
    width: 100%;
  }

  .turnaround-shell {
    grid-template-columns: 1fr;
  }

  .turn-kpi-strip,
  .ai-side {
    grid-template-columns: 1fr;
  }
}

.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.band,
.panel,
.tool-panel,
.modal-panel {
  background: #111827;
  border: 1px solid #253246;
  border-radius: 8px;
  overflow: hidden;
}

.panel-header,
.band-header {
  min-height: 42px;
  padding: 10px 12px;
  border-bottom: 1px solid #253246;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #111a29;
}

.panel-header h2,
.band-header h2,
.section-title {
  margin: 0;
  font-size: 13px;
  text-transform: uppercase;
  color: #dce8eb;
  letter-spacing: 0;
}

.section-title {
  padding: 0;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.summary-cell {
  background: linear-gradient(180deg, rgba(31, 41, 59, 0.82), rgba(17, 27, 42, 0.92));
  border: 1px solid #273448;
  border-radius: 8px;
  padding: 12px;
  min-height: 72px;
}

.summary-cell b {
  display: block;
  font-size: 22px;
  margin-bottom: 4px;
}

.summary-cell span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.ops-summary {
  border-left: 3px solid #4da3dc;
  padding: 12px 14px;
  background: #101d2b;
  border-top: 1px solid #243246;
  border-right: 1px solid #243246;
  border-bottom: 1px solid #243246;
  border-radius: 8px;
  font-size: 14px;
  color: #e9f6f6;
}

.ops-summary strong {
  display: block;
  margin-bottom: 4px;
  color: #fff;
}

.turn-table,
.work-table,
.evidence-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.turn-toolbar {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  background: #101827;
}

.turn-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.turn-tabs button,
.filter-button {
  min-height: 28px;
  border: 1px solid #2a394a;
  border-radius: 999px;
  background: #192536;
  color: #aebfcc;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.turn-tabs button.selected {
  background: #eef3f5;
  color: #0c1622;
  border-color: #eef3f5;
}

.turn-search {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8fa1ae;
}

.turn-search input {
  width: 210px;
  min-height: 30px;
  border: 1px solid #2a394a;
  border-radius: 999px;
  background: #161f2e;
  color: var(--ink);
  padding: 0 11px;
  outline: 0;
}

.turn-search input::placeholder {
  color: #7d8e9b;
}

.filter-button {
  border-color: rgba(93, 167, 231, 0.55);
  background: rgba(67, 142, 205, 0.36);
  color: #e7f5ff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.turn-table th,
.turn-table td,
.work-table th,
.work-table td,
.evidence-table th,
.evidence-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: middle;
}

.turn-table th,
.work-table th,
.evidence-table th {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 800;
  background: #101a20;
}

.turn-table tr[data-clickable="true"] {
  cursor: pointer;
}

.turn-table tr[data-clickable="true"]:hover td {
  background: #172832;
}

.flight-ident {
  display: grid;
  gap: 3px;
  color: #fff;
}

.flight-ident strong {
  font-weight: 900;
  letter-spacing: 0;
}

.flight-ident span {
  color: var(--muted);
  font-size: 11px;
}

.muted {
  color: var(--muted);
}

.quiet {
  color: var(--quiet);
}

.stand-status-wrap {
  display: grid;
  gap: 0;
}

.stand-callout {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: #111f27;
}

.stand-callout div {
  display: grid;
  gap: 4px;
}

.stand-callout strong {
  color: #fff;
  font-size: 13px;
}

.stand-callout span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.text-link {
  color: #d8f3f2;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid #39535d;
  border-radius: 6px;
  padding: 8px 10px;
  background: #162933;
}

.text-link:hover {
  border-color: var(--accent);
}

.stand-legend {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding: 8px 12px;
  font-size: 11px;
  color: var(--muted);
  background: #0f1920;
}

.stand-legend strong {
  color: #dce8eb;
  font-size: 11px;
  margin-right: 2px;
}

.stand-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.stand-legend i {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--quiet);
}

.stand-legend i.critical { background: var(--red); }
.stand-legend i.risk { background: var(--amber); }
.stand-legend i.monitor { background: var(--accent-2); }
.stand-legend i.stable { background: var(--green); }

.apron-map {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent 0 18%, rgba(255, 255, 255, 0.03) 18% 19%, transparent 19% 37%, rgba(255, 255, 255, 0.03) 37% 38%, transparent 38% 61%, rgba(255, 255, 255, 0.03) 61% 62%, transparent 62%),
    linear-gradient(0deg, transparent 0 24%, rgba(255, 255, 255, 0.035) 24% 25%, transparent 25% 51%, rgba(255, 255, 255, 0.035) 51% 52%, transparent 52%),
    #0b171d;
}

.taxiway {
  position: absolute;
  background: #1d2d35;
  border: 1px solid #2c3f48;
}

.taxiway.t1 {
  left: 7%;
  top: 47%;
  width: 88%;
  height: 38px;
}

.taxiway.t2 {
  left: 42%;
  top: 8%;
  width: 44px;
  height: 80%;
}

.stand {
  position: absolute;
  width: 92px;
  height: 108px;
  background: #20323b;
  border: 1px solid #304852;
  color: #dfecee;
  display: grid;
  grid-template-rows: 25px 1fr 17px 18px 18px;
  align-items: center;
  justify-items: center;
  font-weight: 850;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.stand.active {
  border-color: rgba(238, 75, 75, 0.7);
  box-shadow: 0 0 0 2px rgba(238, 75, 75, 0.28);
}

.stand.critical .stand-head { border-top: 3px solid var(--red); }
.stand.risk .stand-head { border-top: 3px solid var(--amber); }
.stand.monitor .stand-head { border-top: 3px solid var(--accent-2); }
.stand.stable .stand-head { border-top: 3px solid var(--green); }

.stand .stand-head {
  background: #dce7ea;
  color: #0d161b;
  width: 100%;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-size: 12px;
  white-space: nowrap;
}

.plane {
  width: 26px;
  height: 52px;
  position: relative;
}

.plane:before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  width: 6px;
  height: 52px;
  background: #dce8eb;
}

.plane:after {
  content: "";
  position: absolute;
  left: -7px;
  top: 22px;
  width: 40px;
  height: 7px;
  background: #dce8eb;
  transform: skewY(-16deg);
}

.stand .score {
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: #a7b8bf;
  background: #101c22;
}

.stand-flight {
  font-size: 10px;
  color: #f3fbfc;
  font-weight: 900;
  white-space: nowrap;
}

.stand-note {
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #bdd0d6;
  font-size: 9px;
  white-space: nowrap;
}

.stand.s1 { left: 14%; top: 14%; }
.stand.s2 { left: 29%; top: 18%; }
.stand.s3 { left: 55%; top: 12%; }
.stand.s4 { left: 68%; top: 34%; }
.stand.s5 { left: 20%; top: 62%; }
.stand.s6 { left: 34%; top: 64%; }
.stand.s7 { left: 55%; top: 66%; }
.stand.s8 { left: 77%; top: 65%; }

.network-coordination {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: 14px;
  padding: 14px;
}

.network-primary {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 360px;
  padding: 16px;
  border: 1px solid #31454e;
  background: #101e25;
}

.network-label {
  color: var(--amber);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.network-primary strong {
  color: #fff;
  font-size: 32px;
  line-height: 1;
}

.network-primary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
}

.network-facts {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.network-facts span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 12px;
}

.network-facts b {
  color: #fff;
  font-size: 18px;
}

.dependency-list {
  display: grid;
  gap: 10px;
}

.dependency-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  min-height: 86px;
  border: 1px solid #31454e;
  border-left-width: 4px;
  background: #13232b;
}

.dependency-card.good { border-left-color: var(--green); }
.dependency-card.risk { border-left-color: var(--amber); }
.dependency-card.critical { border-left-color: var(--red); }
.dependency-card.open { border-left-color: var(--accent-2); }

.dependency-card div {
  display: grid;
  gap: 4px;
}

.dependency-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.dependency-card strong {
  color: #fff;
  font-size: 14px;
}

.dependency-card p {
  margin: 0;
  color: #b5c7cd;
  font-size: 12px;
  line-height: 1.35;
}

.flight-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 14px;
}

.flight-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
}

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

.flight-title h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 0;
}

.header-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.timeline-panel {
  overflow-x: auto;
}

.timeline {
  position: relative;
  min-width: 860px;
  padding: 12px 12px 14px;
}

.timeline-axis,
.timeline-row {
  display: grid;
  grid-template-columns: 150px minmax(650px, 1fr) 86px;
  gap: 12px;
  align-items: center;
}

.timeline-axis {
  height: 30px;
  color: var(--muted);
  font-size: 11px;
}

.axis-track,
.time-track {
  position: relative;
  height: 100%;
}

.axis-mark {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}

.timeline-row {
  min-height: 58px;
  border-top: 1px solid var(--line);
}

.process-label {
  font-weight: 800;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.process-label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.time-track {
  height: 35px;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.045), rgba(255,255,255,0.045) 1px, transparent 1px, transparent 12.5%),
    #0d171d;
  border: 1px solid #23323a;
}

.planned-bar,
.actual-bar,
.float-bar {
  position: absolute;
  top: 7px;
  height: 19px;
}

.planned-bar {
  background: #475b65;
}

.actual-bar {
  background: var(--green);
  z-index: 2;
}

.actual-bar.at-risk {
  background: var(--red);
}

.actual-bar.in-progress {
  background: var(--accent-2);
}

.actual-bar.not-started {
  width: 4px !important;
  background: var(--quiet);
}

.float-bar {
  top: 28px;
  height: 3px;
  background: var(--amber);
}

.current-marker {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--red);
  z-index: 4;
}

.current-marker:before {
  content: attr(data-time);
  position: absolute;
  top: -19px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--red);
  color: #fff;
  font-size: 10px;
  padding: 2px 5px;
  font-weight: 800;
}

.process-status {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 800;
}

.process-status.completed { color: #bff3d7; }
.process-status.in-progress { color: #cde5ff; }
.process-status.at-risk { color: #ffb8b8; }

.side-stack,
.panel-stack {
  display: grid;
  gap: 14px;
  align-content: start;
}

.briefing {
  padding: 14px;
  display: grid;
  gap: 10px;
}

.briefing h3 {
  margin: 0;
  font-size: 18px;
}

.briefing p {
  margin: 0;
  color: #d9e6e9;
  line-height: 1.45;
}

.callout {
  border-left: 3px solid var(--amber);
  background: rgba(226, 170, 40, 0.12);
  padding: 9px 10px;
  font-weight: 800;
}

.event-list {
  display: grid;
}

.event-item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.event-time {
  color: #fff;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.event-main {
  display: grid;
  gap: 4px;
}

.event-main strong {
  font-size: 13px;
}

.source-pill {
  width: fit-content;
  color: #b7c8ce;
  background: #101b21;
}

.provenance-grid {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.evidence-line {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 10px;
  font-size: 13px;
  border-bottom: 1px solid #26343b;
  padding-bottom: 8px;
}

.evidence-line:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.attachment-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  padding: 12px;
}

.attachment {
  border: 1px solid var(--line);
  background: #101a20;
  min-height: 150px;
  display: grid;
  grid-template-rows: 96px auto;
}

.attachment img {
  width: 100%;
  height: 96px;
  object-fit: cover;
  background: #1c2b33;
}

.attachment-meta {
  padding: 8px;
  font-size: 11px;
  color: var(--muted);
  display: grid;
  gap: 2px;
}

.flight-detail-view {
  box-sizing: border-box;
  padding: 14px 18px 18px 14px;
  display: grid;
  gap: 10px;
}

.flight-detail-view *,
.flight-detail-view *::before,
.flight-detail-view *::after {
  box-sizing: border-box;
}

.flight-detail-hero,
.detail-card {
  background:
    radial-gradient(circle at 0 0, rgba(45, 122, 172, 0.13), transparent 34%),
    #082033;
  border: 1px solid rgba(47, 88, 116, 0.82);
  border-radius: 9px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.flight-detail-hero {
  min-height: 94px;
  display: grid;
  grid-template-columns: 54px minmax(118px, 1.05fr) 80px minmax(210px, 1.45fr) 86px minmax(360px, 2.2fr) 170px;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
}

.aircraft-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #46d9ad;
  background: rgba(34, 192, 144, 0.12);
  border: 1px solid rgba(56, 212, 159, 0.66);
}

.aircraft-avatar svg,
.request-icon svg,
.message-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
}

.aircraft-summary,
.detail-fact,
.detail-station {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.aircraft-summary strong {
  color: #f3f8fb;
  font-size: 28px;
  line-height: 1;
  letter-spacing: 0;
}

.aircraft-summary span,
.detail-fact span,
.detail-station span,
.detail-stat-grid span {
  color: #9db0bf;
  font-size: 11px;
  font-weight: 760;
}

.detail-fact strong,
.detail-station strong {
  color: #f3f8fb;
  font-size: 18px;
  line-height: 1.05;
}

.flight-pairing strong {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
}

.flight-pairing strong em {
  color: #a4b7c7;
  font-style: normal;
}

.flight-pairing div {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.flight-pairing small {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 6px;
  color: #92c3ff;
  background: rgba(46, 118, 205, 0.2);
  border: 1px solid rgba(70, 127, 201, 0.35);
  font-size: 11px;
  font-weight: 760;
}

.detail-status {
  justify-self: start;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.02em;
  color: #ffb1a8;
  background: rgba(210, 70, 62, 0.16);
  border: 1px solid rgba(234, 87, 78, 0.64);
}

.detail-status.required {
  color: #ffb1a8;
  background: rgba(210, 70, 62, 0.16);
  border-color: rgba(234, 87, 78, 0.64);
}

.detail-status.waiting,
.detail-status.monitor {
  color: #e0c990;
  background: rgba(178, 126, 38, 0.14);
  border-color: rgba(218, 162, 55, 0.48);
}

.detail-status.resolved {
  color: #a6dbc0;
  background: rgba(64, 138, 98, 0.12);
  border-color: rgba(82, 153, 113, 0.38);
}

.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(66px, 1fr));
  border: 1px solid rgba(46, 82, 109, 0.6);
  border-radius: 7px;
  overflow: hidden;
  background: rgba(8, 28, 44, 0.68);
}

.detail-stat-grid div {
  min-height: 54px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 8px 11px;
  border-left: 1px solid rgba(61, 93, 117, 0.5);
}

.detail-stat-grid div:first-child {
  border-left: 0;
}

.detail-stat-grid strong {
  color: #dcecff;
  font-size: 18px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.detail-stat-grid .good strong {
  color: #55dfaa;
}

.detail-stat-grid .late strong {
  color: #ff9f3d;
}

.flight-detail-tabs {
  min-height: 42px;
  display: flex;
  align-items: end;
  gap: 22px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(45, 80, 108, 0.75);
}

.flight-detail-tabs button {
  position: relative;
  height: 42px;
  border: 0;
  background: transparent;
  color: #a9baca;
  cursor: pointer;
  font-size: 13px;
  font-weight: 760;
}

.flight-detail-tabs button:hover {
  color: #edf7ff;
}

.flight-detail-tabs button.active {
  color: #ffffff;
}

.flight-detail-tabs button.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 99px;
  background: #62c4e8;
  box-shadow: 0 0 16px rgba(98, 196, 232, 0.45);
}

.flight-detail-layout {
  display: grid;
  grid-template-columns: minmax(710px, 1.65fr) minmax(350px, 0.95fr);
  gap: 12px;
  align-items: start;
}

.flight-detail-main,
.flight-detail-side {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.detail-card {
  min-width: 0;
  overflow: hidden;
}

.detail-card-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 8px;
}

.detail-card-head h2 {
  margin: 0;
  color: #f0f6f9;
  font-size: 15px;
  letter-spacing: 0;
}

.detail-card-head > span {
  color: #9eb1bf;
  font-size: 12px;
}

.live-turn-chart {
  position: relative;
  padding: 0 12px 11px;
}

.turn-time-axis,
.live-turn-row {
  display: grid;
  grid-template-columns: 182px minmax(0, 1fr);
  gap: 10px;
}

.turn-time-axis {
  height: 26px;
  color: #9fb3c5;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.turn-time-axis > div:last-child,
.live-turn-track {
  position: relative;
  background-image: repeating-linear-gradient(90deg, rgba(93, 134, 165, 0.18), rgba(93, 134, 165, 0.18) 1px, transparent 1px, transparent 12.35%);
}

.turn-time-axis span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
}

.now-line {
  position: absolute;
  top: -3px;
  bottom: -392px;
  width: 1px;
  background: #4a91ff;
  z-index: 3;
}

.now-line b {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 5px;
  color: #b9d8ff;
  background: #173c77;
  font-size: 11px;
  font-style: normal;
  font-weight: 820;
}

.live-turn-row {
  min-height: 46px;
  border-top: 1px solid rgba(47, 84, 111, 0.62);
  align-items: stretch;
}

.live-turn-label {
  display: grid;
  align-content: center;
  gap: 2px;
  padding-left: 2px;
}

.live-turn-label strong {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #f0f6f9;
  font-size: 13px;
  line-height: 1.1;
}

.live-turn-label strong::before,
.live-turn-legend span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
  border: 2px solid #758ca0;
}

.live-turn-row.completed .live-turn-label strong::before,
.live-turn-legend .completed::before {
  border-color: #46c889;
  background: rgba(70, 200, 137, 0.2);
}

.live-turn-row.in-progress .live-turn-label strong::before,
.live-turn-legend .in-progress::before {
  border-color: #6ca7ff;
  background: rgba(108, 167, 255, 0.24);
}

.live-turn-row.blocked .live-turn-label strong::before,
.live-turn-legend .blocked::before {
  border-color: #ff725f;
  background: rgba(255, 114, 95, 0.2);
}

.live-turn-label span {
  padding-left: 19px;
  color: #9db0bf;
  font-size: 12px;
}

.live-turn-row.blocked .live-turn-label span {
  color: #ff846f;
}

.live-turn-track {
  min-height: 46px;
}

.turn-bar {
  position: absolute;
  top: 13px;
  height: 20px;
  border-radius: 4px;
  border: 1px solid transparent;
}

.turn-bar.completed {
  background: linear-gradient(90deg, rgba(51, 160, 105, 0.58), rgba(82, 201, 142, 0.72));
  border-color: rgba(84, 215, 154, 0.72);
}

.turn-bar.in-progress {
  background: rgba(52, 105, 180, 0.48);
  border-color: rgba(94, 154, 244, 0.8);
}

.turn-bar.blocked {
  top: 10px;
  height: 27px;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 86, 74, 0.4), rgba(255, 86, 74, 0.4) 2px, transparent 2px, transparent 6px),
    rgba(95, 23, 29, 0.42);
  border-color: rgba(255, 79, 68, 0.9);
}

.turn-bar.planned {
  background: rgba(97, 121, 139, 0.36);
  border-color: rgba(128, 152, 170, 0.68);
}

.turn-bar.projection {
  background:
    repeating-linear-gradient(-45deg, rgba(101, 156, 224, 0.26), rgba(101, 156, 224, 0.26) 2px, transparent 2px, transparent 6px),
    rgba(50, 79, 112, 0.22);
  border-color: rgba(91, 141, 204, 0.35);
  border-left: 0;
}

.turn-bar b {
  display: block;
  padding: 5px 9px;
  color: #ffe5e1;
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.bar-time {
  position: absolute;
  top: 15px;
  transform: translateX(-50%);
  color: #a9bdca;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.bar-time.start {
  transform: translateX(calc(-100% - 8px));
}

.bar-time.end {
  transform: translateX(8px);
}

.live-turn-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding-top: 9px;
  color: #a9bac8;
  border-top: 1px solid rgba(47, 84, 111, 0.62);
  font-size: 12px;
}

.live-turn-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.assessment-card {
  display: grid;
  gap: 8px;
}

.assessment-body {
  margin: 0 12px;
  padding: 13px 13px 11px;
  border: 1px solid rgba(43, 80, 108, 0.68);
  border-radius: 8px;
  background: rgba(11, 39, 61, 0.7);
}

.assessment-body > span {
  color: #9eb4c5;
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.assessment-body h3 {
  margin: 7px 0 8px;
  color: #ffffff;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: 0;
}

.assessment-body p {
  margin: 0 0 14px;
  color: #d4e2eb;
  font-size: 13px;
  line-height: 1.45;
}

.assessment-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 14px;
}

.assessment-facts div {
  display: grid;
  gap: 5px;
  padding: 0 12px;
  border-left: 1px solid rgba(82, 113, 135, 0.55);
}

.assessment-facts div:first-child {
  padding-left: 0;
  border-left: 0;
}

.assessment-facts span {
  color: #9cb0bf;
  font-size: 11px;
}

.assessment-facts strong {
  color: #ff9b37;
  font-size: 14px;
}

.assessment-facts .good {
  color: #5bd9a6;
}

.assessment-facts .warn {
  color: #ff9b37;
}

.commitment-button {
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 5px;
  color: #fff7ee;
  background: linear-gradient(180deg, #f48724, #df6412);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.commitment-button:hover {
  filter: brightness(1.08);
}

.commitment-note {
  min-height: 34px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(197, 147, 52, 0.36);
  border-radius: 5px;
  color: #dfc78e;
  background: rgba(120, 88, 35, 0.13);
  font-size: var(--type-sm);
}

.open-work-head {
  display: flex;
  justify-content: space-between;
  padding: 8px 14px 0;
  color: #c4d5e0;
}

.open-work-head span {
  color: #9cb0bf;
}

.request-list {
  display: grid;
  gap: 7px;
  padding: 7px 12px 12px;
}

.request-list button {
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(48, 84, 113, 0.72);
  border-radius: 7px;
  background: rgba(8, 29, 47, 0.6);
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.request-list button:hover,
.message-actions button:hover,
.event-controls button:hover {
  border-color: rgba(99, 171, 231, 0.75);
  background: rgba(21, 58, 89, 0.75);
}

.request-icon,
.message-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.request-icon.orange {
  color: #ff9b37;
  background: rgba(255, 151, 43, 0.13);
}

.request-icon.blue {
  color: #72a6ff;
  background: rgba(77, 132, 235, 0.16);
}

.request-list strong {
  color: #eef7ff;
  font-size: 13px;
}

.request-list small {
  display: block;
  color: #9db0bf;
  margin-top: 2px;
  font-size: 12px;
}

.request-list em {
  display: grid;
  gap: 3px;
  color: #9db0bf;
  font-size: 11px;
  font-style: normal;
}

.request-list em b {
  color: #ff9b37;
  font-size: 13px;
}

.event-controls {
  display: flex;
  gap: 7px;
}

.event-controls button {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(48, 84, 113, 0.72);
  border-radius: 7px;
  background: rgba(9, 29, 47, 0.72);
  color: #b7c8d4;
  cursor: pointer;
  padding: 0 10px;
  font-weight: 740;
}

.event-controls svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
}

.expanded-event {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  margin: 0 10px;
  padding: 11px 0 12px;
  border-top: 1px solid rgba(47, 84, 111, 0.62);
  border-bottom: 1px solid rgba(47, 84, 111, 0.62);
}

.event-stamp {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #75a9ff;
  font-weight: 860;
  font-variant-numeric: tabular-nums;
}

.event-stamp span {
  width: 11px;
  height: 11px;
  margin-top: 4px;
  border-radius: 50%;
  border: 3px solid #5d94f2;
}

.event-stamp::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 18px;
  bottom: -168px;
  width: 1px;
  background: rgba(82, 129, 180, 0.45);
}

.event-content {
  display: grid;
  gap: 8px;
}

.event-title {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.event-title strong {
  color: #eef7ff;
}

.event-title span {
  padding: 4px 8px;
  border-radius: 6px;
  color: #90beff;
  background: rgba(54, 99, 177, 0.24);
  border: 1px solid rgba(80, 128, 211, 0.36);
  font-size: 11px;
  font-weight: 780;
}

.event-title .photo-chip {
  color: #62d89e;
  background: rgba(37, 149, 101, 0.18);
  border-color: rgba(64, 188, 128, 0.35);
}

.voice-event {
  display: grid;
  grid-template-columns: 220px minmax(260px, 1fr) 230px;
  gap: 12px;
  align-items: center;
}

.voice-player {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid rgba(61, 99, 128, 0.68);
  border-radius: 8px;
  background: rgba(8, 29, 47, 0.66);
}

.voice-player button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(93, 149, 235, 0.5);
  color: #8ab8ff;
  background: rgba(56, 96, 164, 0.2);
  cursor: pointer;
}

.voice-player small {
  grid-column: 2;
  color: #9db0bf;
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.voice-player small b {
  color: #dcecff;
  font-weight: 780;
}

.voice-seek {
  position: relative;
  height: 4px;
  border-radius: 99px;
  background: rgba(113, 142, 164, 0.34);
  box-shadow: inset 0 0 0 1px rgba(168, 193, 210, 0.08);
}

.voice-seek span {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: #75a9ff;
}

.voice-seek::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d9e9ff;
  box-shadow: 0 0 0 3px rgba(117, 169, 255, 0.18);
  transform: translate(-50%, -50%);
}

.voice-event p {
  margin: 0;
  color: #d5e2eb;
  font-size: 13px;
  line-height: 1.42;
}

.event-photo {
  position: relative;
  height: 96px;
  border: 1px solid rgba(73, 106, 130, 0.62);
  border-radius: 7px;
  overflow: hidden;
  background:
    linear-gradient(14deg, transparent 0 39%, rgba(255, 134, 52, 0.88) 40% 43%, transparent 44%),
    linear-gradient(155deg, transparent 0 44%, rgba(180, 206, 218, 0.7) 45% 48%, transparent 49%),
    linear-gradient(180deg, #97a9b0 0 38%, #1d3341 39% 66%, #604632 67% 100%);
}

.event-photo::before {
  content: "";
  position: absolute;
  left: 44px;
  right: 28px;
  bottom: 24px;
  height: 18px;
  border-radius: 4px;
  background: #c7d0d4;
  box-shadow: 42px -28px 0 -6px #d9e2e6, 82px -16px 0 -7px #bfcbd0;
}

.event-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.35));
}

.event-photo span {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 2;
  padding: 3px 7px;
  border-radius: 5px;
  color: #e8f0f4;
  background: rgba(7, 19, 30, 0.82);
  font-size: 11px;
  font-weight: 800;
}

.ai-extracted {
  color: #6ddfb0;
  font-size: 12px;
  font-weight: 840;
}

.extract-grid {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.extract-grid span {
  padding: 6px 8px;
  border-radius: 6px;
  color: #aebfca;
  background: rgba(9, 29, 47, 0.8);
  border: 1px solid rgba(54, 91, 118, 0.7);
  font-size: 11px;
}

.extract-grid b {
  color: #d8e8f0;
  margin-right: 5px;
}

.collapsed-event {
  width: calc(100% - 20px);
  display: grid;
  grid-template-columns: 74px 138px minmax(0, 1fr) 20px;
  gap: 12px;
  align-items: center;
  margin: 0 10px;
  min-height: 34px;
  border: 0;
  border-bottom: 1px solid rgba(47, 84, 111, 0.62);
  background: transparent;
  color: #9db0bf;
  cursor: pointer;
  text-align: left;
}

.collapsed-event:hover {
  color: #e7f2f8;
  background: rgba(22, 59, 89, 0.34);
}

.collapsed-event span {
  color: #d8e8f0;
  font-weight: 820;
  font-variant-numeric: tabular-nums;
}

.collapsed-event strong {
  color: #e7f2f8;
}

.collapsed-event em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.message-card {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: start;
  margin: 0 12px 12px;
  padding: 13px;
  border: 1px solid rgba(48, 84, 113, 0.72);
  border-radius: 8px;
  background: rgba(8, 29, 47, 0.6);
}

.message-icon {
  color: #58dca5;
  background: rgba(39, 183, 122, 0.15);
  border: 1px solid rgba(62, 208, 139, 0.5);
}

.message-card.pending .message-icon,
.message-card.pending-data .message-icon {
  color: #77aaff;
  background: rgba(74, 127, 220, 0.17);
  border-color: rgba(95, 151, 238, 0.5);
}

.message-card strong {
  color: #eef7ff;
  font-size: 14px;
}

.message-card p {
  margin: 7px 0;
  color: #aebfca;
  font-size: 12px;
  line-height: 1.4;
}

.message-card small {
  display: block;
  color: #9db0bf;
  margin-bottom: 7px;
}

.message-card > em {
  padding: 4px 7px;
  border-radius: 6px;
  color: #50d483;
  background: rgba(47, 176, 94, 0.16);
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.message-card.pending > em,
.message-card.pending-data > em {
  color: #91b8ff;
  background: rgba(65, 108, 204, 0.2);
}

.message-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.message-chips span {
  padding: 5px 7px;
  border-radius: 5px;
  color: #b7c7d2;
  background: rgba(10, 31, 49, 0.88);
  border: 1px solid rgba(52, 91, 120, 0.75);
  font-size: 11px;
}

.message-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.message-actions button {
  min-height: 30px;
  border: 1px solid rgba(71, 139, 224, 0.75);
  border-radius: 5px;
  background: rgba(31, 78, 137, 0.22);
  color: #93c2ff;
  cursor: pointer;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 850;
}

/* Type normalization for the operational desktop surfaces. */
.turnaround-view,
.flight-detail-view {
  font-size: var(--type-body);
  font-weight: var(--weight-regular);
}

.breadcrumbs,
.global-search input,
.global-search kbd,
.operator-card strong,
.operator-card small,
.top-dropdown button,
.top-dropdown a,
.dropdown-head span,
.nav-label,
.sidebar-expanded .nav-label {
  font-size: var(--type-sm);
  font-weight: var(--weight-medium);
}

.page-title-row h1,
.brand-stack h1 {
  font-size: 20px;
  font-weight: var(--weight-semibold);
}

.station-scope,
.dropdown-head strong,
.profile-summary strong {
  font-size: var(--type-md);
  font-weight: var(--weight-semibold);
}

.top-icon.has-badge > span,
.operator-card > span {
  font-size: var(--type-xs);
  font-weight: var(--weight-semibold);
}

.rail-brand strong span:first-child {
  font-weight: var(--weight-bold);
}

.rail-brand strong span:last-child {
  font-weight: var(--weight-semibold);
}

.turn-kpi span:not(.kpi-icon),
.turn-board-header,
.detail-fact span,
.detail-station span,
.detail-stat-grid span,
.assessment-body > span,
.assessment-facts span,
.request-list em,
.message-card small,
.message-chips span,
.extract-grid span b {
  font-size: var(--type-xs);
  font-weight: var(--weight-semibold);
}

.turn-kpi strong {
  font-size: var(--type-large);
  font-weight: var(--weight-semibold);
}

.turn-kpi small,
.turn-board-tabs span,
.turn-board-foot,
.turn-flight small,
.turn-flight em,
.turn-flight-state,
.process-step span,
.departure-targets b,
.turn-status .state-pill,
.priority-meta,
.priority-chips span {
  font-size: var(--type-xs);
  font-weight: var(--weight-medium);
}

.turn-board-tabs button,
.turn-board-actions button,
.turn-board-foot button,
.ai-actions button,
.flight-detail-tabs button,
.event-controls button,
.message-actions button {
  font-size: var(--type-sm);
  font-weight: var(--weight-semibold);
}

.turn-board-head h2,
.ai-side-title strong,
.detail-card-head h2,
.open-work-head strong {
  font-size: var(--type-title);
  font-weight: var(--weight-semibold);
}

.turn-flight strong,
.process-step strong,
.departure-targets span,
.delay,
.priority-identity strong,
.priority-identity b,
.ai-card h3,
.request-list strong,
.event-title strong,
.collapsed-event strong,
.message-card strong {
  font-size: var(--type-md);
  font-weight: var(--weight-semibold);
}

.turn-flight span,
.priority-context,
.ai-card p,
.request-list small,
.voice-event p,
.message-card p,
.extract-grid span,
.collapsed-event em {
  font-size: var(--type-sm);
  font-weight: var(--weight-regular);
}

.aircraft-summary strong {
  font-size: var(--type-display);
  font-weight: var(--weight-bold);
}

.detail-fact strong,
.detail-station strong,
.detail-stat-grid strong,
.flight-pairing strong {
  font-size: 16px;
  font-weight: var(--weight-semibold);
}

.detail-status,
.event-title span,
.message-card > em,
.workflow-state,
.ai-side-title span,
.ai-actions button.apply {
  font-size: var(--type-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0;
}

.live-turn-label strong,
.event-stamp,
.collapsed-event span {
  font-size: var(--type-md);
  font-weight: var(--weight-semibold);
}

.live-turn-label span,
.turn-time-axis,
.now-line b,
.turn-bar b,
.bar-time,
.live-turn-legend,
.voice-player small {
  font-size: var(--type-xs);
  font-weight: var(--weight-regular);
}

.assessment-body h3 {
  font-size: 16px;
  font-weight: var(--weight-semibold);
}

.assessment-body p {
  font-size: var(--type-body);
  font-weight: var(--weight-regular);
}

.assessment-facts strong {
  font-size: var(--type-md);
  font-weight: var(--weight-semibold);
}

.commitment-button {
  font-size: var(--type-sm);
  font-weight: var(--weight-bold);
  letter-spacing: 0;
}

.ai-extracted {
  font-size: var(--type-sm);
  font-weight: var(--weight-semibold);
}

.control-footer {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
}

.settings-row > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-row strong {
  color: #eaf4f6;
  font-size: 13px;
  font-weight: 700;
}

.settings-row span {
  color: var(--muted);
  font-size: 12px;
}

.theme-switch {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  min-width: 172px;
  padding: 4px;
  border: 1px solid #28394a;
  border-radius: 8px;
  background: #0d1825;
}

.theme-switch button {
  min-height: 30px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #aebfcc;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
}

.theme-switch button.active {
  color: #071114;
  background: #eef3f5;
  border-color: #eef3f5;
}

.work-row-focus {
  background: rgba(66, 201, 181, 0.08);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 11, 0.64);
  display: grid;
  place-items: center;
  padding: 20px;
  z-index: 50;
}

.modal-panel {
  width: min(880px, 96vw);
  box-shadow: var(--shadow);
}

.connect-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

.qr-box {
  background: #fff;
  padding: 12px;
  display: grid;
  place-items: center;
}

.qr-box img {
  width: 164px;
  height: 164px;
}

.url-list {
  display: grid;
  gap: 10px;
}

.url-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  background: #101a20;
  padding: 9px;
}

.url-row code {
  color: #d6f2ff;
  overflow-wrap: anywhere;
}

.field-page {
  min-height: 100vh;
  background: #eef4f6;
  color: #132127;
}

.phone-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    linear-gradient(180deg, #0d323e 0, #123e4b 210px, #eef4f6 210px);
}

.phone-top {
  color: #f6fbfc;
  padding: 14px 16px 12px;
  display: grid;
  gap: 10px;
}

.phone-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.phone-top h1 {
  margin: 0;
  font-size: 19px;
}

.phone-top span {
  color: #c8dadd;
  font-size: 13px;
}

.role-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.role-switch a {
  min-height: 34px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.18);
  color: #d9e9ec;
  font-weight: 800;
  font-size: 12px;
}

.role-switch a.active {
  background: #f2fbfb;
  color: #102027;
}

.phone-content {
  padding: 0 12px 24px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.mobile-panel {
  background: #fff;
  border: 1px solid #d7e0e4;
  box-shadow: 0 12px 32px rgba(22, 43, 51, 0.12);
}

.mobile-panel.dark {
  background: #0f1c23;
  border-color: #263a43;
  color: #eff8fa;
}

.mobile-header {
  padding: 12px;
  border-bottom: 1px solid #dde7ea;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.mobile-panel.dark .mobile-header {
  border-color: #263a43;
}

.mobile-header h2 {
  margin: 0;
  font-size: 14px;
  text-transform: uppercase;
}

.context-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: #dce6e9;
}

.context-cell {
  background: #fff;
  padding: 12px;
  min-height: 64px;
}

.context-cell span {
  display: block;
  color: #62717a;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 850;
}

.context-cell b {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}

.status-list {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #e4ecef;
  padding-bottom: 8px;
}

.status-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.mobile-actions {
  padding: 12px;
  display: grid;
  gap: 8px;
}

.mobile-primary,
.mobile-secondary,
.mobile-danger {
  min-height: 52px;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  font-size: 14px;
  cursor: pointer;
}

.mobile-primary {
  background: #153b46;
  color: #fff;
}

.mobile-secondary {
  background: #e8eef1;
  color: #14242b;
}

.mobile-danger {
  background: var(--red);
  color: #fff;
}

.capture-stage {
  background: #070b0e;
  color: #fff;
  min-height: calc(100vh - 114px);
  display: grid;
  grid-template-rows: minmax(300px, 1fr) auto;
}

.camera-view {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.1), transparent 35%),
    linear-gradient(180deg, #7f98a0 0, #a8b7b3 43%, #47555a 44%, #263036 100%);
  display: grid;
  align-content: end;
  padding: 12px;
}

.camera-view:before {
  content: "";
  position: absolute;
  left: 8%;
  right: 5%;
  bottom: 32%;
  height: 16px;
  background: #f2f3f0;
  transform: rotate(-3deg);
  opacity: 0.85;
}

.camera-view:after {
  content: "STAND 37";
  position: absolute;
  right: 14px;
  top: 12px;
  color: rgba(255,255,255,0.8);
  font-size: 12px;
  font-weight: 900;
}

.capture-card {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.92);
  color: #14242b;
  padding: 12px;
  display: grid;
  gap: 8px;
}

.waveform {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.waveform i {
  width: 4px;
  height: 18px;
  background: #2a7fff;
  animation: pulseWave 850ms infinite ease-in-out;
}

.waveform i:nth-child(2n) { height: 28px; animation-delay: 80ms; }
.waveform i:nth-child(3n) { height: 12px; animation-delay: 130ms; }
.waveform i:nth-child(4n) { height: 34px; animation-delay: 190ms; }

@keyframes pulseWave {
  0%, 100% { transform: scaleY(0.52); opacity: 0.65; }
  50% { transform: scaleY(1); opacity: 1; }
}

.capture-controls {
  background: #05070a;
  padding: 16px 18px 22px;
  display: grid;
  gap: 14px;
}

.capture-buttons {
  display: grid;
  grid-template-columns: 70px 1fr 70px;
  align-items: center;
  gap: 12px;
}

.round-control {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: #182029;
  justify-self: center;
  font-weight: 900;
  cursor: pointer;
}

.record-control {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: 8px solid #2a3138;
  background: #f4f4f5;
  color: #182029;
  justify-self: center;
}

.photo-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}

.photo-thumbs img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border: 2px solid #dbe8eb;
}

.note-box {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  border: 1px solid #d7e0e4;
  padding: 10px;
}

.review-grid {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.review-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 8px;
  border-bottom: 1px solid #e2eaed;
  padding-bottom: 8px;
  font-size: 14px;
}

.review-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.review-item span {
  color: #66747a;
  font-weight: 850;
  text-transform: uppercase;
  font-size: 11px;
}

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

.option-button {
  min-height: 44px;
  background: #e9eff2;
  color: #12252d;
  border: 2px solid transparent;
  font-weight: 900;
  cursor: pointer;
}

.option-button.selected {
  border-color: #153b46;
  background: #d3f0eb;
}

.field-alert {
  background: #ffe9e9;
  color: #5b1717;
  border-left: 4px solid var(--red);
  padding: 12px;
  font-weight: 850;
}

.field-ok {
  background: #e6f7ec;
  color: #113d25;
  border-left: 4px solid var(--green);
  padding: 12px;
  font-weight: 850;
}

.hidden-file {
  display: none;
}

.ramp-workflow-page {
  min-height: 100vh;
  color: #0d1b2a;
  background:
    radial-gradient(circle at 12% 0, rgba(114, 166, 212, 0.18), transparent 32%),
    linear-gradient(180deg, #f4f8fb, #edf4f8);
}

.workflow-board {
  width: min(1540px, 100%);
  margin: 0 auto;
  padding: 34px 38px 46px;
}

.workflow-hero h1 {
  margin: 0;
  color: #0a1726;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: 0;
}

.workflow-hero h1 span {
  font-weight: 520;
}

.workflow-hero p {
  margin: 10px 0 0;
  color: #35475a;
  font-size: 18px;
}

.workflow-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 28px;
  margin: 38px 26px 26px;
}

.workflow-step {
  position: relative;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  gap: 10px;
  color: #102033;
}

.workflow-step > b {
  width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #2f9b90;
  font-size: 12px;
  box-shadow: 0 2px 0 rgba(7, 46, 58, 0.08);
}

.workflow-step strong {
  display: block;
  font-size: 16px;
  line-height: 1.15;
}

.workflow-step span {
  display: block;
  margin-top: 7px;
  color: #46576a;
  font-size: 15px;
  line-height: 1.35;
}

.workflow-step > i {
  position: absolute;
  right: -27px;
  top: 22px;
  color: #9aa6b2;
  font-size: 34px;
  font-style: normal;
}

.phone-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(230px, 1fr));
  gap: 14px;
  align-items: start;
}

.phone-hardware {
  position: relative;
  width: 100%;
  aspect-ratio: 0.49;
  max-height: 760px;
  border: 5px solid #111820;
  border-radius: 38px;
  overflow: hidden;
  background: #041420;
  box-shadow: 0 18px 32px rgba(21, 40, 58, 0.24), inset 0 0 0 2px rgba(255,255,255,0.06);
}

.phone-notch {
  position: absolute;
  left: 50%;
  top: 13px;
  width: 86px;
  height: 25px;
  border-radius: 999px;
  background: #02060a;
  transform: translateX(-50%);
  z-index: 4;
}

.phone-notch span {
  position: absolute;
  right: 11px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0d2d66;
}

.workflow-status {
  position: absolute;
  inset: 18px 16px auto;
  display: flex;
  justify-content: space-between;
  color: #f3fbff;
  font-size: 11px;
  z-index: 3;
}

.workflow-screen {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  padding-top: 45px;
  color: #e8f2f6;
  background:
    radial-gradient(circle at 50% -8%, rgba(43, 113, 164, 0.34), transparent 36%),
    linear-gradient(180deg, #071d2c, #03131f 74%, #03111b);
}

.workflow-phone-head {
  min-height: 44px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px 34px;
  align-items: center;
  gap: 4px;
  padding: 0 13px;
  color: #c4d6e1;
}

.workflow-phone-head button {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 25px;
}

.workflow-phone-head svg,
.workflow-bottom-nav svg,
.workflow-process-row svg,
.workflow-capture-actions svg,
.workflow-done-card svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
}

.workflow-phone-head strong,
.workflow-phone-head span {
  display: block;
  text-align: center;
}

.workflow-phone-head strong {
  color: #f5fbff;
  font-size: 14px;
  line-height: 1.1;
}

.workflow-phone-head span {
  color: #a4b7c5;
  font-size: 11px;
}

.workflow-phone-body {
  min-height: 0;
  overflow: hidden;
  padding: 5px 13px 10px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.workflow-phone-body h2 {
  margin: 0;
  color: #f5fbff;
  font-size: 19px;
  line-height: 1.1;
}

.workflow-phone-body h3 {
  margin: 6px 0 0;
  color: #cfdde6;
  font-size: 12px;
  font-weight: 620;
}

.workflow-phone-body p {
  margin: 0;
  color: #a9bac6;
  font-size: 12px;
  line-height: 1.35;
}

.workflow-turn-card {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(79, 116, 142, 0.52);
  border-radius: 8px;
  background: rgba(8, 31, 50, 0.76);
  color: inherit;
  padding: 9px;
  text-align: left;
}

.workflow-turn-card.critical {
  border-color: rgba(224, 86, 88, 0.82);
}

.workflow-turn-card.monitor {
  border-color: rgba(208, 154, 52, 0.62);
}

.workflow-turn-card.good {
  border-color: rgba(65, 176, 137, 0.6);
}

.workflow-turn-card > div,
.workflow-turn-card footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.workflow-turn-card > div {
  align-items: center;
}

.workflow-turn-card strong {
  color: #f3fbff;
  font-size: 15px;
}

.workflow-turn-card em,
.workflow-state {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border: 1px solid rgba(104, 167, 214, 0.45);
  border-radius: 6px;
  color: #9fd1ff;
  background: rgba(46, 113, 169, 0.16);
  padding: 0 7px;
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
}

.workflow-state.critical,
.workflow-turn-card.critical em {
  color: #ff9d9a;
  border-color: rgba(224, 86, 88, 0.58);
  background: rgba(148, 51, 58, 0.18);
}

.workflow-turn-card.monitor em {
  color: #edc36f;
  border-color: rgba(208, 154, 52, 0.46);
  background: rgba(123, 88, 32, 0.14);
}

.workflow-turn-card.good em {
  color: #7ddbb9;
  border-color: rgba(65, 176, 137, 0.46);
  background: rgba(36, 129, 94, 0.18);
}

.workflow-turn-card > span {
  color: #b5c4ce;
  font-size: 13px;
}

.workflow-turn-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 11px;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid rgba(91, 120, 140, 0.28);
}

.workflow-turn-card dt {
  margin: 0;
  color: #f0f7fb;
  font-size: 12px;
  font-weight: 650;
}

.workflow-turn-card dt::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #58c6a7;
}

.workflow-turn-card.critical dt::before {
  background: #f26161;
}

.workflow-turn-card.monitor dt::before {
  background: #d89a32;
}

.workflow-turn-card dd {
  margin: 0;
  color: #b5c4ce;
  font-size: 12px;
}

.workflow-turn-card dd.blocked {
  color: #ff8f8a;
}

.workflow-turn-card small {
  grid-column: 1 / -1;
  color: #91a6b5;
  padding-left: 13px;
}

.workflow-turn-card footer {
  padding-top: 6px;
  border-top: 1px solid rgba(91, 120, 140, 0.24);
  color: #aebfcb;
  font-size: 12px;
}

.workflow-turn-card footer b {
  color: #62c4e8;
}

.workflow-bottom-nav {
  min-height: 52px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(70, 104, 130, 0.35);
  background: rgba(3, 15, 24, 0.72);
}

.workflow-bottom-nav span {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #8fa2b1;
  font-size: 10px;
}

.workflow-bottom-nav span.active {
  color: #61d6b4;
}

.workflow-phone-body.context {
  gap: 10px;
}

.workflow-metric-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid rgba(70, 104, 130, 0.48);
  border-radius: 8px;
  overflow: hidden;
}

.workflow-metric-grid div {
  padding: 11px;
  background: rgba(10, 36, 58, 0.74);
  border-left: 1px solid rgba(70, 104, 130, 0.38);
}

.workflow-metric-grid div:first-child {
  border-left: 0;
}

.workflow-metric-grid span,
.workflow-facts span,
.workflow-extract-list span {
  display: block;
  color: #91a6b5;
  font-size: 11px;
}

.workflow-metric-grid strong {
  display: block;
  color: #f4fbff;
  margin-top: 3px;
  font-size: 18px;
}

.workflow-metric-grid div:last-child strong {
  color: #62c4e8;
}

.workflow-process-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 8px;
  border: 1px solid rgba(70, 104, 130, 0.48);
  border-radius: 9px;
  background: rgba(9, 32, 51, 0.72);
}

.workflow-process-row i,
.workflow-done-card > i {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #8ecbff;
  background: rgba(58, 137, 255, 0.14);
  border: 1px solid rgba(99, 170, 230, 0.38);
}

.workflow-process-row.blocked i {
  color: #ff7973;
  background: rgba(161, 61, 70, 0.16);
  border-color: rgba(232, 91, 91, 0.46);
}

.workflow-process-row strong {
  display: block;
  color: #f5fbff;
  font-size: 13px;
}

.workflow-process-row span {
  display: block;
  color: #9eb1be;
  margin-top: 3px;
  font-size: 11px;
}

.workflow-process-row em {
  color: #61d6b4;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.workflow-process-row.blocked em,
.workflow-process-row.blocked strong {
  color: #ff8580;
}

.workflow-facts {
  display: grid;
  border-top: 1px solid rgba(70, 104, 130, 0.35);
}

.workflow-facts div {
  min-height: 35px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(70, 104, 130, 0.35);
}

.workflow-facts strong {
  color: #f3fbff;
  font-size: 12px;
}

.workflow-action-wrap {
  padding: 8px 14px 10px;
}

.workflow-primary {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  color: #eefaff;
  background: linear-gradient(180deg, #2f8fd3, #176aa7);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
  font-size: 14px;
  font-weight: 760;
}

.workflow-secondary-link {
  width: 100%;
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(91, 147, 190, 0.46);
  border-radius: 7px;
  color: #bfe1fb;
  background: rgba(12, 40, 64, 0.62);
  text-decoration: none;
  font-size: 14px;
  font-weight: 760;
}

.role-picker-actions {
  display: grid;
  gap: 10px;
  padding-inline: 0;
}

.equipment-primary {
  background: linear-gradient(180deg, #2d85c6, #17639d);
}

.workflow-phone-body.equipment {
  gap: 11px;
}

.workflow-empty-state {
  min-height: 190px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 22px;
  border: 1px solid rgba(70, 104, 130, 0.5);
  border-radius: 10px;
  background: rgba(8, 29, 47, 0.62);
  text-align: center;
}

.workflow-empty-state strong {
  color: #f5fbff;
  font-size: 16px;
}

.workflow-empty-state span {
  color: #9eb2c0;
  font-size: 12px;
  line-height: 1.4;
}

.equipment-action-card {
  min-height: 190px;
}

.equipment-choice-grid {
  display: grid;
  gap: 10px;
}

.equipment-choice-grid button {
  min-height: 104px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(74, 116, 148, 0.55);
  border-radius: 10px;
  background: rgba(8, 29, 47, 0.74);
  color: inherit;
  text-align: left;
}

.equipment-choice-grid svg {
  width: 20px;
  height: 20px;
  stroke: #8ecbff;
  fill: none;
}

.equipment-choice-grid strong,
.equipment-choice-grid span {
  display: block;
}

.equipment-choice-grid strong {
  color: #f5fbff;
  font-size: 13px;
}

.equipment-choice-grid span {
  margin-top: 4px;
  color: #9eb2c0;
  font-size: 12px;
}

.equipment-form {
  display: grid;
  gap: 10px;
}

.equipment-form label {
  display: grid;
  gap: 6px;
}

.equipment-form span {
  color: #9eb2c0;
  font-size: 11px;
}

.equipment-form input {
  min-height: 43px;
  border: 1px solid rgba(70, 104, 130, 0.52);
  border-radius: 8px;
  background: rgba(8, 29, 47, 0.72);
  color: #7ee1c0;
  padding: 0 11px;
  font: inherit;
  font-weight: 760;
}

.workflow-phone-body.capture {
  text-align: center;
}

.recording-pill {
  min-height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(229, 84, 84, 0.7);
  border-radius: 7px;
  color: #ff8580;
  background: rgba(120, 36, 42, 0.18);
  font-size: 12px;
}

.recording-pill[data-tone="live"] {
  color: #7ee1c0;
  border-color: rgba(75, 204, 160, 0.56);
  background: rgba(36, 131, 98, 0.17);
}

.recording-pill[data-tone="error"] {
  color: #ffd08b;
  border-color: rgba(215, 151, 65, 0.58);
  background: rgba(132, 86, 31, 0.18);
}

.recording-pill::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: #ff5f5b;
}

.recording-pill[data-tone="live"]::before {
  background: #58d9ad;
}

.workflow-photo {
  position: relative;
  height: 218px;
  border: 1px solid rgba(86, 119, 142, 0.56);
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(24deg, transparent 0 41%, rgba(235, 238, 226, 0.9) 42% 46%, transparent 47%),
    linear-gradient(156deg, transparent 0 42%, rgba(218, 156, 40, 0.82) 43% 47%, transparent 48%),
    linear-gradient(180deg, #dde6e8 0 34%, #9baab0 35% 38%, #233a48 39% 71%, #4b3929 72% 100%);
}

.workflow-photo::before {
  content: "";
  position: absolute;
  left: 46px;
  right: 30px;
  bottom: 88px;
  height: 24px;
  border-radius: 4px;
  background: #d7e0e4;
  box-shadow: 55px -46px 0 -8px #f1f2ec, 98px -26px 0 -9px #d8e1e3, -18px 56px 0 -5px #d39129;
}

.workflow-photo span {
  position: absolute;
  left: 10px;
  top: 10px;
  color: rgba(255,255,255,0.82);
  font-size: 11px;
}

.workflow-live-camera {
  position: relative;
  height: 286px;
  border: 1px solid rgba(86, 119, 142, 0.56);
  border-radius: 10px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 34%, rgba(55, 121, 165, 0.22), transparent 34%),
    linear-gradient(180deg, #091d2b, #04111d);
}

.workflow-live-camera video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #071723;
}

.workflow-live-camera.live video {
  filter: saturate(0.94) contrast(1.04);
}

.camera-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 22px;
  color: #dcebf4;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.03) 25%, transparent 25% 50%, rgba(255,255,255,0.03) 50% 75%, transparent 75%),
    rgba(8, 31, 50, 0.94);
  background-size: 18px 18px;
  text-align: center;
}

.camera-placeholder.hidden {
  display: none;
}

.camera-placeholder strong {
  color: #f3fbff;
  font-size: 15px;
}

.camera-placeholder span {
  color: #9eb2c0;
  font-size: 12px;
  line-height: 1.35;
}

.camera-label {
  position: absolute;
  left: 10px;
  top: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(154, 191, 219, 0.22);
  border-radius: 999px;
  color: rgba(239, 249, 255, 0.92);
  background: rgba(3, 17, 27, 0.58);
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.workflow-live-camera.captured::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.56);
  animation: capture-flash 260ms ease-out forwards;
}

@keyframes capture-flash {
  from { opacity: 1; }
  to { opacity: 0; }
}

.static-wave {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.static-wave i {
  width: 3px;
  height: 10px;
  border-radius: 99px;
  background: #3ed3b2;
  opacity: 0.85;
}

.live-wave i {
  transition: height 80ms linear, opacity 80ms linear;
}

.workflow-phone-body.capture > strong {
  color: #61d6b4;
  font-size: 12px;
}

.workflow-capture-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 9px 14px 12px;
}

.workflow-capture-actions button {
  min-height: 58px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  border: 1px solid rgba(74, 116, 148, 0.55);
  border-radius: 8px;
  background: rgba(8, 29, 47, 0.74);
  color: #e6f3f8;
}

.workflow-capture-actions button.stop {
  color: #ff8580;
  border-color: rgba(224, 86, 88, 0.58);
  background: rgba(107, 38, 48, 0.2);
}

.workflow-transcript {
  display: grid;
  gap: 7px;
  padding: 9px;
  border: 1px solid rgba(70, 104, 130, 0.5);
  border-radius: 8px;
  background: rgba(10, 33, 52, 0.72);
}

.workflow-transcript span {
  color: #9db0bf;
  font-size: 11px;
}

.workflow-transcript p {
  color: #dce8ef;
  font-size: 11px;
  line-height: 1.34;
}

.workflow-extract-list {
  display: grid;
  border: 1px solid rgba(70, 104, 130, 0.5);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(8, 29, 47, 0.62);
}

.workflow-extract-list div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 9px;
  padding: 7px 9px;
  border-bottom: 1px solid rgba(70, 104, 130, 0.35);
}

.workflow-extract-list div:last-child {
  border-bottom: 0;
}

.workflow-extract-list strong {
  color: #dfeaf0;
  font-size: 11px;
  line-height: 1.35;
}

.workflow-extract-list div:nth-child(5) strong,
.workflow-extract-list div:nth-child(6) strong {
  color: #8cc9ff;
}

.review-actions {
  display: grid;
  gap: 8px;
}

.review-actions > button:last-child {
  min-height: 28px;
  border: 0;
  background: transparent;
  color: #9fd1ff;
}

.workflow-phone-body.done {
  align-content: start;
  text-align: center;
  gap: 12px;
}

.success-ring {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 3px solid #56d6a6;
  border-radius: 50%;
  color: #56d6a6;
  font-size: 34px;
}

.workflow-phone-body.done h2 {
  width: 190px;
  justify-self: center;
  line-height: 1.25;
  font-size: 18px;
}

.workflow-done-card {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 12px 10px;
  border: 1px solid rgba(70, 104, 130, 0.5);
  border-radius: 9px;
  background: rgba(9, 32, 51, 0.76);
  text-align: center;
}

.workflow-done-card > strong {
  color: #f5fbff;
  font-size: 15px;
}

.workflow-done-card > span {
  color: #b5c4ce;
  font-size: 12px;
}

.workflow-done-card .workflow-process-row {
  width: 100%;
  grid-template-columns: 32px 1fr;
  text-align: left;
  background: transparent;
  border: 0;
  border-top: 1px solid rgba(70, 104, 130, 0.35);
  border-radius: 0;
  padding-bottom: 0;
}

.workflow-done-card.action {
  grid-template-columns: 42px minmax(0, 1fr);
  justify-items: start;
  text-align: left;
}

.workflow-done-card.action strong {
  color: #f5fbff;
  font-size: 13px;
}

.workflow-done-card.action span {
  display: block;
  color: #aebfcb;
  margin-top: 4px;
  font-size: 12px;
}

.workflow-done-card.action em {
  display: block;
  color: #8cc9ff;
  margin-top: 6px;
  font-size: 12px;
  font-style: normal;
}

@media (max-width: 1180px) {
  .workflow-board {
    padding: 24px 18px 36px;
  }

  .workflow-steps,
  .phone-flow {
    overflow-x: auto;
    grid-template-columns: repeat(5, 250px);
    padding-bottom: 10px;
  }
}

.ramp-workflow-app {
  min-height: 100vh;
  overflow: hidden;
  color: #e9f4f8;
  background:
    radial-gradient(circle at 50% 0, rgba(33, 109, 159, 0.3), transparent 34%),
    linear-gradient(180deg, #071b2a, #020a12);
}

.workflow-mobile-stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 18px;
}

.workflow-mobile-stage .workflow-phone {
  width: min(390px, calc(100vw - 28px));
}

.workflow-mobile-stage .phone-hardware {
  height: min(820px, calc(100dvh - 36px));
  max-height: none;
  aspect-ratio: auto;
}

.workflow-mobile-stage button {
  cursor: pointer;
}

.workflow-mobile-stage .workflow-turn-card,
.workflow-mobile-stage .workflow-primary,
.workflow-mobile-stage .workflow-capture-actions button,
.workflow-mobile-stage .workflow-phone-head button,
.workflow-mobile-stage .review-actions > button:last-child {
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease, filter 160ms ease;
}

.workflow-mobile-stage .workflow-turn-card:hover,
.workflow-mobile-stage .workflow-capture-actions button:hover {
  border-color: rgba(99, 176, 232, 0.72);
  background: rgba(14, 45, 70, 0.9);
}

.workflow-mobile-stage .workflow-primary:hover {
  filter: brightness(1.08);
}

.workflow-mobile-stage .workflow-turn-card:active,
.workflow-mobile-stage .workflow-primary:active,
.workflow-mobile-stage .workflow-capture-actions button:active {
  transform: translateY(1px);
}

@media (max-width: 560px) {
  .ramp-workflow-app {
    background: #03131f;
  }

  .workflow-mobile-stage {
    min-height: 100dvh;
    padding: 0;
    place-items: stretch;
  }

  .workflow-mobile-stage .workflow-phone {
    width: 100%;
    min-height: 100dvh;
  }

  .workflow-mobile-stage .phone-hardware {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .workflow-mobile-stage .workflow-screen {
    min-height: 100dvh;
  }
}

body.theme-light {
  color-scheme: light;
  --ink: #14232d;
  --muted: #637382;
  --quiet: #8a98a6;
  --line: #d7e0e7;
  --panel: #ffffff;
  --panel-2: #f3f7fa;
  --panel-3: #e7eef4;
  --page: #edf3f7;
  --accent: #0c8f83;
  --accent-2: #226fb4;
  --green: #138656;
  --amber: #b97912;
  --red: #c8403e;
  --blue: #226fb4;
  --shadow: 0 16px 38px rgba(35, 56, 72, 0.14);
}

body.theme-light .desktop-frame {
  background:
    radial-gradient(circle at 58% 0%, rgba(63, 137, 170, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(218, 232, 241, 0.86) 0, transparent 28%),
    var(--page);
}

body.theme-light .rail {
  border-right-color: #cfdbe5;
  background: linear-gradient(180deg, #f8fbfd, #e9f1f7);
}

body.theme-light .rail-brand,
body.theme-light .rail a.active,
body.theme-light .rail a:hover {
  color: #0f2635;
}

body.theme-light .rail a {
  color: #5d6e7b;
}

body.theme-light .rail a.active,
body.theme-light .rail a:hover {
  border-color: rgba(12, 143, 131, 0.28);
  background: rgba(12, 143, 131, 0.08);
}

body.theme-light .brand-mark rect {
  fill: #ffffff;
  stroke: #b9c9d5;
}

body.theme-light .brand-mark path {
  stroke: #1d4e62;
}

body.theme-light .rail-toggle {
  border-color: #c8d4df;
  background: #ffffff;
  color: #607282;
}

body.theme-light .rail-separator,
body.theme-light .rail-bottom {
  border-color: #d5e0e8;
}

body.theme-light .rail-separator {
  background: #d5e0e8;
}

body.theme-light .rail-summary {
  border-color: #d5e0e8;
  background: rgba(255, 255, 255, 0.72);
}

body.theme-light .rail-summary > span,
body.theme-light .rail-summary div,
body.theme-light .rail-sync {
  color: #617383;
}

body.theme-light .rail-summary b,
body.theme-light .nav-label {
  color: #14232d;
}

body.theme-light .nav-label {
  border-color: #cfdbe5;
  background: #ffffff;
}

body.theme-light .topbar {
  border-bottom-color: #d4e0e8;
  background: rgba(248, 251, 253, 0.96);
}

body.theme-light .brand-stack h1,
body.theme-light .page-title-row h1,
body.theme-light .turn-board-head h2,
body.theme-light .ai-side-title strong,
body.theme-light .priority-identity strong,
body.theme-light .ai-card h3,
body.theme-light .panel-header h2,
body.theme-light .band-header h2,
body.theme-light .section-title,
body.theme-light .settings-row strong {
  color: #132532;
}

body.theme-light .page-tabs button {
  color: #667684;
}

body.theme-light .page-tabs button.active {
  color: #0c8f83;
}

body.theme-light .global-search {
  border-color: #cdd9e3;
  background: #ffffff;
  color: #314758;
}

body.theme-light .global-search input {
  color: #14232d;
}

body.theme-light .global-search input::placeholder,
body.theme-light .global-search kbd,
body.theme-light .operator-card small {
  color: #7a8995;
}

body.theme-light .top-icon {
  border-left-color: #d5e0e8;
  color: #5f7181;
}

body.theme-light .operator-card > span,
body.theme-light .profile-summary > span {
  color: #173348;
  background: #dbeaf3;
}

body.theme-light .operator-card strong,
body.theme-light .profile-summary strong {
  color: #132532;
}

body.theme-light .top-dropdown {
  border-color: #cdd9e3;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

body.theme-light .dropdown-head,
body.theme-light .profile-summary {
  border-bottom-color: #d8e2ea;
}

body.theme-light .top-dropdown button,
body.theme-light .top-dropdown a {
  color: #314758;
}

body.theme-light .top-dropdown button:hover,
body.theme-light .top-dropdown a:hover {
  border-color: #d3dee7;
  background: #f2f6f9;
}

body.theme-light .notifications-menu button strong {
  color: #243847;
}

body.theme-light .turn-kpi-strip,
body.theme-light .turn-board,
body.theme-light .ai-side > section,
body.theme-light .panel,
body.theme-light .band,
body.theme-light .tool-panel,
body.theme-light .modal-panel {
  border-color: #d4e0e8;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

body.theme-light .panel-header,
body.theme-light .band-header,
body.theme-light .turn-board-head {
  border-bottom-color: #d7e2ea;
  background: #f7fafc;
}

body.theme-light .turn-kpi {
  border-right-color: #d7e2ea;
}

body.theme-light .turn-kpi span:not(.kpi-icon),
body.theme-light .turn-board-header,
body.theme-light .turn-board-foot,
body.theme-light .priority-meta,
body.theme-light .priority-context span,
body.theme-light .ai-card p,
body.theme-light .ai-card > span,
body.theme-light .settings-row span {
  color: #667886;
}

body.theme-light .turn-kpi strong,
body.theme-light .turn-flight strong,
body.theme-light .turn-empty strong {
  color: #132532;
}

body.theme-light .turn-board-head h2 span,
body.theme-light .notifications-card strong span {
  color: #415767;
  background: #e8f0f6;
}

body.theme-light .turn-board-actions button,
body.theme-light .turn-board-foot button,
body.theme-light .ai-actions button,
body.theme-light .button,
body.theme-light .icon-button,
body.theme-light .quiet-button {
  border-color: #cdd9e3;
  background: #f7fafc;
  color: #344b5d;
}

body.theme-light .turn-board-actions button.selected {
  color: #0c766d;
  background: rgba(12, 143, 131, 0.08);
}

body.theme-light .turn-board-tabs button {
  color: #667886;
}

body.theme-light .turn-board-tabs button.active {
  color: #132532;
}

body.theme-light .turn-board-tabs span {
  color: #415767;
  background: #e8f0f6;
}

body.theme-light .turn-board-header,
body.theme-light .turn-row,
body.theme-light .turn-empty,
body.theme-light .turn-stand-map {
  border-bottom-color: #d8e3eb;
}

body.theme-light .turn-row:hover {
  background: rgba(226, 236, 243, 0.62);
}

body.theme-light .turn-row.is-focused {
  background: rgba(215, 232, 241, 0.72);
  box-shadow: inset 3px 0 rgba(34, 111, 180, 0.56);
}

body.theme-light .turn-flight span {
  color: #516575;
}

body.theme-light .turn-flight small,
body.theme-light .turn-flight em {
  color: #718391;
}

body.theme-light .station-scope {
  color: #617282;
}

body.theme-light .turn-flight em {
  border-color: #cbd8e2;
  background: #eef4f8;
}

body.theme-light .turn-flight-state.good {
  color: #1e8b58;
}

body.theme-light .turn-flight-state.critical {
  color: #b9473e;
}

body.theme-light .turn-flight-state.risk {
  color: #9a6c13;
}

body.theme-light .turn-flight-state.monitor {
  color: #2d6fa8;
}

body.theme-light .turn-stand-card {
  border-color: #cfdae3;
  background: #f7fafc;
}

body.theme-light .turn-stand-card:hover {
  background: #eef4f8;
}

body.theme-light .turn-stand-card span,
body.theme-light .turn-stand-card small {
  color: #687b8b;
}

body.theme-light .turn-stand-card strong {
  color: #132532;
}

body.theme-light .turn-stand-card em {
  color: #245f91;
  background: rgba(34, 111, 180, 0.08);
}

body.theme-light .process-step {
  border-color: transparent;
  background: transparent;
}

body.theme-light .process-step.completed,
body.theme-light .process-step.done {
  color: #1e8b58;
}

body.theme-light .process-step.active {
  color: #2c78bd;
}

body.theme-light .process-step.at-risk,
body.theme-light .process-step.warning {
  border-color: rgba(185, 121, 18, 0.34);
  background: rgba(185, 121, 18, 0.08);
}

body.theme-light .process-step.upcoming,
body.theme-light .process-step.future,
body.theme-light .process-step.not-started {
  background: transparent;
}

body.theme-light .process-step strong,
body.theme-light .process-step.active strong,
body.theme-light .process-step.at-risk strong,
body.theme-light .process-step.warning strong {
  color: #253b4b;
}

body.theme-light .process-step span,
body.theme-light .departure-targets b {
  color: #738494;
}

body.theme-light .process-step.completed i,
body.theme-light .process-step.done i {
  border-color: rgba(30, 139, 88, 0.82);
  background: rgba(30, 139, 88, 0.08);
}

body.theme-light .process-step.completed::after,
body.theme-light .process-step.done::after {
  color: #1e8b58;
}

body.theme-light .process-step.active i {
  border-color: rgba(44, 120, 189, 0.86);
  background: rgba(44, 120, 189, 0.86);
}

body.theme-light .process-step.at-risk i,
body.theme-light .process-step.warning i {
  border-color: rgba(185, 121, 18, 0.88);
  background: rgba(185, 121, 18, 0.88);
}

body.theme-light .process-step.at-risk span,
body.theme-light .process-step.warning span {
  color: #8a610f;
}

body.theme-light .process-step.at-risk.critical,
body.theme-light .process-step.warning.critical {
  border-color: rgba(200, 64, 62, 0.28);
  background: rgba(200, 64, 62, 0.07);
}

body.theme-light .process-step.at-risk.critical i,
body.theme-light .process-step.warning.critical i {
  border-color: rgba(200, 64, 62, 0.88);
  background: rgba(200, 64, 62, 0.88);
}

body.theme-light .process-step.at-risk.critical span,
body.theme-light .process-step.warning.critical span {
  color: #a63230;
}

body.theme-light .departure-targets span {
  color: #243847;
}

body.theme-light .delay.late,
body.theme-light .priority-identity b {
  color: #9f6819;
}

body.theme-light .turn-status .state-pill.good,
body.theme-light .state-pill.good {
  color: #0f6f48;
  background: rgba(19, 134, 86, 0.09);
  border-color: rgba(19, 134, 86, 0.24);
}

body.theme-light .turn-status .state-pill.risk,
body.theme-light .state-pill.risk {
  color: #8a610f;
  background: rgba(185, 121, 18, 0.1);
  border-color: rgba(185, 121, 18, 0.28);
}

body.theme-light .turn-status .state-pill.monitor,
body.theme-light .state-pill[data-state="MONITOR"] {
  color: #245f91;
  background: rgba(34, 111, 180, 0.08);
  border-color: rgba(34, 111, 180, 0.22);
}

body.theme-light .turn-status .state-pill.critical,
body.theme-light .state-pill.critical {
  color: #a63230;
  background: rgba(200, 64, 62, 0.08);
  border-color: rgba(200, 64, 62, 0.24);
}

body.theme-light .workflow-state,
body.theme-light .priority-chips span,
body.theme-light .ai-side-title span,
body.theme-light .tiny-pill,
body.theme-light .source-pill,
body.theme-light .clock-pill,
body.theme-light .session-pill,
body.theme-light .state-pill {
  border-color: #cedbe4;
  background: #f2f6f9;
  color: #4a6172;
}

body.theme-light .ai-card.required {
  border-color: rgba(200, 64, 62, 0.26);
  border-left-color: rgba(200, 64, 62, 0.56);
}

body.theme-light .ai-card.waiting {
  border-color: rgba(185, 121, 18, 0.28);
  border-left-color: rgba(185, 121, 18, 0.56);
}

body.theme-light .ai-card.required .workflow-state {
  color: #a63230;
  background: rgba(200, 64, 62, 0.08);
  border-color: rgba(200, 64, 62, 0.24);
}

body.theme-light .ai-card.waiting .workflow-state {
  color: #8a610f;
  background: rgba(185, 121, 18, 0.1);
  border-color: rgba(185, 121, 18, 0.26);
}

body.theme-light .ai-actions button.apply {
  color: #7b4e12;
  border-color: rgba(185, 121, 18, 0.3);
  background: rgba(185, 121, 18, 0.12);
}

body.theme-light .summary-cell,
body.theme-light .ops-summary,
body.theme-light .url-row,
body.theme-light .turn-toolbar,
body.theme-light .theme-switch {
  border-color: #d4e0e8;
  background: #f7fafc;
}

body.theme-light .ops-summary {
  color: #243847;
}

body.theme-light .ops-summary strong {
  color: #132532;
}

body.theme-light .theme-switch button {
  color: #5c7080;
}

body.theme-light .theme-switch button.active,
body.theme-light .primary-button {
  color: #ffffff;
  border-color: #174f74;
  background: #174f74;
}

@media (max-width: 1060px) {
  .board-grid,
  .flight-page-grid {
    grid-template-columns: 1fr;
  }

  .side-stack {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 720px) {
  .desktop-frame {
    grid-template-columns: 1fr;
  }

  .rail {
    display: none;
  }

  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 12px;
  }

  .view {
    padding: 12px;
  }

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

  .connect-grid,
  .flight-header {
    grid-template-columns: 1fr;
  }

  .url-row {
    grid-template-columns: 1fr;
  }
}
