/* The console frame, shared list layout and Overview (admin redesign, stage 1).
   Warm hairlines only (--line), one accent (orange/action), tinted two-layer shadows,
   --ease for every transition, tabular numbers wherever figures line up. */
:root {
  --shadow-rest: 0 1px 2px rgba(22, 13, 38, 0.04), 0 4px 14px rgba(85, 52, 35, 0.04);
  --shadow-lift: 0 2px 4px rgba(22, 13, 38, 0.06), 0 14px 34px rgba(85, 52, 35, 0.1);
  --sidebar: 272px;
  --sidebar-collapsed: 76px;
  --late: #a86a14;
}
.tabular,
.stat-value,
.nav-badge,
.data-table td,
.mini-chart text {
  font-variant-numeric: tabular-nums;
}
kbd {
  font: 700 11px/1 "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--muted);
  background: var(--paper);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  padding: 3px 6px;
}
/* Sidebar */
.workspace {
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
}
.sidebar {
  border-right-color: var(--line);
  padding: 14px 14px 14px;
}
/* A compact brand block: about half the old height so the nav gets the room. */
.brand-block {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 44px;
  padding: 6px 10px 8px;
}
.sidebar .wordmark {
  font-size: 25px;
  letter-spacing: -1.6px;
}
.sidebar .brand-block small {
  margin-top: 0;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.icon-button.sidebar-close {
  top: 8px;
}
/* Only the nav groups scroll, with a slim warm scrollbar (no arrow buttons) that firms up
   when the sidebar is hovered or holds focus. */
.sidebar nav {
  margin: 0 -6px;
  padding: 0 6px;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
  transition: scrollbar-color 0.2s var(--ease);
}
.sidebar:hover nav,
.sidebar:focus-within nav {
  scrollbar-color: var(--line) transparent;
}
.sidebar nav::-webkit-scrollbar {
  width: 6px;
}
.sidebar nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar nav::-webkit-scrollbar-button {
  display: none;
}
.sidebar nav::-webkit-scrollbar-thumb {
  border-radius: 6px;
  background: transparent;
}
.sidebar:hover nav::-webkit-scrollbar-thumb,
.sidebar:focus-within nav::-webkit-scrollbar-thumb {
  background: var(--line);
}
.sidebar nav::-webkit-scrollbar-thumb:hover {
  background: #c9b7ab;
}
@media (hover: none) {
  .sidebar nav {
    scrollbar-color: var(--line) transparent;
  }
  .sidebar nav::-webkit-scrollbar-thumb {
    background: var(--line);
  }
}
.nav-section + .nav-section {
  margin-top: 6px;
}
.nav-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-group {
  margin: 12px 0 4px 12px;
}
.nav-link {
  margin: 1px 0;
  padding: 0 10px 0 12px;
  font-size: 13px;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
}
.nav-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-badge {
  flex: none;
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  background: #e6dbd3;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
  display: inline-grid;
  place-items: center;
}
.nav-badge.broken {
  background: var(--bad);
  color: #fffaf6;
}
.nav-link.active .nav-badge:not(.broken) {
  background: #f6c9b5;
}
.sidebar-footer {
  border-top-color: var(--line);
  padding-top: 8px;
  margin-top: 8px;
}
.collapse-toggle {
  color: var(--muted);
}
.collapse-toggle .icon {
  transition: transform 0.2s var(--ease);
}
.nav-tooltip {
  position: fixed;
  z-index: 60;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  font-weight: 650;
  padding: 7px 10px;
  border-radius: 7px;
  box-shadow: var(--shadow-lift);
  white-space: nowrap;
}
@media (min-width: 768px) {
  .workspace.collapsed {
    grid-template-columns: var(--sidebar-collapsed) minmax(0, 1fr);
  }
  .collapsed .sidebar {
    padding-inline: 10px;
  }
  .collapsed .brand-block {
    padding: 0 0 14px;
    text-align: center;
  }
  .collapsed .wordmark {
    font-size: 0;
    letter-spacing: 0;
  }
  .collapsed .wordmark::before {
    content: "t";
    font-size: 25px;
    letter-spacing: -1px;
  }
  .collapsed .wordmark span {
    font-size: 25px;
  }
  .collapsed .brand-block small,
  .collapsed .nav-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .collapsed .nav-group {
    font-size: 0;
    height: 1px;
    margin: 10px 12px;
    background: var(--line);
  }
  .collapsed .nav-link {
    position: relative;
    justify-content: center;
    padding: 0;
  }
  .collapsed .nav-badge {
    position: absolute;
    top: 7px;
    right: 9px;
    min-width: 9px;
    width: 9px;
    height: 9px;
    padding: 0;
    font-size: 0;
    box-shadow: 0 0 0 2px #f2ece7;
  }
  .collapsed .collapse-toggle .icon {
    transform: scaleX(-1);
  }
}
/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  padding: 12px 28px;
  border-bottom-color: var(--line);
  background: rgba(252, 250, 247, 0.96);
}
.topbar-context {
  flex: 1;
}
.topbar-actions {
  gap: 8px;
}
.search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: clamp(200px, 24vw, 320px);
  padding: 0 8px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
}
.search-trigger:hover {
  border-color: #cdbfb5;
  color: var(--ink);
}
.search-label {
  flex: 1;
}
.context-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding-left: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--muted);
  min-width: 0;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease);
}
.context-chip .icon {
  width: 17px;
  height: 17px;
}
.topbar .context-chip select {
  border: 0;
  background: transparent;
  min-height: 42px;
  max-width: 220px;
  min-width: 9.5em;
  padding: 0 28px 0 4px;
  color: var(--ink);
  font-weight: 650;
  font-size: 13px;
}
.context-chip:focus-within {
  border-color: var(--action);
}
.context-chip.active {
  background: var(--peach);
  border-color: #e7b9a4;
  color: var(--action);
}
.chip-clear {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 42px;
  margin-left: -10px;
  border: 0;
  border-radius: 0 999px 999px 0;
  background: transparent;
  color: var(--action);
}
.chip-clear:hover {
  background: #f3d8ca;
}
.chip-clear .icon {
  width: 16px;
  height: 16px;
}
.menu-wrap {
  position: relative;
}
.menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  min-width: 248px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lift);
  animation: menu-in 0.16s var(--ease);
}
@keyframes menu-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
}
.menu-item:hover,
.menu-item:focus-visible {
  background: var(--soft);
}
.menu-item:focus-visible {
  outline-offset: -3px;
}
.menu-item .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.menu-heading {
  padding: 8px 12px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.menu-note {
  padding: 8px 12px;
  font-size: 12px;
}
.menu-profile {
  padding: 10px 12px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.menu-profile strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}
.menu-profile small {
  color: var(--muted);
}
.new-button .icon {
  width: 18px;
  height: 18px;
}
.topbar-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
}
.topbar-pill:hover {
  background: var(--soft);
}
.topbar-pill .icon {
  width: 18px;
  height: 18px;
}
.pill-count {
  min-width: 22px;
  height: 20px;
  padding: 0 7px;
  border-radius: 10px;
  background: var(--action);
  color: #fffaf6;
  font-size: 11px;
  display: inline-grid;
  place-items: center;
}
.bell {
  position: relative;
  border-color: transparent;
}
.bell-count {
  position: absolute;
  top: 3px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--bad);
  color: #fffaf6;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 2px var(--paper);
}
.alerts-panel {
  width: min(340px, calc(100vw - 32px));
}
.alerts-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.alert-item {
  align-items: flex-start;
  padding-block: 11px;
  line-height: 1.4;
}
.alert-item strong {
  margin-left: auto;
}
.alert-mark {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 5px;
  border-radius: 2px;
  background: var(--bad);
}
.avatar-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}
.avatar-button:hover .avatar {
  background: #2c1e45;
}
/* Command palette and shortcuts */
dialog.palette {
  width: min(640px, calc(100vw - 32px));
  margin: 12vh auto auto;
  background: var(--white);
  border-color: var(--line);
  border-radius: 16px;
  overflow: hidden;
}
dialog.palette::backdrop {
  background: rgba(22, 13, 38, 0.32);
}
.palette-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.palette-search:focus-within {
  box-shadow: inset 0 -2px var(--action);
}
.palette-search input {
  flex: 1;
  min-height: 58px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: var(--ink);
}
#palette-list {
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: min(52vh, 440px);
  overflow: auto;
}
.palette-group {
  padding: 10px 12px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.palette-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 600;
}
.palette-option small {
  margin-left: auto;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.palette-option .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.palette-option[aria-selected="true"] {
  background: var(--peach);
  box-shadow: inset 3px 0 var(--action);
}
.palette-option[aria-selected="true"] > .icon:first-child {
  color: var(--action);
}
.palette-empty {
  padding: 22px 14px;
  color: var(--muted);
}
.palette-hints {
  display: flex;
  gap: 18px;
  padding: 10px 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.palette-hints kbd + kbd {
  margin-left: 3px;
}
.palette-hints kbd {
  margin-right: 5px;
}
.shortcut-list {
  margin: 0;
}
.shortcut-list div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.shortcut-list div:last-child {
  border: 0;
}
.shortcut-list dt {
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}
.shortcut-list dd {
  margin: 0;
  text-align: right;
}
/* Stat cards (list pages and Overview) */
.stat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.stat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 98px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  box-shadow: var(--shadow-rest);
  transition:
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease),
    background 0.18s var(--ease);
}
.stat-card:hover:not(:disabled) {
  border-color: #cdbfb5;
  box-shadow: var(--shadow-lift);
  transform: translateY(-1px);
  text-decoration: none;
}
.stat-card:active:not(:disabled) {
  transform: translateY(0);
}
.stat-card[aria-pressed="true"] {
  border-color: var(--action);
  background: #fff6f1;
  box-shadow: inset 0 0 0 1px var(--action), var(--shadow-rest);
}
.stat-card[aria-pressed="true"] .stat-label::after {
  content: " · filtering";
  color: var(--action);
}
.stat-card:disabled {
  opacity: 1;
  cursor: progress;
}
.stat-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.stat-value {
  font-size: 30px;
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -0.03em;
}
.stat-total {
  font-size: 15px;
  letter-spacing: 0;
  color: var(--muted);
  font-weight: 650;
}
.stat-card small {
  color: var(--muted);
  font-size: 12px;
}
.skeleton-number,
.skeleton-row {
  display: inline-block;
  background: var(--soft);
  border-radius: 6px;
  animation: breathe 1.1s var(--ease) 6 alternate;
}
.skeleton-number {
  width: 2.4ch;
  height: 0.8em;
}
@keyframes breathe {
  to {
    background: #e9e0d9;
  }
}
/* Shared list page */
.list-panel {
  overflow: visible;
}
.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #eee5de;
}
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-select {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  min-height: 44px;
  padding-left: 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.filter-select span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.filter-select select {
  border: 0;
  background: transparent;
  min-height: 42px;
  padding: 0 28px 0 6px;
  font-weight: 650;
  font-size: 13px;
  border-radius: 999px;
}
.filter-select:focus-within {
  border-color: var(--action);
}
.filter-select.active {
  background: var(--peach);
  border-color: #e7b9a4;
}
.views-wrap {
  margin-left: auto;
}
.views-wrap > .button .icon {
  width: 16px;
  height: 16px;
}
.views-menu {
  width: 300px;
}
.views-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.views-list li {
  display: flex;
  align-items: center;
}
.views-list .icon-button {
  border-color: transparent;
  flex: none;
}
.view-form {
  display: flex;
  gap: 8px;
  padding: 8px 6px 4px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.view-form input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid #eee5de;
  background: #fdf8f4;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 10px 0 14px;
  border: 1px solid #e7b9a4;
  border-radius: 999px;
  background: var(--peach);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}
.chip .icon {
  width: 15px;
  height: 15px;
  color: var(--action);
}
.chip:hover {
  border-color: var(--action);
}
.link-button {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--action);
  font-size: 12px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.data-table th .sort-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
.sort-button .icon {
  width: 13px;
  height: 13px;
  opacity: 0.35;
}
[aria-sort="ascending"] .sort-button .icon {
  opacity: 1;
  transform: rotate(180deg);
}
[aria-sort="descending"] .sort-button .icon {
  opacity: 1;
}
.data-table .numeric {
  text-align: right;
}
.data-table .select-col {
  width: 52px;
  padding-right: 0;
}
.data-table input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--action);
  margin: 0;
}
.data-table tbody tr[data-row] {
  cursor: pointer;
}
.data-table tr.selected td {
  background: #fff6f1;
}
.data-table tr.open td {
  background: var(--peach);
}
.row-open {
  display: block;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}
.row-open strong,
.row-open small {
  display: block;
}
.row-open small {
  color: var(--muted);
}
.list-skeleton {
  display: grid;
  gap: 8px;
  padding: 16px;
}
.skeleton-row {
  display: block;
  height: 44px;
}
.list-count {
  padding: 10px 16px;
  font-size: 12px;
}
.list-count:empty {
  display: none;
}
.list-retry {
  padding: 0 22px 22px;
}
.list-body > .notice {
  margin: 16px;
}
.bulk-bar {
  position: sticky;
  bottom: 16px;
  z-index: 15;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 4px 10px rgba(22, 13, 38, 0.16), 0 20px 50px rgba(22, 13, 38, 0.22);
  animation: menu-in 0.18s var(--ease);
}
.bulk-bar .button.secondary,
.bulk-bar .button.ghost {
  background: transparent;
  color: var(--paper);
  border-color: rgba(252, 250, 247, 0.32);
}
.bulk-bar .button.ghost {
  border-color: transparent;
}
.bulk-bar .button:hover:not(:disabled) {
  background: rgba(252, 250, 247, 0.12);
}
.bulk-bar .button:focus-visible {
  outline-color: var(--paper);
}
.details-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  width: min(440px, 100vw);
  overflow: auto;
  background: var(--white);
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 24px rgba(22, 13, 38, 0.06), -30px 0 80px rgba(85, 52, 35, 0.14);
  transform: translateX(100%);
  transition: transform 0.26s var(--ease);
}
.details-panel.open {
  transform: none;
}
.details-panel:focus {
  outline: none;
}
.details-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.details-header h2 {
  font-size: 20px;
  letter-spacing: -0.4px;
}
.details-header h2:focus {
  outline: none;
}
.details-header h2:focus-visible {
  outline: 3px solid var(--action);
  outline-offset: 3px;
}
.details-body {
  padding: 18px 22px 28px;
}
.details-body > p:first-child {
  margin-bottom: 14px;
}
.details-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
@media (max-width: 1100px) {
  .workspace {
    grid-template-columns: 232px minmax(0, 1fr);
  }
  .bento {
    grid-template-columns: minmax(0, 1fr);
  }
  .search-label,
  .search-trigger kbd,
  .environment,
  .topbar-pill > span:not(.pill-count) {
    display: none;
  }
  .search-trigger {
    width: 44px;
    padding: 0;
    justify-content: center;
  }
  .taking-card {
    grid-column: auto;
  }
  .page-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
@media (max-width: 767px) {
  .topbar {
    flex-wrap: wrap;
    row-gap: 8px;
    padding: 8px 16px 10px;
  }
  .topbar-context {
    display: contents;
  }
  .mobile-menu {
    order: 1;
  }
  .search-trigger {
    order: 2;
  }
  .topbar-actions {
    order: 3;
    margin-left: auto;
    gap: 2px;
  }
  .context-chip {
    order: 4;
    flex: 1 1 100%;
  }
  .topbar .context-chip select {
    flex: 1;
    max-width: none;
    font-size: 13px;
  }
  .topbar-actions .button.new-button {
    display: inline-flex;
    width: 44px;
    padding: 0;
  }
  .sidebar {
    width: min(300px, 86vw);
  }
  .new-label,
  .collapse-toggle,
  .sidebar-footer {
    display: none;
  }
  .stat-cards {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(150px, 46%);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -16px;
    padding: 2px 16px 6px;
    scrollbar-width: none;
  }
  .stat-card {
    scroll-snap-align: start;
    min-height: 92px;
  }
  .stat-value {
    font-size: 26px;
  }
  .list-toolbar {
    padding: 12px;
  }
  .list-toolbar .search {
    flex: 1 1 100%;
    max-width: none;
  }
  .views-wrap {
    margin-left: 0;
  }
  .views-menu {
    left: 0;
    right: auto;
    width: min(300px, calc(100vw - 48px));
  }
  .bulk-bar {
    bottom: 8px;
  }
  .details-panel {
    width: 100vw;
    border-left: 0;
  }
  .taking-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .pass-rail {
    grid-auto-columns: 78%;
  }
  .mini-chart text {
    font-size: 17px;
  }
  .stat-card {
    min-height: 0;
  }
  .alerts-panel,
  .user-menu {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
    width: auto;
  }
  #new-menu {
    position: fixed;
    top: 64px;
    left: 16px;
    right: 16px;
  }
}
