:root {
  --bg: #ffffff;
  --bg-accent: #f0f2f6;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --line: color-mix(in oklab, #1a1a1a 14%, #ffffff);
  --ink: #1a1a1a;
  --muted: color-mix(in oklab, #1a1a1a 62%, #ffffff);
  --accent: #0078d4;
  --accent-strong: #005a9e;
  --warm: #002050;
  --critical: #d13438;
  --elevated: #b75c00;
  --healthy: #107c10;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --body-gradient:
    radial-gradient(circle at top left, rgba(0, 120, 212, 0.1), transparent 34%),
    radial-gradient(circle at top right, rgba(0, 32, 80, 0.08), transparent 24%),
    linear-gradient(180deg, var(--bg) 0%, #f5f8fc 100%);
  --soft-fill: color-mix(in oklab, var(--accent) 10%, transparent);
  --soft-fill-strong: color-mix(in oklab, var(--accent) 18%, transparent);
  --input-bg: rgba(255, 255, 255, 0.96);
  --group-bg: rgba(230, 233, 239, 0.82);
  --card-top: rgba(255, 255, 255, 0.98);
  --card-bottom: rgba(240, 242, 246, 0.98);
  --sort-ref-idle: rgba(0, 32, 80, 0.36);
  --sort-ref-active: #0078d4;
  --sort-ref-focus: rgba(0, 120, 212, 0.24);
}

body[data-theme="dark"] {
  --bg: #0d1117;
  --bg-accent: #161b22;
  --surface: rgba(22, 27, 34, 0.92);
  --surface-strong: #161b22;
  --line: #30363d;
  --ink: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --accent-strong: #79c0ff;
  --warm: #161b22;
  --critical: #ff7b72;
  --elevated: #d29922;
  --healthy: #3fb950;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --body-gradient:
    radial-gradient(circle at top left, rgba(88, 166, 255, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(22, 27, 34, 0.2), transparent 26%),
    linear-gradient(180deg, #0d1117 0%, #161b22 100%);
  --soft-fill: color-mix(in oklab, var(--accent) 12%, transparent);
  --soft-fill-strong: color-mix(in oklab, var(--accent) 22%, transparent);
  --input-bg: rgba(13, 17, 23, 0.96);
  --group-bg: rgba(22, 27, 34, 0.88);
  --card-top: rgba(22, 27, 34, 0.98);
  --card-bottom: rgba(13, 17, 23, 0.98);
  --sort-ref-idle: #8b949e;
  --sort-ref-active: #58a6ff;
  --sort-ref-focus: rgba(88, 166, 255, 0.28);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--body-gradient);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
}

body {
  padding: 32px 20px 48px;
}

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

.page-shell {
  max-width: 1440px;
  margin: 0 auto;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 36px 40px 24px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(0, 32, 80, 0.98), rgba(0, 120, 212, 0.82));
  color: #ffffff;
  box-shadow: var(--shadow);
}

.hero-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
}

.hero-refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.88);
}

.hero-refresh-label {
  opacity: 0.7;
}

.hero .eyebrow,
.hero h1,
.hero .hero-copy {
  color: #ffffff;
}

.hero .eyebrow {
  opacity: 0.76;
}

.hero .hero-copy {
  max-width: 56ch;
  opacity: 0.9;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: var(--muted);
}

h1,
h2,
legend {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1.1;
}

h2 {
  font-size: 1.4rem;
}

.hero-copy {
  max-width: 62ch;
  color: var(--muted);
  margin: 16px 0 0;
  line-height: 1.6;
}

.panel-intro {
  margin: 10px 0 0;
  max-width: 58ch;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.94rem;
}

.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.theme-toggle-button {
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.theme-toggle-button:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
}

.theme-toggle-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 28%, transparent);
}

.timestamp-label,
.helper-text,
.table-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.helper-links {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.helper-footnote {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.helper-links a {
  color: var(--accent-strong);
  margin-left: 8px;
}

.helper-links a:hover {
  color: var(--accent);
}

.source-link {
  color: var(--accent-strong);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.source-link:hover {
  color: var(--accent);
}

.source-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.source-context {
  flex-basis: 100%;
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.4;
}

.source-copy-button {
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  border-radius: 999px;
  background: var(--soft-fill);
  color: var(--accent-strong);
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 0.98rem;
  line-height: 1;
  cursor: pointer;
}

.source-copy-button:hover {
  background: var(--soft-fill-strong);
}

.source-copy-button:disabled {
  opacity: 0.7;
  cursor: default;
}

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

.panel {
  border-radius: var(--radius-lg);
  padding: 24px;
  min-width: 0;
}

.controls-panel {
  grid-column: 1 / -1;
}

.search-bar-panel {
  grid-column: 1 / -1;
  overflow: visible;
}

.global-search-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.global-search-label > span {
  font-size: 0.92rem;
  font-weight: 600;
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.filter-bar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.filter-bar-controls .field {
  flex: 1;
  min-width: 120px;
  max-width: 210px;
}

.filter-bar-toggle {
  flex: 0 0 auto;
  align-self: center;
  margin-top: 22px;
  white-space: nowrap;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 4px;
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1.4;
}

.filter-chip:hover {
  background: color-mix(in oklab, var(--accent) 18%, transparent);
  border-color: color-mix(in oklab, var(--accent) 50%, transparent);
}

.filter-chip-remove {
  font-size: 1rem;
  line-height: 1;
  opacity: 0.7;
  font-style: normal;
}

.overview-panel {
  grid-column: 1 / -1;
}

.workspace-panel {
  grid-column: 1 / -1;
}

.live-feed-panel {
  grid-column: 1 / -1;
}

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

.live-feed-table {
  min-width: 740px;
}

.live-update-title {
  max-width: 440px;
  white-space: normal;
  line-height: 1.45;
}

.live-update-date {
  white-space: nowrap;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.product-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 0.71rem;
  font-weight: 600;
  background: color-mix(in oklab, var(--accent) 10%, transparent);
  color: var(--accent-strong);
  border: 1px solid color-mix(in oklab, var(--accent) 20%, transparent);
  margin: 1px 2px 1px 0;
  vertical-align: middle;
  line-height: 1.6;
}

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

.compact-heading {
  margin-bottom: 18px;
}

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

.source-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-sm);
  background: color-mix(in oklab, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.source-notice-icon {
  flex-shrink: 0;
  font-size: 1rem;
}

.source-notice span:not(.source-notice-icon) {
  flex: 1;
  min-width: 200px;
}

.source-notice-link {
  flex-shrink: 0;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--accent-strong);
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent);
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  transition: background 0.15s, border-color 0.15s;
}

.source-notice-link:hover {
  background: color-mix(in oklab, var(--accent) 22%, transparent);
  border-color: color-mix(in oklab, var(--accent) 55%, transparent);
}

.disclaimer-notice {
  display: block;
  padding: 12px 16px 12px 20px;
  margin-top: 20px;
  border-radius: var(--radius-sm);
  background: #172554;
  border-left: 4px solid #3b82f6;
  border-top: 1px solid #1d4ed8;
  border-right: 1px solid #1d4ed8;
  border-bottom: 1px solid #1d4ed8;
  font-size: 0.83rem;
  color: #bfdbfe;
  line-height: 1.65;
}

.disclaimer-notice strong {
  color: #e0f2ff;
}

.disclaimer-notice span {
  display: inline;
}

.disclaimer-notice .source-notice-link {
  display: inline-block;
  margin-top: 8px;
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.4);
  background: rgba(147, 197, 253, 0.12);
}

.disclaimer-notice .source-notice-link:hover {
  background: rgba(147, 197, 253, 0.22);
  border-color: rgba(147, 197, 253, 0.6);
}

.search-input-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.search-input-wrap input {
  flex: 1;
}

.workspace-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
}

.overview-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  padding: 18px;
}

.updates-block {
  padding: 18px;
}

.updates-table {
  min-width: 620px;
}

.search-term-cell {
  display: grid;
  gap: 6px;
}

.search-term-chip {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in oklab, var(--accent) 24%, transparent);
  color: var(--accent-strong);
  font-size: 0.82rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.search-term-note {
  color: var(--muted);
  font-size: 0.8rem;
}

.block-heading {
  margin-bottom: 14px;
}

.block-copy {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.actions-inline {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.ghost-button {
  border-radius: 999px;
  padding: 12px 18px;
  border: none;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, opacity 180ms ease;
}

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

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

.primary-button:disabled,
.ghost-button:disabled {
  opacity: 0.6;
  cursor: wait;
  transform: none;
}

.ghost-button {
  background: var(--soft-fill);
  color: var(--accent-strong);
}

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

.workspace-filters {
  margin-bottom: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.search-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.search-hint strong {
  color: var(--accent-strong);
  font-weight: 700;
}

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

.field span,
legend {
  font-size: 0.92rem;
  font-weight: 600;
}

textarea,
input,
select {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--ink);
  padding: 12px 14px;
}

textarea {
  resize: vertical;
}

.providers-fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  min-height: 100%;
}

.provider-options {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.provider-group {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--group-bg);
  overflow: hidden;
}

.provider-group summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.provider-group summary::-webkit-details-marker {
  display: none;
}

.provider-group summary span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.provider-group summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent-strong);
  font-size: 1rem;
  font-weight: 700;
}

.provider-group[open] summary::after {
  content: "-";
}

.provider-options-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 14px 14px;
}

.provider-chip,
.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  background: var(--group-bg);
}

.auth-session-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.auth-helper {
  margin-top: 6px;
}

.provider-chip {
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--soft-fill);
}

.provider-chip input,
.checkbox-row input {
  width: auto;
  margin: 0;
}

.checkbox-row {
  grid-column: 1 / -1;
  font-size: 0.95rem;
}

.helper-text {
  margin: 14px 0 0;
  line-height: 1.5;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.9rem;
}

.status-badge.neutral {
  background: rgba(101, 87, 74, 0.12);
  color: var(--muted);
}

.status-badge.good {
  background: rgba(6, 118, 71, 0.12);
  color: var(--healthy);
}

.status-badge.warn {
  background: rgba(181, 71, 8, 0.14);
  color: var(--elevated);
}

.status-badge.bad {
  background: rgba(180, 35, 24, 0.12);
  color: var(--critical);
}

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

.summary-card,
.provider-card,
.priority-item {
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.summary-card {
  padding: 16px;
}

.summary-label {
  font-size: 0.88rem;
  color: var(--muted);
}

.summary-value {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
  font-family: "Space Grotesk", sans-serif;
}

.summary-subtext {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.provider-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.provider-card {
  padding: 14px;
}

.provider-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.provider-bar {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in oklab, var(--line) 70%, transparent);
  overflow: hidden;
}

.provider-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--warm));
}

.priority-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.priority-item {
  padding: 16px;
}

.priority-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.priority-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.priority-footnote,
.empty-state {
  color: var(--muted);
}

.risk-pill {
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

.risk-pill.critical {
  background: rgba(180, 35, 24, 0.12);
  color: var(--critical);
}

.risk-pill.elevated {
  background: rgba(181, 71, 8, 0.12);
  color: var(--elevated);
}

.risk-pill.healthy {
  background: rgba(6, 118, 71, 0.12);
  color: var(--healthy);
}

.risk-pill.available {
  background: rgba(6, 118, 71, 0.12);
  color: var(--healthy);
}

.risk-pill.preview {
  background: rgba(181, 71, 8, 0.12);
  color: var(--elevated);
}

.risk-pill.restricted {
  background: rgba(180, 35, 24, 0.12);
  color: var(--critical);
}

.delta-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  vertical-align: middle;
  margin-left: 5px;
  letter-spacing: 0.04em;
}
.delta-badge.delta-new {
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent-strong);
  border: 1px solid color-mix(in oklab, var(--accent) 28%, transparent);
}
.delta-badge.delta-changed {
  background: rgba(181, 71, 8, 0.1);
  color: #b54708;
  border: 1px solid rgba(181, 71, 8, 0.25);
}

.table-wrap {
  overflow-x: auto;
  overflow-y: auto;
  max-height: 400px;
  border-radius: var(--radius-sm);
}

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

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

th {
  font-size: 0.83rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface-strong);
}

.sort-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 4px 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}

.sort-button:hover,
.sort-button:focus-visible,
.sort-button.is-active {
  color: var(--sort-ref-active);
}

.sort-button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--sort-ref-focus);
  border-radius: 8px;
  padding-inline: 6px;
  margin-inline: -6px;
}

.sort-button:hover .sort-indicator,
.sort-button:focus-visible .sort-indicator,
.sort-button.is-active .sort-indicator {
  color: var(--sort-ref-active);
}

.sort-indicator {
  position: relative;
  width: 12px;
  height: 14px;
  flex: 0 0 12px;
  color: var(--sort-ref-idle);
}

.sort-indicator::before,
.sort-indicator::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  margin-left: -4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  transition: border-color 160ms ease, opacity 160ms ease, transform 160ms ease;
}

.sort-indicator::before {
  top: 0;
  border-bottom: 5px solid currentColor;
  opacity: 0.45;
}

.sort-indicator::after {
  bottom: 0;
  border-top: 5px solid currentColor;
  opacity: 0.45;
}

.sort-indicator[data-sort-direction="asc"]::before {
  opacity: 1;
  transform: translateY(-1px);
}

.sort-indicator[data-sort-direction="asc"]::after {
  opacity: 0.18;
}

.sort-indicator[data-sort-direction="desc"]::before {
  opacity: 0.18;
}

.sort-indicator[data-sort-direction="desc"]::after {
  opacity: 1;
  transform: translateY(1px);
}

.sort-indicator[data-sort-direction="none"]::before,
.sort-indicator[data-sort-direction="none"]::after {
  opacity: 0.38;
}

tbody tr:hover {
  background: color-mix(in oklab, var(--accent) 6%, transparent);
}

.search-match-row {
  background: color-mix(in oklab, var(--accent) 5%, transparent);
}

.search-highlight {
  padding: 0 0.12em;
  border-radius: 0.28em;
  background: color-mix(in oklab, var(--accent) 22%, #fff3a3);
  color: inherit;
  box-shadow: inset 0 -1px 0 color-mix(in oklab, var(--accent) 28%, transparent);
}

body[data-theme="dark"] .search-highlight {
  background: color-mix(in oklab, var(--accent) 24%, #ffd66b);
}

.utilization-cell {
  min-width: 150px;
}

.bar-meter {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(31, 27, 23, 0.08);
  overflow: hidden;
  margin-top: 6px;
}

.bar-meter span {
  display: block;
  height: 100%;
}

.bar-meter span.critical {
  background: var(--critical);
}

.bar-meter span.elevated {
  background: var(--elevated);
}

.bar-meter span.healthy {
  background: var(--healthy);
}

.empty-table {
  text-align: center;
  color: var(--muted);
  padding: 28px;
}

.identity-section {
  margin-top: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
  padding: 24px;
}

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

.identity-copy {
  max-width: 58ch;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.identity-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface-strong);
  padding: 22px 24px;
  display: grid;
  gap: 14px;
}

.founder-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 247, 255, 0.95)),
    var(--surface-strong);
}

.org-card {
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(236, 243, 252, 0.95)),
    var(--surface-strong);
}

.support-card {
  background:
    linear-gradient(180deg, var(--card-top), var(--card-bottom)),
    var(--surface-strong);
}

.identity-label {
  margin: 0;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}

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

.identity-row-founder {
  align-items: start;
}

.identity-avatar {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(30, 26, 22, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.identity-avatar-org {
  width: 96px;
  height: 96px;
  border-radius: 22px;
}

.identity-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.identity-links-founder {
  display: grid;
  gap: 6px;
  justify-items: start;
}

.identity-name,
.identity-note {
  margin: 0;
}

.identity-name {
  font-size: 1rem;
}

.identity-note {
  color: var(--muted);
  line-height: 1.55;
}

.identity-links a,
.identity-org-link {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
}

.identity-links a:hover,
.identity-org-link:hover {
  text-decoration: underline;
}

.identity-rail {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.identity-org-link {
  overflow-wrap: anywhere;
  max-width: 18ch;
}

.identity-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.6;
  display: grid;
  gap: 8px;
}

.identity-list strong {
  color: var(--ink);
}

@media (max-width: 1120px) {
  .workspace-filters {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  body {
    padding: 20px 14px 32px;
  }

  .panel {
    padding: 20px;
  }

  .section-heading,
  .overview-header,
  .workspace-header {
    flex-direction: column;
  }

  .form-grid,
  .filter-grid,
  .summary-cards {
    grid-template-columns: 1fr;
  }

  .workspace-filters {
    gap: 14px;
  }

  .search-hint {
    max-width: 34ch;
  }

  .identity-header,
  .identity-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .identity-avatar-org {
    width: 80px;
    height: 80px;
  }

  .auth-session-row {
    flex-direction: column;
  }
}