:root {
  /* Glass / CRM base tokens (light) */
  --bg0: #f6f7f9;
  --bg: var(--bg0);

  --panel: rgba(255, 255, 255, 0.62);
  --panel-strong: rgba(255, 255, 255, 0.78);
  --panel-border: rgba(16, 24, 32, 0.10);
  --panel-shadow: 0 18px 52px rgba(16, 24, 32, 0.14);
  --panel-shadow-soft: 0 10px 26px rgba(16, 24, 32, 0.10);
  --blur: 14px;

  --text: #121a22;
  --text-soft: rgba(18, 26, 34, 0.62);

  --accent: #1f5f4a;
  --accent-soft: rgba(31, 95, 74, 0.18);

  --warning: #c6872f;
  --danger: #a74a34;
  --critical: #8f372c;

  --radius-xl: 26px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg0: #0b0f14;
  --bg1: #0e141b;
  --bg2: #0c1714;
  --bg: radial-gradient(1200px 700px at 18% 6%, rgba(64, 120, 255, 0.24) 0%, rgba(64, 120, 255, 0) 60%),
    radial-gradient(900px 560px at 82% 12%, rgba(64, 200, 160, 0.22) 0%, rgba(64, 200, 160, 0) 62%),
    linear-gradient(135deg, var(--bg0) 0%, var(--bg1) 48%, var(--bg2) 100%);

  --panel: rgba(20, 28, 38, 0.58);
  --panel-strong: rgba(20, 28, 38, 0.72);
  --panel-border: rgba(255, 255, 255, 0.10);
  --panel-shadow: 0 22px 64px rgba(0, 0, 0, 0.50);
  --panel-shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.40);

  --text: rgba(245, 248, 252, 0.92);
  --text-soft: rgba(245, 248, 252, 0.58);
}

html[data-theme="dark"] .summary-card {
  background: rgba(245, 248, 252, 0.10);
}

.theme-toggle {
  height: 42px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--panel-shadow-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(20, 28, 38, 0.6);
}

.theme-toggle-track {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: rgba(18, 26, 34, 0.10);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 32, 0.10);
}

html[data-theme="dark"] .theme-toggle-track {
  background: rgba(245, 248, 252, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.theme-toggle-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transform: translateX(0);
  transition: transform 140ms ease;
}

html[data-theme="dark"] .theme-toggle-track::after {
  transform: translateX(14px);
  background: rgba(245, 248, 252, 0.92);
}

/* UI kit pilot: account security. Square geometry is intentional. */
.settings-hub-page,
.page-shell-settings,
.page-shell-users,
.page-shell-audit,
.security-page {
  --settings-accent: #db2f25;
  --settings-nav-border: rgba(31, 30, 29, 0.28);
  --settings-nav-surface: #fff;
  --settings-nav-text: #141413;
  --settings-nav-muted: #666660;
}

.settings-hub-nav {
  min-height: 46px;
  margin-bottom: 12px;
  display: flex;
  align-items: stretch;
  border: 1px solid var(--settings-nav-border);
  background: var(--settings-nav-surface);
  color: var(--settings-nav-text);
}

.settings-hub-brand,
.settings-hub-board-link,
.settings-hub-tabs a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.settings-hub-brand {
  padding: 0 16px;
  border-right: 1px solid var(--settings-nav-border);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.settings-hub-tabs {
  min-width: 0;
  display: flex;
  flex: 1;
  overflow-x: auto;
}

.settings-hub-tabs a,
.settings-hub-board-link {
  padding: 0 13px;
  border-bottom: 2px solid transparent;
  font-size: 12px;
  font-weight: 500;
}

.settings-hub-tabs a:hover,
.settings-hub-tabs a.is-active {
  border-bottom-color: var(--settings-accent);
  background: rgba(219, 47, 37, .05);
}

.settings-hub-board-link {
  margin-left: auto;
  border-left: 1px solid var(--settings-nav-border);
  color: var(--settings-nav-muted);
}

.settings-hub-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--settings-nav-border);
  border-top: 3px solid var(--settings-accent);
  background: var(--settings-nav-surface);
}

.settings-hub-header h1 { margin: 4px 0 8px; font-size: 30px; }
.settings-hub-header button { border-radius: 0; }

.settings-hub-cards {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.settings-hub-card {
  min-height: 160px;
  padding: 20px;
  border: 1px solid var(--settings-nav-border);
  background: var(--settings-nav-surface);
  color: var(--settings-nav-text);
  text-decoration: none;
}

.settings-hub-card:hover { border-color: var(--settings-accent); }
.settings-hub-card > span { color: var(--settings-accent); font-size: 12px; font-weight: 600; }
.settings-hub-card h2 { margin: 28px 0 6px; font-size: 18px; font-weight: 600; }
.settings-hub-card p { margin: 0; color: var(--settings-nav-muted); font-size: 13px; }

html[data-theme="dark"] .settings-hub-page,
html[data-theme="dark"] .page-shell-settings,
html[data-theme="dark"] .page-shell-users,
html[data-theme="dark"] .page-shell-audit,
html[data-theme="dark"] .security-page {
  --settings-nav-border: rgba(255, 255, 255, .26);
  --settings-nav-surface: #171716;
  --settings-nav-text: #fff;
  --settings-nav-muted: #c4c4bf;
}

html[data-theme="dark"] .settings-hub-header,
html[data-theme="dark"] .settings-hub-card,
html[data-theme="dark"] .settings-hub-nav {
  color: var(--settings-nav-text);
}

@media (max-width: 720px) {
  .settings-hub-nav { align-items: stretch; }
  .settings-hub-brand { display: none; }
  .settings-hub-board-link { padding-inline: 10px; }
  .settings-hub-header { display: grid; padding: 18px; }
  .settings-hub-cards { grid-template-columns: 1fr; }
  .settings-hub-card { min-height: 128px; }
}

/* Settings / System pilot. Scoped to avoid changing the board UI. */
.page-shell-settings {
  --system-accent: #db2f25;
  --system-bg: #f4f4f2;
  --system-surface: #fff;
  --system-surface-muted: #ededeb;
  --system-text: #141413;
  --system-text-soft: #666660;
  --system-border: rgba(31, 30, 29, .34);
  color: var(--system-text);
}

.system-header {
  min-height: 126px;
  padding: 22px 24px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--system-border);
  border-top: 3px solid var(--system-accent);
  background: var(--system-surface);
}

.system-header h1 {
  margin: 4px 0 7px;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 600;
}

.system-header .page-note {
  max-width: 720px;
  margin: 0;
  color: var(--system-text-soft);
  font-size: 13px;
}

.system-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  border: 1px solid var(--system-border);
}

.system-summary > div {
  min-width: 132px;
  padding: 13px 16px;
  display: grid;
  gap: 2px;
}

.system-summary > div + div { border-left: 1px solid var(--system-border); }
.system-summary strong { font-size: 22px; line-height: 1; font-weight: 600; }
.system-summary span { color: var(--system-text-soft); font-size: 11px; }

.system-guidance {
  margin-top: 10px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid var(--system-border);
  border-left: 3px solid var(--system-accent);
  background: var(--system-surface-muted);
}

.system-guidance strong { font-size: 12px; font-weight: 600; }
.system-guidance p { margin: 0; color: var(--system-text-soft); font-size: 12px; }
.system-guidance > a { grid-column: 2; font-size: 12px; color: var(--system-text); }

.system-directory-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.system-directory-card {
  min-width: 0;
  border: 1px solid var(--system-border);
  background: var(--system-surface);
}

.system-directory-header {
  min-height: 112px;
  padding: 17px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--system-border);
}

.system-directory-index {
  margin: 0 0 14px;
  color: var(--system-accent);
  font-size: 11px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -1px;
}

.system-directory-header h2 {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 600;
}

.system-directory-header p:not(.system-directory-index) {
  max-width: 430px;
  margin: 0;
  color: var(--system-text-soft);
  font-size: 12px;
}

.system-directory-body { padding: 16px 18px 18px; }
.system-list-label { display: block; margin-bottom: 6px; color: var(--system-text-soft); font-size: 11px; font-weight: 500; }

.page-shell-settings .system-directory-native[hidden] { display: none !important; }

.page-shell-settings .system-directory-list {
  width: 100%;
  min-height: 120px;
  max-height: 260px;
  padding: 0;
  overflow-y: auto;
  border: 1px solid var(--system-border);
  border-radius: 0;
  background: var(--system-surface);
  color: var(--system-text);
}

.page-shell-settings .system-directory-row {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--system-border) 55%, transparent);
  border-radius: 0;
  background: transparent;
  color: var(--system-text);
  font: 400 13px/1.35 Arial, Helvetica, sans-serif;
  text-align: left;
  cursor: pointer;
}

.page-shell-settings .system-directory-row:hover { background: var(--system-surface-muted); }
.page-shell-settings .system-directory-row[aria-selected="true"] {
  background: var(--system-text);
  color: var(--system-surface);
}

.system-directory-row-mark {
  display: none;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.system-directory-row[aria-selected="true"] .system-directory-row-mark { display: inline; }

/* Uppercase utility labels use the approved compact tracking. */
.eyebrow,
.settings-hub-brand,
.system-directory-index,
.system-directory-row-mark,
.security-kicker,
.security-step,
.security-label,
.login-screen-brand,
.login-screen-brand p,
.login-panel-heading h2,
.login-kicker,
.login-form label span,
.login-submit,
.audit-table th,
.users-table th {
  letter-spacing: -1px;
}

.system-directory-actions,
.system-form-actions {
  margin-top: 10px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.page-shell-settings .system-primary-action,
.page-shell-settings .system-secondary-action,
.page-shell-settings .system-danger-action {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--system-text);
  border-radius: 0;
  font: 500 12px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.page-shell-settings .system-primary-action { background: var(--system-text); color: var(--system-surface); }
.page-shell-settings .system-secondary-action { background: transparent; color: var(--system-text); }
.page-shell-settings .system-danger-action { margin-left: auto; border-color: var(--system-accent); background: transparent; color: var(--system-accent); }
.page-shell-settings .system-primary-action:hover { background: #353531; }
.page-shell-settings .system-secondary-action:hover { background: var(--system-surface-muted); }
.page-shell-settings .system-danger-action:hover { background: var(--system-accent); color: #fff; }

.system-editor { margin-top: 12px; }
.system-editor:empty { display: none; }

.page-shell-settings .system-editor-form {
  padding: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  border: 1px solid var(--system-border);
  border-left: 3px solid var(--system-accent);
  background: var(--system-surface-muted);
}

.page-shell-settings .system-editor-form[hidden] { display: none !important; }
.system-editor-heading { grid-column: 1 / -1; display: grid; gap: 2px; }
.system-editor-heading span { font-size: 13px; font-weight: 600; }
.system-editor-heading small { color: var(--system-text-soft); font-size: 11px; }
.system-editor-form label { display: grid; gap: 5px; color: var(--system-text); font-size: 11px; font-weight: 500; }

.page-shell-settings .system-editor-form input,
.page-shell-settings .system-editor-form select {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--system-border);
  border-radius: 0;
  background: var(--system-surface);
  color: var(--system-text);
  font: 400 13px Arial, Helvetica, sans-serif;
}

.system-editor-form .error-msg,
.system-editor-form .system-form-actions { grid-column: 1 / -1; }
.page-shell-settings button:focus-visible,
.page-shell-settings input:focus-visible,
.page-shell-settings select:focus-visible { outline: 2px solid var(--system-accent); outline-offset: 2px; }

html[data-theme="dark"] .page-shell-settings {
  --system-bg: #0d0d0c;
  --system-surface: #171716;
  --system-surface-muted: #222220;
  --system-text: #fff;
  --system-text-soft: #c4c4bf;
  --system-border: rgba(255, 255, 255, .3);
}

html[data-theme="dark"] .page-shell-settings .system-primary-action { background: #fff; color: #141413; border-color: #fff; }
html[data-theme="dark"] .page-shell-settings .system-primary-action:hover { background: #deded9; }
html[data-theme="dark"] .page-shell-settings .system-secondary-action { color: #fff; }
html[data-theme="dark"] .page-shell-settings .system-danger-action { color: #ff7168; border-color: #ff7168; }
html[data-theme="dark"] .page-shell-settings .system-directory-row[aria-selected="true"] {
  background: #fff;
  color: #141413;
}

@media (max-width: 920px) {
  .system-directory-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .system-header { display: grid; padding: 18px; }
  .system-summary { width: 100%; }
  .system-summary > div { min-width: 0; }
  .system-guidance { grid-template-columns: 1fr; gap: 4px; }
  .system-directory-header { min-height: 0; }
  .page-shell-settings .system-editor-form { grid-template-columns: 1fr; }
}

/* Settings / Users pilot. */
.page-shell-users {
  --users-accent: #db2f25;
  --users-surface: #fff;
  --users-muted-surface: #ededeb;
  --users-text: #141413;
  --users-soft: #666660;
  --users-border: rgba(31, 30, 29, .34);
  color: var(--users-text);
}

.users-kit-header {
  min-height: 92px;
  padding: 16px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  border: 1px solid var(--users-border);
  border-top: 3px solid var(--users-accent);
  background: var(--users-surface);
}

.users-kit-header h1 { margin: 4px 0 7px; font-size: 28px; line-height: 1.1; font-weight: 600; }
.users-kit-header .page-note { max-width: 720px; margin: 0; color: var(--users-soft); font-size: 13px; }
.users-kit-summary { min-width: 164px; padding: 13px 16px; display: grid; gap: 2px; border: 1px solid var(--users-border); }
.users-kit-summary strong { font-size: 22px; line-height: 1; font-weight: 600; }
.users-kit-summary span { color: var(--users-soft); font-size: 11px; }

.users-header-actions { display: flex; align-items: stretch; gap: 7px; }
.users-header-actions .users-kit-summary { min-width: 132px; padding: 9px 12px; }
.users-header-actions > button { align-self: stretch; white-space: nowrap; }

.users-kit-header--compact { min-height: 76px; align-items: center; }
.users-kit-header--compact h1 { margin-bottom: 0; }

.users-workspace {
  min-height: 0;
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(290px, 340px) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.users-access-panel {
  min-width: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--users-border);
  background: var(--users-surface);
}

.users-access-header h2 { margin: 0 0 5px; font-size: 18px; font-weight: 600; }
.users-access-header > p:not(.users-kit-index) { margin: 0; color: var(--users-soft); font-size: 12px; }
.users-access-tabs { margin: 16px 0 14px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--users-border); }
.users-access-tabs button { min-height: 36px; padding: 7px 8px; border: 0; border-radius: 0; background: transparent; color: var(--users-text); font: 500 11px Arial, Helvetica, sans-serif; cursor: pointer; }
.users-access-tabs button + button { border-left: 1px solid var(--users-border); }
.users-access-tabs button.is-active { background: var(--users-text); color: var(--users-surface); }
.users-access-panel > section[hidden] { display: none !important; }
.page-shell-users .users-access-panel .users-access-form { padding: 0; grid-template-columns: minmax(0, 1fr); min-width: 0; }
.page-shell-users .users-access-form > label { min-width: 0; }
.page-shell-users .users-access-form :is(input:not([type="checkbox"]), select) { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.page-shell-users .users-access-form .users-form-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.page-shell-users .users-access-form .users-form-actions button { width: 100%; min-width: 0; min-height: 36px; white-space: normal; }
#department-form { margin-top: 16px; }
.users-access-form .users-form-actions { margin-top: 4px; }
.users-access-form .users-kit-primary { width: 100%; }
.users-access-hint { margin: auto 0 0; padding-top: 16px; color: var(--users-soft); font-size: 10px; line-height: 1.4; cursor: help; }
.users-reset-panel { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--users-border); }
.users-reset-heading { margin-bottom: 12px; }
.users-reset-panel .users-reset-form input { border-radius: 0; }
.users-reset-panel .users-form-actions { margin-top: 10px; display: flex; gap: 7px; }

.users-role-note {
  margin-top: 10px;
  padding: 13px 16px;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--users-border);
  border-left: 3px solid var(--users-accent);
  background: var(--users-muted-surface);
}

.users-role-note strong { font-size: 12px; font-weight: 600; }
.users-role-note p { margin: 0; color: var(--users-soft); font-size: 12px; }
.users-role-note > span { color: var(--users-accent); font-size: 11px; font-weight: 600; cursor: help; }

.users-access-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
  gap: 10px;
  align-items: start;
}

.page-shell-users .users-kit-card {
  min-width: 0;
  border: 1px solid var(--users-border);
  border-radius: 0;
  background: var(--users-surface);
}

.users-kit-card-header { padding: 17px 18px; border-bottom: 1px solid var(--users-border); }
.users-kit-card-header h2 { margin: 0 0 4px; font-size: 18px; font-weight: 600; }
.users-kit-card-header p:not(.users-kit-index) { margin: 0; color: var(--users-soft); font-size: 12px; }
.users-kit-index { margin: 0 0 14px; color: var(--users-accent); font-size: 11px; line-height: 1; font-weight: 600; letter-spacing: -1px; }

.page-shell-users .users-create-form { padding: 16px 18px 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.page-shell-users .users-create-form label { display: grid; gap: 5px; color: var(--users-text); font-size: 11px; font-weight: 500; }
.page-shell-users .users-create-form label span { color: inherit; }
.page-shell-users .users-create-form small { color: var(--users-soft); font-size: 10px; }

.page-shell-users input,
.page-shell-users select,
.users-modal-card input {
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--users-border);
  border-radius: 0;
  background: var(--users-surface);
  color: var(--users-text);
  font: 400 12px Arial, Helvetica, sans-serif;
}

.page-shell-users .users-form-actions,
.page-shell-users .users-create-form .error-msg { grid-column: 1 / -1; }
.page-shell-users .users-form-actions { margin: 0; }

.page-shell-users .users-kit-primary,
.page-shell-users .users-kit-secondary,
.users-modal-card .users-kit-primary,
.users-modal-card .users-kit-secondary {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--users-text);
  border-radius: 0;
  font: 500 12px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.page-shell-users .users-kit-primary,
.users-modal-card .users-kit-primary { background: var(--users-text); color: var(--users-surface); }
.page-shell-users .users-kit-secondary,
.users-modal-card .users-kit-secondary { background: transparent; color: var(--users-text); }

.users-manual-card summary {
  min-height: 128px;
  padding: 17px 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.users-manual-card summary::-webkit-details-marker { display: none; }
.users-manual-card summary > span { display: grid; gap: 5px; }
.users-manual-card summary b { color: var(--users-accent); font-size: 11px; font-weight: 600; letter-spacing: -1px; }
.users-manual-card summary strong { margin-top: 14px; font-size: 18px; font-weight: 600; }
.users-manual-card summary small { color: var(--users-soft); font-size: 11px; }
.users-manual-card summary i { color: var(--users-accent); font-size: 11px; font-style: normal; font-weight: 600; }
.users-manual-card[open] summary { border-bottom: 1px solid var(--users-border); }
.users-manual-card[open] summary i::before { content: "Закрыть"; }
.users-manual-card[open] summary i { font-size: 0; }
.users-manual-card[open] summary i::before { font-size: 11px; }
.users-manual-card .users-create-form { grid-template-columns: 1fr; }

.page-shell-users .users-table-card { margin-top: 0; overflow: hidden; }
.page-shell-users .users-table-header { display: grid; grid-template-columns: minmax(220px, .45fr) minmax(0, 1fr); gap: 20px; align-items: end; }
.page-shell-users .users-filters { display: grid; grid-template-columns: repeat(3, minmax(120px, 1fr)) auto auto; gap: 7px; }
.page-shell-users .users-table-wrap { max-height: calc(100vh - 235px); min-height: 430px; border: 0; border-radius: 0; border-top: 1px solid var(--users-border); }
.page-shell-users .users-table { min-width: 840px; font-size: 12px; }
.page-shell-users .users-table th { padding: 9px 10px; background: var(--users-muted-surface); letter-spacing: -1px; }
.page-shell-users .users-table td { padding: 9px 10px; border-color: var(--users-border); vertical-align: middle; }
.page-shell-users .users-role-select { min-width: 170px; }
.page-shell-users .users-row-actions { flex-wrap: nowrap; }
.page-shell-users .users-status { margin-top: 10px; border-radius: 0; }

.users-modal-card {
  --users-surface: #fff;
  --users-text: #141413;
  --users-soft: #666660;
  --users-border: rgba(31, 30, 29, .34);
  border-radius: 0;
  background: var(--users-surface);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .24);
  backdrop-filter: none;
}

.users-modal-card .ghost-button { border-radius: 0; }

.users-create-modal-card { width: min(720px, 100%); }
.users-modal-description { margin: 0; color: var(--users-soft); font-size: 12px; }
.users-create-modal-card > section { display: grid; gap: 14px; }
.users-create-modal-card > section[hidden] { display: none !important; }
.users-create-modal-card .users-create-form { padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.users-create-modal-card .users-create-form label { display: grid; gap: 5px; min-width: 0; font-size: 11px; font-weight: 500; }
.users-create-modal-card .users-create-form label span { color: var(--users-text); }
.users-create-modal-card .users-create-form small { color: var(--users-soft); font-size: 10px; }
.users-create-modal-card .users-form-actions,
.users-create-modal-card .error-msg { grid-column: 1 / -1; }
.users-create-modal-card .users-checkbox { display: flex; }

html[data-theme="dark"] .page-shell-users,
html[data-theme="dark"] .users-modal-card {
  --users-surface: #171716;
  --users-muted-surface: #222220;
  --users-text: #fff;
  --users-soft: #c4c4bf;
  --users-border: rgba(255, 255, 255, .3);
}

html[data-theme="dark"] .page-shell-users .users-kit-primary,
html[data-theme="dark"] .users-modal-card .users-kit-primary { background: #fff; color: #141413; border-color: #fff; }
html[data-theme="dark"] .page-shell-users .users-kit-secondary,
html[data-theme="dark"] .users-modal-card .users-kit-secondary { color: #fff; border-color: rgba(255, 255, 255, .4); }

@media (max-width: 1050px) {
  .users-workspace { grid-template-columns: 1fr; }
  .page-shell-users .users-table-header { grid-template-columns: 1fr; }
  .users-access-panel { min-height: 0; }
}

@media (max-width: 760px) {
  .users-kit-header { display: grid; padding: 18px; }
  .users-kit-summary { width: 100%; }
  .users-role-note { grid-template-columns: 1fr; gap: 4px; }
  .page-shell-users .users-create-form { grid-template-columns: 1fr; }
  .page-shell-users .users-filters { grid-template-columns: 1fr 1fr; }
  .users-header-actions { width: 100%; flex-wrap: wrap; }
  .users-header-actions .users-kit-summary { flex: 1 1 100%; }
  .users-create-modal-card .users-create-form { grid-template-columns: 1fr; }
}

.security-page {
  --security-accent: #db2f25;
  --security-bg: #f4f4f2;
  --security-surface: #ffffff;
  --security-surface-muted: #ededeb;
  --security-text: #141413;
  --security-text-soft: #666660;
  --security-border: rgba(31, 30, 29, 0.34);
  min-height: 100dvh;
  padding: 0 24px 32px;
  background: var(--security-bg);
  color: var(--security-text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

.security-nav,
.security-header,
.security-explainer,
.security-card,
.security-message,
.security-note {
  width: min(1120px, 100%);
  margin-inline: auto;
  border-radius: 0;
}

.security-nav {
  min-height: 48px;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  border-bottom: 1px solid var(--security-border);
}
.security-brand,
.security-nav a {
  display: inline-flex;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.security-brand { font-size: 12px; font-weight: 700; letter-spacing: .08em; }
.security-nav-links { display: flex; align-items: stretch; }
.security-nav-links a { padding: 0 12px; border-bottom: 2px solid transparent; font-size: 12px; }
.security-nav-links a:hover,
.security-nav-links a.is-active { border-bottom-color: var(--security-accent); }

.security-header,
.security-card {
  border: 1px solid var(--security-border);
  background: var(--security-surface);
}
.security-header {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 24px;
  border-top: 3px solid var(--security-accent);
}
.security-header h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.1; font-weight: 600; }
.security-card h2 { margin: 0 0 8px; font-size: 20px; line-height: 1.25; font-weight: 600; }
.security-card h3 { margin: 0 0 6px; font-size: 16px; line-height: 1.4; font-weight: 600; }
.security-header p,
.security-card p,
.security-explainer p,
.security-note p { max-width: 760px; margin: 0; color: var(--security-text-soft); }
.security-kicker,
.security-step,
.security-label {
  margin: 0 0 6px !important;
  color: var(--security-accent) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.security-explainer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--security-border);
  border-top: 0;
  background: var(--security-surface-muted);
}
.security-explainer > div { min-height: 112px; padding: 18px; border-right: 1px solid var(--security-border); }
.security-explainer > div:last-child { border-right: 0; }
.security-explainer span { display: block; margin-bottom: 10px; color: var(--security-accent); font-size: 12px; font-weight: 600; }
.security-explainer strong { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.security-explainer p { font-size: 12px; }

.security-back,
.security-primary,
.security-secondary,
.security-danger {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid var(--security-text);
  border-radius: 0;
  font: 600 14px/1.4 Arial, Helvetica, sans-serif;
  text-decoration: none;
}
.security-primary { background: var(--security-text); color: #fff; }
.security-secondary,
.security-back { background: transparent; color: var(--security-text); }
.security-danger { border-color: var(--security-accent); background: var(--security-accent); color: #fff; }
.security-back:hover,
.security-secondary:hover { background: var(--security-surface-muted); }
.security-primary:hover { background: #353531; }
.security-danger:hover { background: #bf251d; }
.security-back:focus-visible,
.security-primary:focus-visible,
.security-secondary:focus-visible,
.security-danger:focus-visible,
.security-form input:focus-visible {
  outline: 2px solid var(--security-surface);
  box-shadow: 0 0 0 3.5px rgba(219, 47, 37, .55);
}

.security-message,
.security-card,
.security-note { margin-top: 12px; }
.security-card { padding: 22px 24px; }
.security-message { padding: 12px 16px; border-left: 3px solid #267447; background: #e7f1e9; }
.security-message.is-error { border-color: var(--security-accent); background: #f9e8e6; }
.security-status-line { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.security-badge { padding: 5px 8px; border: 1px solid var(--security-border); font-size: 12px; font-weight: 600; }
.security-badge.is-enabled { border-color: #267447; color: #267447; }
.security-setup-grid,
.security-actions-grid { display: grid; grid-template-columns: 244px minmax(0, 1fr); gap: 20px; margin-block: 18px; }
.security-actions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.security-qr { display: block; width: 244px; height: 244px; border: 1px solid var(--security-border); }
.security-secret-panel { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid var(--security-border); }
.security-secret-panel code { max-width: 100%; overflow-wrap: anywhere; font-size: 16px; letter-spacing: .06em; }
.security-help {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: var(--security-text-soft);
  font: 600 11px/16px Arial, Helvetica, sans-serif;
}
.security-form { display: grid; gap: 12px; }
.security-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; }
.security-form input {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid var(--security-border);
  border-radius: 0;
  background: var(--security-surface);
  color: inherit;
  font: 400 14px/1.4 Arial, Helvetica, sans-serif;
}
.security-form input::placeholder { color: #92928c; }
.security-danger-zone { padding-left: 20px; border-left: 1px solid var(--security-border); }
.security-codes { display: grid; grid-template-columns: repeat(4, minmax(120px, 1fr)); gap: 6px; margin-block: 16px; }
.security-codes code { padding: 10px; border: 1px solid var(--security-border); text-align: center; font-size: 14px; }
.security-note { padding: 16px 18px; border-left: 3px solid var(--security-accent); background: var(--security-surface-muted); }
.security-note strong { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 600; }
.security-note p { font-size: 12px; }

html[data-theme="dark"] .security-page {
  --security-bg: #0d0d0c;
  --security-surface: #171716;
  --security-surface-muted: #222220;
  --security-text: #ffffff;
  --security-text-soft: #c4c4bf;
  --security-border: rgba(255, 255, 255, .32);
}
html[data-theme="dark"] .security-message { background: #14241a; }
html[data-theme="dark"] .security-message.is-error { background: #321512; }
html[data-theme="dark"] .security-badge.is-enabled { color: #75d594; border-color: #75d594; }

@media (max-width: 720px) {
  .security-page { padding-inline: 12px; }
  .security-nav { align-items: center; }
  .security-nav-links { max-width: 70vw; overflow-x: auto; }
  .security-header { display: grid; padding: 18px; }
  .security-header h1 { font-size: 24px; }
  .security-explainer { grid-template-columns: 1fr; }
  .security-explainer > div { min-height: auto; border-right: 0; border-bottom: 1px solid var(--security-border); }
  .security-explainer > div:last-child { border-bottom: 0; }
  .security-card { padding: 18px; }
  .security-setup-grid,
  .security-actions-grid { grid-template-columns: 1fr; }
  .security-qr { width: min(244px, 100%); height: auto; }
  .security-danger-zone { padding: 18px 0 0; border-left: 0; border-top: 1px solid var(--security-border); }
  .security-codes { grid-template-columns: repeat(2, minmax(110px, 1fr)); }
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .control-panel,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .create-modal-card,
html[data-theme="dark"] .settings-drawer-panel,
html[data-theme="dark"] .board-column,
html[data-theme="dark"] .hose-card,
html[data-theme="dark"] .summary-card {
  border-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .hero,
html[data-theme="dark"] .control-panel,
html[data-theme="dark"] .settings-card,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .create-modal-card,
html[data-theme="dark"] .settings-drawer-panel,
html[data-theme="dark"] .board-column,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .column-title,
html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .hero-kicker,
html[data-theme="dark"] .create-modal-form label,
html[data-theme="dark"] .create-modal-form label span,
html[data-theme="dark"] .settings-layout,
html[data-theme="dark"] .settings-layout label,
html[data-theme="dark"] .settings-layout h1,
html[data-theme="dark"] .settings-layout h2,
html[data-theme="dark"] .settings-layout h3,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .detail-card *:not(input):not(select):not(textarea):not(option),
html[data-theme="dark"] .board-error {
  color: #ffffff;
}

html[data-theme="dark"] button,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .create-form button,
html[data-theme="dark"] .ghost-button,
html[data-theme="dark"] .hero-add-button,
html[data-theme="dark"] .mode-button,
html[data-theme="dark"] .settings-actions button,
html[data-theme="dark"] .detail-header button,
html[data-theme="dark"] .create-submit-button {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] .create-form input,
html[data-theme="dark"] .create-form select,
html[data-theme="dark"] .board-filters input,
html[data-theme="dark"] .board-filters select,
html[data-theme="dark"] .settings-layout select,
html[data-theme="dark"] .settings-actions input,
html[data-theme="dark"] .settings-actions select,
html[data-theme="dark"] .settings-actions textarea,
html[data-theme="dark"] .detail-form-body input,
html[data-theme="dark"] .detail-form-body select,
html[data-theme="dark"] .detail-form-body textarea,
html[data-theme="dark"] .create-modal-form input,
html[data-theme="dark"] .create-modal-form select,
html[data-theme="dark"] .create-modal-form textarea {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] input::placeholder,
html[data-theme="dark"] textarea::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.theme-icon {
  font-size: 14px;
  line-height: 1;
  opacity: 0.75;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
}

html,
body,
#content {
  height: 100%;
}

body {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  border-radius: 14px;
  border: 1px solid var(--panel-border);
}

button {
  cursor: pointer;
}

.page-shell {
  height: 100dvh;
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-shell-settings {
  grid-template-rows: auto 1fr;
  overflow-y: auto;
  min-height: 0;
  scroll-padding-block: 18px;
}

.page-shell-settings > * { flex-shrink: 0; }

@media (max-width: 680px) {
  .system-guidance > a { grid-column: 1; }
}

.hero,
.control-panel,
.settings-card,
.detail-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(var(--blur));
}

.hero,
.control-panel {
  border-radius: var(--radius-xl);
  padding: 16px 18px;
}

.hero {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .column-count,
html[data-theme="dark"] .mobile-tile-count {
  color: #ffffff;
}

:where(button, a, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.login-screen {
  position: relative;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, 34vw);
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.02) 35%, rgba(0, 0, 0, 0.76) 72%, rgba(0, 0, 0, 0.96) 100%),
    #030303 url("/public/login-hero.png") left center / cover no-repeat;
}

.login-screen-brand {
  align-self: end;
  padding: 0 5vw 5vh;
  text-transform: uppercase;
}

.login-screen-brand p {
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.login-panel {
  min-height: 100dvh;
  padding: clamp(32px, 6vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 54px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(0, 0, 0, 0.48);
}

.login-panel-heading {
  display: grid;
  gap: 10px;
}

.login-panel-heading h2 {
  color: #ffffff;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.login-panel-heading > p:last-child {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.login-kicker {
  color: #e33124;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.login-form,
.login-form label {
  display: grid;
}

.login-form {
  gap: 28px;
}

.login-form label {
  gap: 8px;
}

.login-form label span {
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -1px;
  text-transform: uppercase;
}

.login-form input,
html[data-theme="dark"] .login-form input {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0;
  color: #ffffff;
  background: transparent;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
}

.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover,
.login-form input:-webkit-autofill:focus {
  border: 0;
  border-bottom: 1px solid #ffffff;
  border-radius: 0;
  -webkit-text-fill-color: #ffffff;
  caret-color: #ffffff;
  box-shadow: 0 0 0 1000px #080808 inset;
  transition: background-color 9999s ease-out 0s;
}

.login-form input::placeholder,
html[data-theme="dark"] .login-form input::placeholder {
  color: rgba(255, 255, 255, 0.34);
}

.login-form input:focus {
  outline: none;
  border-bottom-color: #ffffff;
}

.login-submit,
html[data-theme="dark"] .login-submit {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  border: 1px solid #ffffff;
  border-radius: 0;
  color: #080808;
  background: #ffffff;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-submit:hover {
  color: #ffffff;
  background: transparent;
}

.login-recovery {
  justify-self: start;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
}

.login-recovery:hover {
  color: #ffffff;
  border-bottom-color: #ffffff;
}

.login-error {
  padding: 10px 0;
  border-top: 1px solid rgba(227, 49, 36, 0.72);
  border-bottom: 1px solid rgba(227, 49, 36, 0.72);
  color: #ffffff;
  font-size: 13px;
}

@media (max-width: 760px) {
  .login-screen {
    grid-template-columns: 1fr;
    background-position: 36% center;
  }

  .login-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.68);
  }

  .login-screen-brand {
    display: none;
  }

  .login-panel {
    position: relative;
    z-index: 1;
    min-height: 100dvh;
    padding: 36px 24px;
    border-left: 0;
    background: rgba(0, 0, 0, 0.38);
  }
}

/* Security page overrides must follow legacy global dark control rules. */
html[data-theme="dark"] .security-page .security-primary {
  border-color: #ffffff;
  background: #ffffff;
  color: #141413;
}
html[data-theme="dark"] .security-page .security-secondary,
html[data-theme="dark"] .security-page .security-back,
html[data-theme="dark"] .security-page .security-help {
  border-color: rgba(255, 255, 255, .72);
  background: transparent;
  color: #ffffff;
}
html[data-theme="dark"] .security-page .security-danger {
  border-color: #db2f25;
  background: #db2f25;
  color: #ffffff;
}
html[data-theme="dark"] .security-page .security-form input {
  border-color: rgba(255, 255, 255, .45);
  background: #171716;
  color: #ffffff;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.08;
}

h2 {
  font-size: 18px;
}

h3 {
  font-size: 15px;
}

.page-note {
  margin-top: 8px;
  color: var(--text-soft);
  line-height: 1.35;
  font-size: 13px;
}

.hero-actions,
.board-switcher,
.board-filters,
.create-form {
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.inline-form {
  display: inline;
}

.hero-actions > .ghost-button,
.hero-actions > .hero-add-button,
.hero-actions .reports-menu-button {
  height: 42px;
  min-height: 42px;
  padding-block: 0;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.reports-menu {
  position: relative;
  z-index: 30;
}

.reports-menu-button {
  min-width: 112px;
}

.reports-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 210px;
  padding: 8px;
  border-radius: 16px;
  background: var(--panel-strong);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
  display: grid;
  gap: 6px;
  z-index: 40;
}

.toolbar-clock {
  height: 42px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow-soft);
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.clock-time {
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: 0.04em;
  font-size: 12px;
  color: var(--text);
}

.clock-menu-panel {
  min-width: 260px;
}

.search-menu-panel {
  min-width: 300px;
}

.filter-menu-panel {
  min-width: 240px;
}

.reports-menu-panel[hidden] {
  display: none !important;
}

.reports-menu-link {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  background: rgba(31, 95, 74, 0.10);
  border: 0;
  text-align: left;
}

.reports-menu-link:hover {
  background: var(--accent-soft);
}

.reports-menu-option {
  cursor: pointer;
}

.reports-menu-option.is-active {
  background: var(--accent);
  color: #fff;
}

.menu-search-input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  background: var(--panel-strong);
  color: var(--text);
}

.menu-filter-select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  background: var(--panel-strong);
  color: var(--text);
}

.create-form {
  flex-wrap: wrap;
}

.create-form button {
  flex: 0 0 220px;
  white-space: nowrap;
}

.create-form input,
.create-form select {
  flex: 1 1 140px;
}

.control-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: center;
}

.create-form input,
.create-form select,
.board-filters input,
.board-filters select,
.settings-layout select,
.settings-actions input,
.settings-actions select,
.settings-actions textarea,
.detail-form-body input,
.detail-form-body select,
.detail-form-body textarea {
  min-height: 42px;
  padding: 10px 12px;
  background: var(--panel-strong);
  color: var(--text);
}

.create-form button,
.ghost-button,
.hero-add-button,
.mode-button,
.settings-actions button,
.detail-header button {
  min-height: 42px;
  padding: 10px 14px;
  background: var(--panel-strong);
  box-shadow: var(--panel-shadow-soft);
  color: var(--text);
}

.ghost-button {
  background: var(--panel);
}

.hero-add-button {
  background: var(--accent);
  color: #fff;
}

.mode-button.is-active {
  background: var(--accent);
  color: #fff;
}

.board-error {
  min-height: 18px;
  margin: 0 2px;
}

.create-modal-screen {
  position: fixed;
  inset: 0;
  background: rgba(23, 33, 28, 0.34);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 40;
}

.create-modal-screen[hidden] {
  display: none !important;
}

.create-modal-card {
  width: min(560px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(var(--blur));
  padding: 18px;
  display: grid;
  gap: 16px;
}

.create-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.create-modal-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.create-modal-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
  min-width: 0;
}

.create-modal-form label span {
  color: var(--text);
  font-weight: 600;
}

.create-modal-form input,
.create-modal-form select,
.create-modal-form textarea {
  min-height: 42px;
  padding: 10px 12px;
  background: var(--panel-strong);
  color: var(--text);
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.create-modal-actions,
.create-modal-form .error-msg {
  grid-column: 1 / -1;
}

.create-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.create-submit-button {
  min-height: 42px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--panel-shadow);
}

.settings-drawer {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(17, 24, 20, 0.2);
  display: flex;
  justify-content: flex-end;
  padding: 14px;
}

.settings-drawer[hidden] {
  display: none !important;
}

.settings-drawer-card {
  width: min(920px, 100%);
  height: calc(100vh - 28px);
  border-radius: 26px;
  padding: 16px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(var(--blur));
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
}

.settings-drawer-header,
.settings-drawer-editor-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.settings-drawer-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-drawer-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 14px;
}

.settings-drawer-sidebar,
.settings-drawer-editor {
  min-height: 0;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.settings-drawer-toolbar {
  display: flex;
}

.settings-drawer-toolbar button {
  width: 100%;
}

.settings-drawer-list {
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 8px;
  padding-right: 4px;
}

.settings-list-item {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--panel-strong);
  border: 1px solid var(--panel-border);
  display: grid;
  gap: 4px;
  text-align: left;
  box-shadow: none;
}

.settings-list-item.is-active {
  border-color: rgba(31, 95, 74, 0.32);
  background: rgba(31, 95, 74, 0.14);
}

.settings-list-main {
  font-weight: 700;
  color: var(--text);
}

.settings-list-meta {
  font-size: 12px;
  color: var(--text-soft);
}

.settings-item-badge {
  justify-self: start;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(39, 82, 63, 0.08);
  color: var(--accent);
}

.settings-drawer-form {
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.settings-drawer-form label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
}

.settings-drawer-form label span {
  color: var(--text);
  font-weight: 600;
}

.settings-drawer-form input,
.settings-drawer-form select,
.settings-drawer-form textarea {
  min-height: 42px;
  padding: 10px 12px;
  background: var(--panel-strong);
  color: var(--text);
}

.settings-form-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.settings-form-actions > button {
  min-width: 132px;
  padding-inline: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.settings-form-note,
.settings-empty {
  font-size: 13px;
  color: var(--text-soft);
}

.settings-empty {
  padding: 14px;
  border-radius: 16px;
  background: var(--panel);
  border: 1px dashed var(--panel-border);
}

.settings-empty--editor {
  min-height: 140px;
  display: grid;
  align-items: center;
}

.error-msg {
  color: var(--critical);
  font-weight: 700;
  font-size: 13px;
}

.summary-panel-shell {
  display: flex;
  flex-wrap: wrap;
  flex-shrink: 0;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow-soft);
  backdrop-filter: blur(var(--blur));
  overflow: hidden;
  min-width: 0;
}

.board-summary {
  display: flex;
  align-items: center;
  flex: 1 1 440px;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.summary-card {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  min-height: 40px;
  border-radius: 999px;
  background: rgba(18, 26, 34, 0.06);
  border: 0;
  box-shadow: none;
  white-space: nowrap;
}

.summary-card span {
  display: inline;
  font-size: 11px;
  line-height: 1;
  color: var(--text);
}

.summary-card strong {
  display: inline;
  font-size: 20px;
  line-height: 1;
  font-weight: 900;
  margin-top: 0;
}

.board-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1 1 520px;
  flex-wrap: wrap;
  min-width: 0;
  overflow: hidden;
}

.legend-group {
  min-width: auto;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.board-legend .legend-group:first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}

.board-legend .legend-group:last-child {
  flex: 0 0 auto;
}

.legend-title {
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
}

.legend-items {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 22px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--panel-strong);
  border: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  min-width: 0;
  max-width: 132px;
  flex: 0 0 auto;
}

.legend-chip-text {
  display: inline-block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.legend-chip--more {
  flex: 0 0 auto;
  max-width: none;
}

.legend-swatch {
  display: inline-flex;
  flex: 0 0 auto;
}

.legend-swatch--line {
  width: 16px;
  height: 4px;
  border-radius: 999px;
}

.legend-swatch--dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(23, 40, 31, 0.06);
}

.legend-51 {
  background: #2660a4;
}

.legend-66 {
  background: #c48335;
}

.legend-77 {
  background: #934a8f;
}

.legend-88 {
  background: #ba5440;
}

.legend-ready {
  background: #4e9b63;
}

.legend-check {
  background: #d59a2f;
}

.legend-repair {
  background: #c6543f;
}

.legend-retired {
  background: #6b7470;
}

.board-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  grid-template-rows: 1fr;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
  align-items: stretch;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
}

.board-column {
  min-width: 0;
  min-height: 0;
  border-radius: 22px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
  padding: 12px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  height: 100%;
}

.board-column.drop-active {
  outline: 2px dashed rgba(39, 82, 63, 0.38);
  outline-offset: 2px;
}

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

.column-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.column-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-width: 0;
  min-height: 0;
  align-content: start;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  overscroll-behavior: contain;
}

.board-column--compact-2 .column-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.board-column--compact-3 .column-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-content: start;
}

.board-column--compact-2 .hose-card,
.board-column--compact-3 .hose-card {
  width: 100%;
  min-width: 0;
  min-height: 34px;
  padding: 6px 8px 6px 34px;
  gap: 6px;
}

.board-column--compact-2 .hose-card,
.board-column--compact-3 .hose-card,
.board-column--compact-2 .hose-title,
.board-column--compact-3 .hose-title,
.board-column--compact-2 .hose-subtitle,
.board-column--compact-3 .hose-subtitle,
.board-column--compact-2 .hose-diameter,
.board-column--compact-3 .hose-diameter {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.board-column--compact-2 .hose-card,
.board-column--compact-3 .hose-card {
  line-height: 1.08;
}

.board-column--compact-2 .hose-card-main,
.board-column--compact-3 .hose-card-main {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.board-column--compact-2 .hose-code,
.board-column--compact-3 .hose-code,
.board-column--compact-2 .hose-diameter,
.board-column--compact-3 .hose-diameter {
  flex: none;
  max-width: 100%;
}

.board-column--compact-2 .hose-card::before,
.board-column--compact-3 .hose-card::before {
  left: 4px;
  top: 5px;
  bottom: 5px;
  width: 15px;
}

.board-column--compact-2 .hose-card > .risk-dot,
.board-column--compact-3 .hose-card > .risk-dot {
  left: 24px;
  top: 6px;
  bottom: 6px;
  width: 4px;
}

.board-column--compact-2 .hose-code,
.board-column--compact-3 .hose-code,
.board-column--compact-2 .hose-diameter,
.board-column--compact-3 .hose-diameter {
  font-size: 11px;
}

.board-column--vehicle .column-cards {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-content: start;
  align-self: stretch;
  height: 100%;
}

.board-column--vehicle .column-cards.column-cards--double {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.board-column--vehicle .column-cards.column-cards--triple {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hose-card {
  box-sizing: border-box;
  flex-shrink: 0;
  width: 100%;
  min-width: 0;
  min-height: 58px;
  padding: 10px 16px 10px 40px;
  border-radius: 999px;
  border: 1px solid rgba(196, 199, 206, 0.75);
  background: #ffffff;
  box-shadow: var(--panel-shadow-soft);
  backdrop-filter: blur(var(--blur));
  position: relative;
  cursor: grab;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
}

.hose-card--compact {
  min-height: 34px;
  padding: 8px 14px 8px 40px;
  gap: 12px;
}

.hose-card::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  bottom: 5px;
  width: 18px;
  border-radius: 999px 0 0 999px;
  background: var(--card-accent, #c8c6d7);
  opacity: 0.45;
}

html[data-theme="dark"] .hose-card {
  background: var(--panel-strong);
}

html[data-theme="dark"] .hose-card::before {
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .hose-code,
html[data-theme="dark"] .hose-diameter,
html[data-theme="dark"] .hose-title,
html[data-theme="dark"] .hose-subtitle {
  color: #ffffff;
}

html[data-theme="dark"] .hose-code {
  opacity: 0.78;
}

.hose-card.is-dragging {
  opacity: 0.72;
}

.hose-card-main {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hose-code {
  flex: 1 1 0;
  min-width: 0;
  max-width: 55%;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  color: #747474;
  opacity: 0.7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hose-diameter {
  flex: 0 0 auto;
  max-width: 45%;
  min-width: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: #000000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
}

.risk-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  flex: 0 0 12px;
  box-shadow: inset 0 0 0 1px rgba(16, 24, 32, 0.18);
}

.hose-card > .risk-dot {
  position: absolute;
  left: 28px;
  top: 6px;
  bottom: 6px;
  width: 5px;
  height: auto;
  flex: 0 0 auto;
  box-shadow: none;
  z-index: 1;
}

.risk-dot.normal {
  background: #4e9b63;
}

.risk-dot.warning {
  background: #d59a2f;
}

.risk-dot.critical {
  background: #c6543f;
}

.risk-dot.retired {
  background: #6b7470;
}

.risk-pill,
.status-pill,
.extra-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
}

.risk-pill.normal {
  background: #e4f1e7;
  color: #2c6741;
}

.risk-pill.warning {
  background: #fff0d9;
  color: #936523;
}

.risk-pill.critical {
  background: #f7ddd7;
  color: #9d3f31;
}

.risk-pill.retired {
  background: #e5e8e6;
  color: #58615d;
}

.column-footer {
  min-height: 0;
}

.status-pill {
  background: rgba(39, 82, 63, 0.08);
  color: var(--accent);
}

.hose-main {
  display: grid;
  gap: 3px;
}

.hose-title {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.hose-subtitle,
.column-footer,
.timeline-item small,
.detail-item span:last-child {
  color: var(--text-soft);
}

.hose-subtitle,
.hose-line {
  font-size: 11px;
}

.column-footer {
  font-size: 12px;
}

.detail-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(17, 24, 20, 0.2);
  display: flex;
  justify-content: flex-end;
  padding: 14px;
}

.detail-drawer[hidden] {
  display: none !important;
}

.detail-card {
  width: min(540px, 100%);
  height: calc(100vh - 28px);
  border-radius: 26px;
  padding: 16px;
  display: grid;
  grid-template-rows: auto auto auto auto 1fr;
  gap: 14px;
}

.detail-header,
.settings-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

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

.detail-action.is-active {
  background: var(--accent);
  color: #fff;
}

.detail-form-panel {
  border-radius: 18px;
  border: 1px solid var(--panel-border);
  background: rgba(255, 255, 255, 0.72);
  padding: 14px;
  display: grid;
  gap: 12px;
}

.detail-form-panel[hidden] {
  display: none !important;
}

.detail-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.detail-form-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-form-body label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: var(--text-soft);
}

.detail-form-body label span {
  color: var(--text);
  font-weight: 600;
}

.form-span-2 {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.form-actions button {
  min-height: 42px;
  padding: 10px 14px;
  background: var(--accent);
  color: #fff;
  box-shadow: var(--panel-shadow);
}

.detail-sections {
  overflow: auto;
  display: grid;
  gap: 14px;
  padding-right: 4px;
}

.detail-list {
  display: grid;
  gap: 6px;
}

.detail-item,
.timeline-item {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(23, 40, 31, 0.08);
}

.detail-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.timeline {
  display: grid;
  gap: 8px;
}

.timeline-item strong,
.timeline-item p {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-height: 0;
}

.page-shell-audit {
  height: auto;
  min-height: 100vh;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.page-shell-users {
  height: auto;
  min-height: 100vh;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.audit-hero {
  flex-shrink: 0;
}

.users-hero {
  flex-shrink: 0;
}

.audit-panel,
.audit-table-card,
.users-panel,
.users-table-card {
  min-width: 0;
}

.audit-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
  align-items: end;
}

.users-create-form,
.users-filters {
  display: grid;
  gap: 12px;
  align-items: end;
}

.users-create-form {
  grid-template-columns: repeat(4, minmax(160px, 1fr)) auto;
}

.users-filters {
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 1fr) minmax(130px, 150px) auto;
}

.audit-filters label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.users-create-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.users-checkbox {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  min-height: 42px;
}

.users-checkbox input {
  width: 18px;
  height: 18px;
}

.audit-filters label span,
.users-create-form label span,
.audit-muted {
  color: var(--text-soft);
  font-size: 12px;
}

.audit-filter-actions,
.audit-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.audit-filter-actions button {
  min-height: 42px;
}

.users-form-actions button {
  min-height: 42px;
  white-space: nowrap;
}

.audit-table-card,
.users-table-card {
  overflow: hidden;
}

.audit-table-header,
.users-table-header {
  align-items: center;
  gap: 16px;
}

.users-table-header {
  grid-template-columns: minmax(220px, auto) minmax(0, 1fr);
}

.audit-table-wrap,
.users-table-wrap {
  overflow: auto;
  min-height: 0;
  max-height: calc(100vh - 340px);
  border-radius: 18px;
  border: 1px solid var(--panel-border);
}

.audit-table,
.users-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
  font-size: 12px;
}

.users-table {
  min-width: 920px;
}

.audit-table th,
.audit-table td,
.users-table th,
.users-table td {
  padding: 9px 10px;
  border-bottom: 1px solid rgba(23, 40, 31, 0.08);
  text-align: left;
  vertical-align: top;
}

.audit-table th,
.users-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--panel-strong);
  color: var(--text);
  font-size: 11px;
  text-transform: uppercase;
}

.audit-table td code,
.users-table td code {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: inherit;
}

.users-role-select {
  min-width: 180px;
}

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

.users-row-actions .ghost-button {
  min-height: 34px;
  padding: 8px 10px;
  white-space: nowrap;
}

.users-modal-screen {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(17, 24, 20, 0.28);
}

.users-modal-screen[hidden] {
  display: none !important;
}

.users-modal-card {
  width: min(460px, 100%);
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  box-shadow: var(--panel-shadow);
  backdrop-filter: blur(var(--blur));
  padding: 18px;
  display: grid;
  gap: 16px;
}

.users-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.users-reset-form {
  display: grid;
  gap: 12px;
}

.users-reset-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.users-reset-form label span {
  color: var(--text-soft);
  font-size: 12px;
}

.users-reset-form input {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  background: var(--panel-strong);
  color: var(--text);
}

.audit-empty {
  color: var(--text-soft);
  text-align: center;
}

.app-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 400;
  width: min(420px, calc(100vw - 40px));
  padding: 13px 16px;
  border-radius: 16px;
  color: #fff;
  background: #1f6a50;
  box-shadow: 0 18px 50px rgba(15, 30, 23, 0.24);
  font-weight: 650;
}

.app-toast--error {
  background: #9d3d35;
}

.app-toast[hidden],
.onboarding-card[hidden],
.users-status[hidden] {
  display: none !important;
}

.success-msg {
  margin: 0;
  padding: 11px 14px;
  border: 1px solid rgba(48, 151, 100, 0.28);
  border-radius: 14px;
  color: #135b40;
  background: rgba(48, 151, 100, 0.12);
}

.empty-state {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 32px 18px;
  color: var(--text-soft);
  text-align: center;
}

.empty-state strong {
  color: var(--text);
  font-size: 15px;
}

.audit-quick-filters,
.onboarding-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--panel-border);
  border-radius: 999px;
  background: var(--panel-strong);
  color: var(--text-soft);
}

.filter-chip.is-active {
  border-color: rgba(31, 106, 80, 0.36);
  color: #155a43;
  background: rgba(48, 151, 100, 0.13);
}

.audit-action-code {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 10px;
}

.audit-details summary {
  cursor: pointer;
  color: #1f6a50;
  font-weight: 700;
}

.audit-details code {
  display: block !important;
  max-width: 320px !important;
  margin-top: 7px;
  padding: 8px;
  border-radius: 8px;
  white-space: pre-wrap !important;
  overflow-wrap: anywhere;
  background: rgba(23, 40, 31, 0.06);
}

.role-guide {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.role-guide > div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border: 1px solid var(--panel-border);
  border-radius: 16px;
  background: var(--panel);
}

.role-guide span,
.users-create-form small {
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.4;
}

.onboarding-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.7fr) auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(31, 106, 80, 0.18);
  border-radius: 22px;
  background: linear-gradient(120deg, rgba(234, 246, 239, 0.94), rgba(255, 255, 255, 0.82));
}

.onboarding-copy h2,
.onboarding-copy p {
  margin: 0;
}

.onboarding-copy p:last-child {
  margin-top: 6px;
  color: var(--text-soft);
  font-size: 12px;
}

.onboarding-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.onboarding-steps li {
  display: flex;
  gap: 9px;
  min-width: 0;
}

.onboarding-steps li > span {
  display: grid;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #1f6a50;
  font-weight: 800;
}

.onboarding-steps div {
  display: grid;
  gap: 3px;
}

.onboarding-steps small {
  color: var(--text-soft);
  line-height: 1.35;
}

.access-state {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.access-state-card {
  width: min(560px, 100%);
  display: grid;
  gap: 14px;
  padding: 32px;
  border: 1px solid var(--panel-border);
  border-radius: 28px;
  background: var(--panel);
  box-shadow: var(--panel-shadow);
}

.access-state-code {
  color: #1f6a50;
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

.access-state-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.audit-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.audit-badge--success {
  color: #135b40;
  background: rgba(48, 151, 100, 0.14);
}

.audit-badge--failure {
  color: #8f2e24;
  background: rgba(196, 79, 64, 0.14);
}

html[data-theme="dark"] .audit-table-wrap,
html[data-theme="dark"] .users-table-wrap {
  border-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .audit-table th,
html[data-theme="dark"] .audit-table td,
html[data-theme="dark"] .users-table th,
html[data-theme="dark"] .users-table td,
html[data-theme="dark"] .audit-muted,
html[data-theme="dark"] .audit-filters label span,
html[data-theme="dark"] .users-create-form label span {
  color: #ffffff;
}

html[data-theme="dark"] .audit-table th,
html[data-theme="dark"] .users-table th {
  background: rgba(19, 28, 38, 0.96);
}

html[data-theme="dark"] .audit-table td,
html[data-theme="dark"] .users-table td {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

html[data-theme="dark"] .users-modal-card {
  border-color: rgba(255, 255, 255, 0.28);
}

html[data-theme="dark"] .users-modal-card,
html[data-theme="dark"] .users-reset-form label span {
  color: #ffffff;
}

html[data-theme="dark"] .audit-badge--success {
  color: #ffffff;
  background: rgba(78, 155, 99, 0.36);
}

html[data-theme="dark"] .audit-badge--failure {
  color: #ffffff;
  background: rgba(196, 79, 64, 0.42);
}

html[data-theme="dark"] .success-msg,
html[data-theme="dark"] .filter-chip.is-active,
html[data-theme="dark"] .audit-details summary {
  color: #ffffff;
}

html[data-theme="dark"] .role-guide > div,
html[data-theme="dark"] .onboarding-card,
html[data-theme="dark"] .access-state-card {
  border-color: rgba(255, 255, 255, 0.26);
  color: #ffffff;
  background: rgba(19, 28, 38, 0.92);
}

.settings-card {
  border-radius: 22px;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: 12px;
}

.settings-actions,
.settings-actions form {
  display: grid;
  gap: 10px;
  align-content: start;
}

.detail-sections::-webkit-scrollbar,
.settings-layout select::-webkit-scrollbar,
.settings-drawer-list::-webkit-scrollbar {
  width: 8px;
}

.detail-sections::-webkit-scrollbar-thumb,
.settings-layout select::-webkit-scrollbar-thumb,
.settings-drawer-list::-webkit-scrollbar-thumb {
  background: rgba(39, 82, 63, 0.22);
  border-radius: 999px;
}

.page-shell-audit {
  --audit-line: #c6c6c6;
  --audit-surface: #ffffff;
  --audit-muted: #606060;
  height: 100vh;
  min-height: 680px;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 0;
  padding: 0;
  background: #f4f4f2;
}

.audit-kit-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  border: 1px solid var(--audit-line);
  border-bottom: 0;
  background: var(--audit-surface);
}

.audit-kit-header h1,
.audit-panel-heading h2,
.audit-table-header h2 {
  margin: 0;
  color: var(--text);
  letter-spacing: -1px;
}

.audit-kit-header h1 {
  font-size: 25px;
  line-height: 1.05;
}

.audit-kit-header > div > p:last-child,
.audit-panel-heading > p:last-child {
  margin: 5px 0 0;
  color: var(--audit-muted);
  font-size: 12px;
}

.audit-kit-index,
.audit-kit-count span {
  margin: 0 0 9px;
  color: #db2f25;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -1px;
}

.audit-kit-count {
  display: grid;
  min-width: 150px;
  justify-items: end;
}

.audit-kit-count strong {
  color: var(--text);
  font-size: 28px;
  font-weight: 500;
  line-height: 1;
}

.audit-workspace {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  min-height: 0;
  border-top: 1px solid var(--audit-line);
  border-left: 1px solid var(--audit-line);
}

.audit-filter-panel,
.audit-events-panel {
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--audit-line);
  border-bottom: 1px solid var(--audit-line);
  background: var(--audit-surface);
}

.audit-filter-panel {
  overflow-y: auto;
  padding: 18px;
}

.audit-panel-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--audit-line);
}

.audit-panel-heading h2,
.audit-table-header h2 {
  font-size: 18px;
}

.page-shell-audit .audit-quick-filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 16px 0;
}

.page-shell-audit .filter-chip {
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  font-size: 11px;
}

.page-shell-audit .filter-chip.is-active {
  border-color: #111111;
  color: #ffffff;
  background: #111111;
}

.page-shell-audit .audit-filters {
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-shell-audit .audit-filters input,
.page-shell-audit .audit-filters select {
  width: 100%;
  min-height: 36px;
  border-radius: 0;
  background: transparent;
  font-size: 12px;
}

.page-shell-audit .audit-filters input::placeholder {
  font-size: 12px;
}

.page-shell-audit .audit-filter-actions button {
  flex: 1 1 110px;
  min-height: 36px;
}

.page-shell-audit .audit-filter-actions .hero-add-button,
.page-shell-audit .audit-filter-actions .ghost-button,
.page-shell-audit .audit-pagination .ghost-button {
  border-radius: 0;
  font-weight: 400;
}

.audit-events-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  overflow: hidden;
}

.page-shell-audit .audit-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--audit-line);
}

.audit-table-header .audit-kit-index {
  margin-bottom: 6px;
}

.audit-table-header .audit-muted {
  margin: 4px 0 0;
}

.page-shell-audit .audit-table-wrap {
  height: 100%;
  max-height: none;
  border: 0;
  border-radius: 0;
}

.page-shell-audit .audit-table th {
  letter-spacing: -1px;
}

html[data-theme="dark"] .page-shell-audit {
  --audit-line: rgba(255, 255, 255, 0.28);
  --audit-surface: #121a24;
  --audit-muted: #ffffff;
  background: #0d141d;
}

html[data-theme="dark"] .page-shell-audit .filter-chip.is-active {
  border-color: #ffffff;
  color: #111111;
  background: #ffffff;
}

@media (max-width: 1200px) {
  body {
    overflow: auto;
  }

  .page-shell,
  .page-shell-settings {
    height: auto;
    min-height: 100vh;
    grid-template-rows: auto;
  }

  .control-panel,
  .settings-grid,
  .audit-filters,
  .users-create-form,
  .users-filters,
  .role-guide,
  .onboarding-card,
  .onboarding-steps {
    grid-template-columns: 1fr;
  }

  .users-table-header {
    grid-template-columns: 1fr;
  }

  .hero {
    flex-direction: column;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .board-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .summary-panel-shell {
    flex-direction: column;
    align-items: stretch;
    border-radius: 20px;
  }

  .board-summary {
    flex-wrap: wrap;
    flex-basis: auto;
  }

  .board-legend {
    flex-direction: column;
    align-items: flex-start;
    flex-basis: auto;
  }

  .legend-group {
    flex-wrap: wrap;
    white-space: normal;
  }

  .legend-items {
    flex-wrap: wrap;
  }

  .create-modal-form {
    grid-template-columns: 1fr;
  }

  .detail-form-body {
    grid-template-columns: 1fr;
  }

  .settings-drawer-layout {
    grid-template-columns: 1fr;
  }

  .settings-drawer-card {
    width: 100%;
    height: calc(100vh - 28px);
  }
}

/* Mobile board: tiles + bottom sheet */
@media (max-width: 900px) {
  body {
    overflow: auto;
  }

  .board-grid {
    display: none;
  }

  .mobile-board {
    display: grid;
    gap: 12px;
    min-height: 0;
  }

  .mobile-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .mobile-tile {
    background: var(--panel);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow-soft);
    backdrop-filter: blur(var(--blur));
    border-radius: var(--radius-lg);
    padding: 12px 12px;
    display: grid;
    gap: 6px;
    text-align: left;
  }

  .mobile-tile-title {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.02em;
  }

  .mobile-tile-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text-soft);
    font-size: 12px;
  }

  .mobile-tile-count {
    min-width: 36px;
    height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(31, 95, 74, 0.12);
    color: var(--accent);
    font-weight: 800;
  }

  .mobile-sheet {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.26);
    display: grid;
    align-items: end;
    padding: 14px;
    z-index: 220;
  }

  .mobile-sheet[hidden] {
    display: none !important;
  }

  .mobile-sheet-card {
    background: var(--panel-strong);
    border: 1px solid var(--panel-border);
    box-shadow: var(--panel-shadow);
    backdrop-filter: blur(var(--blur));
    border-radius: 22px;
    padding: 14px;
    max-height: min(78vh, 720px);
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 12px;
    transform: translateY(10px);
    opacity: 0;
    animation: sheet-in 180ms ease-out forwards;
  }

  @keyframes sheet-in {
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

  .mobile-sheet-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }

  .mobile-sheet-body {
    overflow: auto;
    display: grid;
    gap: 8px;
    padding-right: 2px;
  }

  .mobile-hose-row {
    background: rgba(255, 255, 255, 0.60);
    border: 1px solid var(--panel-border);
    border-radius: 16px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }

html[data-theme="dark"] .mobile-hose-row {
    background: rgba(20, 28, 38, 0.55);
  }
}

@media (max-width: 1050px) {
  .page-shell-audit {
    height: auto;
  }

  .audit-workspace {
    grid-template-columns: 1fr;
  }

  .audit-filter-panel {
    overflow: visible;
  }

  .page-shell-audit .audit-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-shell-audit .audit-filter-actions {
    grid-column: 1 / -1;
  }

  .page-shell-audit .audit-table-wrap {
    max-height: 70vh;
  }
}

@media (max-width: 640px) {
  .audit-kit-header,
  .page-shell-audit .audit-table-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .audit-kit-count {
    justify-items: start;
  }

  .page-shell-audit .audit-filters,
  .page-shell-audit .audit-quick-filters {
    grid-template-columns: 1fr;
  }
}

/* Main board: compact operator workspace with green action accent. */
.page-shell:not(.page-shell-settings):not(.page-shell-users):not(.page-shell-audit) {
  --accent: #1f6a50;
  --accent-soft: rgba(31, 106, 80, 0.12);
}

.board-toolbar {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 7px 10px;
  border-radius: 0;
}

.board-toolbar-brand {
  display: grid;
  gap: 2px;
}

.board-toolbar-brand .eyebrow {
  font-size: 9px;
  letter-spacing: -0.5px;
}

.board-toolbar-brand strong {
  font-size: 12px;
  font-weight: 600;
}

.board-mode-switcher {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--panel-border);
}

.board-mode-switcher .mode-button {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 400;
}

.board-mode-switcher .mode-button + .mode-button {
  border-left: 1px solid var(--panel-border);
}

.board-mode-switcher .mode-button.is-active {
  color: #ffffff;
  background: var(--accent);
}

.board-toolbar-actions {
  flex-wrap: nowrap;
  gap: 5px;
}

.board-toolbar-actions > .ghost-button,
.board-toolbar-actions > .hero-add-button,
.board-toolbar-actions .reports-menu-button,
.board-toolbar-actions .toolbar-clock,
.board-toolbar-actions .user-menu-button {
  min-height: 34px;
  height: 34px;
  padding: 0 9px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 400;
}

.board-toolbar-actions .hero-add-button {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}

.board-toolbar-actions .toolbar-clock {
  min-width: 48px;
  justify-content: center;
  box-shadow: none;
}

.user-menu > summary {
  list-style: none;
  cursor: pointer;
}

.user-menu > summary::-webkit-details-marker {
  display: none;
}

.user-menu-panel form,
.user-menu-panel form button {
  width: 100%;
}

.filter-menu-panel {
  min-width: 310px;
  gap: 10px;
}

.menu-filter-label {
  display: grid;
  gap: 4px;
  color: var(--text-soft);
  font-size: 10px;
}

.filter-attention {
  display: grid;
  border-top: 1px solid var(--panel-border);
  border-bottom: 1px solid var(--panel-border);
}

.filter-attention > strong {
  padding: 9px 8px 5px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
}

.filter-attention > button {
  min-height: 30px;
  padding: 6px 8px;
  border: 0;
  border-top: 1px solid var(--panel-border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 10px;
  font-weight: 400;
  text-align: left;
}

.filter-attention > button:hover,
.filter-attention > button.is-active {
  background: var(--accent-soft);
}

.filter-reset-button {
  width: 100%;
  min-height: 34px;
  border-radius: 0;
  font-size: 11px;
  font-weight: 400;
}

.user-menu-caption {
  padding: 6px 12px 2px;
  color: var(--text-soft);
  font-size: 10px;
}

.board-toolbar .reports-menu-panel,
.board-toolbar .menu-search-input,
.board-toolbar .menu-filter-select,
.board-toolbar .reports-menu-link {
  border-radius: 0;
  font-size: 11px;
}

.summary-panel-shell {
  gap: 8px;
  padding: 6px 8px;
  border-radius: 0;
}

.board-summary {
  gap: 5px;
}

.summary-card {
  min-height: 30px;
  gap: 7px;
  padding: 4px 8px;
  border-radius: 0;
}

.summary-card span {
  font-size: 10px;
}

.summary-card strong {
  font-size: 15px;
  font-weight: 600;
}

.summary-card--urgent strong {
  color: var(--critical);
}

.board-legend,
.legend-items {
  gap: 4px;
}

.legend-title {
  font-size: 10px;
}

.legend-chip {
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 0;
  border: 1px solid transparent;
  font-size: 10px;
  font-weight: 400;
  cursor: pointer;
}

.legend-chip:hover,
.legend-chip.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.board-attention {
  min-height: 30px;
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  overflow-x: auto;
  white-space: nowrap;
}

.board-attention > strong,
.board-attention > button {
  min-height: 28px;
  padding: 6px 10px;
  border: 0;
  border-right: 1px solid var(--panel-border);
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 10px;
  font-weight: 400;
}

.board-attention > strong {
  color: var(--accent);
  font-weight: 600;
}

.board-attention > button {
  cursor: pointer;
}

.board-attention > button:hover,
.board-attention > button.is-active {
  background: var(--accent-soft);
}

.column-header h3 {
  margin: 0;
  font-size: 12px;
  letter-spacing: -0.3px;
}

.column-header small {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 9px;
}

.column-count {
  min-width: 24px;
  padding: 3px 6px;
  border-radius: 0;
  font-size: 10px;
}

.hose-due-indicator {
  position: absolute;
  right: 25px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9aa09d;
  transform: translateY(-50%);
}

.hose-due-indicator--overdue {
  background: #c6543f;
}

.hose-due-indicator--soon {
  background: #d59a2f;
}

.hose-due-indicator--normal {
  background: #4e9b63;
}

.hose-card-main {
  padding-right: 28px;
}

.hose-card:has(.hose-card-menu[open]) {
  overflow: visible;
  z-index: 25;
}

.hose-card-menu {
  position: absolute;
  right: 3px;
  top: 50%;
  z-index: 20;
  transform: translateY(-50%);
}

.hose-card-menu > summary {
  width: 20px;
  height: 24px;
  display: grid;
  place-items: center;
  list-style: none;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}

.hose-card-menu > summary::-webkit-details-marker {
  display: none;
}

.hose-card-menu > div {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  width: 176px;
  padding: 4px;
  border: 1px solid var(--panel-border);
  background: #ffffff;
  box-shadow: var(--panel-shadow);
}

html[data-theme="dark"] .hose-card-menu > div {
  background: #121a24;
}

.hose-card-menu button,
.hose-card-menu span {
  width: 100%;
  min-height: 28px;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 10px;
  text-align: left;
}

.board-grid.is-selecting-move-target .board-column {
  cursor: pointer;
  outline: 1px dashed var(--accent);
  outline-offset: -4px;
}

.board-grid.is-selecting-move-target .board-column:hover {
  background: var(--accent-soft);
  outline-width: 2px;
}

.detail-action--danger,
.danger-button {
  color: var(--critical) !important;
  border-color: var(--critical) !important;
}

.form-warning {
  padding: 9px 10px;
  border-left: 3px solid var(--critical);
  background: rgba(198, 84, 63, 0.09);
  color: var(--text);
  font-size: 11px;
  line-height: 1.4;
}

.hose-card-menu button:hover {
  background: var(--accent-soft);
}

.hose-card-menu span {
  color: var(--text-soft);
  border-top: 1px solid var(--panel-border);
}

@media (max-width: 1180px) {
  .board-toolbar {
    grid-template-columns: 1fr auto;
  }

  .board-toolbar-brand {
    display: none;
  }
}

/* Popup surfaces stay opaque; the backdrop overlay remains intentionally dimmed. */
.reports-menu-panel,
.create-modal-card,
.settings-drawer-card,
.detail-card,
.users-modal-card,
.mobile-sheet-card,
.hose-card-menu > div {
  background-color: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html[data-theme="dark"] .reports-menu-panel,
html[data-theme="dark"] .create-modal-card,
html[data-theme="dark"] .settings-drawer-card,
html[data-theme="dark"] .detail-card,
html[data-theme="dark"] .users-modal-card,
html[data-theme="dark"] .mobile-sheet-card,
html[data-theme="dark"] .hose-card-menu > div {
  background-color: #141c26;
}
