@font-face {
  font-family: Desk;
  src: local("Segoe UI");
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --panel: #12161b;
  --panel2: #171c22;
  --line: #252b33;
  --text: #f2efe7;
  --muted: #9ca7b0;
  --gold: #c2a46b;
  --green: #57c59d;
  --red: #e58c91;
  --sidebar: 234px;
  font-family:
    Desk,
    Inter,
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 14px;
}
.login-page {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 20px;
  background: radial-gradient(ellipse at 50% 25%, #252119 0, #0b0d10 65%);
}
.login-card {
  width: min(100%, 430px);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 24px 90px #0005;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 2px;
  font-weight: 600;
  margin-bottom: 40px;
}
.login-card h1 {
  margin: 10px 0 14px;
}
.login-intro,
.login-footnote,
#login-hint {
  color: var(--muted);
  line-height: 1.6;
}
.login-intro {
  margin-bottom: 28px;
}
#login-form label {
  display: block;
  margin-bottom: 8px;
}
#login-form input {
  width: 100%;
  font-size: 24px;
  letter-spacing: 5px;
}
#login-form button {
  width: 100%;
  margin-top: 12px;
  min-height: 46px;
}
#login-hint {
  font-size: 12px;
  margin: 10px 0 0;
}
#login-error {
  color: var(--red);
  min-height: 20px;
  margin: 14px 0 0;
}
.login-footnote {
  font-size: 12px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin: 20px 0 0;
}
@media (max-width: 480px) {
  .login-card {
    padding: 28px 24px;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
button {
  border: 0;
}
button,
input,
select {
  border-radius: 6px;
}
input,
select {
  background: #0e1115;
  color: var(--text);
  border: 1px solid #414954;
  padding: 11px 12px;
  min-width: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 31px;
  letter-spacing: -1.1px;
  font-weight: 550;
  margin-bottom: 10px;
}
h2 {
  font-size: 16px;
  font-weight: 550;
  letter-spacing: -0.2px;
  margin: 0;
}
h3 {
  font-size: 14px;
  font-weight: 550;
}
small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
strong {
  font-weight: 550;
}
.mono,
.number,
.metric-value,
td.numeric {
  font-variant-numeric: tabular-nums;
  font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  letter-spacing: -0.6px;
}
button.primary,
.primary {
  background: var(--gold);
  color: #17130d;
  padding: 11px 17px;
  min-height: 42px;
  font-weight: 650;
  border: 1px solid var(--gold);
}
.secondary,
.danger-button {
  background: var(--panel2);
  border: 1px solid #3b434d;
  color: var(--text);
  padding: 10px 15px;
  min-height: 40px;
}
.danger-button {
  border-color: #66383f;
  color: #f0a8ad;
  background: #25161b;
}
.text-button {
  background: transparent;
  color: var(--gold);
  padding: 4px;
  font-size: 12px;
}
.icon-button {
  background: transparent;
  color: var(--muted);
  font-size: 23px;
  width: 34px;
  height: 34px;
}
.sidebar {
  width: var(--sidebar);
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  background: #0e1115;
  padding: 32px 16px;
  display: flex;
  flex-direction: column;
  z-index: 3;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 0 8px 42px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.7px;
  white-space: nowrap;
}
.brand img {
  width: 31px;
  height: 38px;
}
.brand small {
  font-size: 8px;
  letter-spacing: 2px;
  margin-top: 5px;
  color: #879098;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #727e89;
  padding: 0 15px 13px;
}
.nav-label.second {
  margin-top: 29px;
}
nav {
  display: grid;
  gap: 5px;
}
nav a {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #a4afb9;
  padding: 12px 14px;
  border-radius: 5px;
  font-size: 12px;
  min-height: 42px;
}
nav a > span {
  font-size: 18px;
  width: 20px;
  color: #838f9a;
  text-align: center;
  line-height: 1;
}
nav a.active {
  background: #26231e;
  color: #e2c894;
  box-shadow: inset 2px 0 var(--gold);
}
nav a.active > span {
  color: #d8ba82;
}
nav a:hover {
  background: #1d2229;
}
nav b {
  margin-left: auto;
  background: #303234;
  border: 1px solid #454342;
  border-radius: 4px;
  font-size: 10px;
  padding: 2px 5px;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 25px 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.station-mark {
  border: 1px solid #424138;
  background: #26251f;
  width: 30px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--gold);
  font-family: serif;
}
.sidebar-bottom strong {
  font-size: 11px;
}
.sidebar-bottom small {
  font-size: 9px;
  margin-top: 5px;
}
.local-label {
  border-top: 1px solid var(--line);
  padding-top: 21px;
  margin-top: 15px;
  width: 100%;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}
.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: var(--green);
  border-radius: 50%;
}
.app {
  margin-left: var(--sidebar);
}
.topbar {
  height: 70px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  font-size: 11px;
}
.breadcrumb {
  color: #88939e;
}
.breadcrumb span {
  margin: 0 14px;
  color: #48505a;
}
.breadcrumb strong {
  color: #c6cdd2;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
#sign-out {
  white-space: nowrap;
}
.connection {
  color: var(--green);
  font-size: 10px;
}
.connection:before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  margin-right: 7px;
}
.utc {
  color: #78838d;
  font-variant-numeric: tabular-nums;
}
main {
  padding: 35px 36px 0;
  max-width: 1720px;
  margin: auto;
  outline: none;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
}
.eyebrow {
  color: #8d969e;
  font-size: 9px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.subtitle {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}
.desk-controls {
  display: flex;
  gap: 14px;
  align-items: center;
}
.mode-switch {
  border: 1px solid #323943;
  background: #11151a;
  border-radius: 6px;
  display: flex;
  padding: 3px;
}
.mode-switch button {
  background: none;
  color: #aab2b9;
  padding: 8px 14px;
  font-size: 11px;
  min-width: 58px;
}
.mode-switch button[aria-pressed="true"] {
  background: #393226;
  color: #eed9b0;
}
.mode-switch.live button[aria-pressed="true"] {
  background: #38282b;
  color: #f0afb3;
}
.status-strip {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 23px;
  min-height: 28px;
  flex-wrap: wrap;
}
.status-pill,
.badge {
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 9px;
  white-space: nowrap;
  letter-spacing: 0.25px;
  border: 1px solid #3e3b30;
  background: #211f1a;
  color: #d9bf91;
}
.status-pill.running,
.badge.good {
  color: #82d4b4;
  background: #13251f;
  border-color: #244a3a;
}
.badge.live {
  color: #edaaaf;
  background: #2b1b20;
  border-color: #57343a;
}
.right {
  margin-left: auto;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 22px;
  background: var(--panel);
}
.metric {
  padding: 22px 22px 19px;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.metric:last-child {
  border: 0;
}
.metric-label {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
}
.metric-label span {
  color: #697780;
}
.metric-value {
  font-size: 27px;
  white-space: nowrap;
  font-weight: 450;
}
.metric-value small {
  display: inline;
  margin-left: 7px;
  font-size: 10px;
  letter-spacing: 0;
  color: #8c98a4;
}
.metric-note {
  font-size: 10px;
  color: #84909c;
  margin-top: 12px;
  line-height: 1.6;
}
.positive {
  color: var(--green);
}
.negative {
  color: var(--red);
}
.gold {
  color: var(--gold);
}
.muted {
  color: var(--muted);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr);
  gap: 22px;
  margin-bottom: 22px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 22px 0;
}
.panel-head .sub {
  color: #85919c;
  font-size: 10px;
  margin-top: 7px;
}
.panel-body {
  padding: 22px;
}
.panel-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
}
.chart-summary {
  padding: 21px 22px 0;
  display: flex;
  gap: 28px;
  align-items: baseline;
}
.chart-summary .number {
  font-size: 23px;
}
.chart-summary small {
  font-size: 10px;
  margin-top: 8px;
  font-family: Desk, system-ui;
  letter-spacing: 0;
}
.chart-legend {
  display: flex;
  gap: 14px;
  font-size: 9px;
  color: var(--muted);
  padding: 6px 22px 18px;
  align-items: center;
}
.legend-line {
  display: inline-block;
  width: 14px;
  height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 5px;
}
.legend-line.green {
  background: var(--green);
}
.chart {
  width: 100%;
  height: 192px;
  display: block;
  padding: 0 12px;
  margin: 10px 0 3px;
}
.chart text {
  fill: #929da8;
  font-size: 10px;
  font-family: Desk, system-ui;
}
.chart .grid {
  stroke: #262c34;
  stroke-dasharray: 3 5;
}
.chart .profit-path {
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
  stroke-linejoin: round;
}
.chart .zero {
  stroke: #515961;
  stroke-dasharray: 4 4;
}
.chart .fill {
  fill: #c2a46b0a;
}
.allocation-chart {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-around;
  padding: 28px 22px 24px;
}
.donut {
  width: 154px;
  height: 154px;
  flex-shrink: 0;
  transform: rotate(-90deg);
}
.donut circle {
  fill: none;
  stroke-width: 12;
}
.allocation-center {
  position: relative;
  display: grid;
  place-items: center;
}
.allocation-center .donut-label {
  position: absolute;
  text-align: center;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
}
.donut-label strong {
  font-size: 22px;
  color: var(--text);
  display: block;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.allocation-key {
  display: grid;
  gap: 17px;
  min-width: 105px;
}
.allocation-key p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  position: relative;
  padding-left: 12px;
}
.allocation-key strong {
  display: block;
  color: var(--text);
  font-size: 13px;
  margin-top: 6px;
  font-variant-numeric: tabular-nums;
}
.allocation-key p:before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--gold);
  position: absolute;
  left: 0;
  top: 4px;
}
.allocation-key p:nth-child(2):before {
  background: #6d8290;
}
.allocation-key p:nth-child(3):before {
  background: #647466;
}
.panel-foot {
  border-top: 1px solid var(--line);
  padding: 14px 22px;
  color: #87939e;
  font-size: 10px;
  line-height: 1.6;
}
.panel-foot .right {
  float: right;
}
.table-wrap {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  white-space: nowrap;
}
th {
  color: #8c98a4;
  font-weight: 450;
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
td {
  padding: 17px 18px;
  border-bottom: 1px solid #222830;
}
tr:last-child td {
  border-bottom: 0;
}
td.numeric,
th.numeric {
  text-align: right;
}
td small {
  margin-top: 6px;
  font-size: 9px;
}
.item-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.item-icon {
  width: 29px;
  height: 29px;
  background: #272924;
  border: 1px solid #434436;
  display: grid;
  place-items: center;
  color: #d3bd86;
  border-radius: 5px;
  font-size: 12px;
}
.item-icon[data-tone="1"] {
  color: #9aafb9;
  border-color: #354953;
  background: #1f2c33;
}
.item-icon[data-tone="2"] {
  color: #a7bca3;
  border-color: #3c4b35;
  background: #232c22;
}
.activity {
  padding: 7px 22px 12px;
  max-height: 366px;
  overflow: auto;
}
.activity-row {
  display: flex;
  gap: 13px;
  padding: 16px 0;
  border-bottom: 1px solid #232932;
}
.activity-row:last-child {
  border-bottom: 0;
}
.activity-icon {
  width: 25px;
  height: 25px;
  background: #222721;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--gold);
  border-radius: 50%;
  font-size: 12px;
}
.activity-copy {
  min-width: 0;
  flex: 1;
}
.activity-copy p {
  font-size: 11px;
  margin: 2px 0 6px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.activity-copy small {
  font-size: 9px;
  line-height: 1.5;
}
.activity-time {
  font-size: 9px;
  color: #85929b;
  white-space: nowrap;
  padding-top: 5px;
}
.full-panel {
  margin-bottom: 22px;
}
.empty {
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.empty h2 {
  color: #c5cbd0;
  font-size: 15px;
  margin-bottom: 8px;
}
.empty p {
  max-width: 470px;
  margin: 8px auto;
}
.empty-symbol {
  color: #796a4c;
  font-size: 30px;
  margin-bottom: 12px;
}
.note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
}
.banner {
  border: 1px solid #615135;
  background: #231f17;
  color: #dfc79d;
  padding: 13px 17px;
  border-radius: 6px;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.banner.danger {
  border-color: #624047;
  background: #281a20;
  color: #eab5b9;
}
.banner[hidden] {
  display: none;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.form-grid label,
dialog label {
  display: grid;
  gap: 9px;
  font-size: 11px;
  color: #cbd0d4;
}
.form-grid small {
  line-height: 1.7;
}
.form-section {
  padding: 25px;
  border-bottom: 1px solid var(--line);
}
.form-section h3 {
  margin-bottom: 22px;
}
.form-actions {
  padding: 20px 25px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
  gap: 22px;
}
.info-list {
  padding: 0;
  margin: 0;
  list-style: none;
}
.info-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.7;
}
.info-list li:last-child {
  border: 0;
}
.info-list strong {
  display: block;
  font-weight: 550;
  margin-bottom: 3px;
  color: var(--text);
}
.info-list p {
  margin: 0;
  color: var(--muted);
}
.health-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 22px;
}
.health-card {
  padding: 22px;
}
.health-card h3 {
  color: #b9c1c7;
  margin-bottom: 16px;
  font-size: 11px;
}
.health-card p {
  font-size: 14px;
  margin-bottom: 10px;
}
.health-card small {
  line-height: 1.7;
}
.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.check-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.6;
}
.check-list li:before {
  content: "○";
  color: var(--gold);
  margin-right: 10px;
}
.week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}
.day {
  background: #101419;
  border: 1px solid #2d353e;
  border-radius: 6px;
  padding: 17px 9px;
  text-align: center;
  font-size: 10px;
}
.day strong {
  display: block;
  font-size: 11px;
  color: #cbd0d4;
  margin-bottom: 18px;
}
.day span {
  display: block;
  font-size: 10px;
  line-height: 1.8;
  color: var(--gold);
  padding: 7px 1px;
  background: #29251e;
  border-radius: 4px;
  margin-top: 8px;
}
.day.today {
  border-color: #877044;
}
.schedule-edit {
  display: grid;
  gap: 12px;
}
.schedule-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 15px;
  align-items: center;
}
.schedule-row label {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.switch-label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.check {
  accent-color: var(--gold);
  width: 16px;
  height: 16px;
}
.split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.toolbar {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.toolbar select {
  padding: 9px 12px;
}
.toolbar .note {
  margin: 0;
}
.disclosure {
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
}
.disclosure summary {
  cursor: pointer;
  color: #c6cbd0;
}
.disclosure code {
  color: #e4ceaa;
  overflow-wrap: anywhere;
}
.disclosure ul {
  padding-left: 18px;
}
.reason {
  white-space: normal;
  min-width: 180px;
  max-width: 300px;
  font-size: 10px;
  color: #b4a386;
  line-height: 1.6;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 25px 0;
  color: #67737d;
  font-size: 9px;
  border-top: 1px solid #1f252b;
  margin-top: 30px;
}
footer b {
  color: #474d50;
  margin: 0 10px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #222a30;
  border: 1px solid #62695f;
  color: var(--text);
  padding: 16px 22px;
  border-radius: 8px;
  max-width: 440px;
  font-size: 12px;
  line-height: 1.6;
  z-index: 10;
  box-shadow: 0 14px 40px #0008;
}
#toast.error {
  border-color: #aa656e;
}
dialog {
  background: var(--panel);
  color: var(--text);
  border: 1px solid #49515b;
  border-radius: 10px;
  max-width: 470px;
  padding: 30px;
}
dialog::backdrop {
  background: #000a;
}
dialog h2 {
  font-size: 22px;
  margin-bottom: 17px;
}
dialog p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
dialog label {
  margin: 21px 0;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 27px;
}
.skip {
  position: fixed;
  top: -100px;
  left: 10px;
  background: var(--gold);
  color: black;
  padding: 12px;
  z-index: 99;
}
.skip:focus {
  top: 10px;
}
.loader {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 2px solid #3d3930;
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 18px;
}
.loading {
  padding: 100px 20px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.data-note {
  padding: 12px 0 0;
  color: #8c979f;
  font-size: 10px;
  line-height: 1.7;
}
.nowrap {
  white-space: nowrap;
}
@media (min-width: 1600px) {
  main {
    padding-top: 42px;
  }
  .metric-value {
    font-size: 32px;
  }
  .chart {
    height: 220px;
  }
  .allocation-chart {
    padding-top: 39px;
    padding-bottom: 34px;
  }
  .donut {
    width: 175px;
    height: 175px;
  }
}
@media (max-width: 1200px) {
  :root {
    --sidebar: 204px;
  }
  .sidebar {
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand {
    font-size: 12px;
    letter-spacing: 1.1px;
  }
  .topbar {
    padding: 0 25px;
  }
  main {
    padding: 28px 25px 0;
  }
  .metric {
    padding: 18px 15px;
  }
  .metric-value {
    font-size: 23px;
  }
  .allocation-chart {
    gap: 15px;
    padding: 30px 15px;
  }
  .donut {
    width: 125px;
    height: 125px;
  }
  .dashboard-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(275px, 1fr);
    gap: 17px;
  }
  .panel-head {
    padding: 18px 17px 0;
  }
  .metric-value small {
    font-size: 8px;
    margin-left: 3px;
  }
  .eyebrow {
    letter-spacing: 1.4px;
  }
}
@media (max-width: 1000px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .allocation-chart {
    justify-content: flex-start;
    gap: 40px;
  }
  .allocation-key {
    display: flex;
    gap: 40px;
  }
  .donut {
    width: 135px;
    height: 135px;
  }
  .metrics-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric:nth-child(2) {
    border-right: 0;
  }
  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
  .desk-controls {
    align-self: stretch;
    justify-content: space-between;
  }
  .settings-layout {
    grid-template-columns: 1fr;
  }
  .health-grid {
    grid-template-columns: 1fr;
  }
  .activity {
    max-height: 300px;
  }
  .week {
    gap: 6px;
  }
  .day {
    padding: 15px 5px;
  }
  .utc {
    display: none;
  }
}
@media (max-width: 700px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    position: sticky;
    top: 0;
    inset: auto;
    width: 100%;
    height: auto;
    display: block;
    padding: 14px 16px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #0e1115f5;
    backdrop-filter: blur(12px);
  }
  .brand {
    font-size: 12px;
    padding: 0 0 13px;
    gap: 9px;
  }
  .brand img {
    width: 22px;
    height: 28px;
  }
  .brand small {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    gap: 4px;
    scrollbar-width: none;
  }
  .sidebar nav a {
    padding: 9px 10px;
    white-space: nowrap;
    font-size: 10px;
    min-height: 37px;
    border-radius: 4px 4px 0 0;
    gap: 5px;
  }
  .sidebar nav a span {
    font-size: 14px;
    width: 15px;
  }
  .sidebar nav a.active {
    box-shadow: inset 0 -2px var(--gold);
  }
  .sidebar nav[aria-label="Operations navigation"] {
    position: absolute;
    right: 12px;
    top: 11px;
    max-width: 64%;
  }
  .sidebar nav[aria-label="Operations navigation"] a {
    font-size: 0;
    width: 34px;
    justify-content: center;
  }
  .sidebar nav[aria-label="Operations navigation"] a span {
    font-size: 18px;
  }
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .app {
    margin-left: 0;
  }
  .topbar {
    height: 42px;
    padding: 0 18px;
  }
  .top-actions {
    gap: 10px;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .topbar:has(#sign-out:not([hidden])) .breadcrumb {
    display: none;
  }
  .topbar:has(#sign-out:not([hidden])) .top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .connection {
    font-size: 9px;
  }
  main {
    padding: 23px 17px 0;
  }
  .page-heading {
    gap: 20px;
    margin-bottom: 19px;
  }
  h1 {
    font-size: 27px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
  }
  .subtitle {
    font-size: 11px;
  }
  .status-strip {
    gap: 8px;
    font-size: 9px;
    margin-bottom: 16px;
  }
  .status-strip .right {
    width: 100%;
    margin: 0;
    padding-top: 3px;
  }
  .metrics-grid {
    margin-bottom: 16px;
  }
  .metric {
    padding: 17px 13px;
  }
  .metric-label {
    font-size: 8px;
    letter-spacing: 0.8px;
    margin-bottom: 12px;
  }
  .metric-value {
    font-size: 22px;
  }
  .metric-note {
    font-size: 9px;
    margin-top: 8px;
  }
  .metric-value small {
    font-size: 8px;
  }
  .dashboard-grid {
    gap: 16px;
    margin-bottom: 16px;
  }
  .panel-head {
    padding: 18px 16px 0;
  }
  .panel-head h2 {
    font-size: 14px;
  }
  .panel-body {
    padding: 18px 16px;
  }
  .chart-summary {
    padding: 20px 16px 0;
  }
  .chart-summary .number {
    font-size: 21px;
  }
  .allocation-chart {
    gap: 25px;
    padding: 22px 16px;
    justify-content: space-around;
  }
  .allocation-key {
    display: grid;
    gap: 14px;
  }
  .donut {
    width: 140px;
    height: 140px;
  }
  .allocation-key strong {
    font-size: 12px;
  }
  .panel-foot {
    font-size: 9px;
    padding: 13px 16px;
  }
  .panel-foot .right {
    float: none;
    display: block;
    margin-top: 6px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 19px;
  }
  .form-section {
    padding: 20px 17px;
  }
  .form-actions {
    padding: 18px 17px;
  }
  .week {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  .schedule-row {
    grid-template-columns: 70px 1fr 1fr;
    gap: 8px;
  }
  .schedule-row input[type="time"] {
    padding: 10px 6px;
    width: 100%;
    font-size: 12px;
  }
  #toast {
    left: 17px;
    right: 17px;
    bottom: 17px;
    max-width: none;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
  dialog {
    max-width: calc(100% - 30px);
    padding: 23px;
  }
  .chart {
    height: 170px;
  }
  .chart-legend {
    flex-wrap: wrap;
    line-height: 1.8;
  }
  footer {
    font-size: 8px;
    line-height: 1.7;
    margin-top: 24px;
  }
  .toolbar {
    gap: 10px;
  }
  .banner {
    font-size: 10px;
  }
  .full-panel {
    margin-bottom: 16px;
  }
  td,
  th {
    padding-left: 15px;
    padding-right: 15px;
  }
  .day span {
    font-size: 9px;
  }
  .topbar .icon-button {
    height: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
footer {
  color: #95a0aa;
}
footer b {
  color: #95a0aa;
}
