/* Monitor console — page and layout specifics only. Component looks live in design-system.css. */

/* #region zone:monitor.shell.layout — โครงเปลือก: แถบข้าง แถบบน หัวหน้า */
.skip-link {
  position: fixed;
  top: -100px;
  left: var(--s-5);
  z-index: 100;
  background: var(--surface-1);
  padding: var(--s-3);
  border-radius: var(--r-md);
}
.skip-link:focus {
  top: var(--s-3);
}
/* Hidden from sight (not from keyboards) until focused, even when a tall element is captured. */
.skip-link:not(:focus) {
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
  width: 1px;
  height: 1px;
  padding: 0;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 40;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: var(--surface-sidebar);
  border-right: 1px solid var(--border-soft);
}
.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  height: var(--topbar-h);
  padding: 0 var(--s-3) 0 var(--s-5);
  flex: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--text-1);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  min-width: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--s-1);
  min-width: 0;
}
/* Logo · name · role on one line: the name ellipsises first, the role label never wraps under it. */
.brand-line {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
  max-width: 100%;
}
.brand-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-role {
  flex: none;
  font-weight: 400;
  letter-spacing: 0;
}
/* #region zone:monitor.shell.layout.role-label — ป้ายบทบาท (เจ้าของ/แอดมิน) เล็กและเงียบ รองจากชื่อ */
/* The role is secondary to the name: a small, quiet label with a soft neutral tint whatever the role's tone,
 * so it never reads as part of the name. Accessible name unchanged (it is still the pill's text). */
.brand-role .pill,
.account-head .pill {
  height: auto;
  min-height: 18px;
  padding: 2px var(--s-2);
  background: var(--neutral-soft);
  color: var(--text-3);
  font-size: 11px;
  font-weight: var(--fw-regular);
  letter-spacing: 0;
}
/* #endregion */
img.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  flex: none;
}
img.brand-mark.large {
  width: 64px;
  height: 64px;
}
.close-nav {
  display: none;
}
.sidebar nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--s-1) var(--s-3) var(--s-5);
  scrollbar-width: none; /* still scrolls by wheel, touch and keys; no bar beside the menu */
}
.sidebar nav::-webkit-scrollbar {
  display: none;
}
.nav-group {
  margin: 0;
  padding: var(--s-5) var(--s-3) var(--s-2);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  cursor: default;
  user-select: none;
}
.nav-group:first-child {
  padding-top: var(--s-2);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  width: 100%;
  height: 36px;
  padding: 0 var(--s-3);
  margin: 1px 0;
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--text-2);
  font-size: var(--fs-md);
  text-align: left;
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}
.nav-item .icon {
  width: var(--icon-md);
  height: var(--icon-md);
  color: var(--text-3);
}
.nav-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-item:hover {
  background: var(--surface-hover);
  color: var(--text-1);
}
.nav-item[aria-current='page'] {
  background: var(--accent-soft);
  color: var(--accent-text);
  font-weight: var(--fw-medium);
}
.nav-item[aria-current='page'] .icon {
  color: var(--accent-text);
}
.sidebar-foot {
  padding: var(--s-3) var(--s-4) var(--s-4);
  border-top: 1px solid var(--border-soft);
}
.sidebar-foot:empty {
  display: none;
}
.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: 35;
  background: var(--scrim);
}

/* Task navigation v2: seven collapsible groups fit a 720px-tall desktop without clipping. */
.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-left: auto;
  padding: 0 var(--s-2);
  border-radius: var(--r-full);
  background: var(--warning-soft);
  color: var(--warning-fg);
  font: var(--fw-semibold) var(--fs-xs)/1 var(--mono);
  overflow: visible !important;
}
@media (pointer: coarse) {
  .nav-item {
    height: var(--touch-min);
  }
  .brand {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
  }
}
.slip-target {
  outline: 2px solid var(--accent);
  outline-offset: var(--s-1);
  border-radius: var(--r-md);
}
.payment-pending-link {
  min-height: 40px;
  border: 0;
  cursor: pointer;
}
.payment-pending-link:hover,
.payment-pending-link:focus-visible {
  outline: 2px solid var(--warning);
  outline-offset: 2px;
}

.main-shell {
  margin-left: var(--sidebar-w);
  min-width: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  height: var(--topbar-h);
  padding: 0 var(--gutter);
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.menu-button {
  display: none;
}
.topbar-context {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  min-width: 0;
  flex: 1;
  font-size: var(--fs-sm);
  color: var(--text-3);
}
.crumb-group {
  white-space: nowrap;
}
.crumb-group:not(:empty)::after {
  content: '/';
  margin-left: var(--s-2);
  color: var(--text-faint);
}
.topbar-title {
  color: var(--text-1);
  font-weight: var(--fw-medium);
  line-height: 1.25;
  overflow-wrap: anywhere;
  /* a long title wraps to two lines instead of hiding its end behind an ellipsis */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
@media (max-width: 400px) {
  /* the four header buttons leave about 76px at 360px wide: smaller type and a third line keep the whole title */
  .topbar-title {
    font-size: var(--fs-xs);
    line-height: 1.2;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}
.topbar-tools {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex: none;
}
/* Search uses the kit control height; circular header buttons use the kit touch target. */
.search-box {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  width: 260px;
  height: var(--h-md);
  padding: 0 var(--s-2) 0 var(--s-3);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-3);
  color: var(--text-3);
  cursor: text;
  transition:
    border-color var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease);
}
.search-box:focus-within {
  border-color: var(--focus);
  box-shadow: var(--focus-ring);
}
.search-icon {
  display: flex;
}
.search-icon .icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
}
.search-box input {
  flex: 1;
  height: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  font-size: var(--fs-md);
}
.search-box input:focus-visible {
  outline: none;
  box-shadow: none;
}
.search-box input:disabled {
  cursor: not-allowed;
}
.search-box:has(input:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}
.search-box kbd {
  flex: none;
}
.search-toggle {
  display: none;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
  display: inline-block;
  flex: none;
}
.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--h-md);
  height: var(--h-md);
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface-3);
  cursor: pointer;
}
.account-button {
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}
.account-button:hover,
.account-button[aria-expanded='true'] {
  border-color: var(--text-faint);
  background: var(--surface-hover);
}
.account-button .avatar {
  width: 28px;
  height: 28px;
  border: 2px solid var(--role-ring, var(--border-strong));
  background: var(--surface-2);
  font-size: 11px;
}
.account-button[data-role='owner'] {
  --role-ring: var(--accent);
}
.account-button[data-role='admin'] {
  --role-ring: var(--info);
}
.account-button[data-role='support'] {
  --role-ring: var(--warning);
}
.account-button[data-role='viewer'] {
  --role-ring: var(--text-faint);
}
.account-head {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  border-bottom: 1px solid var(--border);
}
.account-head .avatar {
  width: 40px;
  height: 40px;
  font-size: var(--fs-sm);
}
.account-head-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.account-head-text strong {
  font-weight: var(--fw-semibold);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-head-text span {
  font-size: var(--fs-xs);
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-head .pill {
  margin-top: var(--s-2);
  align-self: flex-start;
}

#main {
  flex: 1;
  width: 100%;
  max-width: calc(var(--content-max) + 2 * var(--gutter));
  margin: 0 auto;
  /* The floating Luna launcher sits bottom-right: always scrollable clear of the last row. */
  padding: var(--s-6) var(--gutter) max(var(--s-12), var(--luna-clear));
  min-width: 0;
}
#notice:empty {
  display: none;
}
#notice {
  margin: 0 auto var(--s-4);
  max-width: 460px;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--warning-soft);
  color: var(--text-1);
  font-size: var(--fs-sm);
}
#notice.login-rejection {
  background: rgba(198, 40, 40, 0.12);
  color: #b71c1c;
}
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-4);
  margin: 0 0 var(--s-6);
  flex-wrap: wrap;
}
.page-heading {
  min-width: 0;
  flex: 1 1 320px;
}
.page-heading h1 {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.015em;
}
.page-heading p {
  margin-top: var(--s-1);
  color: var(--text-3);
  font-size: var(--fs-md);
  max-width: 72ch;
}
.page-actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}
.updated {
  font-size: var(--fs-xs);
  color: var(--text-3);
  white-space: nowrap;
}
#content {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  min-width: 0;
  outline: none;
}
#content > * {
  min-width: 0;
}
.load-more {
  margin-top: var(--s-5);
}
.auth-banner {
  margin: 0 0 var(--s-5);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  min-width: 0;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.toolbar-note {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* Signed out: no navigation or page search, just the sign-in card. */
.signed-out .sidebar,
.signed-out .nav-scrim,
.signed-out .menu-button,
.signed-out .search-box,
.signed-out .search-toggle {
  display: none !important;
}
.signed-out .main-shell {
  margin-left: 0;
}

/* #endregion */
/* #region zone:monitor.auth.login — หน้าเข้าสู่ระบบแบบเต็มหน้าจอ */
/* Full-page split shell (2026-09-26 login redesign, expanded to full-viewport 2026-09-28): the
   full-bleed 2-column grid and brand panel now live in the shared login-shell.css
   (.login-shell/.login-shell-card/.login-shell-brand/.login-shell-form) — no max-width/margin
   override here any more (that was the old small-centred-card look); #login-screen/#app-shell in
   index.html + app.js/shell/login.js now toggle the whole login page vs. the whole app chrome as
   one unit. This region keeps only what's specific to Monitor's own login content. */
.login {
  padding: var(--s-8);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.login > h2 {
  font-size: var(--fs-2xl);
  margin-top: var(--s-2);
}
.login-help {
  color: var(--text-3);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
#login-form {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.login-fields {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.login-mode .segmented {
  width: 100%;
}
.login-foot {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text-3);
  font-size: var(--fs-xs);
  padding-top: var(--s-2);
  border-top: 1px solid var(--border-soft);
}
.desktop-version {
  display: block;
  font: 11px var(--mono);
  color: var(--text-3);
}

/* #endregion */
/* #region zone:monitor.editor.member — ลิ้นชักแก้ไขสมาชิก */
dialog.drawer {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  height: 100dvh;
  max-height: 100dvh;
  width: 480px;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-left: 1px solid var(--border-strong);
  background: var(--surface-raised);
  color: var(--text-1);
  box-shadow: var(--shadow-overlay);
  animation: drawer-in var(--dur) var(--ease);
  overflow: hidden; /* the shell never scrolls: .drawer-body does (design-system.css) */
}
dialog.drawer::backdrop {
  background: var(--scrim);
}
@keyframes drawer-in {
  from {
    transform: translateX(24px);
    opacity: 0;
  }
  to {
    transform: none;
    opacity: 1;
  }
}
#edit-form {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-6) var(--s-6) var(--s-5);
  border-bottom: 1px solid var(--border);
}
.drawer-kicker {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-bottom: var(--s-1);
}
.drawer-header h2 {
  font-size: var(--fs-xl);
  overflow-wrap: anywhere;
}
.drawer-header-actions {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  flex: none;
}
.drawer-body {
  flex: 1;
  overflow: auto;
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
#edit-fields {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
#edit-fields .muted {
  line-height: 1.7;
}
#editor-notice:empty {
  display: none;
}
#editor-notice {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  background: var(--warning-soft);
  font-size: var(--fs-sm);
}
#review {
  padding: var(--s-4);
  border-radius: var(--r-md);
  background: var(--accent-soft);
  white-space: pre-wrap;
  font: var(--fs-sm)/1.8 var(--mono);
  overflow-wrap: anywhere;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-6) calc(var(--s-4) + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
}
@media (max-width: 699px) {
  .dialog-actions {
    flex-direction: column-reverse;
  }
  .dialog-actions .btn {
    width: 100%;
  }
}

/* #endregion */
/* #region zone:monitor.page.overview — ภาพรวมและกราฟสด */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--s-4);
}
.kpi {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-5);
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  min-width: 0;
}
.kpi-label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.kpi-label .icon {
  width: var(--icon-sm);
  height: var(--icon-sm);
  color: var(--text-3);
}
.kpi-value {
  font: 600 28px/1.15 var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--text-1);
  overflow-wrap: anywhere;
}
.kpi-value small {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--text-3);
  letter-spacing: 0;
  margin-left: var(--s-1);
}
.kpi-context {
  font-size: var(--fs-xs);
  color: var(--text-3);
  overflow-wrap: anywhere;
}
.kpi.is-warning {
  border-color: color-mix(in srgb, var(--warning) 45%, var(--border));
}
.kpi.is-warning .kpi-value,
.kpi.is-warning .kpi-label .icon {
  color: var(--warning-fg);
}
.dash-columns {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: var(--s-6);
  align-items: start;
}
.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.event-list li {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 40px;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: var(--fs-sm);
}
.event-list li:last-child {
  border-bottom: 0;
}
.event-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex: none;
}
.event-dot.is-warning {
  background: var(--warning);
}
.event-dot.is-danger {
  background: var(--danger);
}
.event-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-1);
}
.event-name span {
  color: var(--text-3);
}
.event-time {
  font-size: var(--fs-xs);
  color: var(--text-3);
  white-space: nowrap;
}
.queue-group + .queue-group {
  margin-top: var(--s-5);
}
.details-panel {
  padding-top: var(--s-2);
  padding-bottom: var(--s-2);
}
.details-panel .panel-header {
  margin: var(--s-3) 0 var(--s-2);
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-6);
}
.market-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2);
  font-weight: var(--fw-semibold);
  margin-bottom: var(--s-1);
}
.table-note {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-top: var(--s-3);
  line-height: 1.6;
}

/* #region zone:monitor.page.overview.apps-layout — การ์ดแอปสูงเท่ากันและตอบสนอง 3/2/1 คอลัมน์ */
.apps-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6);
  align-items: stretch;
}
.app-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.app-card .panel-header {
  flex-wrap: nowrap;
}
.app-card .panel-heading {
  min-width: 0;
}
.app-card .panel-title {
  white-space: normal;
  overflow-wrap: anywhere;
}
.app-card-description {
  display: -webkit-box;
  min-height: 3em;
  margin: 0 0 var(--s-3);
  overflow: hidden;
  color: var(--text-3);
  font-size: var(--fs-sm);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.app-card .kv {
  margin-bottom: var(--s-4);
}
.app-card-actions {
  margin-top: auto;
}
@media (min-width: 1280px) {
  .apps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 820px) and (max-width: 1279px) {
  .apps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 819px) {
  .apps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* #endregion */

/* live charts */
.live-charts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4);
}
.live-card {
  display: flex;
  flex-direction: column;
  padding: var(--s-4);
  background: var(--surface-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--r-md);
  min-width: 0;
}
.live-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
}
.live-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.4;
}
.live-value {
  font: 600 var(--fs-sm)/1.4 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.live-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1) var(--s-3);
  margin: var(--s-1) 0 var(--s-3);
}
.live-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.live-legend-item .live-swatch {
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  flex: none;
}
.live-legend-item span {
  color: var(--text-3);
}
.tip-series {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tip-series .live-swatch {
  width: 10px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  flex: none;
}
.tip-series span {
  color: var(--text-2);
}
.live-plot {
  position: relative;
  height: 140px;
}
.live-plot-area {
  position: absolute;
  top: 0;
  left: 0;
}
.live-plot-area {
  cursor: crosshair;
  touch-action: pan-y;
}
.live-cross {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 1px dashed var(--text-faint);
  pointer-events: none;
}
.live-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: var(--r-full);
  background: currentColor;
  box-shadow: 0 0 0 2px var(--surface-2);
  pointer-events: none;
}
.live-plot-area svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.live-y {
  position: absolute;
  top: 0;
  right: 0;
}
.live-y .chart-axis {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  line-height: 1;
}
.live-x {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 20px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.live-foot {
  margin-top: var(--s-2);
  font: var(--fs-xs) var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}
.live-wait {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 140px;
  color: var(--text-3);
  font-size: var(--fs-sm);
  border-bottom: 1px solid var(--chart-base);
}
.live-meta {
  margin-top: var(--s-3);
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.chart-grid {
  stroke: var(--chart-grid);
  stroke-width: 1;
}
.chart-base {
  stroke: var(--chart-base);
  stroke-width: 1;
}
.chart-axis {
  color: var(--chart-label);
  font: 10px/1 var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.chart-cpu {
  color: var(--chart-cpu);
}
.chart-memory {
  color: var(--chart-memory);
}
.chart-line-received {
  color: var(--chart-line-received);
}
.chart-line-accepted {
  color: var(--chart-line-accepted);
}
.chart-queue-processing {
  color: var(--chart-queue-processing);
}
.chart-queue-outgoing {
  color: var(--chart-queue-outgoing);
}
.live-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.live-area {
  stroke: none;
  fill: currentColor;
  opacity: 0.12;
}
.live-status {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.live-status .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2s var(--ease) infinite;
}
.live-status.is-error .dot {
  animation: none;
}
@keyframes pulse-dot {
  50% {
    opacity: 0.35;
  }
}

/* #endregion */

/* #region zone:monitor.page.vault.layout — แถวกุญแจและกล่องยืนยันที่ย่อได้ทุกจอ */
.vault-list {
  display: grid;
  gap: var(--s-4);
}
.vault-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: var(--s-4);
  align-items: center;
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--border);
}
.vault-info,
.vault-status {
  min-width: 0;
  overflow-wrap: anywhere;
}
.vault-row h3,
.vault-row p {
  margin: 0;
}
.vault-info,
.vault-status,
.vault-form {
  display: grid;
  gap: var(--s-3);
}
.vault-status {
  justify-items: start;
}
.vault-form .field {
  min-width: 0;
}
.vault-form label {
  overflow-wrap: anywhere;
}
.vault-form .totp {
  max-width: 100%;
}
@media (max-width: 700px) {
  .vault-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .vault-row > button {
    justify-self: start;
  }
}
/* #endregion */
