:root {
  --navy: #0c1b2e;
  --navy-2: #14263e;
  --navy-3: #1b3150;
  --blue: #1f4d78;
  --blue-bright: #2e74b5;
  --blue-soft: #eaf2f9;
  --orange: #e97132;
  --orange-soft: #fff1e8;
  --green: #278b66;
  --green-soft: #e7f6f0;
  --amber: #c88719;
  --amber-soft: #fff6dc;
  --red: #cf4f4f;
  --red-soft: #fff0f0;
  --purple: #795ca8;
  --purple-soft: #f2eef9;
  --cyan: #247f94;
  --cyan-soft: #e7f6fa;
  --ink: #111b29;
  --body: #435064;
  --muted: #718096;
  --line: #e1e7ef;
  --line-strong: #ced7e3;
  --page: #f3f6fa;
  --card: #ffffff;
  --sidebar: 248px;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(12, 27, 46, 0.04), 0 8px 24px rgba(12, 27, 46, 0.025);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
  color: var(--body);
  font-family: Inter, "SF Pro Text", "Segoe UI", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 75% -20%, rgba(46, 116, 181, 0.05), transparent 28rem),
    var(--page);
}

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

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(46, 116, 181, 0.22);
  outline-offset: 2px;
}

svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  width: var(--sidebar);
  height: 100vh;
  color: #c9d5e4;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.02), transparent 35%),
    var(--navy);
  box-shadow: 4px 0 22px rgba(8, 21, 37, 0.06);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  padding: 22px 18px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.brand-block img {
  display: block;
  width: 153px;
  height: auto;
}

.phase-badge {
  margin-left: auto;
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  color: #9fb0c5;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tenant-switcher {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 16px;
  gap: 10px;
  align-items: center;
  margin: 14px 12px 7px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9px;
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.tenant-switcher:hover {
  background: rgba(255, 255, 255, 0.065);
}

.tenant-switcher > svg {
  width: 16px;
}

.tenant-monogram {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue-bright);
  font-size: 10px;
  font-weight: 800;
}

.tenant-switcher small,
.tenant-switcher strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-switcher small {
  margin-bottom: 1px;
  color: #92a5bd;
  font-size: 9px;
}

.tenant-switcher strong {
  font-size: 11px;
  font-weight: 600;
}

.nav {
  display: grid;
  gap: 2px;
  overflow-y: auto;
  padding: 10px 12px 18px;
}

.nav-label {
  padding: 7px 10px 5px;
  color: #71869f;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.nav-label-spaced {
  margin-top: 9px;
}

.nav-item {
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 39px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: #b8c6d8;
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.055);
}

.nav-item.active {
  color: #fff;
  background: linear-gradient(90deg, var(--blue-bright), #26659d);
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.14);
}

.nav-icon {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 6px;
  color: #9eb0c5;
}

.nav-item.active .nav-icon,
.nav-item:hover .nav-icon {
  color: #fff;
}

.nav-icon svg {
  width: 18px;
  height: 18px;
}

.nav-count {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 10px;
  color: #dce8f7;
  background: rgba(255, 255, 255, 0.1);
  font-size: 9px;
  font-weight: 700;
}

.nav-count-warm {
  color: #ffd7c0;
  background: rgba(233, 113, 50, 0.2);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.isolation-chip {
  display: grid;
  grid-template-columns: 25px 1fr;
  gap: 9px;
  align-items: center;
  margin: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(74, 191, 142, 0.16);
  border-radius: 8px;
  color: #d8f4e8;
  background: rgba(39, 139, 102, 0.1);
}

.isolation-chip svg {
  width: 18px;
  color: #57c89d;
}

.isolation-chip strong,
.isolation-chip small {
  display: block;
}

.isolation-chip strong {
  font-size: 10px;
}

.isolation-chip small {
  color: #87a99c;
  font-size: 9px;
}

.profile-button {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 20px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px;
  border: 0;
  color: #fff;
  background: transparent;
  text-align: left;
}

.profile-button:hover {
  background: rgba(255, 255, 255, 0.045);
}

.profile-button strong,
.profile-button small {
  display: block;
}

.profile-button strong {
  font-size: 10px;
  font-weight: 600;
}

.profile-button small {
  color: #8498b1;
  font-size: 9px;
}

.profile-button > svg {
  width: 18px;
  stroke-width: 2.5;
}

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #4979aa, #284d73);
  font-size: 10px;
  font-weight: 800;
}

.main-shell {
  min-width: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(290px, 690px) auto;
  gap: 18px;
  align-items: center;
  min-height: 64px;
  padding: 8px 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.icon-button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: #536176;
  background: #fff;
}

.icon-button:hover {
  color: var(--blue);
  border-color: #c9d7e5;
  background: #f8fafc;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.menu-button {
  display: none;
}

.global-search {
  position: relative;
  width: 100%;
  justify-self: center;
}

.global-search > svg {
  position: absolute;
  top: 50%;
  left: 14px;
  width: 17px;
  height: 17px;
  color: #8492a5;
  transform: translateY(-50%);
}

.global-search input {
  width: 100%;
  height: 40px;
  padding: 0 55px 0 41px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: #f8fafc;
  transition: 0.2s ease;
}

.global-search input:focus {
  border-color: #9eb9d3;
  background: #fff;
}

.global-search kbd {
  position: absolute;
  top: 50%;
  right: 9px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-bottom-color: var(--line-strong);
  border-radius: 5px;
  color: #8793a3;
  background: #fff;
  font-family: inherit;
  font-size: 9px;
  transform: translateY(-50%);
}

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

.demo-data-pill {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-right: 4px;
  padding: 6px 9px;
  border: 1px solid #d5e8df;
  border-radius: 999px;
  color: #557166;
  background: #f3faf7;
  font-size: 9px;
  font-weight: 600;
}

.demo-data-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(39, 139, 102, 0.11);
}

.quick-add {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.quick-add:hover {
  color: #fff;
  border-color: var(--blue-bright);
  background: var(--blue-bright);
}

.notification-button {
  position: relative;
}

.notification-button i {
  position: absolute;
  top: -3px;
  right: -3px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 9px;
  color: #fff;
  background: var(--orange);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.top-avatar {
  width: 38px;
  height: 38px;
}

.content {
  width: 100%;
  max-width: 1680px;
  margin: 0 auto;
  padding: 27px 30px 52px;
}

.page-header {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-header h1 {
  margin: 4px 0 4px;
  color: var(--ink);
  font-size: 23px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.page-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.header-actions,
.button-row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: #435167;
  background: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.button:hover {
  color: var(--blue);
  border-color: #aebed0;
  background: #f9fbfd;
}

.button svg {
  width: 15px;
  height: 15px;
}

.button.primary {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 5px 12px rgba(31, 77, 120, 0.14);
}

.button.primary:hover {
  color: #fff;
  border-color: var(--blue-bright);
  background: var(--blue-bright);
}

.button.warm {
  color: #fff;
  border-color: var(--orange);
  background: var(--orange);
}

.button.danger {
  color: var(--red);
  border-color: #e7bcbc;
  background: var(--red-soft);
}

.button.small {
  min-height: 29px;
  padding: 0 9px;
  font-size: 10px;
}

.text-button {
  padding: 0;
  border: 0;
  color: var(--blue);
  background: transparent;
  font-weight: 700;
}

.text-button:hover {
  color: var(--blue-bright);
  text-decoration: underline;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.card-pad {
  padding: 19px;
}

.card-header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}

.card-header h2,
.card-header h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.card-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.card-body {
  padding: 18px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 18px;
  align-items: start;
}

.main-stack,
.rail-stack {
  display: grid;
  gap: 18px;
}

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

.stat-card {
  position: relative;
  min-height: 111px;
  overflow: hidden;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
}

.stat-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--stat-color, var(--blue));
  content: "";
}

.stat-card > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stat-card strong {
  display: block;
  margin: 9px 0 4px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.stat-card small {
  color: var(--muted);
  font-size: 9px;
}

.stat-card small.good {
  color: var(--green);
  font-weight: 700;
}

.stat-card small.warn {
  color: var(--orange);
  font-weight: 700;
}

.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
}

.health-panel {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  gap: 21px;
  align-items: center;
}

.donut-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: 126px;
  height: 126px;
}

.donut {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(var(--blue-bright) 0 94%, #e9eef4 94% 100%);
}

.donut::after {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.donut-value {
  position: relative;
  z-index: 1;
  color: var(--ink);
  text-align: center;
}

.donut-value strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.donut-value small {
  color: var(--muted);
  font-size: 9px;
}

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

.legend-row {
  display: grid;
  grid-template-columns: 9px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.legend-row i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--legend-color);
}

.legend-row span {
  color: var(--body);
  font-size: 10px;
}

.legend-row strong {
  color: var(--ink);
  font-size: 10px;
}

.chart-wrap {
  padding: 18px 18px 12px;
}

.bar-chart {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(36px, 1fr));
  gap: 11px;
  align-items: end;
  height: 180px;
  padding-top: 18px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 43px, #eef2f6 44px);
}

.bar-group {
  display: flex;
  gap: 4px;
  align-items: end;
  justify-content: center;
  height: 100%;
}

.bar-group i {
  display: block;
  width: 12px;
  min-height: 5px;
  border-radius: 4px 4px 0 0;
  background: var(--blue-bright);
}

.bar-group i:last-child {
  background: #b7c5d4;
}

.bar-labels {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 11px;
  padding-top: 9px;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.mini-legend {
  display: flex;
  gap: 13px;
  align-items: center;
  color: var(--muted);
  font-size: 9px;
}

.mini-legend span {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.mini-legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blue-bright);
}

.mini-legend span:last-child i {
  background: #b7c5d4;
}

.queue-list,
.activity-list,
.approval-list {
  display: grid;
}

.queue-item,
.activity-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 57px;
  padding: 9px 18px;
  border-bottom: 1px solid #edf1f5;
}

.queue-item:last-child,
.activity-item:last-child {
  border-bottom: 0;
}

.queue-item:hover {
  background: #fafcfe;
}

.record-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  color: var(--icon-color, var(--blue));
  background: var(--icon-bg, var(--blue-soft));
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.queue-copy strong,
.activity-copy strong {
  display: block;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.queue-copy small,
.activity-copy small {
  display: block;
  margin-top: 1px;
  color: var(--muted);
  font-size: 9px;
}

.queue-value {
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
  text-align: right;
}

.queue-value small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}

.ai-card {
  overflow: hidden;
  color: #dfeaf6;
  border: 0;
  background:
    radial-gradient(circle at 100% 0, rgba(46, 116, 181, 0.42), transparent 48%),
    linear-gradient(145deg, #0c1b2e, #132a47);
  box-shadow: 0 10px 28px rgba(12, 27, 46, 0.14);
}

.ai-card .card-header {
  border-color: rgba(255, 255, 255, 0.09);
}

.ai-card .card-header h2,
.ai-card .card-header h3 {
  color: #fff;
}

.ai-card .card-header p,
.ai-card p {
  color: #9fb2c8;
}

.ai-spark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.ai-spark svg {
  width: 16px;
}

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

.prompt-chip {
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  color: #dce7f3;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  font-size: 10px;
}

.prompt-chip:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.activity-dot {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 8px;
  font-weight: 800;
}

.activity-time {
  color: var(--muted);
  font-size: 8px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.trust-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: center;
  padding: 14px 16px;
  background: #fff;
}

.trust-item svg {
  width: 25px;
  height: 25px;
  color: var(--green);
}

.trust-item strong,
.trust-item small {
  display: block;
}

.trust-item strong {
  color: var(--ink);
  font-size: 10px;
}

.trust-item small {
  color: var(--muted);
  font-size: 9px;
}

.module-card {
  overflow: hidden;
}

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

.command-left,
.command-right {
  display: flex;
  gap: 7px;
  align-items: center;
  flex-wrap: wrap;
}

.saved-views {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
}

.saved-view {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #69778b;
  background: transparent;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
}

.saved-view:hover {
  color: var(--blue);
  background: #f1f5f9;
}

.saved-view.active {
  color: var(--blue);
  border-color: #c9dbea;
  background: var(--blue-soft);
}

.list-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.list-search {
  position: relative;
  max-width: 420px;
}

.list-search svg {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 14px;
  transform: translateY(-50%);
}

.list-search input,
.field input,
.field select,
.field textarea,
.filter-select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: #fff;
}

.list-search input {
  height: 32px;
  padding: 0 10px 0 32px;
}

.record-count {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.view-toggle {
  display: flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f7f9fb;
}

.view-toggle button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  color: #8491a2;
  background: transparent;
}

.view-toggle button.active {
  color: var(--blue);
  background: #fff;
  box-shadow: 0 1px 4px rgba(12, 27, 46, 0.08);
}

.view-toggle svg {
  width: 14px;
}

.data-table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  min-width: 850px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #edf1f5;
  text-align: left;
  vertical-align: middle;
}

.data-table th {
  position: relative;
  color: #6d7a8c;
  background: #fbfcfd;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table tbody tr {
  cursor: pointer;
  transition: background 0.15s ease;
}

.data-table tbody tr:hover {
  background: #f8fbfd;
}

.data-table tbody tr.selected {
  background: var(--blue-soft);
}

.data-table td {
  color: #4f5d70;
  font-size: 10px;
}

.data-table td:first-child {
  padding-left: 15px;
}

.cell-title {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 170px;
}

.cell-title strong {
  display: block;
  color: var(--ink);
  font-size: 10px;
}

.cell-title small {
  display: block;
  color: var(--muted);
  font-size: 8px;
}

.numeric {
  color: var(--ink) !important;
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  white-space: nowrap;
}

.subtle-cell {
  color: var(--muted) !important;
}

.row-actions {
  display: flex;
  gap: 4px;
  justify-content: flex-end;
}

.row-action {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #768397;
  background: transparent;
}

.row-action:hover {
  color: var(--blue);
  border-color: var(--line);
  background: #fff;
}

.row-action svg {
  width: 14px;
}

.filters-row th {
  padding-top: 6px;
  padding-bottom: 8px;
  background: #fff;
}

.filter-select {
  min-width: 90px;
  height: 27px;
  padding: 0 6px;
  color: #7a8798;
  font-size: 9px;
  font-weight: 500;
  text-transform: none;
}

.status-pill {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.status-pill::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-ready,
.status-approved,
.status-connected,
.status-complete,
.status-matched {
  color: var(--green);
  border-color: #c9eadc;
  background: var(--green-soft);
}

.status-review,
.status-awaiting-approval,
.status-draft,
.status-warning,
.status-due-today {
  color: var(--amber);
  border-color: #f0dda7;
  background: var(--amber-soft);
}

.status-exception,
.status-overdue,
.status-blocked,
.status-action-required {
  color: var(--red);
  border-color: #efcaca;
  background: var(--red-soft);
}

.status-in-progress,
.status-scheduled,
.status-syncing {
  color: var(--blue);
  border-color: #c7dae9;
  background: var(--blue-soft);
}

.status-agent-created,
.status-generated {
  color: var(--purple);
  border-color: #ddd1ee;
  background: var(--purple-soft);
}

.records-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.record-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: 0.18s ease;
}

.record-card:hover {
  border-color: #b8cadb;
  box-shadow: 0 7px 18px rgba(12, 27, 46, 0.07);
  transform: translateY(-1px);
}

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

.record-card h3 {
  margin: 12px 0 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-card > p {
  min-height: 34px;
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.record-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.record-meta small,
.record-meta strong {
  display: block;
}

.record-meta small {
  color: var(--muted);
  font-size: 8px;
}

.record-meta strong {
  color: var(--ink);
  font-size: 10px;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.empty-state svg {
  width: 34px;
  margin-bottom: 10px;
  color: #98a8ba;
}

.empty-state h3 {
  margin: 0 0 4px;
  color: var(--ink);
}

.summary-ribbon {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.summary-item {
  padding: 13px 16px;
  border-right: 1px solid var(--line);
}

.summary-item:last-child {
  border-right: 0;
}

.summary-item span,
.summary-item strong {
  display: block;
}

.summary-item span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.summary-item strong {
  margin-top: 4px;
  color: var(--ink);
  font-size: 16px;
}

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

.insight-card {
  padding: 17px;
}

.insight-card h3 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 12px;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
}

.progress-track {
  height: 7px;
  margin-top: 13px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf1f5;
}

.progress-track i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--blue-bright);
}

.check-list {
  display: grid;
  gap: 0;
}

.check-row {
  display: grid;
  grid-template-columns: 21px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 43px;
  padding: 7px 0;
  border-bottom: 1px solid #eef2f5;
}

.check-row:last-child {
  border-bottom: 0;
}

.check-icon {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: var(--green);
  background: var(--green-soft);
  font-size: 9px;
  font-weight: 800;
}

.check-icon.warn {
  color: var(--amber);
  background: var(--amber-soft);
}

.check-row strong,
.check-row small {
  display: block;
}

.check-row strong {
  color: var(--ink);
  font-size: 10px;
}

.check-row small {
  color: var(--muted);
  font-size: 8px;
}

.approval-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px 20px;
  color: #fff;
  border-radius: 12px;
  background:
    radial-gradient(circle at 85% 20%, rgba(233, 113, 50, 0.36), transparent 20rem),
    var(--navy);
}

.approval-hero h2 {
  margin: 4px 0;
  color: #fff;
  font-size: 17px;
}

.approval-hero p {
  margin: 0;
  color: #9eb2c9;
  font-size: 10px;
}

.approval-hero strong {
  color: #fff;
  font-size: 28px;
}

.approval-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1.2fr) minmax(130px, 0.7fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.approval-card:last-child {
  border-bottom: 0;
}

.approval-card h3 {
  margin: 0 0 3px;
  color: var(--ink);
  font-size: 11px;
}

.approval-card p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.approval-detail strong,
.approval-detail small {
  display: block;
}

.approval-detail strong {
  color: var(--ink);
  font-size: 10px;
}

.approval-detail small {
  color: var(--muted);
  font-size: 8px;
}

.assistant-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 17px;
  min-height: 620px;
}

.chat-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
}

.chat-messages {
  display: grid;
  gap: 14px;
  align-content: start;
  overflow-y: auto;
  min-height: 410px;
  max-height: 560px;
  padding: 20px;
  background: #fbfcfe;
}

.message {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr);
  gap: 10px;
  max-width: 760px;
}

.message.user {
  grid-template-columns: minmax(0, 1fr) 29px;
  justify-self: end;
  width: min(620px, 85%);
}

.message.user .message-bubble {
  order: -1;
  color: #fff;
  background: var(--blue);
}

.message-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-size: 8px;
  font-weight: 800;
}

.message.user .message-avatar {
  border-radius: 50%;
  background: #496784;
}

.message-bubble {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--body);
  background: #fff;
  font-size: 10px;
  line-height: 1.55;
}

.message-bubble strong {
  color: var(--ink);
}

.message-bubble ul {
  margin: 7px 0 0;
  padding-left: 17px;
}

.citation-row {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 9px;
}

.citation {
  padding: 3px 6px;
  border: 1px solid #d4dfeb;
  border-radius: 5px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 8px;
  font-weight: 700;
}

.chat-compose {
  padding: 13px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.prompt-chips-light {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 9px;
}

.prompt-chips-light button {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: #f8fafc;
  font-size: 9px;
  white-space: nowrap;
}

.compose-row {
  display: grid;
  grid-template-columns: 1fr 36px;
  gap: 8px;
}

.compose-row textarea {
  min-height: 38px;
  max-height: 100px;
  padding: 9px 11px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.compose-row button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
}

.compose-row svg {
  width: 16px;
}

.capability-list {
  display: grid;
  gap: 9px;
}

.capability-item {
  display: grid;
  grid-template-columns: 27px 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.capability-item svg {
  width: 18px;
  color: var(--blue);
}

.capability-item strong,
.capability-item small {
  display: block;
}

.capability-item strong {
  color: var(--ink);
  font-size: 9px;
}

.capability-item small {
  color: var(--muted);
  font-size: 8px;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin-bottom: 17px;
}

.source-card {
  padding: 15px;
}

.source-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.source-logo {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 9px;
  font-weight: 800;
}

.source-head h3,
.source-head p {
  margin: 0;
}

.source-head h3 {
  color: var(--ink);
  font-size: 11px;
}

.source-head p {
  color: var(--muted);
  font-size: 8px;
}

.source-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 13px;
  padding-top: 11px;
  border-top: 1px solid var(--line);
}

.source-stats small,
.source-stats strong {
  display: block;
}

.source-stats small {
  color: var(--muted);
  font-size: 8px;
}

.source-stats strong {
  color: var(--ink);
  font-size: 9px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 17px;
}

.admin-nav {
  display: grid;
  align-content: start;
  padding: 8px;
}

.admin-tab {
  min-height: 38px;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  color: #617085;
  background: transparent;
  text-align: left;
  font-size: 10px;
  font-weight: 600;
}

.admin-tab.active,
.admin-tab:hover {
  color: var(--blue);
  background: var(--blue-soft);
}

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

.field {
  display: grid;
  gap: 5px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: #5a687b;
  font-size: 9px;
  font-weight: 700;
}

.field input,
.field select {
  height: 35px;
  padding: 0 10px;
}

.field textarea {
  min-height: 78px;
  padding: 9px 10px;
  resize: vertical;
}

.form-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.editable-table {
  width: 100%;
  border-collapse: collapse;
}

.editable-table th,
.editable-table td {
  padding: 8px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.editable-table th {
  color: var(--muted);
  background: #f9fbfd;
  font-size: 8px;
  text-transform: uppercase;
}

.editable-table input,
.editable-table select {
  width: 100%;
  min-width: 85px;
  height: 29px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  font-size: 9px;
}

.demo-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 15px;
  padding: 11px 13px;
  border: 1px solid #cfe0ed;
  border-radius: 8px;
  color: #4b6680;
  background: #f2f8fc;
  font-size: 9px;
}

.demo-note svg {
  width: 18px;
  flex: 0 0 auto;
}

.drawer-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.detail-drawer,
.side-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 60;
  width: min(520px, 94vw);
  height: 100vh;
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -18px 0 42px rgba(12, 27, 46, 0.14);
  transform: translateX(105%);
  transition: transform 0.25s ease;
}

.detail-drawer.open,
.side-panel.open {
  transform: translateX(0);
}

.side-panel {
  width: min(390px, 94vw);
}

.drawer-header,
.panel-header {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 15px 19px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2,
.panel-header h2 {
  margin: 3px 0 0;
  color: var(--ink);
  font-size: 17px;
}

.drawer-content {
  overflow-y: auto;
  padding: 18px;
  background: #f8fafc;
}

.drawer-actions {
  display: flex;
  gap: 7px;
  margin-bottom: 14px;
}

.drawer-section {
  margin-bottom: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.drawer-section h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 11px;
}

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

.overview-item span,
.overview-item strong {
  display: block;
}

.overview-item span {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}

.overview-item strong {
  margin-top: 2px;
  color: var(--ink);
  font-size: 10px;
}

.ai-summary {
  color: #405970;
  border-color: #cdddea;
  background:
    radial-gradient(circle at 100% 0, rgba(46, 116, 181, 0.09), transparent 13rem),
    #f5f9fc;
}

.ai-summary p {
  margin: 0;
  font-size: 10px;
  line-height: 1.55;
}

.timeline {
  display: grid;
  gap: 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  padding-bottom: 13px;
}

.timeline-item:not(:last-child)::after {
  position: absolute;
  top: 21px;
  bottom: 0;
  left: 10px;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-dot {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 2px solid #fff;
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 0 0 1px #c8d8e8;
  font-size: 7px;
  font-weight: 800;
}

.timeline-copy strong,
.timeline-copy small {
  display: block;
}

.timeline-copy strong {
  color: var(--ink);
  font-size: 9px;
}

.timeline-copy small {
  color: var(--muted);
  font-size: 8px;
}

.panel-overlay,
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  visibility: hidden;
  background: rgba(8, 20, 35, 0.42);
  opacity: 0;
  transition: 0.2s ease;
}

.panel-overlay.open,
.mobile-overlay.open {
  visibility: visible;
  opacity: 1;
}

.mobile-overlay {
  z-index: 24;
}

.panel-toolbar {
  display: flex;
  justify-content: space-between;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: #f9fbfd;
  font-size: 9px;
}

.notification-list {
  overflow-y: auto;
  max-height: calc(100vh - 126px);
}

.notification-item {
  position: relative;
  display: grid;
  grid-template-columns: 31px 1fr;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.notification-item.unread {
  background: #f7fbfe;
}

.notification-item.unread::after {
  position: absolute;
  top: 19px;
  right: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  content: "";
}

.notification-item h3 {
  margin: 0 15px 3px 0;
  color: var(--ink);
  font-size: 10px;
}

.notification-item p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.notification-item time {
  display: block;
  margin-top: 5px;
  color: #94a0af;
  font-size: 8px;
}

.toast-region {
  position: fixed;
  right: 19px;
  bottom: 19px;
  z-index: 90;
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  min-width: 250px;
  max-width: 370px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 9px 25px rgba(8, 20, 35, 0.2);
  animation: toast-in 0.25s ease;
}

.toast strong,
.toast small {
  display: block;
}

.toast strong {
  font-size: 10px;
}

.toast small {
  margin-top: 2px;
  color: #9fb0c5;
  font-size: 9px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

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

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

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

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

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

  .sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-105%);
    transition: transform 0.25s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .menu-button {
    display: grid;
  }

  .topbar {
    grid-template-columns: auto minmax(220px, 1fr) auto;
    padding-inline: 18px;
  }

  .demo-data-pill {
    display: none;
  }

  .content {
    padding-inline: 20px;
  }

  .assistant-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: auto 1fr auto;
    gap: 9px;
    padding: 8px 13px;
  }

  .global-search {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .topbar-actions {
    grid-column: 3;
    grid-row: 1;
  }

  .quick-add {
    display: none;
  }

  .content {
    padding: 20px 13px 42px;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .split-grid,
  .section-grid {
    grid-template-columns: 1fr;
  }

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

  .summary-item:nth-child(2) {
    border-right: 0;
  }

  .summary-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .rail-stack {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .health-panel {
    grid-template-columns: 115px 1fr;
  }

  .donut-wrap {
    width: 105px;
    height: 105px;
  }

  .records-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .list-tools {
    grid-template-columns: 1fr auto;
  }

  .list-search {
    grid-column: 1 / -1;
    max-width: none;
  }

  .command-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .approval-card {
    grid-template-columns: 35px 1fr;
  }

  .approval-detail,
  .approval-card .button-row {
    grid-column: 2;
  }

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

  .field.full {
    grid-column: auto;
  }

  .admin-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 460px) {
  .stat-grid,
  .summary-ribbon {
    grid-template-columns: 1fr;
  }

  .summary-item {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .summary-item:last-child {
    border-bottom: 0;
  }

  .health-panel {
    grid-template-columns: 1fr;
  }

  .donut-wrap {
    margin: 0 auto;
  }

  .page-header h1 {
    font-size: 21px;
  }

  .header-actions .button:not(.primary) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Huon-inspired compact density pass */
:root {
  --sidebar: 238px;
  --radius: 10px;
  --page: #f4f7fb;
  --shadow: 0 1px 2px rgba(12, 27, 46, 0.035);
}

html {
  font-size: 11px;
}

body {
  background: var(--page);
}

.sidebar {
  background: #0b1b33;
}

.brand-block {
  min-height: 64px;
  padding: 16px 16px 13px;
}

.brand-block img {
  width: 160px;
}

.phase-badge {
  padding: 3px 6px;
  font-size: 8px;
}

.tenant-switcher {
  grid-template-columns: 29px minmax(0, 1fr) 14px;
  gap: 8px;
  margin: 10px 12px 6px;
  padding: 8px 9px;
}

.tenant-monogram {
  width: 29px;
  height: 29px;
  border-radius: 7px;
}

.nav {
  gap: 1px;
  padding: 6px 12px 10px;
}

.nav-section-label {
  margin: 13px 8px 5px;
  font-size: 8px;
}

.nav-item {
  grid-template-columns: 22px minmax(0, 1fr) auto;
  gap: 7px;
  min-height: 35px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 11px;
}

.nav-item.active {
  background: var(--blue);
  box-shadow: none;
}

.nav-icon svg {
  width: 16px;
  height: 16px;
}

.isolation-chip {
  margin: 9px 12px;
  padding: 7px 9px;
}

.sidebar-profile {
  padding: 10px 12px 12px;
}

.topbar {
  min-height: 58px;
  padding: 6px 28px;
}

.global-search input {
  height: 36px;
  border-radius: 8px;
  background: #f7f9fc;
}

.icon-button,
.top-avatar {
  width: 34px;
  height: 34px;
}

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

.content {
  max-width: 1740px;
  padding: 22px 28px 38px;
}

.page-header {
  margin-bottom: 15px;
}

.page-header h1 {
  margin: 2px 0 3px;
  font-size: 21px;
}

.page-header p {
  font-size: 10px;
}

.button {
  min-height: 31px;
  padding: 0 10px;
  border-radius: 7px;
  font-size: 10px;
}

.button.small {
  min-height: 27px;
  padding: 0 8px;
  font-size: 9px;
}

.dashboard-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 15px;
}

.main-stack,
.right-stack {
  gap: 15px;
}

.stat-grid {
  position: relative;
  gap: 0;
  padding: 34px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.stat-grid::before {
  position: absolute;
  margin-top: -24px;
  margin-left: 2px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  content: "At a glance";
}

.stat-card {
  min-height: 82px;
  padding: 11px 13px;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
}

.stat-card:last-child {
  border-right: 0;
}

.stat-card::before {
  display: none;
}

.stat-card > span {
  font-size: 8px;
}

.stat-card strong {
  margin: 6px 0 3px;
  font-size: 21px;
}

.stat-card small {
  font-size: 8px;
}

.card-header {
  min-height: 44px;
  padding: 11px 14px;
}

.card-header h2,
.card-header h3 {
  font-size: 12px;
}

.card-header p {
  font-size: 9px;
}

.card-body {
  padding: 14px;
}

.card-pad {
  padding: 15px;
}

.split-grid,
.three-grid,
.summary-grid {
  gap: 14px;
}

.list-tools {
  gap: 8px;
  padding: 9px 11px;
}

.list-search input,
.filter-select,
.field input,
.field select,
.field textarea {
  min-height: 31px;
  font-size: 10px;
}

.data-table th,
.data-table td {
  padding: 7px 10px;
}

.data-table th {
  font-size: 8px;
}

.data-table td {
  font-size: 9.5px;
}

.cell-title {
  gap: 7px;
}

.cell-title strong {
  font-size: 10px;
}

.status-pill,
.tag,
.risk-badge {
  font-size: 8px;
}

.assistant-card,
.activity-item,
.approval-card,
.source-card,
.health-row {
  padding-top: 11px;
  padding-bottom: 11px;
}

@media (max-width: 1150px) {
  .dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  html {
    font-size: 11px;
  }

  .content {
    padding: 17px 14px 30px;
  }

  .topbar {
    min-height: 54px;
    padding: 6px 14px;
  }

  .stat-grid {
    gap: 0;
  }

  .stat-card:nth-child(2) {
    border-right: 0;
  }

  .stat-card:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 460px) {
  .stat-card {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .stat-card:last-child {
    border-bottom: 0;
  }
}
