:root {
  --ink: #182129;
  --muted: #64717d;
  --line: #d8e0e7;
  --soft: #f4f7f9;
  --panel: #ffffff;
  --page-bg: #fef7de;
  --nav: #01243d;
  --accent: #1f7a70;
  --accent-2: #f0a43a;
  --danger: #bd3b3b;
  --good: #2f7d51;
  --shadow: 0 18px 48px rgba(20, 36, 46, 0.12);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--page-bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  min-height: 100vh;
  transition: grid-template-columns 180ms ease;
}

.app-shell.sidebar-collapsed {
  grid-template-columns: 80px minmax(0, 1fr);
}

.sidebar {
  align-self: start;
  background: var(--nav);
  color: #f7fbfc;
  display: flex;
  flex-direction: column;
  gap: 26px;
  height: 100vh;
  overflow: visible;
  padding: 24px 18px;
  position: sticky;
  top: 0;
  z-index: 3;
}

.brand {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.brand-row {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.brand-mark {
  align-items: center;
  background: #bca04a;
  border-radius: 8px;
  color: #01243d;
  display: grid;
  flex: 0 0 44px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.brand h1,
.topbar h2,
.panel-heading h3 {
  margin: 0;
}

.brand h1 {
  font-size: 21px;
  line-height: 1.1;
}

.brand-copy {
  min-width: 0;
}

.eyebrow,
.meta-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.sidebar .eyebrow,
.sidebar .meta-label {
  color: #aac0c6;
}

.nav-list {
  display: grid;
  gap: 7px;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #d8e7eb;
  display: flex;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.icon-button.sidebar-toggle {
  background: #ffffff;
  border-color: rgba(1, 36, 61, 0.18);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 10px 22px rgba(1, 36, 61, 0.22);
  color: #01243d;
  flex: 0 0 22px;
  min-height: 68px;
  position: absolute;
  right: -22px;
  top: 24px;
  transition: background 150ms ease, right 180ms ease, width 180ms ease, transform 180ms ease;
  width: 22px;
  z-index: 6;
}

.icon-button.sidebar-toggle:hover,
.icon-button.sidebar-toggle.is-hovered {
  background: #f7f0d5;
  right: -42px;
  transform: translateX(0);
  width: 42px;
}

.app-shell.sidebar-collapsed .sidebar {
  align-items: center;
  padding: 24px 12px;
}

.app-shell.sidebar-collapsed .brand-row {
  flex-direction: column;
  justify-content: center;
}

.app-shell.sidebar-collapsed .brand-copy,
.app-shell.sidebar-collapsed .nav-item span,
.app-shell.sidebar-collapsed .sidebar-profile .account-name,
.app-shell.sidebar-collapsed .sidebar-profile .account-button > svg {
  display: none;
}

.app-shell.sidebar-collapsed .nav-list {
  width: 100%;
}

.app-shell.sidebar-collapsed .nav-item {
  justify-content: center;
  padding: 9px;
}

.app-shell.sidebar-collapsed .connection-card {
  justify-content: center;
  padding: 10px;
  width: 46px;
}

.app-shell.sidebar-collapsed .sidebar-profile {
  width: 46px;
}

.app-shell.sidebar-collapsed .sidebar-profile .account-button {
  justify-content: center;
  max-width: 46px;
  padding: 0;
  width: 46px;
}

.app-shell.sidebar-collapsed .sidebar-profile .account-menu {
  bottom: 0;
  left: calc(100% + 12px);
  right: auto;
  top: auto;
  width: 220px;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.connection-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  margin-top: auto;
  min-height: 46px;
  padding: 10px 12px;
}

.connection-card strong {
  font-size: 14px;
  line-height: 1;
}

.connection-dot {
  background: var(--danger);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(189, 59, 59, 0.16);
  height: 10px;
  width: 10px;
}

.connection-dot.connected {
  background: var(--good);
  box-shadow: 0 0 0 6px rgba(47, 125, 81, 0.18);
}

.workspace {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 24px;
  background: var(--page-bg);
}

.page-view {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.topbar h2 {
  font-size: 25px;
  line-height: 1.2;
}

.topbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.button,
.icon-button {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-flex;
  gap: 8px;
  justify-content: center;
  min-height: 39px;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.button {
  padding: 0 13px;
  white-space: nowrap;
}

.icon-button {
  background: #ffffff;
  color: var(--ink);
  padding: 0;
  width: 39px;
}

.icon-button:hover,
.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

.button.secondary {
  background: #ffffff;
  color: var(--ink);
}

.account-menu-wrap {
  position: relative;
}

.sidebar-profile {
  margin-top: auto;
  width: 100%;
}

.sidebar-profile .account-menu-wrap {
  width: 100%;
}

.account-button {
  align-items: center;
  background: var(--good);
  border: 1px solid rgba(47, 125, 81, 0.92);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  gap: 9px;
  justify-content: center;
  min-height: 39px;
  max-width: 260px;
  padding: 0 11px 0 8px;
}

.sidebar-profile .account-button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: none;
  justify-content: flex-start;
  min-height: 46px;
  max-width: none;
  padding: 10px 12px;
  width: 100%;
}

.sidebar-profile .account-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sidebar-profile .account-avatar {
  background: var(--good);
  border-radius: 999px;
  box-shadow: 0 0 0 6px rgba(47, 125, 81, 0.18);
  color: transparent;
  flex: 0 0 10px;
  font-size: 0;
  height: 10px;
  width: 10px;
}

.sidebar-profile .account-name {
  font-size: 14px;
  line-height: 1;
  max-width: 160px;
}

.account-button:hover {
  background: #276b46;
}

.sidebar-profile .account-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.account-button svg {
  height: 16px;
  width: 16px;
}

.account-avatar,
.profile-avatar {
  align-items: center;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  color: #ffffff;
  display: inline-flex;
  flex: 0 0 28px;
  font-size: 12px;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.account-name {
  display: block;
  font-size: 13px;
  font-weight: 850;
  max-width: 170px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-menu {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 40px rgba(20, 36, 46, 0.16);
  display: none;
  min-width: 218px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 9;
}

.sidebar-profile .account-menu {
  bottom: calc(100% + 8px);
  left: 0;
  right: auto;
  top: auto;
  width: 100%;
}

.account-menu-wrap.open .account-menu {
  display: grid;
  gap: 3px;
}

.account-menu-item {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--ink);
  display: flex;
  gap: 9px;
  min-height: 38px;
  padding: 0 10px;
  text-align: left;
  width: 100%;
}

.account-menu-item:hover {
  background: var(--soft);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.icon-button.danger {
  color: var(--danger);
}

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

.metric-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 112px;
  padding: 16px;
}

.metric-card p,
.metric-card span {
  color: var(--muted);
  margin: 0;
}

.metric-card p {
  font-size: 13px;
  font-weight: 700;
}

.metric-card strong {
  display: block;
  font-size: 31px;
  line-height: 1.1;
  margin: 12px 0 5px;
}

.metric-card.accent {
  border-color: rgba(189, 59, 59, 0.28);
}

.content-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  min-height: 0;
}

.records-panel,
.detail-panel,
.records-data-panel,
.modal-surface {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 41, 52, 0.06);
}

.records-panel {
  min-width: 0;
  overflow: hidden;
}

.database-table-stack {
  display: grid;
  gap: 18px;
}

.database-overview,
.admin-status-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-card,
.admin-status-grid > div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 7px;
  min-height: 82px;
  padding: 14px;
}

.status-card span,
.admin-status-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.status-card strong,
.admin-status-grid strong {
  font-size: 24px;
  line-height: 1.1;
}

.records-data-panel {
  min-width: 0;
  overflow: hidden;
}

.database-table-panel {
  box-shadow: 0 10px 24px rgba(23, 41, 52, 0.05);
}

.section-heading {
  align-items: flex-start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 16px;
}

.section-heading h3 {
  font-size: 20px;
  line-height: 1.25;
  margin: 0;
}

.records-table-wrap {
  overflow: auto;
}

.records-data-table {
  min-width: 1480px;
}

.users-data-table {
  min-width: 760px;
}

.database-data-table {
  min-width: 920px;
}

.records-data-table td {
  white-space: nowrap;
}

.database-data-table td {
  max-width: 320px;
  overflow-wrap: anywhere;
  white-space: normal;
}

.database-message {
  background: rgba(255, 255, 255, 0.48);
  margin: 0;
}

.wide-cell {
  max-width: 260px;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

.notes-cell {
  max-width: 320px;
  min-width: 220px;
  overflow-wrap: anywhere;
  white-space: normal !important;
}

.toolbar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 12px;
}

.search-box {
  align-items: center;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  min-height: 40px;
  min-width: 280px;
  padding: 0 11px;
  width: min(420px, 100%);
}

.search-box input {
  background: transparent;
  border: 0;
  min-width: 0;
  outline: 0;
  width: 100%;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

select,
input,
textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 39px;
  outline: 0;
  padding: 8px 10px;
  width: 100%;
}

textarea {
  min-height: 98px;
  resize: vertical;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(31, 122, 112, 0.13);
}

.table-wrap {
  min-height: 460px;
  overflow: auto;
  position: relative;
}

table {
  border-collapse: collapse;
  min-width: 820px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #f8fafb;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  position: sticky;
  text-transform: uppercase;
  top: 0;
  z-index: 1;
}

td {
  font-size: 14px;
}

tr.record-row {
  cursor: pointer;
}

tr.record-row:hover,
tr.record-row.selected {
  background: #eef7f5;
}

.system-cell {
  display: grid;
  gap: 3px;
}

.system-cell strong {
  font-size: 14px;
}

.system-cell span,
.muted {
  color: var(--muted);
  font-size: 12px;
}

.badge {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 25px;
  padding: 3px 9px;
  white-space: nowrap;
}

.badge.active {
  background: #e5f5ec;
  color: #246944;
}

.badge.review {
  background: #fff2d7;
  color: #80540e;
}

.badge.retired {
  background: #eceff2;
  color: #5d6872;
}

.badge.high {
  background: #fde7e7;
  color: #a03232;
}

.badge.medium {
  background: #fff2d7;
  color: #80540e;
}

.badge.low {
  background: #e5f5ec;
  color: #246944;
}

.badge.mfa-on {
  background: #e5f5ec;
  color: #246944;
}

.badge.mfa-off {
  background: #fde7e7;
  color: #a03232;
}

.detail-panel {
  align-self: start;
  min-width: 0;
  padding: 16px;
}

.admin-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(23, 41, 52, 0.06);
  overflow: hidden;
}

.auth-view {
  align-items: center;
  min-height: calc(100vh - 48px);
}

.auth-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  max-width: 440px;
  padding: 24px;
  width: min(440px, 100%);
}

.auth-mark {
  height: 52px;
  width: 52px;
}

.auth-panel h2 {
  font-size: 26px;
  line-height: 1.15;
  margin: 0;
}

.auth-copy {
  color: var(--muted);
  margin: 8px 0 0;
}

.auth-error {
  background: #fde7e7;
  border: 1px solid rgba(189, 59, 59, 0.28);
  border-radius: 8px;
  color: var(--danger);
  margin: 0;
  padding: 10px 12px;
}

.auth-button {
  width: 100%;
}

.profile-surface {
  max-width: 560px;
}

.profile-header {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.profile-header h3 {
  font-size: 23px;
  line-height: 1.2;
  margin: 0;
}

.profile-summary {
  align-items: center;
  background: #f6fbf7;
  border: 1px solid rgba(47, 125, 81, 0.18);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  padding: 12px;
}

.profile-avatar {
  background: var(--good);
  flex-basis: 42px;
  height: 42px;
  width: 42px;
}

.profile-summary strong {
  display: block;
  font-size: 16px;
  line-height: 1.25;
}

.profile-summary span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

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

.profile-grid > div {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 72px;
  padding: 11px;
}

.profile-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-grid strong {
  font-size: 14px;
  overflow-wrap: anywhere;
}

.profile-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 16px;
}

.admin-panel .section-heading {
  border-bottom: 1px solid var(--line);
}

.admin-status-grid {
  padding: 16px;
}

.detail-panel *,
.records-panel * {
  min-width: 0;
}

.panel-heading {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.panel-heading h3 {
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.count-pill {
  align-items: center;
  background: #f7f0d5;
  border: 1px solid rgba(188, 160, 74, 0.45);
  border-radius: 999px;
  color: #6f5c1d;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  min-height: 28px;
  padding: 4px 10px;
  white-space: nowrap;
}

.user-list {
  display: grid;
  gap: 10px;
}

.user-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 11px;
  padding: 12px;
}

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

.user-identity {
  display: grid;
  gap: 3px;
}

.user-identity strong {
  font-size: 14px;
  line-height: 1.25;
}

.user-identity span {
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.user-facts {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.user-fact {
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 5px;
  min-height: 58px;
  padding: 9px;
}

.user-fact span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.user-fact strong {
  font-size: 13px;
}

.empty-state.compact {
  border: 1px dashed var(--line);
  border-radius: 8px;
  min-height: 180px;
  position: static;
}

.record-form {
  display: grid;
  gap: 13px;
}

label {
  display: grid;
  gap: 6px;
}

label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

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

.field-row.compact {
  grid-template-columns: 1fr 110px 140px;
}

.toggle-field {
  align-items: center;
  display: flex;
  gap: 10px;
}

.toggle-field input {
  accent-color: var(--accent);
  height: 18px;
  min-height: 18px;
  width: 18px;
}

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

.empty-state {
  align-items: center;
  color: var(--muted);
  display: grid;
  gap: 8px;
  inset: 0;
  justify-content: center;
  min-height: 300px;
  place-items: center;
  position: absolute;
  text-align: center;
}

.modal {
  align-items: center;
  background: rgba(16, 32, 39, 0.45);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 10;
}

.modal-surface {
  max-width: 680px;
  padding: 18px;
  width: min(680px, 100%);
}

.import-drop {
  border: 1px dashed #a9bbc4;
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 18px;
}

.import-drop p {
  color: var(--muted);
  margin: 0;
}

.import-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 14px;
  max-height: 210px;
  overflow: auto;
}

.import-preview table {
  min-width: 520px;
}

.toast {
  background: #102027;
  border-radius: 8px;
  bottom: 20px;
  box-shadow: var(--shadow);
  color: #ffffff;
  left: 50%;
  max-width: min(560px, calc(100% - 32px));
  padding: 12px 14px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 20;
}

.hidden {
  display: none !important;
}

svg {
  height: 18px;
  stroke-width: 2;
  width: 18px;
}

@media (max-width: 1560px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .detail-panel {
    align-self: stretch;
  }
}

@media (max-width: 860px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: block;
    height: auto;
    overflow: visible;
    padding: 16px;
    position: static;
  }

  .app-shell.sidebar-collapsed .sidebar {
    align-items: stretch;
    padding: 16px;
  }

  .app-shell.sidebar-collapsed .brand-row {
    flex-direction: row;
    justify-content: space-between;
  }

  .app-shell.sidebar-collapsed .brand-copy,
  .app-shell.sidebar-collapsed .nav-item span,
  .app-shell.sidebar-collapsed .sidebar-profile .account-name,
  .app-shell.sidebar-collapsed .sidebar-profile .account-button > svg {
    display: block;
  }

  .app-shell.sidebar-collapsed .nav-item {
    justify-content: flex-start;
    padding: 9px 10px;
  }

  .app-shell.sidebar-collapsed .connection-card {
    justify-content: flex-start;
    width: auto;
  }

  .app-shell.sidebar-collapsed .sidebar-profile,
  .app-shell.sidebar-collapsed .sidebar-profile .account-button {
    justify-content: flex-start;
    max-width: none;
    width: 100%;
  }

  .app-shell.sidebar-collapsed .sidebar-profile .account-menu {
    bottom: calc(100% + 8px);
    left: 0;
    width: 100%;
  }

  .sidebar-toggle {
    position: absolute;
    right: 16px;
    top: 16px;
  }

  .brand,
  .nav-list,
  .connection-card {
    margin-bottom: 14px;
  }

  .nav-list {
    display: flex;
    overflow-x: auto;
  }

  .nav-item {
    flex: 0 0 auto;
  }

  .workspace {
    padding: 16px;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .account-menu {
    left: 0;
    right: auto;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .database-overview,
  .admin-status-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .search-box {
    min-width: 0;
  }
}

@media (max-width: 560px) {
  .metrics-grid,
  .database-overview,
  .admin-status-grid,
  .profile-grid,
  .field-row,
  .field-row.compact {
    grid-template-columns: 1fr;
  }

  .topbar-actions .button {
    flex: 1 1 130px;
  }

  .account-menu-wrap,
  .account-button {
    width: 100%;
  }

  .account-name {
    max-width: none;
  }

  .profile-actions {
    flex-direction: column;
  }
}
