@font-face {
  font-family: "Flowphones Selected Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("./fonts/geist-206f01ed08e05c98a51daa7472331c3c71bbb8c1f9d55ea8c70074f3c528a706.woff2")
    format("woff2");
}
@font-face {
  font-family: "Flowphones Selected DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("./fonts/dm-sans-400-4ab51eb2cd7305d177187908d6397474d4520663f6c6e572feb0a64f4fa80006.woff2")
    format("woff2");
}
@font-face {
  font-family: "Flowphones Selected DM Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("./fonts/dm-sans-500-19bf1984956517c35c2bd35b6cdedac12a21d6fcd3596c614ecdfb88b648909d.woff2")
    format("woff2");
}
@font-face {
  font-family: "Flowphones Selected DM Sans";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./fonts/dm-sans-600-6bb2b2645ba5eeaecf56322c543fa3a75b87b927977b9c03b1dabc4205089120.woff2")
    format("woff2");
}

:root[data-design="selected"] {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --card-glow: transparent;
  --grid-dot: transparent;
  --glow-a: transparent;
  --glow-b: transparent;
  font: 14px/1.5 var(--font-ui);
  letter-spacing: -0.012em;
  color: var(--ink);
  background: var(--bg);
  color-scheme: light;

  body {
    background: var(--bg);
  }
  h1,
  h2,
  h3,
  h4,
  .brand {
    font-family: var(--font-ui);
  }
  .app *,
  .login *,
  .modal * {
    font-family: var(--font-ui);
  }
  .app code,
  .app pre,
  .app kbd,
  .modal code,
  .modal pre {
    font-family: var(--mono);
  }
  h1 {
    font-size: 31px;
    font-weight: 650;
    line-height: 1.16;
    letter-spacing: -0.035em;
  }
  h2 {
    font-weight: 600;
    letter-spacing: -0.022em;
  }
  h3 {
    font-weight: 600;
    letter-spacing: -0.018em;
  }
  button {
    touch-action: manipulation;
  }
  button:focus-visible,
  a:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
  input,
  select,
  textarea {
    caret-color: var(--accent-text);
    accent-color: var(--accent);
  }
  ::selection {
    color: var(--ink);
    background: var(--tint-strong);
  }
  * {
    scrollbar-color: var(--muted-3) transparent;
    scrollbar-width: thin;
  }
  a {
    text-underline-offset: 3px;
  }
  .app {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 12px;
    padding: calc(12px + 0px) 12px 12px;
    min-height: 100dvh;
  }
  .main-area {
    min-width: 0;
    margin: 0;
    width: auto;
    background: none;
  }
  .main-area::before,
  .sidebar::before,
  .sidebar::after {
    content: none;
  }
  .main-area > main {
    max-width: 1600px;
    margin: 0 auto;
    padding: 30px 22px 36px;
  }
  .sidebar {
    position: sticky;
    inset: auto;
    top: calc(12px + 0px);
    width: auto;
    height: calc(100dvh - 24px - 0px);
    min-height: 0;
    align-self: start;
    padding: 24px 14px 14px;
    border: 0;
    border-radius: 20px;
    background: var(--sidebar);
    box-shadow: none;
    color: var(--side-ink);
    overflow-y: auto;
  }
  .sidebar > .brand {
    margin: 0 0 25px;
    padding: 0 10px;
  }
  .brand {
    color: var(--ink);
    font-size: 21px;
    font-weight: 650;
    letter-spacing: -0.04em;
  }
  .brand small {
    color: var(--side-muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
  }
  .brand-mark {
    color: var(--accent-text);
  }
  .brand-mark > i,
  .brand-mark > span {
    background: var(--accent-text);
    box-shadow: none;
  }
  .workspace {
    border: 0;
    border-radius: 12px;
    padding: 12px 10px;
    background: var(--side-raise);
    box-shadow: none;
  }
  .workspace:hover {
    background: var(--surface);
  }
  .workspace-avatar {
    border-radius: 9px;
    background: var(--tint-strong);
    box-shadow: none;
    color: var(--accent-strong);
    font-weight: 650;
  }
  .workspace strong {
    color: var(--side-ink);
  }
  .workspace small,
  .workspace span:not(.workspace-avatar) {
    color: var(--side-text);
  }
  .nav-label {
    padding: 24px 12px 9px;
    color: var(--side-muted);
    font-size: 10px;
    letter-spacing: 0.04em;
  }
  .sidebar nav {
    gap: 4px;
  }
  .sidebar nav button {
    min-height: 43px;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    color: var(--side-text);
    font-size: 13px;
    font-weight: 500;
    background: none;
    box-shadow: none;
    transition:
      background 140ms ease-out,
      color 140ms ease-out;
  }
  .sidebar nav button svg {
    width: 18px;
    height: 18px;
    color: var(--side-muted);
    stroke-width: 1.65;
    transform: none;
  }
  .sidebar nav button.active {
    background: var(--side-active);
    color: var(--accent-text);
    box-shadow: 0 2px 6px var(--shadow);
    font-weight: 600;
  }
  .sidebar nav button.active svg {
    color: var(--accent-text);
  }
  .sidebar nav button.active::before {
    content: none;
  }
  .sidebar nav button:hover:not(.active) {
    background: var(--side-raise);
    transform: none;
    color: var(--ink);
  }
  .sidebar nav button:hover svg {
    transform: none;
  }
  .nav-count {
    min-width: 22px;
    padding: 1px 7px;
    background: var(--side-raise);
    color: var(--side-text);
    font-size: 11px;
    font-weight: 600;
  }
  .nav-count-critical {
    background: var(--danger-bg);
    color: var(--danger);
    box-shadow: none;
    animation: none;
  }
  .sidebar-bottom {
    margin-top: auto;
    padding-top: 20px;
  }
  .node-card {
    padding: 12px;
    border: 0;
    border-radius: 12px;
    background: var(--side-raise);
  }
  .node-card strong,
  .node-card > span {
    color: var(--side-ink);
  }
  .node-card p,
  .node-card small {
    color: var(--side-muted);
  }
  .node-line {
    height: 4px;
    background: var(--line);
    border-radius: 3px;
  }
  .node-line > span {
    background: var(--accent-soft);
    border-radius: 3px;
  }
  .sidebar .live-dot {
    box-shadow: none;
  }
  .account {
    margin-top: 12px;
    border: 0;
    border-radius: 10px;
    padding: 10px;
    color: var(--side-ink);
  }
  .account:hover {
    background: var(--side-raise);
  }
  .account small,
  .account > svg,
  .logout {
    color: var(--side-muted);
  }
  .logout {
    border-radius: 9px;
    padding: 9px 10px;
  }
  .logout:hover {
    color: var(--danger);
    background: var(--danger-bg);
  }
  .topbar {
    position: sticky;
    top: calc(12px + 0px);
    z-index: 40;
    height: 56px;
    min-height: 56px;
    padding: 0 22px;
    border: 0;
    border-radius: 16px;
    background: color-mix(in srgb, var(--topbar) 84%, transparent);
    box-shadow: none;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
  }
  .breadcrumb {
    color: var(--muted);
    font-size: 12px;
  }
  .breadcrumb strong {
    color: var(--ink);
    font-weight: 550;
  }
  .topbar-right {
    gap: 14px;
  }
  .theme-toggle {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    color: var(--muted);
    background: var(--surface-2);
    box-shadow: none;
    transform: none;
  }
  .theme-toggle:hover {
    transform: none;
    color: var(--accent-text);
    background: var(--tint);
  }
  .sync-pill {
    min-height: 27px;
    padding: 4px 10px;
    border: 0;
    border-radius: 999px;
    font-size: 11px;
    background: var(--surface-2);
    color: var(--muted);
  }
  .sync-pill.live {
    background: var(--ok-bg);
    color: var(--ok-text);
  }
  .sync-pill.stale {
    background: var(--warn-bg);
    color: var(--warn);
  }
  .topbar-avatar {
    width: 32px;
    height: 32px;
    background: none;
  }
  .page-heading {
    margin-bottom: 25px;
    gap: 18px;
    align-items: center;
  }
  .page-heading p {
    margin-top: 8px;
    color: var(--muted);
    max-width: 70ch;
    font-size: 13px;
    line-height: 1.5;
  }
  .live-clock {
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 11px;
    box-shadow: none;
  }
  .overview-actions {
    gap: 16px;
  }
  .primary,
  .secondary,
  .danger-button {
    min-height: 39px;
    padding: 9px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 550;
    letter-spacing: -0.012em;
    box-shadow: none;
    transition:
      background 140ms ease-out,
      color 140ms ease-out,
      transform 100ms ease-out;
  }
  .primary {
    color: var(--on-accent);
    background: var(--accent);
    border: 1px solid transparent;
  }
  .primary:hover:not(:disabled) {
    background: var(--accent-hover);
    box-shadow: none;
    transform: none;
  }
  .secondary {
    color: var(--ink-2);
    background: var(--surface-2);
    border: 1px solid transparent;
  }
  .secondary:hover:not(:disabled) {
    color: var(--accent-text);
    background: var(--tint);
    border-color: transparent;
    transform: none;
    box-shadow: none;
  }
  button:active:not(:disabled) {
    transform: scale(0.98);
  }
  .icon-button {
    border: 0;
    border-radius: 9px;
    color: var(--muted);
    background: transparent;
    box-shadow: none;
  }
  .icon-button:hover {
    color: var(--accent-text);
    background: var(--tint);
  }
  .link,
  .text-button,
  .version-update,
  .card-update {
    color: var(--accent-text);
  }
  .link {
    font-weight: 550;
  }
  :where(input:not([type="checkbox"]):not([type="radio"])),
  select,
  textarea {
    min-height: 41px;
    padding: 10px 12px;
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: none;
  }
  input::placeholder,
  textarea::placeholder {
    color: var(--muted-2);
    opacity: 1;
  }
  input:hover:not(:disabled),
  select:hover:not(:disabled),
  textarea:hover:not(:disabled) {
    border-color: var(--muted-3);
  }
  .search,
  .brdid-search {
    border: 1px solid var(--line-2);
    border-radius: 10px;
    background: var(--surface);
    box-shadow: none;
  }
  .instance-search input,
  .activity-search input {
    padding-inline-start: 38px;
  }
  .search input,
  .brdid-search input {
    border: 0;
    box-shadow: none;
    background: transparent;
  }
  .tabs,
  .view-switch,
  .view-toggle,
  .brdid-filters {
    gap: 3px;
    padding: 4px;
    border: 0;
    border-radius: 11px;
    background: var(--surface-2);
  }
  .tabs button,
  .view-switch button,
  .view-toggle button,
  .brdid-filters button {
    border: 0;
    border-radius: 8px;
    min-height: 32px;
    color: var(--muted);
    background: none;
  }
  .tabs button.active,
  .view-switch button.active,
  .view-toggle button.active,
  .brdid-filters button[aria-pressed="true"] {
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 1px 4px var(--shadow-2);
  }
  .tabs button::after {
    content: none;
  }
  .tabs span {
    background: var(--surface-2);
    color: var(--muted);
  }
  .toolbar,
  .fleet-toolbar {
    gap: 12px;
  }
  .panel,
  .phone-card,
  .fleet-overview,
  .capacity-panel {
    border: 0;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--elev-1);
  }
  .panel {
    padding: 22px;
  }
  .capacity-panel,
  .capacity-panel h2,
  .capacity-numbers strong {
    color: var(--ink);
  }
  .capacity-panel p,
  .capacity-panel > span,
  .capacity-numbers span {
    color: var(--muted);
    opacity: 1;
  }
  .capacity-panel > span {
    border-color: var(--line);
  }
  .capacity-panel > svg {
    color: var(--accent-text);
  }
  .capacity-panel .environment-badge.prod {
    background: var(--tint);
    color: var(--accent-text);
  }
  .capacity-panel .environment-badge.dev {
    background: var(--surface-2);
    color: var(--ink-2);
  }
  .alerts-item {
    border-width: 1px;
    border-radius: 12px;
  }
  .alert-strip li {
    border-left: 0;
    padding-left: 0;
  }
  .alerts-row.critical td:first-child,
  .alerts-row.warn td:first-child {
    box-shadow: 1px 0 0 var(--line);
  }
  .panel-title {
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }
  .panel-title h2 {
    color: var(--ink);
    font-size: 15px;
    line-height: 1.35;
    font-weight: 600;
  }
  .panel-title p,
  .panel p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
  }
  .panel-title > .link {
    margin-left: auto;
    white-space: nowrap;
    font-size: 11px;
  }
  .summary-icon {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: var(--tint);
    color: var(--accent-text);
    box-shadow: none;
  }
  .summary-icon svg {
    width: 18px;
    height: 18px;
    stroke-width: 1.75;
  }
  .attention-panel .summary-icon,
  .stat-card.warn .summary-icon {
    background: var(--warn-bg);
    color: var(--warn);
  }
  .attention-panel.critical .summary-icon {
    background: var(--danger-bg);
    color: var(--danger);
  }
  .attention-panel.ok .summary-icon,
  .stat-card.ok .summary-icon {
    background: var(--ok-bg);
    color: var(--ok-text);
  }
  .stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
    border: 0;
  }
  .stat-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px 4px;
    padding: 18px 18px 16px;
    min-height: 164px;
    border: 0;
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--elev-1);
    text-align: left;
  }
  .stat-card::before,
  .stat-card::after {
    content: none;
  }
  .stat-card > .summary-icon {
    grid-row: 1;
    grid-column: 1;
    width: 30px;
    height: 30px;
    background: transparent;
    justify-content: start;
  }
  .stat-card > div {
    grid-column: 1 / -1;
    grid-row: 2;
    min-width: 0;
  }
  .stat-card > svg:last-child {
    grid-column: 2;
    grid-row: 1;
    color: var(--muted-3);
    width: 13px;
    align-self: center;
    opacity: 1;
  }
  .stat-card > div > span {
    font-size: 11px;
    color: var(--muted);
  }
  .stat-card strong {
    margin: 4px 0 3px;
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: clamp(23px, 2.1vw, 32px);
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 600;
    white-space: nowrap;
  }
  .stat-card small {
    font-size: 10px;
    line-height: 1.45;
    color: var(--muted);
  }
  .stat-card:hover {
    background: var(--surface);
    box-shadow: var(--elev-2);
    transform: none;
  }
  .stat-bar,
  .meter-track {
    height: 4px;
    border-radius: 3px;
    background: var(--surface-2);
    overflow: hidden;
  }
  .stat-bar {
    margin-top: 12px;
  }
  .stat-bar b,
  .meter-track > span {
    border-radius: 3px;
    background: var(--accent-soft);
    box-shadow: none;
  }
  .stat-card.ok .stat-bar b {
    background: var(--ok-dot);
  }
  .stat-card.warn .stat-bar b {
    background: var(--warn-dot);
  }
  .overview-row:not(.bottom) {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
  }
  .overview-row:not(.bottom) .attention-panel {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .overview-row:not(.bottom) .ring-panel {
    grid-column: 2;
    grid-row: 1;
  }
  .overview-row:not(.bottom) .infra-panel {
    grid-column: 2;
    grid-row: 2;
  }
  .overview-row > * {
    animation: none;
  }
  .overview-row.bottom {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
  }
  .attention-panel,
  .attention-panel.warn,
  .attention-panel.critical,
  .attention-panel.ok {
    background: var(--surface);
    border: 0;
  }
  .overview-row .attention-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
  }
  .attention-list li {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 74px;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .attention-list li:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
  }
  .attention-list li > div {
    flex: 1;
    min-width: 0;
  }
  .attention-list li strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 550;
    line-height: 1.4;
  }
  .attention-list li span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
  }
  .attention-list li > i {
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: var(--warn-dot);
    box-shadow: none;
  }
  .attention-list li.critical > i {
    background: var(--danger-dot);
  }
  .attention-list .secondary {
    min-height: 31px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .ring-body {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 24px;
    padding: 0;
  }
  .fleet-ring {
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
  }
  .fleet-ring text {
    font-family: var(--font-ui);
    font-weight: 600;
    fill: var(--ink);
  }
  .ring-legend {
    flex: 1;
    max-width: 240px;
  }
  .ring-legend li {
    padding: 5px 0;
    color: var(--ink-2);
    font-size: 11px;
  }
  .ring-legend li strong {
    font-weight: 600;
  }
  .ring-legend li span {
    color: var(--muted);
  }
  .infra-mini {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .infra-mini .meter {
    margin: 0;
    min-width: 0;
  }
  .infra-mini .meter > span {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
  }
  .infra-mini .meter > div:not(.meter-track) {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    min-height: 46px;
  }
  .infra-mini .meter strong {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
  }
  .infra-mini .meter small {
    display: block;
    flex-basis: 100%;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.4;
    white-space: normal;
  }
  .meter-track > i {
    border-radius: 3px;
    background: var(--accent-soft);
    box-shadow: none;
  }
  .infra-mini .meter-label {
    display: block;
    font-size: 10px;
  }
  .infra-mini .meter-value {
    font-size: 11px;
  }
  .meter-track {
    margin-top: 8px;
  }
  .resource-table {
    padding: 0;
    overflow-x: auto;
  }
  .resource-table > .panel-title {
    padding: 22px 22px 0;
  }
  .resource-table th {
    padding: 12px 16px;
    border: 0;
    background: var(--surface-2);
    color: var(--muted);
    font-family: var(--font-ui);
    font-size: 11px;
    font-weight: 550;
    letter-spacing: 0;
    text-transform: none;
  }
  .resource-table td {
    padding: 16px;
    border-bottom: 1px solid var(--line);
    font-size: 12px;
  }
  .resource-table td strong {
    font-size: 12px;
    font-weight: 550;
  }
  .resource-table td small {
    color: var(--muted);
    font-size: 10px;
  }
  .resource-table tbody tr:hover {
    background: var(--tint-2);
  }
  .resource-table .row-actions .secondary {
    min-height: 31px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .activity-panel {
    padding: 22px;
  }
  .overview-row.bottom .timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
  }
  .timeline-row {
    border-bottom: 1px solid var(--line);
    padding: 14px 0;
  }
  .timeline-row strong {
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 500;
  }
  .timeline-row small,
  .timeline-row time {
    color: var(--muted);
    font-size: 10px;
  }
  .tip {
    border: 0;
    border-radius: 14px;
    background: var(--tint);
    color: var(--accent-text);
    box-shadow: none;
  }
  .fleet-overview {
    padding: 22px;
    margin-bottom: 20px;
  }
  .fleet-count strong {
    font-family: var(--font-ui);
    letter-spacing: -0.04em;
  }
  .phone-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 18px;
  }
  .phone-card {
    overflow: hidden;
  }
  .phone-card:hover {
    border-color: transparent;
    box-shadow: var(--elev-2);
    transform: none;
  }
  .phone-card::before,
  .phone-card::after {
    content: none;
  }
  .card-head {
    background: var(--surface-2);
    border: 0;
  }
  .card-head::before,
  .card-head::after {
    content: none;
  }
  .card-info {
    padding: 20px;
  }
  .card-name h2 {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
  }
  .card-name > span {
    color: var(--muted);
  }
  .card-resources {
    border-top: 1px solid var(--line);
    border-bottom: 0;
    padding-top: 14px;
    margin-block: 16px;
  }
  .card-resources > span {
    color: var(--muted);
  }
  .card-info > .secondary {
    width: 100%;
    border-radius: 10px;
    background: var(--tint);
    color: var(--accent-text);
  }
  .add-phone {
    border: 1px dashed var(--line-2);
    border-radius: 16px;
    color: var(--muted);
    background: transparent;
  }
  .add-phone:hover {
    color: var(--accent-text);
    border-color: var(--accent);
    background: var(--tint-2);
  }
  .status,
  .state-pill,
  .dash-pill,
  .environment-badge,
  .group-chip,
  .tag-chip {
    border: 0;
    border-radius: 7px;
    font-size: 11px;
    font-weight: 550;
    box-shadow: none;
  }
  .group-chip,
  .tag-chip {
    color: var(--ink-2);
    background: var(--surface-2);
  }
  .status.ready,
  .state-pill.ready,
  .dash-pill.ok {
    color: var(--ok-text);
    background: var(--ok-bg);
  }
  .status.stopped,
  .state-pill.stopped {
    color: var(--muted);
    background: var(--surface-2);
  }
  .status.error,
  .state-pill.error,
  .dash-pill.critical {
    color: var(--danger);
    background: var(--danger-bg);
  }
  .status.booting,
  .status.queued,
  .status.configuring,
  .dash-pill.warn {
    color: var(--warn);
    background: var(--warn-bg);
  }
  .dash-level {
    border: 0;
    border-radius: 7px;
  }
  .dash-chip {
    border-color: transparent;
    border-radius: 9px;
    background: var(--surface-2);
  }
  .dash-chip.active {
    color: var(--accent-text);
    background: var(--tint);
    border-color: transparent;
  }
  .dash-chip b {
    font-family: var(--font-ui);
    background: var(--surface);
  }
  .dash-scroll {
    border-top: 0;
  }
  .dash-table th {
    color: var(--muted);
    background: var(--surface-2);
    font-weight: 550;
    letter-spacing: 0;
    text-transform: none;
  }
  .dash-table td {
    border-color: var(--line);
  }
  .fleet-pagination {
    border-color: var(--line);
    color: var(--muted);
  }
  .modal {
    padding: 28px;
    border: 0;
    border-radius: 24px;
    background: var(--surface);
    color: var(--ink);
    box-shadow: 0 22px 80px #0c182733;
    max-height: calc(100dvh - 48px);
  }
  .modal::backdrop {
    background: #14203548;
    backdrop-filter: blur(5px);
  }
  .modal-heading {
    border-bottom: 0;
    margin-bottom: 20px;
  }
  .modal-heading h2 {
    font: 600 22px/1.25 var(--font-ui);
    letter-spacing: -0.03em;
  }
  .modal label {
    color: var(--ink-2);
    font-size: 12px;
  }
  .modal-actions {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 24px;
  }
  .modal .close {
    border-radius: 50%;
    background: var(--surface-2);
  }
  .modal-description,
  .sleep-note {
    color: var(--muted);
    line-height: 1.5;
  }
  .notice {
    border: 0;
    border-radius: 12px;
    background: var(--tint);
    color: var(--accent-text);
  }
  .notice.error,
  .error {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: var(--danger-line);
  }
  .toast {
    border: 0;
    border-radius: 14px;
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 8px 28px var(--shadow-2);
  }
  .toast.failure {
    color: var(--danger);
    background: var(--danger-bg);
  }
  .empty {
    color: var(--muted);
  }
  .sleep-current,
  .sleep-provider-status,
  .sleep-summary,
  .sleep-note,
  .sleep-plan,
  .sleep-cleanup,
  .sleep-config {
    border-color: var(--line);
    border-radius: 12px;
    background: var(--surface-2);
  }
  .switch {
    border: 0;
    background: var(--line-2);
    box-shadow: none;
  }
  .switch.on {
    background: var(--ok-dot);
  }
  .switch::after {
    box-shadow: 0 1px 3px #00000026;
  }
  .resource-cards {
    gap: 18px;
  }
  .resource-card .eyebrow {
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0;
  }
  .resource-card strong {
    color: var(--ink);
    font-family: var(--font-ui);
    font-weight: 600;
    letter-spacing: -0.03em;
  }
  .integration-endpoint {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: none;
  }
  .integration-endpoint code {
    background: var(--surface-2);
    border-radius: 8px;
    color: var(--ink-2);
  }
  .integrations-toolbar select {
    background: var(--surface);
  }
  .integration-group-heading h2 {
    font-family: var(--font-ui);
  }
  .brdid-tabs {
    width: fit-content;
    max-width: 100%;
    padding: 4px;
    border: 0;
    border-radius: 12px;
    background: var(--surface-2);
  }
  .brdid-tabs button {
    border: 0;
    border-radius: 9px;
    padding: 9px 18px;
  }
  .brdid-tabs button[aria-pressed="true"] {
    color: var(--ink);
    background: var(--surface);
    box-shadow: 0 1px 4px var(--shadow-2);
  }
  .brdid-table-wrap {
    border: 0;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--elev-1);
  }
  .brdid-table th {
    background: var(--surface-2);
  }
  .brdid-table td,
  .brdid-query-result {
    border-color: var(--line);
  }
  .login {
    background: var(--bg);
  }
  .login-story {
    color: var(--ink);
    background: var(--login-story);
    border: 0;
  }
  .login-story::before,
  .login-story::after {
    content: none;
  }
  .login-copy h1 {
    color: var(--ink);
    font-family: var(--font-ui);
    letter-spacing: -0.04em;
  }
  .login-copy p,
  .login-points {
    color: var(--ink-2);
  }
  .login-fleet {
    gap: 0;
    border: 0;
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--elev-1);
  }
  .login-form-area {
    background: var(--surface);
  }
  .login-form {
    max-width: 360px;
  }
  .login-form h1 {
    font-family: var(--font-ui);
    font-size: 28px;
    font-weight: 600;
  }
  .login-secure,
  .login-version {
    color: var(--muted);
  }
  .login-fleet-row {
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    animation: none;
  }
  .login-fleet-row:nth-child(2),
  .login-fleet-row:nth-child(3) {
    margin-left: 0;
  }
  .login-fleet-row:last-child {
    border-bottom: 0;
  }
  .login-points li > span,
  .login-fleet-icon {
    background: var(--tint);
    color: var(--accent-text);
    box-shadow: none;
  }
  .login-fleet-load {
    background: var(--surface-2);
  }
  .login-fleet-load i {
    background: var(--accent-soft);
  }
  .login-fleet-row em.on {
    color: var(--ok-text);
  }
  .login-fleet-row em.on::before {
    background: var(--ok-dot);
    box-shadow: none;
    animation: none;
  }

  @media (min-width: 1700px) {
    .overview-row.bottom {
      grid-template-columns: minmax(0, 2.5fr) minmax(280px, 1fr);
    }
    .overview-row.bottom .timeline {
      display: block;
    }
  }
  @media (max-width: 1190px) {
    .app {
      grid-template-columns: 210px minmax(0, 1fr);
    }
    .main-area > main {
      padding: 26px 14px;
    }
    .stat-grid {
      gap: 9px;
    }
    .stat-card {
      padding: 14px 12px;
    }
    .stat-card strong {
      font-size: 25px;
    }
    .overview-row:not(.bottom) {
      grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
      gap: 16px;
    }
    .infra-mini {
      grid-template-columns: 1fr;
      gap: 14px;
    }
    .ring-body {
      gap: 12px;
    }
    .fleet-ring {
      width: 92px;
      height: 92px;
      flex-basis: 92px;
    }
    .overview-actions .live-clock {
      display: none;
    }
  }
  @media (max-width: 960px) and (min-width: 761px) {
    .app {
      grid-template-columns: 182px minmax(0, 1fr);
      gap: 6px;
    }
    .sidebar {
      padding-inline: 9px;
    }
    .sidebar nav button {
      padding-inline: 9px;
      font-size: 12px;
    }
    .stat-grid {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .overview-row:not(.bottom) {
      grid-template-columns: 1fr;
    }
    .overview-row:not(.bottom) .attention-panel,
    .overview-row:not(.bottom) .ring-panel,
    .overview-row:not(.bottom) .infra-panel {
      grid-column: 1;
      grid-row: auto;
    }
    .infra-mini {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  }
  @media (max-width: 760px) {
    .app {
      display: block;
      padding: calc(8px + 0px) 8px 8px;
    }
    .sidebar {
      position: relative;
      top: auto;
      width: 100%;
      height: auto;
      padding: 14px 12px 10px;
      border-radius: 16px;
      display: flex;
      gap: 0;
      overflow: visible;
    }
    .sidebar > .brand {
      display: flex;
      padding: 0;
      margin: 0 0 14px;
      font-size: 19px;
    }
    .sidebar .brand small {
      font-size: 9px;
    }
    .workspace,
    .nav-label {
      display: none;
    }
    .sidebar nav {
      display: flex;
      width: 100%;
      overflow-x: auto;
      gap: 4px;
      padding: 2px 1px 5px;
    }
    .sidebar nav button {
      flex: 0 0 auto;
      display: flex;
      flex-direction: row;
      min-width: 0;
      justify-content: flex-start;
      gap: 7px;
      min-height: 36px;
      padding: 8px 10px;
      font-size: 12px;
      white-space: nowrap;
    }
    .sidebar nav button svg {
      width: 16px;
      height: 16px;
    }
    .sidebar nav .nav-count {
      display: none;
    }
    .sidebar-bottom {
      position: absolute;
      right: 12px;
      top: 9px;
      padding: 0;
      margin: 0;
      display: flex;
      gap: 4px;
      align-items: center;
    }
    .sidebar-bottom .node-card,
    .sidebar-bottom .account {
      display: none;
    }
    .sidebar-bottom .logout {
      width: 34px;
      height: 34px;
      min-height: 34px;
      margin: 0;
      padding: 9px;
      font-size: 0;
    }
    .sidebar-bottom .logout svg {
      width: 16px;
      height: 16px;
    }
    .main-area {
      min-height: auto;
    }
    .topbar {
      position: sticky;
      top: 0px;
      height: 48px;
      min-height: 48px;
      padding: 0 12px;
      margin-top: 8px;
      border-radius: 12px;
    }
    .topbar-right {
      gap: 9px;
    }
    .breadcrumb {
      min-width: 0;
      flex: 1;
      font-size: 0;
      gap: 0;
    }
    .breadcrumb strong {
      overflow: hidden;
      font-size: 11px;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .topbar-right {
      flex-shrink: 0;
    }
    .sync-pill {
      width: auto;
      height: auto;
      max-width: 150px;
      padding: 4px 8px;
      gap: 5px;
      white-space: normal;
      line-height: 1.3;
      font-size: 10px;
    }
    .sync-pill.live {
      white-space: nowrap;
    }
    .breadcrumb > span:first-child,
    .breadcrumb > svg:first-of-type {
      display: none;
    }
    .main-area > main {
      padding: 24px 4px;
    }
    .page-heading {
      align-items: flex-start;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 22px;
    }
    h1 {
      font-size: 27px;
    }
    .page-heading p {
      font-size: 12px;
      max-width: 38ch;
    }
    .page-heading .primary {
      min-height: 37px;
      font-size: 12px;
    }
    .stat-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
    }
    .stat-card {
      min-height: 148px;
      padding: 16px;
    }
    .stat-card:last-child {
      grid-column: 1 / -1;
      min-height: 138px;
    }
    .stat-card strong {
      font-size: 28px;
    }
    .stat-card small {
      font-size: 11px;
    }
    .overview-row:not(.bottom) {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }
    .panel {
      padding: 18px;
    }
    .panel-title {
      gap: 10px;
    }
    .panel-title h2 {
      font-size: 14px;
    }
    .panel-title p {
      font-size: 11px;
    }
    .summary-icon {
      width: 30px;
      height: 30px;
      flex: 0 0 30px;
    }
    .attention-list li {
      padding-block: 14px;
    }
    .attention-list li strong {
      font-size: 12px;
    }
    .attention-list li span {
      font-size: 11px;
    }
    .ring-body {
      gap: 24px;
    }
    .fleet-ring {
      width: 116px;
      height: 116px;
      flex-basis: 116px;
    }
    .infra-mini {
      grid-template-columns: 1fr;
    }
    .overview-row.bottom .timeline {
      display: block;
    }
    .resource-table {
      padding: 0;
    }
    .resource-table > .panel-title {
      padding: 18px 16px 0;
    }
    .fleet-overview {
      padding: 18px;
    }
    .toolbar,
    .fleet-toolbar {
      flex-wrap: wrap;
    }
    .search {
      max-width: none;
      width: 100%;
    }
    .modal {
      width: calc(100vw - 24px);
      padding: 22px;
      border-radius: 20px;
      max-height: calc(100dvh - 24px);
    }
    .modal-actions {
      flex-wrap: wrap;
    }
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
      font-size: 16px;
    }
    .brdid-tabs {
      overflow-x: auto;
    }
    .brdid-tabs button {
      white-space: nowrap;
    }

    .login-story {
      display: none;
    }
    .login-form-area {
      min-height: 100dvh;
      padding: 40px 24px;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      scroll-behavior: auto;
      animation: none !important;
      transition: none !important;
    }
    button:active:not(:disabled) {
      transform: none;
    }
  }
  @media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
    .topbar {
      background: var(--topbar);
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
    .modal::backdrop {
      backdrop-filter: none;
      background: #14203588;
    }
  }
}

:root[data-design="selected"] {
  --font-ui: "Flowphones Selected Geist", system-ui, sans-serif;
  --on-accent: #ffffff;
  --bg: #fafafa;
  --surface: #ffffff;
  --surface-2: #f5f5f5;
  --sidebar: #ffffff;
  --topbar: #ffffff;
  --ink: #171717;
  --ink-2: #171717;
  --ink-3: #171717;
  --muted: #666666;
  --muted-2: #666666;
  --muted-3: #666666;
  --line: #eaeaea;
  --line-2: #b8b8b8;
  --line-tint: #eaeaea;
  --accent: #171717;
  --purple: #171717;
  --accent-hover: #383838;
  --accent-strong: #171717;
  --accent-text: #171717;
  --accent-soft: #171717;
  --accent-grey: #666666;
  --accent-grey-2: #666666;
  --tint: #f0f0f0;
  --tint-2: #f5f5f5;
  --tint-strong: #f0f0f0;
  --lavender: #f0f0f0;
  --side-ink: #171717;
  --side-text: #525252;
  --side-muted: #737373;
  --side-line: #fafafa;
  --side-raise: #fafafa;
  --side-active: #f0f0f0;
  --side-accent: #171717;
  --login-story: #ffffff;
  --ok: #226747;
  --ok-text: #226747;
  --ok-dot: #2d8057;
  --ok-bg: #e5f0e8;
  --ok-line: #bdd4c3;
  --warn: #875310;
  --warning: #875310;
  --warn-deep: #75450a;
  --warn-bg: #fff1d9;
  --warn-line: #ddc49b;
  --warn-dot: #a56c11;
  --gold: #875310;
  --gold-bg: #fff7e9;
  --gold-line: #ddc49b;
  --danger: #a63029;
  --danger-dot: #bd4a3f;
  --danger-bg: #fbeae6;
  --danger-line: #e5bab1;
  --ring: #17171733;
  --shadow: #24201408;
  --shadow-2: #24201412;
  --elev-1: none;
  --elev-2: none;
  --radius: 12px;
  --radius-sm: 8px;
  color-scheme: light;
  .brand {
    color: var(--side-ink);
  }
  .brand-mark {
    color: var(--side-ink);
  }
  .brand-mark > i,
  .brand-mark > span {
    background: var(--side-ink);
  }
  .app {
    grid-template-columns: 228px minmax(0, 1fr);
    gap: 0;
    padding: 0px 0 0;
  }
  .sidebar {
    top: 0px;
    height: calc(100dvh - 0px);
    border-radius: 0;
    padding-top: 26px;
  }
  .sidebar nav button {
    border-radius: 8px;
    min-height: 40px;
  }
  .sidebar nav button.active,
  .sidebar nav button.active svg {
    color: #171717;
  }
  .sidebar nav button.active {
    background: #f0f0f0;
    box-shadow: none;
  }
  .sidebar-bottom .system-card {
    background: #fafafa;
    border-color: #fafafa;
  }
  .sidebar-bottom {
    color: var(--side-text);
  }
  .topbar {
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #ffffff;
    border-bottom: 1px solid #eaeaea;
    height: 58px;
  }
  h1,
  h2,
  h3,
  .stat-card strong,
  .capacity-numbers strong {
    font-family: "Flowphones Selected Geist", system-ui, sans-serif;
  }
  h1 {
    font-weight: 600;
    letter-spacing: -0.025em;
  }
  .main-area > main {
    padding: 25px 26px;
  }
  .primary {
    background: #171717;
    color: #ffffff;
    border-radius: 8px;
  }
  .primary:hover:not(:disabled) {
    background: #383838;
    color: #ffffff;
  }
  .secondary,
  input,
  select,
  textarea,
  .search {
    border-radius: 8px;
  }
  .panel,
  .phone-card,
  .fleet-overview,
  .capacity-panel,
  .stat-card {
    border: 1px solid #eaeaea;
    border-radius: 12px;
    box-shadow: none;
  }
  .stat-card {
    min-height: 142px;
    padding: 18px;
    gap: 10px 4px;
  }
  .stat-card strong {
    font-weight: 600;
    letter-spacing: -0.035em;
  }
  .panel-title h2 {
    font-size: 15px;
  }
  .summary-icon {
    border-radius: 8px;
  }
  .workspace:hover {
    background: #fafafa;
  }
  .phone-card > header {
    background: #f5f5f5;
  }
  .nav-count {
    color: #525252;
    background: #fafafa;
  }
  .nav-count-critical {
    color: #912a21;
    background: #ffe4df;
  }

  .sidebar {
    border-right: 1px solid #eaeaea;
  }
  .sidebar nav button.active {
    font-weight: 600;
  }
  .stat-card {
    background: var(--surface);
  }
  .panel-title h2 {
    font-size: 14px;
    font-weight: 600;
  }
  .page-heading h1 {
    font-size: 30px;
    letter-spacing: -0.035em;
  }
  .primary {
    font-weight: 500;
  }
  .secondary {
    background: #ffffff;
    border: 1px solid #eaeaea;
  }
  .secondary:hover:not(:disabled) {
    background: #f5f5f5;
    border-color: #c9c9c9;
  }
  .topbar {
    border-bottom: 1px solid #eaeaea;
  }
  @media (max-width: 760px) {
    .sidebar {
      border: 1px solid #eaeaea;
    }
  }

  @media (max-width: 960px) and (min-width: 761px) {
    .app {
      grid-template-columns: 190px minmax(0, 1fr);
    }
    .main-area > main {
      padding: 24px 16px;
    }
  }
  @media (max-width: 760px) {
    .app {
      display: block;
      padding: calc(8px + 0px) 8px 8px;
    }
    .sidebar {
      height: auto;
      top: auto;
      border-radius: 12px;
      padding: 10px 8px;
    }
    .brand {
      color: var(--side-ink);
    }
    .topbar {
      border: 0;
      border-radius: 8px;
      height: 48px;
    }
    .main-area > main {
      padding: 24px 4px;
    }
    .stat-card {
      min-height: 158px;
      padding: 16px;
    }
    .sidebar nav button {
      min-height: 38px;
    }
    .sidebar nav button.active {
      color: #171717;
    }
  }
}

:root[data-design="selected"][data-theme="dark"] {
  --font-ui: "Flowphones Selected DM Sans", system-ui, sans-serif;
  --on-accent: #030507;
  --bg: #000000;
  --surface: #080b0f;
  --surface-2: #11171e;
  --sidebar: #030507;
  --topbar: #080b0f;
  --ink: #f0f0fa;
  --ink-2: #f0f0fa;
  --ink-3: #f0f0fa;
  --muted: #a4aeba;
  --muted-2: #a4aeba;
  --muted-3: #a4aeba;
  --line: #28313b;
  --line-2: #5a6777;
  --line-tint: #28313b;
  --accent: #f0f0fa;
  --purple: #f0f0fa;
  --accent-hover: #ffffff;
  --accent-strong: #f0f0fa;
  --accent-text: #f0f0fa;
  --accent-soft: #f0f0fa;
  --accent-grey: #a4aeba;
  --accent-grey-2: #a4aeba;
  --tint: #17212d;
  --tint-2: #11171e;
  --tint-strong: #17212d;
  --lavender: #17212d;
  --side-ink: #f0f0fa;
  --side-text: #d3d9e1;
  --side-muted: #9ca8b7;
  --side-line: #111820;
  --side-raise: #111820;
  --side-active: #17212d;
  --side-accent: #ffffff;
  --login-story: #030507;
  --ok: #95d6ad;
  --ok-text: #95d6ad;
  --ok-dot: #7abd92;
  --ok-bg: #263c2f;
  --ok-line: #45604d;
  --warn: #f1c779;
  --warning: #f1c779;
  --warn-deep: #f1c779;
  --warn-bg: #433522;
  --warn-line: #6e5730;
  --warn-dot: #dda74d;
  --gold: #f1c779;
  --gold-bg: #433522;
  --gold-line: #6e5730;
  --danger: #f4a59b;
  --danger-dot: #e88f83;
  --danger-bg: #472c28;
  --danger-line: #74443b;
  --ring: #f0f0fa33;
  --shadow: #00000033;
  --shadow-2: #00000044;
  --elev-1: none;
  --elev-2: none;
  --radius: 12px;
  --radius-sm: 6px;
  color-scheme: dark;
  .brand {
    color: var(--side-ink);
  }
  .brand-mark {
    color: var(--side-ink);
  }
  .brand-mark > i,
  .brand-mark > span {
    background: var(--side-ink);
  }
  .app {
    grid-template-columns: 232px minmax(0, 1fr);
    gap: 0;
    padding: 0px 0 0;
  }
  .sidebar {
    top: 0px;
    height: calc(100dvh - 0px);
    border-radius: 0;
    padding-top: 26px;
  }
  .sidebar nav button {
    border-radius: 6px;
    min-height: 40px;
  }
  .sidebar nav button.active,
  .sidebar nav button.active svg {
    color: #ffffff;
  }
  .sidebar nav button.active {
    background: #17212d;
    box-shadow: none;
  }
  .sidebar-bottom .system-card {
    background: #111820;
    border-color: #111820;
  }
  .sidebar-bottom {
    color: var(--side-text);
  }
  .topbar {
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #080b0f;
    border-bottom: 1px solid #28313b;
    height: 58px;
  }
  h1,
  h2,
  h3,
  .stat-card strong,
  .capacity-numbers strong {
    font-family: "Flowphones Selected DM Sans", system-ui, sans-serif;
  }
  h1 {
    font-weight: 600;
    letter-spacing: -0.025em;
  }
  .main-area > main {
    padding: 25px 26px;
  }
  .primary {
    background: #f0f0fa;
    color: #030507;
    border-radius: 6px;
  }
  .primary:hover:not(:disabled) {
    background: #ffffff;
    color: #030507;
  }
  .secondary,
  input,
  select,
  textarea,
  .search {
    border-radius: 6px;
  }
  .panel,
  .phone-card,
  .fleet-overview,
  .capacity-panel,
  .stat-card {
    border: 1px solid #28313b;
    border-radius: 12px;
    box-shadow: none;
  }
  .stat-card {
    min-height: 142px;
    padding: 18px;
    gap: 10px 4px;
  }
  .stat-card strong {
    font-weight: 600;
    letter-spacing: -0.035em;
  }
  .panel-title h2 {
    font-size: 15px;
  }
  .summary-icon {
    border-radius: 6px;
  }
  .workspace:hover {
    background: #111820;
  }
  .phone-card > header {
    background: #11171e;
  }
  .nav-count {
    color: #d3d9e1;
    background: #111820;
  }
  .nav-count-critical {
    color: #ffb7ac;
    background: #512a25;
  }

  .page-heading h1 {
    text-transform: uppercase;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: 0.035em;
  }
  .sidebar nav button {
    font-size: 12px;
    letter-spacing: 0.025em;
  }
  .sidebar nav button.active {
    box-shadow: inset 0 0 0 1px #354351;
  }
  .primary {
    background: transparent;
    border: 1px solid #c7ced8;
    color: #f0f0fa;
    font-size: 12px;
    letter-spacing: 0.045em;
    text-transform: uppercase;
  }
  .primary:hover:not(:disabled) {
    background: #f0f0fa;
    color: #030507;
  }
  .secondary {
    border: 1px solid #303a45;
    background: #11171e;
  }
  .topbar {
    background: #030507;
  }

  @media (max-width: 960px) and (min-width: 761px) {
    .app {
      grid-template-columns: 190px minmax(0, 1fr);
    }
    .main-area > main {
      padding: 24px 16px;
    }
  }
  @media (max-width: 760px) {
    .app {
      display: block;
      padding: calc(8px + 0px) 8px 8px;
    }
    .sidebar {
      height: auto;
      top: auto;
      border-radius: 12px;
      padding: 10px 8px;
    }
    .brand {
      color: var(--side-ink);
    }
    .topbar {
      border: 0;
      border-radius: 6px;
      height: 48px;
    }
    .main-area > main {
      padding: 24px 4px;
    }
    .stat-card {
      min-height: 158px;
      padding: 16px;
    }
    .sidebar nav button {
      min-height: 38px;
    }
    .sidebar nav button.active {
      color: #ffffff;
    }
  }
}

:root[data-design="selected"] {
  --green: var(--ok);
  --success: var(--ok);
  --gold-deep: var(--warn-deep);
  --danger-fill: #a63029;
  --stage: #11171e;
  --night: #11171e;
  .topbar {
    top: 0;
  }
  .brand,
  .brand-mark {
    color: var(--side-ink);
  }
  .stat-card strong,
  .capacity-numbers strong,
  td,
  time {
    font-variant-numeric: tabular-nums;
  }
  .sidebar nav button:focus-visible {
    outline-offset: -2px;
  }
  button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
  }
  .primary:disabled {
    background: var(--accent);
    color: var(--surface);
  }
  .theme-toggle {
    flex-shrink: 0;
  }
  .sidebar {
    border-color: var(--line);
  }
  .fleet-ring {
    filter: none;
  }
  .picker .tag.active:not(.tone-tag) {
    color: var(--ink);
    background: var(--tint);
    border-color: var(--line-2);
  }
  @media (max-width: 760px) {
    .sidebar {
      flex-direction: column;
      align-items: stretch;
    }
    .sidebar > .brand {
      justify-content: flex-start;
    }
    .sidebar .brand > span {
      display: block;
    }
    .sidebar-bottom .logout {
      display: flex;
    }
  }

  @media (max-width: 760px) {
    .sidebar-bottom .system-card {
      display: none;
    }
    .page-heading h1 {
      overflow-wrap: anywhere;
    }
  }
}
