:root {
  --cds-background: #f5f6f8;
  --cds-layer-01: #ffffff;
  --cds-layer-02: #f9fafb;
  --cds-layer-dark: #111827;
  --cds-layer-dark-02: #1f2937;
  --cds-text-primary: #111827;
  --cds-text-secondary: #5b6472;
  --cds-text-helper: #7b8494;
  --cds-border-subtle: #e5e7eb;
  --cds-border-strong: #d1d5db;
  --cds-blue: #0066cc;
  --cds-blue-hover: #0057b8;
  --cds-blue-light: #eef6ff;
  --cds-green: #1f9d55;
  --cds-yellow: #b7791f;
  --cds-red: #d92d20;
  --cds-focus: #0071e3;
  --cds-amber: #b7791f;
  --cds-mint: #e8f7ef;
  --cds-ink: #111827;
  --rail-width: 248px;
  --radius-card: 8px;
  --radius-pill: 999px;
  --glass: rgba(255, 255, 255, .86);
  --glass-dark: rgba(17, 24, 39, .8);
  --product-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --polish-shadow: 0 1px 2px rgba(16, 24, 40, .05);
  --polish-ring: 0 0 0 3px rgba(0, 113, 227, .14);
}

html {
  background: var(--cds-background);
}

body {
  background: var(--cds-background);
  color: var(--cds-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.5;
}

body,
button,
input,
select,
textarea {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  color: var(--cds-text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  font-weight: 650;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(28px, 3vw, 34px);
}

h2 {
  font-size: clamp(20px, 2vw, 24px);
}

h3 {
  font-size: 17px;
}

.eyebrow {
  margin-bottom: 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .04em;
}

.subtle,
.meta {
  color: var(--cds-text-secondary);
}

button {
  min-height: 40px;
  border-radius: 7px;
  border-color: transparent;
  background: var(--cds-blue);
  box-shadow: none;
  font-weight: 600;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .1s ease;
}

button:hover {
  background: var(--cds-blue-hover);
}

button:active {
  transform: translateY(1px);
}

button.secondary,
.lang-toggle,
.prompt-chips button,
button.text-btn,
button.small-btn {
  background: #ffffff;
  border-color: var(--cds-border-subtle);
  color: var(--cds-blue);
}

button.secondary:hover,
.lang-toggle:hover,
.prompt-chips button:hover,
button.text-btn:hover,
button.small-btn:hover {
  background: #f8fbff;
  border-color: #bfdbfe;
  color: var(--cds-blue-hover);
}

button.text-btn,
button.small-btn {
  min-height: 34px;
  padding: 6px 10px;
}

button.danger,
button.small-btn.danger {
  background: #fff7f7;
  border-color: #fecaca;
  color: var(--cds-red);
}

input,
select,
textarea {
  min-height: 40px;
  border: 1px solid var(--cds-border-subtle);
  border-radius: 7px;
  background: #ffffff;
  color: var(--cds-text-primary);
  box-shadow: inset 0 1px 0 rgba(17, 24, 39, .02);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #cbd5e1;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cds-focus);
  box-shadow: var(--polish-ring);
}

input::placeholder,
textarea::placeholder {
  color: #9aa3b2;
}

.login-view {
  background: #f5f6f8;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 432px);
}

.login-visual {
  background:
    linear-gradient(90deg, rgba(17, 24, 39, .74), rgba(17, 24, 39, .22)),
    url("/assets/industrial-cluster-hero.png") center/cover;
}

.orb {
  display: none !important;
}

.glass-card,
.hero-login {
  color: #ffffff;
}

.brand-mark,
.brand-logo,
.drop-icon,
.agent-squad strong,
.agent-badge {
  border-radius: 8px;
  background: var(--cds-blue);
  box-shadow: none;
}

.hero-login h1 {
  font-size: clamp(38px, 5vw, 56px);
  letter-spacing: 0;
}

.login-metrics span {
  border-color: rgba(255, 255, 255, .24);
  border-radius: 7px;
  background: rgba(255, 255, 255, .12);
  box-shadow: none;
}

.login-panel {
  background: #ffffff;
  box-shadow: -1px 0 0 var(--cds-border-subtle);
}

.login-panel h2 {
  font-size: 30px;
}

.app-shell {
  grid-template-columns: var(--rail-width) minmax(720px, 1fr) 364px;
  background: var(--cds-background);
}



.nav-menu {
  padding: 10px 12px;
}

.nav-item {
  border: 1px solid transparent;
  border-radius: 16px;
  color: rgba(255, 255, 255, .72);
  font-weight: 720;
}

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

.nav-item.active {
  border-color: rgba(255, 255, 255, .18);
  background:
    linear-gradient(135deg, rgba(21, 94, 239, .9), rgba(6, 174, 212, .56));
  color: #fff;
  box-shadow: 0 12px 28px rgba(21, 94, 239, .22);
}

.workspace {
  padding: 14px 18px 18px;
}

.workspace-topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-bottom: 18px;
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 26px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .94), rgba(248, 251, 255, .82));
  box-shadow: 0 18px 48px rgba(15, 23, 42, .08);
  backdrop-filter: blur(20px) saturate(150%);
}

.workspace-topbar h1 {
  font-size: clamp(26px, 2.5vw, 38px);
  letter-spacing: -.055em;
}

.global-search {
  border: 1px solid rgba(21, 94, 239, .12);
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 10px 28px rgba(15, 23, 42, .045);
}

.global-search input {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.panel-card,
.ops-panel,
.repository-list-panel,
.repository-side > section,
.admin-grid .panel-card,
.search-work-grid .panel-card,
.dashboard-overview > article {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: var(--exec-radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(255, 255, 255, .88));
  box-shadow: var(--exec-shadow-sm);
  backdrop-filter: blur(14px) saturate(140%);
}

.panel-card:hover,
.ops-panel:hover,
.repository-side > section:hover {
  box-shadow: var(--exec-shadow-md);
}

.card-head {
  gap: 14px;
  padding-bottom: 2px;
}

.card-head h2 {
  font-size: clamp(19px, 1.6vw, 24px);
}

.chip,
.badge {
  border: 1px solid rgba(21, 94, 239, .16);
  border-radius: 999px;
  background: #eef6ff;
  color: #155eef;
  font-weight: 820;
}

.badge.good,
.chip.good {
  border-color: rgba(15, 159, 143, .18);
  background: #ecfdf7;
  color: #0b7d71;
}

.badge.warn,
.chip.warn {
  border-color: rgba(183, 121, 31, .2);
  background: #fffbeb;
  color: #9a5b13;
}

.command-deck {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 34px;
  background:
    radial-gradient(circle at 86% 18%, rgba(6, 174, 212, .22), transparent 30%),
    radial-gradient(circle at 18% 0%, rgba(21, 94, 239, .22), transparent 28%),
    linear-gradient(135deg, #0b1220, #13264e 55%, #0b1220);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .22);
}

.command-deck::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 20% 20%, #000, transparent 70%);
  pointer-events: none;
}

.command-copy,
.agent-command-card,
.campus-visual {
  position: relative;
  z-index: 1;
}

.command-copy h2 {
  color: #fff;
  font-size: clamp(34px, 4.4vw, 62px);
  line-height: 1.02;
  letter-spacing: -.065em;
}

.command-copy .subtle {
  max-width: 680px;
  color: rgba(255, 255, 255, .76);
  font-size: 16px;
  line-height: 1.78;
}

.command-copy .eyebrow,
.command-deck .eyebrow {
  color: rgba(183, 219, 255, .92);
}

.ops-strip span,
.workflow-showcase span {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
}

.workflow-showcase i {
  background: linear-gradient(90deg, rgba(255, 255, 255, .24), rgba(6, 174, 212, .72));
}

.agent-command-card {
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .1);
  box-shadow: none;
  backdrop-filter: blur(18px) saturate(150%);
}

.agent-command-card h2,
.agent-squad span {
  color: #fff;
}

.agent-squad article {
  border-color: rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .09);
}

.agent-squad small {
  color: rgba(255, 255, 255, .62);
}

.campus-visual {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .22);
}

.campus-visual img {
  filter: saturate(1.08) contrast(1.04);
}

.stat-grid {
  gap: 14px;
}

.stat-card,
.project-metric,
.repository-metric,
.search-metric,
.admin-metric,
.inbox-metric {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(21, 94, 239, .11), transparent 38%),
    #fff;
  box-shadow: var(--exec-shadow-sm);
}

.stat-card::after,
.repository-metric::after {
  content: "";
  position: absolute;
  inset: auto 14px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--exec-blue), var(--exec-cyan));
  opacity: .8;
}

.stat-card strong,
.repository-metric strong,
.project-metric strong {
  color: #0b1220;
  font-size: clamp(24px, 2.3vw, 34px);
  letter-spacing: -.055em;
}

.ops-hero,
.project-hero,
.repository-hero,
.search-hero,
.admin-hero,
.control-hero {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 30px;
  background:
    radial-gradient(circle at 86% 0%, rgba(21, 94, 239, .14), transparent 34%),
    radial-gradient(circle at 12% 16%, rgba(6, 174, 212, .1), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(246, 250, 255, .9));
  box-shadow: var(--exec-shadow-sm);
}

.repository-hero {
  grid-template-columns: minmax(0, 1.1fr) auto;
  align-items: center;
  padding: clamp(22px, 2.4vw, 34px);
}

.repository-hero h2,
.ops-hero h2,
.project-hero h2,
.search-hero h2,
.admin-hero h2,
.control-hero h2 {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -.06em;
}

.repository-actions {
  gap: 10px;
}

.repository-actions button {
  min-height: 44px;
  border-radius: 14px;
}

.repository-metrics {
  gap: 12px;
}

.repository-metric {
  min-height: 96px;
  padding: 16px;
}

.repository-toolbar,
.search-workbar,
.asset-bulk-panel,
.storage-board-toolbar,
.admin-hero + .admin-metrics {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .88));
  box-shadow: var(--exec-shadow-sm);
}

.repository-toolbar label span,
.storage-board-search span,
.asset-bulk-summary small,
.asset-bulk-fields label span {
  color: #526172;
  font-weight: 820;
}

.storage-overview-grid {
  gap: 14px;
}

.storage-overview-card {
  min-height: 128px;
  border-color: rgba(15, 23, 42, .08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 94% 0%, rgba(21, 94, 239, .12), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(247, 250, 255, .9));
  box-shadow: var(--exec-shadow-sm);
}

.storage-overview-card:hover {
  border-color: rgba(21, 94, 239, .24);
  box-shadow: var(--exec-shadow-md);
}

.storage-overview-main {
  background:
    radial-gradient(circle at 100% 0%, rgba(6, 174, 212, .18), transparent 34%),
    radial-gradient(circle at 0% 0%, rgba(21, 94, 239, .16), transparent 36%),
    linear-gradient(135deg, #ffffff, #f4f8ff);
}

.storage-overview-card strong,
.storage-overview-card h3 {
  font-size: clamp(18px, 1.45vw, 24px);
  letter-spacing: -.045em;
}

.storage-overview-current {
  border-radius: 18px;
  background: rgba(255, 255, 255, .8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}

.storage-overview-actions .tiny-btn,
.storage-board-actions .tiny-btn,
.storage-board-empty-actions .tiny-btn {
  border-radius: 999px;
  font-weight: 820;
}

.storage-drive-board {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(248, 251, 255, .72));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
}

.storage-board-grid {
  gap: 14px;
}

.storage-board-item {
  min-height: 246px;
  border-color: rgba(15, 23, 42, .08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(21, 94, 239, .09), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .9));
  box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
}

.storage-board-item:hover,
.storage-board-item.active {
  border-color: rgba(21, 94, 239, .32);
  box-shadow: 0 22px 54px rgba(21, 94, 239, .13);
}

.storage-board-icon {
  width: 48px;
  height: 48px;
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(21, 94, 239, .16), rgba(6, 174, 212, .12));
  color: #155eef;
}

.storage-board-file-main strong,
.storage-board-open strong {
  font-size: 16px;
  letter-spacing: -.025em;
}

.storage-board-meta-item {
  border-color: rgba(15, 23, 42, .07);
  border-radius: 14px;
  background: rgba(255, 255, 255, .72);
}

.storage-board-status {
  border-color: rgba(15, 23, 42, .08);
  background: rgba(255, 255, 255, .8);
}

.storage-board-status.folder,
.storage-board-status.file,
.storage-board-status.pinned,
.storage-board-status.versioned {
  background: #eef6ff;
}

.table-wrap {
  overflow: hidden;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--exec-shadow-sm);
}

.data-table {
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f7faff;
  color: #526172;
  font-size: 12px;
  font-weight: 860;
  letter-spacing: .04em;
}

.data-table td {
  border-top: 1px solid rgba(15, 23, 42, .07);
  color: #27364a;
}

.data-table tr:hover td {
  background: #f8fbff;
}

.repository-insight,
.search-hit,
.document-card,
.archive-card,
.timeline-step,
.object-link-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

.repository-insight:hover,
.search-hit:hover,
.document-card:hover,
.archive-card:hover,
.timeline-step:hover,
.object-link-card:hover {
  border-color: rgba(21, 94, 239, .24);
  box-shadow: 0 16px 38px rgba(21, 94, 239, .1);
  transform: translateY(-1px);
}

.assistant-panel {
  margin: 12px 12px 12px 0;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(21, 94, 239, .14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(247, 250, 255, .9));
  box-shadow: 0 24px 70px rgba(15, 23, 42, .12);
}

.assistant-head,
.agent-stage,
.chatlog,
.ask-form,
.assistant-ops {
  border-radius: 20px;
}

.xiao-agent {
  filter: drop-shadow(0 12px 22px rgba(21, 94, 239, .18));
}

.agent-stage {
  border: 1px solid rgba(21, 94, 239, .12);
  background:
    radial-gradient(circle at 18% 0%, rgba(21, 94, 239, .16), transparent 38%),
    #f7fbff;
}

.bubble {
  border-radius: 18px;
}

.assistant-bubble {
  background: #eef6ff;
  color: #14325a;
}

.ask-form textarea {
  border-radius: 18px;
  background: #fff;
}

.modal-card,
dialog::backdrop {
  backdrop-filter: blur(10px);
}

dialog .modal-card {
  border: 1px solid rgba(15, 23, 42, .1);
  border-radius: 28px;
  box-shadow: 0 36px 100px rgba(15, 23, 42, .25);
}

@media (min-width: 1180px) {
  .repository-work-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    gap: 16px;
  }

  .dashboard-grid {
    gap: 16px;
  }
}

@media (max-width: 1280px) {
  .nav-rail {
    margin: 8px 0 8px 8px;
  }

  .assistant-panel {
    margin: 8px 8px 8px 0;
  }

  .workspace {
    padding: 10px 12px 14px;
  }
}

@media (max-width: 920px) {
  .login-panel {
    margin: 0;
    border-radius: 26px 26px 0 0;
  }

  .nav-rail {
    margin: 0;
    border-radius: 0 0 22px 22px;
  }

  .workspace-topbar {
    top: 8px;
    border-radius: 22px;
  }

  .command-deck,
  .repository-hero,
  .ops-hero,
  .project-hero,
  .search-hero,
  .admin-hero,
  .control-hero {
    border-radius: 24px;
  }

  .command-copy h2 {
    font-size: clamp(30px, 8vw, 44px);
  }

  .repository-work-grid {
    gap: 12px;
  }
}

@media (max-width: 780px) {
  body::before {
    background-size: 28px 28px;
  }

  .workspace {
    padding: 8px;
  }

  .workspace-topbar {
    margin-bottom: 10px;
    padding: 12px;
  }

  .workspace-topbar h1 {
    font-size: 23px;
  }

  .panel-card,
  .ops-panel,
  .repository-list-panel,
  .repository-side > section {
    border-radius: 18px;
  }

  .repository-hero {
    padding: 14px;
    border-radius: 20px;
  }

  .repository-metric {
    border-radius: 16px;
  }

  .storage-overview-card,
  .storage-board-item {
    border-radius: 17px;
  }

  .storage-drive-board {
    border-radius: 18px;
  }

  .table-wrap {
    border-radius: 16px;
  }
}

.app-shell.focus-mode {
  grid-template-columns: var(--rail-width) minmax(0, 1fr);
}

.nav-rail,
.assistant-panel {
  background: rgba(255, 255, 255, .9);
  border-color: var(--cds-border-subtle);
  box-shadow: none;
}

.nav-rail {
  backdrop-filter: saturate(160%) blur(18px);
}

.brand-block {
  min-height: 70px;
  border-bottom-color: var(--cds-border-subtle);
}

.brand-logo {
  background: var(--cds-blue);
}

.brand-block strong {
  color: #111827;
}

.brand-block span,
.nav-footer {
  color: #6b7280;
}

.nav-menu {
  gap: 4px;
  padding: 10px;
}

.nav-item {
  min-height: 40px;
  display: flex;
  align-items: center;
  border-radius: 7px;
  color: #4b5563;
  font-weight: 560;
  text-decoration: none;
}

.nav-item:hover {
  background: #f3f7fb;
  color: #111827;
}

.nav-item.active {
  background: #eef6ff;
  border-color: #bfdbfe;
  color: var(--cds-blue);
  box-shadow: none;
}

.status-dot {
  background: var(--cds-green);
  box-shadow: 0 0 0 3px rgba(31, 157, 85, .12);
}

.workspace {
  padding: 24px;
  background: var(--cds-background);
}

.workspace-topbar,
.control-hero,
.panel-card,
.plant-map-card,
.control-palette,
.control-knowledge,
.command-copy,
.agent-command-card,
.command-visual,
.premium-hero,
.stat-card,
.list-item,
.archive-card,
.config-form,
.search-hit,
.timeline-item,
.ops-summary,
.ops-risk-list li,
.ops-action-list li,
.assistant-bubble,
.modal-card {
  border: 1px solid var(--cds-border-subtle);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--polish-shadow);
}

.workspace-topbar {
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  backdrop-filter: none;
}

.top-actions {
  gap: 8px;
}

.avatar-btn {
  background: #111827;
}

.avatar-btn:hover {
  background: #030712;
}

.global-search {
  border-color: var(--cds-border-subtle);
  border-radius: 8px;
  background: #ffffff;
}

.global-search input {
  min-height: 34px;
}

.global-search button {
  min-height: 34px;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.stat-card {
  min-height: 88px;
  padding: 14px;
}

.stat-card::after {
  height: 2px;
  background: var(--cds-blue);
}

.stat-card strong {
  margin-top: 10px;
  font-size: 26px;
}

.notice {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1e3a5f;
}

.command-deck {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.command-copy {
  min-height: 330px;
  padding: 26px;
  color: #111827;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}

.command-copy .eyebrow {
  color: #64748b;
}

.command-copy h2 {
  color: #111827;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: 0;
}

.command-copy .subtle {
  color: var(--cds-text-secondary);
}

.command-actions button.secondary {
  background: #ffffff;
  border-color: var(--cds-border-subtle);
  color: var(--cds-blue);
}

.agent-command-card,
.plant-map-card,
.control-knowledge,
.panel-card {
  padding: 16px;
}

.agent-squad article,
.knowledge-flow div,
.readiness-row,
.phase-card,
.control-ledger-card,
.control-widget,
.config-status .status-item {
  border: 1px solid var(--cds-border-subtle);
  border-radius: 8px;
  background: #f9fafb;
  box-shadow: none;
}

.agent-squad span {
  font-weight: 650;
}

.command-visual,
.campus-visual {
  min-height: 260px;
  background: #eef2f7;
}

.campus-visual img {
  min-height: 260px;
  box-shadow: none;
}

.command-visual {
  grid-column: 1 / -1;
}

.campus-visual figcaption {
  border-color: rgba(255, 255, 255, .35);
  border-radius: 8px;
  background: rgba(17, 24, 39, .78);
  box-shadow: none;
}

.dashboard-grid,
.two-column,
.admin-grid,
.control-widget-grid {
  gap: 12px;
}

.orchestration-card {
  margin-top: 12px;
}

.card-head,
.plant-map-head {
  min-height: 44px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom-color: var(--cds-border-subtle);
}

.control-hero {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 500px);
  padding: 18px;
}

.control-hero h2 {
  font-size: clamp(28px, 3vw, 34px);
}

.control-status-strip {
  gap: 8px;
}

.control-status-strip div {
  min-height: 78px;
  border: 1px solid var(--cds-border-subtle);
  border-radius: 8px;
  background: #f9fafb;
}

.control-status-strip strong {
  font-size: 23px;
}

.control-workbench {
  grid-template-columns: 220px minmax(0, 1fr);
}

.control-palette {
  overflow: hidden;
}

.control-palette-head {
  background: #f9fafb;
  color: #111827;
}

.control-palette-head span {
  color: #6b7280;
}

.control-module {
  min-height: 64px;
  border-bottom-color: var(--cds-border-subtle);
  background: #ffffff;
  color: #374151;
}

.control-module:hover,
.control-module.active {
  background: #eef6ff;
  color: var(--cds-blue);
}

.plant-map {
  min-height: 410px;
  border-color: #dbeafe;
  border-radius: 8px;
  background:
    linear-gradient(#e8f1fb 1px, transparent 1px),
    linear-gradient(90deg, #e8f1fb 1px, transparent 1px),
    #fbfdff;
  background-size: 32px 32px;
}

.plant-zone {
  border-color: #dbeafe;
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: none;
}

.plant-zone::before {
  background: var(--cds-blue);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, .1);
}

.plant-zone strong {
  color: #111827;
}

.mini-bars,
.mini-line {
  background: #f3f6fa;
}

.mini-bars i,
.readiness-meter span,
.ops-meter span {
  background: var(--cds-blue);
}

.gauge {
  background: conic-gradient(var(--cds-blue) 0 78%, #e5e7eb 78% 100%);
}

.control-task-list li {
  border: 1px solid #fde68a;
  background: #fffbeb;
  color: #7c4a03;
}

.control-ledger-card {
  background: linear-gradient(180deg, #ffffff, #f9fafb);
}

.ledger-card-head span,
.inbox-metric strong {
  color: var(--showcase-blue);
}

.chip,
.badge {
  min-height: 24px;
  border-color: var(--cds-border-subtle);
  border-radius: 999px;
  background: #f8fafc;
  color: #344054;
  font-weight: 600;
}

.badge.good {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.badge.warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.badge.bad {
  border-color: #fecaca;
  background: #fef2f2;
  color: var(--cds-red);
}

.empty-state {
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fafafa;
  color: var(--cds-text-secondary);
}

.list-item:hover,
.list-item.clickable:hover,
.list-item.active {
  background: #f8fbff;
  border-color: #bfdbfe;
}

.table-wrap {
  border-color: var(--cds-border-subtle);
  border-radius: 8px;
  background: #ffffff;
}

.data-table {
  background: #ffffff;
}

.data-table th {
  height: 40px;
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}

.data-table td {
  padding: 13px 16px;
  border-bottom-color: #eef2f6;
}

.data-table tr:hover td {
  background: #f8fbff;
}

.ai-dropzone {
  border-color: var(--cds-border-subtle);
  border-radius: 8px;
  background: #fbfdff;
  box-shadow: none;
}

.inbox-metric,
.inbox-board > section {
  border-color: rgba(148, 163, 184, .28);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 26px rgba(15, 23, 42, .04);
}

.inbox-metric.warn strong {
  color: #92400e;
}

.inbox-metric.good strong {
  color: #166534;
}

.drop-icon {
  background: #eef6ff;
  color: var(--cds-blue);
}

.form-grid,
.compact-form,
.model-config-grid {
  gap: 12px;
}

.login-panel label,
.form-grid label,
.modal-card label,
.voice-field,
.voice-rate-field {
  color: #667085;
  font-weight: 650;
}

.checkbox-row {
  color: var(--cds-text-secondary);
}

.assistant-panel {
  backdrop-filter: saturate(160%) blur(18px);
}

.assistant-panel::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(248, 250, 252, .86));
}

.assistant-panel.expanded {
  border-color: var(--cds-border-subtle);
  border-radius: 8px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 56px rgba(15, 23, 42, .16);
}

.assistant-head {
  min-height: 72px;
  background: rgba(255, 255, 255, .82);
}

.agent-ring {
  border-color: #bfdbfe;
  border-radius: 8px;
  background: #eef6ff;
  box-shadow: none;
}

.agent-face {
  border-color: #dbeafe;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.agent-stage {
  border-color: #dbeafe;
  background: #f8fbff;
  box-shadow: none;
}

.agent-files {
  border-color: #dbeafe;
  background: #eef6ff;
}

.file-blueprint,
.file-contract,
.file-device {
  border-color: #bfdbfe;
  background: #ffffff;
  box-shadow: none;
}

.file-blueprint {
  background: #dbeafe;
}

.file-device {
  background: #e0f2fe;
}

.agent-status {
  color: #111827;
}

.agent-status::before {
  background: var(--cds-green);
  box-shadow: 0 0 0 4px rgba(31, 157, 85, .12);
}

.agent-steps span {
  border-color: #e5e7eb;
  background: #ffffff;
  color: #667085;
}

.agent-steps span.active {
  border-color: #bfdbfe;
  background: #eef6ff;
  color: var(--cds-blue);
}

.prompt-chips,
.assistant-ops,
.ask-form {
  border-color: var(--cds-border-subtle);
  background: rgba(255, 255, 255, .82);
}

.assistant-ops {
  max-height: 176px;
}

.assistant-panel.expanded .assistant-ops {
  max-height: 240px;
}

.chatlog {
  min-height: 180px;
}

.ask-form textarea {
  min-height: 78px;
  max-height: 132px;
}

.assistant-panel.expanded .ask-form textarea {
  min-height: 96px;
}

.voice-settings {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(100% - 4px);
  z-index: 2;
  padding: 10px;
  border: 1px solid var(--cds-border-subtle);
  border-radius: 8px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 16px 44px rgba(15, 23, 42, .16);
}

.ops-source-tags span {
  background: #eef6ff;
  color: var(--cds-blue);
}

.ops-agent {
  border-left-color: var(--cds-green);
  border-radius: 8px;
  background: #ffffff;
}

.ops-agent.warn {
  border-left-color: var(--cds-amber);
}

.bubble {
  border-radius: 8px;
}

.assistant-bubble {
  box-shadow: none;
}

.user-bubble {
  background: var(--cds-blue);
}

.user-bubble.latest-user {
  box-shadow: 0 10px 28px rgba(0, 102, 204, .18);
}

dialog {
  border-radius: 8px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, .22);
}

dialog::backdrop {
  background: rgba(15, 23, 42, .42);
}

@media (max-width: 1320px) {
  .app-shell,
  .app-shell.assistant-expanded {
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
  }

  .assistant-panel {
    grid-column: 2;
    height: 560px;
    border-top: 1px solid var(--cds-border-subtle);
  }

  .workspace-topbar,
  .dashboard-grid,
  .two-column,
  .control-hero,
  .control-workbench,
  .command-deck {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1720px) {
  .command-deck {
    grid-template-columns: minmax(320px, .95fr) minmax(320px, .9fr) minmax(360px, 1.05fr);
  }

  .command-visual {
    grid-column: auto;
  }
}

@media (max-width: 780px) {
  html,
  body,
  .app-shell {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  body {
    min-width: 0;
  }

  .login-view,
  .app-shell,
  .app-shell.assistant-expanded {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace {
    width: 100%;
    max-width: 100vw;
    min-width: 0;
    overflow-x: clip;
    padding: 12px;
  }

  .assistant-panel {
    grid-column: 1;
    width: 100%;
  }

  .workspace-topbar {
    align-items: stretch;
    padding: 14px;
  }

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

  .nav-item {
    min-height: 40px;
    padding: 0 8px;
    text-align: center;
  }

  .top-actions,
  .command-actions,
  .form-actions {
    align-items: stretch;
  }

  .global-search {
    grid-template-columns: 1fr;
  }

  .stat-grid,
  .admin-grid,
  .form-grid,
  .compact-form,
  .config-status,
  .model-config-grid,
  .control-status-strip,
    .control-widget-grid,
    .control-ledger-grid,
    .phase-grid,
  .orchestration-bottom,
  .knowledge-flow,
    .ai-dropzone {
      grid-template-columns: 1fr;
    }

  .inbox-overview,
  .inbox-board {
    grid-template-columns: 1fr;
  }

  .command-copy,
  .agent-command-card,
  .command-visual,
  .campus-visual,
  .campus-visual img {
    min-height: auto;
  }

  .command-copy {
    padding: 20px;
  }

  .plant-map {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .plant-zone,
  .zone-seed,
  .zone-culture,
  .zone-purify,
  .zone-fill,
  .zone-cold,
  .zone-qa {
    grid-column: auto;
    grid-row: auto;
    min-height: 112px;
  }

  .assistant-panel {
    grid-column: 1;
  }
}

/* Production operations layer */
:root {
  --showcase-ink: #0f172a;
  --showcase-blue: #0b63ce;
  --showcase-teal: #087f7a;
  --showcase-gold: #b7791f;
  --showcase-violet: #475569;
  --showcase-surface: rgba(255, 255, 255, .92);
  --showcase-shadow: 0 18px 52px rgba(15, 23, 42, .1);
}

body {
  background:
    linear-gradient(180deg, rgba(247, 250, 252, .96), rgba(239, 242, 247, .98) 42%, #f7f8fb),
    var(--cds-background);
}

.workspace {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, 0) 260px),
    radial-gradient(900px 340px at 12% 0%, rgba(11, 99, 206, .08), transparent 64%),
    radial-gradient(720px 280px at 86% 2%, rgba(8, 127, 122, .08), transparent 62%),
    var(--cds-background);
}

.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 9;
  border-color: rgba(148, 163, 184, .32);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(165%) blur(18px);
  box-shadow: 0 8px 28px rgba(15, 23, 42, .06);
}

.command-deck {
  gap: 14px;
}

.command-copy {
  position: relative;
  justify-content: center;
  gap: 14px;
  min-height: 320px;
  padding: 26px 28px;
  border-color: rgba(15, 23, 42, .1);
  color: #ffffff;
  background:
    linear-gradient(140deg, rgba(7, 16, 36, .95), rgba(15, 67, 117, .9) 46%, rgba(7, 91, 83, .88)),
    url("/assets/industrial-cluster-hero.png") center/cover;
  box-shadow: var(--showcase-shadow);
}

.command-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(140deg, rgba(0, 0, 0, .6), transparent 66%);
  pointer-events: none;
}

.command-copy > * {
  position: relative;
  z-index: 1;
}

.command-copy h2 {
  max-width: 540px;
  color: #ffffff;
  font-size: 40px;
  line-height: 1.12;
}

.command-copy .eyebrow,
.command-copy .subtle {
  max-width: 520px;
  color: rgba(255, 255, 255, .8);
}

.ops-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.ops-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 7px;
  background: rgba(255, 255, 255, .12);
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
}

.workflow-showcase {
  display: grid;
  grid-template-columns: auto 18px auto 18px auto 18px auto;
  align-items: center;
  max-width: 520px;
  gap: 6px;
  margin-top: 2px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 650;
}

.workflow-showcase span {
  min-width: 0;
  white-space: nowrap;
}

.workflow-showcase i {
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, .45);
}

.command-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, .85fr);
  gap: 8px;
  margin-top: 8px;
}

.command-actions button {
  min-width: 0;
  width: 100%;
  padding-inline: 12px;
  font-size: 13px;
}

.command-actions button {
  box-shadow: 0 10px 24px rgba(11, 99, 206, .22);
}

.command-actions button.secondary {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .24);
  color: #ffffff;
  box-shadow: none;
}

.agent-command-card,
.panel-card,
.plant-map-card,
.control-palette,
.control-knowledge,
.stat-card,
.project-hero,
.repository-hero,
.search-hero,
.admin-hero,
.project-metric,
.repository-metric,
.search-metric,
.admin-metric,
.project-portfolio-card,
.timeline-step,
.object-link-card,
.control-entry-panel,
.repository-toolbar,
.search-workbar,
.repository-insight,
.document-card,
.archive-card,
.search-hit,
.modal-card {
  border-color: rgba(148, 163, 184, .28);
  background: var(--showcase-surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 16px 36px rgba(15, 23, 42, .045);
}

.agent-squad article {
  background:
    linear-gradient(135deg, #ffffff, #f8fbff);
}

.agent-squad strong {
  background: linear-gradient(135deg, var(--showcase-blue), var(--showcase-teal));
}

.stat-card {
  position: relative;
  overflow: hidden;
}

.stat-card::after {
  background: linear-gradient(90deg, var(--showcase-blue), var(--showcase-teal), var(--showcase-gold));
}

.plant-map {
  background:
    linear-gradient(#dfeaf7 1px, transparent 1px),
    linear-gradient(90deg, #dfeaf7 1px, transparent 1px),
    linear-gradient(135deg, #fbfdff, #f4fbf8);
}

.plant-zone {
  border-color: rgba(11, 99, 206, .18);
  box-shadow: 0 12px 26px rgba(15, 23, 42, .07);
}

.plant-zone::before {
  background: linear-gradient(135deg, var(--showcase-blue), var(--showcase-teal));
}

.control-status-strip div {
  background: linear-gradient(135deg, #ffffff, #f6fbff);
}

.document-card-list {
  display: none;
}

.document-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
}

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

.doc-card-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1e3a5f;
  font-size: 12px;
  font-weight: 600;
}

.search-hit mark {
  border-radius: 4px;
  background: #fef3c7;
  box-shadow: 0 0 0 2px #fef3c7;
}

.assistant-fab {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 28;
  width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--showcase-blue), var(--showcase-teal));
  box-shadow: 0 18px 42px rgba(11, 99, 206, .28);
}

#view-operations {
  position: relative;
  isolation: isolate;
}

#view-operations::before {
  content: "";
  position: absolute;
  inset: -20px -20px auto;
  height: 260px;
  background:
    linear-gradient(180deg, rgba(11, 99, 206, .08), rgba(11, 99, 206, 0)),
    linear-gradient(135deg, rgba(8, 127, 122, .05), rgba(8, 127, 122, 0));
  pointer-events: none;
  z-index: -1;
}

.ops-hero {
  gap: 16px;
  margin-bottom: 16px;
}

.ops-copy,
.ops-stage,
.ops-panel {
  border-color: rgba(148, 163, 184, .26);
  box-shadow: 0 14px 42px rgba(15, 23, 42, .08);
}

.ops-copy {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(7, 16, 36, .96), rgba(15, 67, 117, .88) 48%, rgba(7, 91, 83, .9)),
    url("/assets/industrial-cluster-hero.png") center/cover;
}

.ops-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(140deg, rgba(0, 0, 0, .62), transparent 66%);
  pointer-events: none;
}

.ops-copy > * {
  position: relative;
  z-index: 1;
}

.ops-copy h2 {
  max-width: 680px;
  color: #ffffff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .22);
}

.ops-kpi-rail div {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
}

.ops-actions button {
  min-width: 128px;
  box-shadow: 0 12px 28px rgba(11, 99, 206, .18);
}

.ops-actions button.secondary {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .22);
  color: #ffffff;
  box-shadow: none;
}

.ops-stage {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 44%, rgba(11, 99, 206, .1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(244, 248, 246, .9)),
    repeating-linear-gradient(90deg, rgba(11, 99, 206, .06) 0, rgba(11, 99, 206, .06) 1px, transparent 1px, transparent 44px);
}

.ops-stage::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(11, 99, 206, .08);
  border-radius: 12px;
  pointer-events: none;
}

.ops-stage::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  border: 1px solid rgba(11, 99, 206, .08);
  box-shadow: inset 0 0 0 24px rgba(255, 255, 255, .42);
  pointer-events: none;
}

.ops-stage > * {
  position: relative;
  z-index: 1;
}

.ops-stage-orbit {
  border-color: rgba(11, 99, 206, .18);
  background: rgba(255, 255, 255, .34);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.ops-stage-orbit span {
  border-color: rgba(148, 163, 184, .18);
  background: rgba(255, 255, 255, .94);
}

.ops-core {
  border: 1px solid rgba(17, 24, 39, .06);
  background: linear-gradient(180deg, #111827, #1f2937);
}

.ops-board {
  gap: 16px;
}

.ops-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff, #fbfcfd);
}

.ops-panel::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--showcase-blue), var(--showcase-teal), var(--showcase-gold));
  pointer-events: none;
}

.ops-panel > * {
  position: relative;
  z-index: 1;
}

.coverage-card,
.ops-step,
.evidence-stack div,
.pulse-row,
.operating-copy p,
.management-card {
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}

.coverage-card:hover,
.evidence-stack div:hover,
.pulse-row:hover,
.operating-copy p:hover,
.management-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.coverage-card {
  background: linear-gradient(180deg, #ffffff, #f9fafb);
}

.score-ring {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .82);
}

.ops-step {
  border-color: rgba(148, 163, 184, .18);
  background: linear-gradient(180deg, #ffffff, #fbfcfd);
}

.ops-step:hover {
  background: #f7fbff;
  border-color: #bfdbfe;
}

.evidence-stack div,
.pulse-row,
.operating-copy p,
.management-card {
  border-color: rgba(148, 163, 184, .18);
  background: linear-gradient(180deg, #ffffff, #f9fafb);
}

.operating-prompts button {
  justify-content: center;
}

.management-grid {
  gap: 12px;
}

.management-card .small-btn {
  border-color: rgba(191, 219, 254, .8);
}

.ops-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, .72fr);
  gap: 14px;
  margin-bottom: 14px;
}

.ops-copy,
.ops-stage,
.ops-panel {
  min-width: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 14px 34px rgba(15, 23, 42, .05);
}

.ops-copy {
  min-height: 300px;
  padding: 26px;
  align-content: center;
  background:
    linear-gradient(115deg, rgba(7, 16, 36, .96), rgba(15, 67, 117, .78) 54%, rgba(7, 91, 83, .72)),
    url("/assets/industrial-cluster-hero.png") center/cover;
}

.ops-copy h2 {
  max-width: 620px;
  font-size: 34px;
  line-height: 1.14;
  letter-spacing: 0;
}

.ops-copy .subtle {
  max-width: 620px;
}

.ops-kpi-rail {
  gap: 8px;
  margin-top: 18px;
}

.ops-kpi-rail div {
  min-height: 66px;
  padding: 12px;
}

.ops-kpi-rail strong {
  font-size: 24px;
}

.ops-actions {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.ops-actions button {
  min-width: 0;
  width: 100%;
  min-height: 40px;
  padding-inline: 10px;
  font-size: 13px;
}

.ops-stage {
  min-height: 300px;
}

.ops-board {
  gap: 14px;
}

.ops-panel {
  padding: 18px;
}

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

.coverage-card {
  min-height: 132px;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.score-ring {
  width: 62px;
  height: 62px;
}

.score-ring strong {
  font-size: 19px;
}

.evidence-stack div,
.runtime-status-card,
.pulse-row,
.operating-copy p,
.management-card,
.ops-step {
  min-height: auto;
}

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

.management-card {
  padding: 14px;
}

@media (max-width: 1320px) {
  .ops-hero,
  .ops-board {
    grid-template-columns: 1fr;
  }

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

  .operating-points,
  .management-grid {
    grid-template-columns: 1fr;
  }

  .assistant-fab {
    display: grid;
    place-items: center;
  }

  .assistant-panel {
    display: none;
    position: fixed;
    inset: auto 16px 86px auto;
    z-index: 30;
    width: min(520px, calc(100vw - 32px));
    height: min(720px, calc(100vh - 112px));
    border: 1px solid var(--cds-border-subtle);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .18);
  }

  .assistant-panel.expanded {
    display: flex;
    inset: auto 16px 86px auto;
    width: min(720px, calc(100vw - 32px));
    height: min(760px, calc(100vh - 112px));
    max-height: calc(100vh - 112px);
  }
}

@media (max-width: 780px) {
  .workspace-topbar {
    position: static;
  }

  .nav-menu {
    display: flex;
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 12px 14px;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

  .nav-item {
    flex: 0 0 auto;
    min-width: 112px;
    width: auto;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .command-copy {
    min-height: 360px;
  }

  .command-copy h2 {
    font-size: 30px;
  }

  .workflow-showcase {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .workflow-showcase i {
    display: none;
  }

  .command-actions {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    display: none;
  }

  .document-card-list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
  }

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

  .row-actions a,
  .row-actions button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .assistant-panel,
  .assistant-panel.expanded {
    inset: 12px;
    width: auto;
    height: auto;
    max-height: calc(100vh - 24px);
  }

  .ops-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .ops-actions button {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding-inline: 6px;
    font-size: 12px;
  }

  .ops-actions button:first-child,
  .ops-actions button:last-child {
    grid-column: auto;
  }

  .ops-copy {
    min-height: auto;
    padding: 20px;
  }

  .ops-copy h2 {
    font-size: 26px;
  }

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

  .ops-kpi-rail div {
    min-height: 60px;
  }

  .ops-stage {
    min-height: auto;
    padding: 16px;
  }

  .ops-stage::before,
  .ops-stage::after {
    display: none;
  }

  .ops-stage-orbit {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    width: 100%;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
  }

  .ops-stage-orbit span {
    position: static;
    min-width: 0;
    padding: 8px 4px;
    font-size: 12px;
    box-shadow: none;
  }

  .ops-core {
    position: static;
    width: 100%;
    min-height: auto;
    margin-top: 10px;
    padding: 12px;
  }

  .coverage-card {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .score-ring {
    width: 54px;
    height: 54px;
  }

  .assistant-fab {
    right: 14px;
    bottom: 14px;
  }
}

/* Commercial workspace refresh */
:root {
  --enterprise-bg: #f6f7f9;
  --enterprise-surface: #ffffff;
  --enterprise-surface-soft: #f8fafc;
  --enterprise-line: #dfe4ea;
  --enterprise-line-strong: #c9d3df;
  --enterprise-text: #172033;
  --enterprise-muted: #667085;
  --enterprise-blue: #0b63ce;
  --enterprise-blue-soft: #edf5ff;
  --enterprise-teal: #0f766e;
  --enterprise-amber: #b7791f;
  --enterprise-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 22px rgba(16, 24, 40, .04);
  --rail-width: 240px;
  --radius-card: 8px;
  --showcase-surface: #ffffff;
  --showcase-shadow: var(--enterprise-shadow);
}

body {
  background: var(--enterprise-bg);
  color: var(--enterprise-text);
}

.app-shell {
  grid-template-columns: var(--rail-width) minmax(0, 1fr) 344px;
  background: var(--enterprise-bg);
}

.app-shell.assistant-expanded {
  grid-template-columns: var(--rail-width) minmax(0, 1fr) minmax(388px, 420px);
}

.workspace {
  padding: 22px 24px 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0) 180px),
    var(--enterprise-bg);
}

.nav-rail,
.assistant-panel {
  background: rgba(255, 255, 255, .96);
  border-color: var(--enterprise-line);
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.brand-block {
  min-height: 64px;
  padding: 12px 14px;
  border-bottom-color: var(--enterprise-line);
}

.brand-logo,
.brand-mark,
.drop-icon,
.agent-squad strong,
.agent-badge {
  border-radius: 7px;
  background: #0b63ce;
}

.brand-block strong {
  color: var(--enterprise-text);
  font-size: 14px;
}

.brand-block span {
  color: var(--enterprise-muted);
  font-size: 11px;
}

.nav-menu {
  gap: 2px;
  padding: 10px;
}

.nav-item {
  min-height: 38px;
  padding: 0 11px;
  border-radius: 7px;
  color: #4b5563;
  font-size: 14px;
}

.nav-item::before {
  content: "";
  width: 3px;
  height: 16px;
  margin-right: 9px;
  border-radius: 999px;
  background: transparent;
}

.nav-item:hover {
  background: #f3f6fa;
  color: var(--enterprise-text);
}

.nav-item.active {
  background: var(--enterprise-blue-soft);
  border-color: #cfe3ff;
  color: var(--enterprise-blue);
  box-shadow: none;
}

.nav-item.active::before {
  background: var(--enterprise-blue);
}

.nav-footer {
  min-height: 48px;
  border-top-color: var(--enterprise-line);
  color: var(--enterprise-muted);
}

.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  grid-template-columns: minmax(260px, .9fr) minmax(480px, 1.2fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 12px 14px;
  border-color: var(--enterprise-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--enterprise-shadow);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}

.workspace-topbar .eyebrow {
  margin-bottom: 2px;
}

.workspace-topbar h1 {
  font-size: 28px;
  line-height: 1.08;
}

.workspace-topbar .subtle {
  margin-top: 3px;
}

.top-actions {
  gap: 8px;
}

.global-search {
  grid-template-columns: minmax(0, 1fr) 74px;
  gap: 4px;
  padding: 3px;
  border-color: var(--enterprise-line);
  border-radius: 7px;
  background: #f8fafc;
}

.global-search input,
.global-search button {
  min-height: 34px;
}

.global-search input {
  background: transparent;
}

button,
input,
select,
textarea {
  border-radius: 7px;
}

button {
  min-height: 38px;
  padding: 8px 14px;
  background: var(--enterprise-blue);
  box-shadow: none;
}

button:hover {
  background: #0857b8;
}

button.secondary,
.lang-toggle,
.prompt-chips button,
button.text-btn,
button.small-btn {
  background: #ffffff;
  border-color: var(--enterprise-line);
  color: var(--enterprise-blue);
}

button.secondary:hover,
.lang-toggle:hover,
.prompt-chips button:hover,
button.text-btn:hover,
button.small-btn:hover {
  background: var(--enterprise-blue-soft);
  border-color: #b9d8ff;
}

input,
select,
textarea {
  min-height: 38px;
  border-color: var(--enterprise-line);
  background: #ffffff;
}

.eyebrow {
  color: #667085;
  letter-spacing: .02em;
}

.subtle,
.meta {
  color: var(--enterprise-muted);
}

.panel-card,
.plant-map-card,
.control-palette,
.control-knowledge,
.command-copy,
.agent-command-card,
.command-visual,
.stat-card,
.list-item,
.archive-card,
.config-form,
.search-hit,
.timeline-item,
.ops-summary,
.ops-risk-list li,
.ops-action-list li,
.assistant-bubble,
.modal-card,
.project-hero,
.repository-hero,
.search-hero,
.admin-hero,
.control-hero,
.ops-copy,
.ops-stage,
.ops-panel,
.repository-toolbar,
.search-workbar,
.project-metric,
.repository-metric,
.search-metric,
.admin-metric,
.inbox-metric,
.inbox-board > section,
.project-portfolio-card,
.timeline-step,
.object-link-card,
.repository-insight,
.document-card,
.control-entry-panel {
  border-color: var(--enterprise-line);
  background: var(--enterprise-surface);
  box-shadow: var(--enterprise-shadow);
}

.panel-card,
.plant-map-card,
.control-knowledge,
.agent-command-card {
  padding: 15px;
}

.card-head,
.plant-map-head {
  min-height: 38px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom-color: var(--enterprise-line);
}

.card-head h2,
.plant-map-head h2 {
  font-size: 19px;
}

.command-deck {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .8fr);
  gap: 12px;
  margin-bottom: 16px;
}

.command-copy,
.ops-copy {
  min-height: 240px;
  color: var(--enterprise-text);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(239, 246, 255, .88)),
    #ffffff;
}

.command-copy::after,
.ops-copy::after,
#view-operations::before {
  display: none;
}

.command-copy h2,
.ops-copy h2 {
  max-width: 720px;
  color: var(--enterprise-text);
  text-shadow: none;
}

.command-copy h2 {
  font-size: 32px;
}

.command-copy .eyebrow,
.command-copy .subtle,
.ops-copy .eyebrow,
.ops-copy .subtle {
  color: var(--enterprise-muted);
}

.command-visual,
.campus-visual {
  grid-column: 1 / -1;
  min-height: 220px;
  background: #eef2f7;
}

.campus-visual img {
  min-height: 220px;
}

.ops-strip span,
.workflow-showcase span,
.ops-kpi-rail div,
.ops-stage-orbit span,
.doc-card-meta span {
  border-color: #d8e6f8;
  background: var(--enterprise-blue-soft);
  color: #1d4f91;
}

.workflow-showcase {
  grid-template-columns: auto 18px auto 18px auto 18px auto;
  color: #475467;
}

.workflow-showcase i {
  background: #b6c7dc;
}

.command-actions,
.ops-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.command-actions button,
.ops-actions button {
  width: auto;
  min-width: 112px;
  box-shadow: none;
}

.command-actions button.secondary,
.ops-actions button.secondary {
  background: #ffffff;
  border-color: var(--enterprise-line);
  color: var(--enterprise-blue);
}

.ops-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 12px;
  margin-bottom: 12px;
}

.ops-copy {
  min-height: 232px;
  padding: 22px;
  align-content: center;
}

.ops-copy h2 {
  font-size: 30px;
  line-height: 1.16;
}

.ops-kpi-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.ops-kpi-rail div {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 7px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.ops-kpi-rail strong {
  color: var(--enterprise-text);
  font-size: 22px;
}

.ops-kpi-rail span {
  color: var(--enterprise-muted);
}

.ops-stage {
  min-height: 232px;
  padding: 16px;
  place-items: stretch;
  background: #ffffff;
}

.ops-stage::before,
.ops-stage::after {
  display: none;
}

.ops-stage-orbit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
  width: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
}

.ops-stage-orbit span {
  position: static;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  box-shadow: none;
  font-size: 13px;
}

.ops-stage-orbit span::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--enterprise-blue);
}

.ops-core {
  position: static;
  width: 100%;
  min-height: 74px;
  margin-top: 8px;
  padding: 12px;
  border-radius: 7px;
  background: #172033;
  box-shadow: none;
}

.ops-core strong {
  font-size: 17px;
}

.ops-board {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .82fr);
  gap: 12px;
}

.ops-panel {
  padding: 16px;
  overflow: hidden;
}

.ops-panel::before {
  height: 2px;
  background: var(--enterprise-blue);
}

.coverage-grid {
  gap: 9px;
}

.coverage-card {
  min-height: 118px;
  grid-template-columns: 58px minmax(0, 1fr);
  padding: 12px;
  background: var(--enterprise-surface-soft);
}

.score-ring {
  width: 54px;
  height: 54px;
}

.score-ring strong {
  font-size: 18px;
}

.score-ring::before {
  inset: 6px;
}

.evidence-stack div,
.pulse-row,
.operating-copy p,
.management-card,
.ops-step,
.control-ledger-card,
.control-widget,
.agent-squad article,
.knowledge-flow div {
  border-color: var(--enterprise-line);
  background: var(--enterprise-surface-soft);
  box-shadow: none;
}

.coverage-card:hover,
.evidence-stack div:hover,
.runtime-status-card:hover,
.pulse-row:hover,
.operating-copy p:hover,
.management-card:hover {
  transform: none;
  box-shadow: var(--enterprise-shadow);
}

.management-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.management-card {
  min-height: 132px;
  padding: 12px;
}

.project-hero,
.repository-hero,
.search-hero,
.admin-hero,
.control-hero {
  min-height: 104px;
  padding: 18px;
  background: #ffffff;
}

.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2,
.control-hero h2 {
  font-size: 25px;
}

.project-metrics,
.repository-metrics,
.search-metrics,
.admin-metrics,
.inbox-overview {
  gap: 8px;
}

.project-metric,
.repository-metric,
.search-metric,
.admin-metric,
.inbox-metric,
.stat-card {
  min-height: 72px;
  padding: 12px;
}

.project-metric strong,
.repository-metric strong,
.search-metric strong,
.admin-metric strong,
.inbox-metric strong,
.stat-card strong {
  font-size: 22px;
}

.repository-toolbar,
.search-workbar,
.ai-dropzone {
  background: #ffffff;
  box-shadow: var(--enterprise-shadow);
}

.repository-toolbar {
  grid-template-columns: minmax(220px, 1.35fr) minmax(180px, 1fr) repeat(4, minmax(138px, .82fr)) auto;
  padding: 12px;
}

.search-workbar {
  grid-template-columns: minmax(240px, 1.3fr) repeat(4, minmax(136px, .82fr)) 92px 122px;
}

.search-workbar input {
  font-size: 15px;
}

.search-hit,
.document-card,
.archive-card,
.project-portfolio-card,
.timeline-step,
.object-link-card,
.repository-insight {
  transition: border-color .14s ease, background-color .14s ease, box-shadow .14s ease;
}

.search-hit:hover,
.document-card:hover,
.archive-card:hover,
.project-portfolio-card:hover,
.timeline-step:hover,
.object-link-card:hover,
.repository-insight:hover {
  border-color: #b9d8ff;
  background: #fbfdff;
}

.table-wrap {
  border-color: var(--enterprise-line);
  box-shadow: none;
}

.repository-list-panel .table-wrap.roomy {
  max-height: min(720px, calc(100vh - 230px));
  overflow: auto;
}

.repository-list-panel .data-table {
  min-width: 980px;
  table-layout: fixed;
}

.repository-list-panel .asset-table {
  min-width: 1120px;
}

.repository-list-panel .asset-table th:nth-child(1) { width: 44px; }
.repository-list-panel .asset-table th:nth-child(2) { width: 28%; }
.repository-list-panel .asset-table th:nth-child(3) { width: 18%; }
.repository-list-panel .asset-table th:nth-child(4) { width: 12%; }
.repository-list-panel .asset-table th:nth-child(5) { width: 11%; }
.repository-list-panel .asset-table th:nth-child(6) { width: 7%; }
.repository-list-panel .asset-table th:nth-child(7) { width: 12%; }
.repository-list-panel .asset-table th:nth-child(8) { width: 170px; }

.storage-overview-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) repeat(4, minmax(132px, .62fr));
  gap: 10px;
  margin: -2px 0 12px;
}

.storage-overview-card {
  min-width: 0;
  min-height: 112px;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 13px;
  border: 1px solid #dce7f5;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(247, 251, 255, .92)),
    #ffffff;
  color: #344054;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .055);
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

button.storage-overview-card {
  cursor: pointer;
}

button.storage-overview-card:hover,
button.storage-overview-card:focus {
  border-color: #9ec5fe;
  background: #fbfdff;
  box-shadow: 0 18px 42px rgba(11, 100, 192, .11);
  transform: translateY(-1px);
}

.storage-overview-card > span,
.storage-overview-card small,
.storage-overview-main span {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.storage-overview-card strong,
.storage-overview-card h3 {
  margin: 0;
  color: #101828;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -.02em;
}

.storage-overview-card .eyebrow {
  margin: 0 0 4px;
}

.storage-overview-main {
  grid-column: span 2;
  grid-template-columns: minmax(0, 1fr) minmax(156px, .72fr);
  align-items: stretch;
  background:
    radial-gradient(circle at 12% 0%, rgba(0, 102, 204, .14), transparent 34%),
    linear-gradient(135deg, #ffffff, #f4f9ff 58%, rgba(236, 253, 245, .74));
}

.storage-overview-current {
  display: grid;
  gap: 5px;
  align-content: center;
  padding: 10px;
  border: 1px solid rgba(11, 100, 192, .14);
  border-radius: 13px;
  background: rgba(255, 255, 255, .72);
}

.storage-overview-current strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0757a6;
  font-size: 14px;
}

.storage-overview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}

.storage-overview-actions .tiny-btn {
  border-color: rgba(11, 100, 192, .22);
  background: rgba(255, 255, 255, .82);
  color: #0757a6;
  font-weight: 750;
}

.storage-overview-actions .tiny-btn:hover,
.storage-overview-actions .tiny-btn:focus-visible {
  border-color: rgba(11, 100, 192, .4);
  background: #eef6ff;
}

.storage-overview-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.storage-overview-list button {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 11px;
  background: rgba(255, 255, 255, .7);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.storage-overview-list button:hover,
.storage-overview-list button:focus-visible {
  border-color: rgba(11, 100, 192, .32);
  background: #f8fbff;
}

.storage-overview-list strong,
.storage-overview-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-overview-list strong {
  font-size: 13px;
  line-height: 1.2;
}

.storage-favorite-card {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  border-color: rgba(11, 100, 192, .18);
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, .18), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(241, 248, 255, .94));
}

.storage-favorite-card::before {
  content: "";
  position: absolute;
  inset: 10px 10px auto auto;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(0, 113, 227, .18), rgba(13, 148, 136, .12));
  opacity: .72;
  pointer-events: none;
}

.storage-favorite-list {
  position: relative;
  z-index: 1;
  gap: 8px;
}

.storage-favorite-list > small {
  display: block;
  padding: 9px 10px;
  border: 1px dashed rgba(11, 100, 192, .22);
  border-radius: 12px;
  background: rgba(255, 255, 255, .62);
}

.storage-favorite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.storage-favorite-row > button:first-child {
  position: relative;
  padding-left: 30px;
  border-color: rgba(11, 100, 192, .18);
  background: rgba(255, 255, 255, .82);
}

.storage-favorite-row > button:first-child::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0071e3, #0d9488);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .09);
  transform: translateY(-50%);
}

.storage-favorite-row .tiny-btn {
  min-height: 32px;
  padding: 5px 9px;
  border-color: rgba(148, 163, 184, .28);
  background: rgba(255, 255, 255, .86);
  color: #475467;
  white-space: nowrap;
}

.storage-share-card {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  border-color: rgba(13, 148, 136, .18);
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, .16), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, .98), rgba(239, 253, 250, .94));
}

.storage-share-list {
  position: relative;
  z-index: 1;
  gap: 8px;
}

.storage-share-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.storage-share-note {
  max-width: 190px;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.storage-share-row.inactive {
  opacity: .62;
}

.storage-share-row button[disabled] {
  cursor: default;
  opacity: .76;
}

.storage-share-modal {
  max-width: min(560px, calc(100vw - 28px));
}

.share-target-card {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(11, 100, 192, .16);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 113, 227, .1), transparent 32%),
    linear-gradient(135deg, rgba(248, 251, 255, .96), rgba(255, 255, 255, .98));
}

.share-target-card span,
.share-target-card small {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.share-target-card strong {
  overflow: hidden;
  color: #101828;
  font-size: 16px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-share-settings {
  display: grid;
  grid-template-columns: minmax(130px, .7fr) minmax(180px, 1.3fr);
  gap: 12px;
}

.storage-share-settings label {
  margin: 0;
}

@media (max-width: 780px) {
  .storage-share-settings {
    grid-template-columns: 1fr;
  }
}

.storage-recent-card,
.storage-root-card {
  grid-column: span 2;
}

.storage-space-card.active {
  border-color: rgba(11, 100, 192, .38);
  background: linear-gradient(145deg, #eef6ff, #ffffff);
}

.storage-space-card.active strong {
  color: #0757a6;
}

.storage-capacity-card {
  grid-column: span 2;
}

.storage-capacity-card.warn {
  border-color: #fde68a;
  background: #fffbeb;
}

.asset-drive-grid {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr) minmax(300px, 380px);
  gap: 12px;
  align-items: start;
}

.storage-drive-strip {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, .82fr) minmax(0, 2.2fr);
  gap: 14px;
  align-items: stretch;
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #dce7f5;
  border-radius: 18px;
  background:
    radial-gradient(circle at 18% 0%, rgba(0, 102, 204, .13), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(244, 249, 255, .96) 54%, rgba(240, 253, 250, .82)),
    #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .065);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
  overflow: hidden;
}

.storage-drive-strip::after {
  content: attr(data-drop-label);
  position: absolute;
  inset: 9px;
  z-index: 5;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(11, 100, 192, .48);
  border-radius: 15px;
  background: rgba(239, 248, 255, .9);
  color: #0757a6;
  font-weight: 800;
  letter-spacing: -.01em;
  opacity: 0;
  pointer-events: none;
  transform: scale(.985);
  transition: opacity .16s ease, transform .16s ease;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.storage-drive-strip.drag-over {
  border-color: rgba(11, 100, 192, .58);
  box-shadow: 0 22px 58px rgba(11, 100, 192, .18);
  transform: translateY(-1px);
}

.storage-drive-strip.drag-over::after {
  opacity: 1;
  transform: scale(1);
}

.storage-drive-strip.uploading {
  border-color: rgba(14, 165, 233, .5);
}

.storage-drive-strip.storage-disabled {
  opacity: .84;
}

.storage-drive-head {
  min-width: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
}

.storage-drive-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.01em;
}

.storage-drop-hint {
  margin: 4px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.storage-drive-head .chip {
  flex: 0 0 auto;
  border-color: #cfe1f8;
  background: #eef6ff;
  color: #0757a6;
  font-weight: 700;
}

.storage-drive-actions {
  display: grid;
  grid-template-columns: minmax(230px, auto) minmax(220px, 1fr) repeat(5, auto);
  gap: 10px;
  align-items: end;
}

.storage-insight-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 10px;
  align-items: start;
}

.storage-mini-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.storage-mini-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .76);
  color: #475467;
  font-size: 12px;
  font-weight: 650;
}

.storage-capacity-meter {
  width: 76px;
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, .22);
}

.storage-capacity-meter b {
  display: block;
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
  background: linear-gradient(90deg, #0b64c0, #2dd4bf);
}

.storage-mini-stats span.warn .storage-capacity-meter b {
  background: linear-gradient(90deg, #f59e0b, #ef4444);
}

.storage-mini-stats span.good {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.storage-mini-stats span.warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.storage-progress-panel {
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 12px;
  background: rgba(255, 255, 255, .84);
}

.storage-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #475467;
  font-size: 12px;
}

.storage-progress-head strong {
  color: #101828;
}

.storage-progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e7eb;
}

.storage-progress-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0066cc, #2dd4bf);
  transition: width .18s ease;
}

.storage-progress-bar.done span {
  background: var(--cds-green);
}

.storage-skip-list {
  margin-top: 10px;
  color: #92400e;
  font-size: 12px;
}

.storage-skip-list ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.storage-breadcrumb-row {
  grid-column: 2;
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  margin-top: -4px;
}

.storage-breadcrumbs {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  overflow-x: auto;
  padding: 5px 6px;
  border: 1px solid #dbe7f4;
  border-radius: 999px;
  background: rgba(255, 255, 255, .72);
}

.storage-breadcrumbs span {
  color: #98a2b3;
  font-size: 12px;
}

.storage-breadcrumbs button {
  min-height: 26px;
  padding: 4px 9px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475467;
  box-shadow: none;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.storage-breadcrumbs button:hover,
.storage-breadcrumbs button:focus {
  background: #eef6ff;
  color: #0757a6;
}

.storage-breadcrumbs button.active {
  background: #0b64c0;
  color: #ffffff;
}

.storage-space-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(78px, 1fr));
  gap: 4px;
  align-self: end;
  padding: 4px;
  border: 1px solid #d8e0eb;
  border-radius: 999px;
  background: rgba(248, 250, 252, .92);
}

.storage-space-tabs button {
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  border-color: transparent;
  background: transparent;
  color: #536173;
  box-shadow: none;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.storage-space-tabs button:hover {
  background: #ffffff;
  color: #0757a6;
}

.storage-space-tabs button.active,
.storage-space-tabs button[aria-pressed="true"] {
  background: #0b64c0;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 102, 204, .2);
}

.storage-path-field {
  min-width: 0;
  display: grid;
  gap: 5px;
  margin: 0;
}

.storage-path-field span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.storage-path-field input {
  width: 100%;
  min-height: 38px;
  border-color: #d8e0eb;
  border-radius: 11px;
  background: #ffffff;
  font-family: "SF Mono", "Cascadia Mono", "Roboto Mono", Consolas, monospace;
  font-size: 13px;
}

.storage-drive-actions > button {
  min-height: 38px;
  border-radius: 11px;
  white-space: nowrap;
}

.storage-drive-board {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #dce7f5;
  border-radius: 16px;
  background:
    radial-gradient(circle at 8% 0%, rgba(11, 100, 192, .1), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .94));
  box-shadow: 0 12px 34px rgba(15, 23, 42, .045);
}

.storage-drive-board[hidden] {
  display: none;
}

.storage-board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.storage-board-head div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.storage-board-head span,
.storage-board-head small,
.storage-board-head em {
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}

.storage-board-head strong {
  overflow: hidden;
  color: #101828;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-board-head em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border: 1px solid #dbe7f4;
  border-radius: 999px;
  background: #ffffff;
  font-style: normal;
  font-weight: 720;
}

.storage-board-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 10px;
}

.storage-board-search {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.storage-board-search span {
  color: #667085;
  font-size: 12px;
  font-weight: 760;
}

.storage-board-search input {
  min-height: 34px;
  border-color: #d8e0eb;
  border-radius: 11px;
  background: rgba(255, 255, 255, .95);
  font-size: 13px;
}

.storage-board-filter-group,
.storage-board-view-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.storage-board-filter-group .tiny-btn.active,
.storage-board-view-toggle .tiny-btn.active {
  border-color: rgba(0, 113, 227, .34);
  background: #0b64c0;
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(0, 102, 204, .16);
}

.storage-board-filter-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 10px;
  padding: 8px 10px;
  border: 1px solid rgba(11, 100, 192, .16);
  border-radius: 12px;
  background: rgba(238, 246, 255, .76);
  color: #475467;
  font-size: 12px;
}

.storage-board-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 12px;
}

.storage-board-empty {
  grid-column: 1 / -1;
  min-height: 146px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px dashed rgba(11, 100, 192, .28);
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 113, 227, .1), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(244, 249, 255, .92));
  color: #475467;
}

.storage-board-empty.filter-empty {
  border-color: rgba(148, 163, 184, .32);
  background:
    radial-gradient(circle at 0% 0%, rgba(148, 163, 184, .11), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(248, 250, 252, .94));
}

.storage-board-empty-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, #dbeafe, #eef6ff);
  color: #0757a6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -.02em;
  box-shadow: inset 0 0 0 1px rgba(11, 100, 192, .08);
}

.storage-board-empty strong {
  display: block;
  color: #101828;
  font-size: 16px;
  line-height: 1.25;
}

.storage-board-empty p {
  max-width: 720px;
  margin: 6px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.storage-board-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.storage-board-empty-actions .tiny-btn {
  min-height: 32px;
  padding: 5px 11px;
  border-color: rgba(11, 100, 192, .2);
  color: #0757a6;
}

.storage-board-grid.list-mode {
  grid-template-columns: 1fr;
}

.storage-board-grid.list-mode .storage-board-item {
  min-height: 0;
  grid-template-columns: minmax(220px, .9fr) minmax(260px, 1.35fr) auto;
  align-items: start;
  gap: 12px;
}

.storage-board-grid.list-mode .storage-board-meta-grid {
  grid-column: 2;
  grid-row: 1 / span 3;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
}

.storage-board-grid.list-mode .storage-board-card-top,
.storage-board-grid.list-mode .storage-board-open,
.storage-board-grid.list-mode .storage-board-file-main,
.storage-board-grid.list-mode .storage-board-archive-row {
  grid-column: 1;
}

.storage-board-grid.list-mode .storage-board-file-head {
  justify-content: flex-start;
}

.storage-board-grid.list-mode .storage-board-actions {
  grid-column: 3;
  grid-row: 1 / span 3;
  justify-content: flex-end;
}

.storage-board-item {
  min-width: 0;
  display: grid;
  gap: 10px;
  align-content: space-between;
  min-height: 236px;
  padding: 13px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .88));
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease, background .16s ease;
}

.storage-board-item:hover,
.storage-board-item.active {
  border-color: rgba(11, 100, 192, .34);
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(11, 100, 192, .09);
  transform: translateY(-1px);
}

.storage-board-item.controlled {
  border-color: rgba(13, 148, 136, .34);
  background:
    radial-gradient(circle at 100% 0%, rgba(13, 148, 136, .09), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, .97), rgba(247, 253, 252, .9));
}

.storage-board-item.favorite {
  border-color: rgba(0, 113, 227, .32);
  background:
    radial-gradient(circle at 100% 0%, rgba(0, 113, 227, .1), transparent 32%),
    rgba(255, 255, 255, .9);
}

.storage-board-card-top {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.storage-board-statuses {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  justify-content: flex-end;
}

.storage-board-status {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #475467;
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
  white-space: nowrap;
}

.storage-board-status.folder,
.storage-board-status.file {
  border-color: rgba(11, 100, 192, .18);
  background: #eef6ff;
  color: #0757a6;
}

.storage-board-status.pinned,
.storage-board-status.versioned {
  border-color: rgba(0, 113, 227, .2);
  background: #eff6ff;
  color: #0b64c0;
}

.storage-board-status.controlled {
  border-color: rgba(13, 148, 136, .22);
  background: #ecfdf7;
  color: #08756b;
}

.storage-board-status.editable {
  border-color: rgba(22, 163, 74, .2);
  background: #f0fdf4;
  color: #15803d;
}

.storage-board-open,
.storage-board-file-main {
  min-width: 0;
  display: grid;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  box-shadow: none;
  text-align: left;
}

.storage-board-open {
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.storage-folder-select {
  align-self: start;
}

.storage-board-open:hover,
.storage-board-open:focus,
.storage-board-file-main:hover,
.storage-board-file-main:focus {
  background: transparent;
  box-shadow: none;
}

.storage-board-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(135deg, #dbeafe, #eef6ff);
  color: #0757a6;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.storage-board-file-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.storage-board-archive-row {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.storage-board-file-main strong,
.storage-board-open strong {
  overflow: hidden;
  color: #101828;
  font-size: 15px;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-board-file-main small,
.storage-board-open small {
  overflow: hidden;
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-board-meta-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.storage-board-meta-item {
  min-width: 0;
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid rgba(226, 232, 240, .92);
  border-radius: 11px;
  background: rgba(255, 255, 255, .68);
}

.storage-board-meta-item b,
.storage-board-meta-item em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.storage-board-meta-item b {
  color: #667085;
  font-size: 10px;
  font-weight: 780;
}

.storage-board-meta-item em {
  color: #182230;
  font-size: 12px;
  font-style: normal;
  font-weight: 740;
}

.storage-board-meta-item.path {
  grid-column: 1 / -1;
}

.storage-board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.storage-board-actions .tiny-btn {
  min-height: 28px;
  padding: 4px 8px;
}

.storage-board-actions .tiny-btn.active {
  border-color: rgba(0, 113, 227, .34);
  background: #eef6ff;
  color: #0757a6;
  font-weight: 780;
}

@media (max-width: 920px) {
  .storage-board-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .storage-board-filter-group,
  .storage-board-view-toggle {
    justify-content: flex-start;
  }

  .storage-board-grid.list-mode .storage-board-item {
    grid-template-columns: 1fr;
  }

  .storage-board-grid.list-mode .storage-board-meta-grid {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .storage-board-grid.list-mode .storage-board-card-top,
  .storage-board-grid.list-mode .storage-board-open,
  .storage-board-grid.list-mode .storage-board-file-main,
  .storage-board-grid.list-mode .storage-board-archive-row,
  .storage-board-grid.list-mode .storage-board-actions {
    grid-column: auto;
    grid-row: auto;
  }
}

.asset-folder-panel,
.asset-detail-side {
  min-width: 0;
}

.asset-folder-tree {
  display: grid;
  gap: 14px;
  max-height: min(760px, calc(100vh - 220px));
  overflow: auto;
  padding-right: 2px;
}

.asset-folder-group {
  display: grid;
  gap: 6px;
}

.asset-folder-group > p {
  margin: 0 0 2px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.asset-folder {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #ffffff;
  color: #344054;
  text-align: left;
}

.asset-folder-main {
  min-width: 0;
  min-height: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  box-shadow: none;
}

.asset-folder-main:hover,
.asset-folder-main:focus {
  background: transparent;
  color: inherit;
  box-shadow: none;
}

.asset-folder span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-folder strong {
  min-width: 26px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #f2f4f7;
  color: #475467;
  font-size: 12px;
  text-align: center;
}

.asset-folder.active,
.asset-folder:hover {
  border-color: #b9d8ff;
  background: #f4f9ff;
  color: #064f9e;
}

.asset-folder.active strong {
  background: #dbeafe;
  color: #0757a6;
}

.asset-folder.storage-folder {
  grid-template-columns: 18px minmax(0, 1fr);
  border-color: #dce7f5;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .96)),
    #ffffff;
}

.asset-folder.storage-folder::before {
  content: "";
  width: 16px;
  height: 13px;
  border-radius: 4px 4px 3px 3px;
  background:
    linear-gradient(180deg, #7dbbff, #0b64c0);
  box-shadow:
    0 -4px 0 -1px #b8dafd,
    0 6px 12px rgba(0, 102, 204, .16);
}

.asset-folder.storage-folder:hover,
.asset-folder.storage-folder.active {
  border-color: #8ec5ff;
  background: #eef6ff;
}

.asset-folder.storage-folder.active::before {
  background: linear-gradient(180deg, #0b64c0, #084a8f);
}

.asset-folder-actions {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.asset-folder.storage-folder {
  align-items: start;
}

.tiny-btn {
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid #d7e3f2;
  background: #ffffff;
  color: #536173;
  font-size: 11px;
  font-weight: 700;
  box-shadow: none;
}

.tiny-btn:hover {
  border-color: #9fc9f8;
  background: #f4f9ff;
  color: #0757a6;
}

.tiny-btn.danger {
  border-color: #ffd8d8;
  color: #b42318;
}

.tiny-btn.danger:hover {
  background: #fff5f5;
  color: #8a1f16;
}

.asset-bulk-bar {
  display: grid;
  grid-template-columns: minmax(180px, .72fr) minmax(320px, 1.3fr) minmax(260px, auto);
  gap: 10px;
  align-items: stretch;
  margin-bottom: 10px;
  padding: 11px;
  border: 1px solid #dce7f5;
  border-radius: 16px;
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 113, 227, .09), transparent 30%),
    linear-gradient(135deg, rgba(255, 255, 255, .97), rgba(248, 251, 255, .94));
  box-shadow: 0 10px 28px rgba(15, 23, 42, .045);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.asset-bulk-bar.has-selection {
  border-color: rgba(0, 113, 227, .28);
  background:
    radial-gradient(circle at 0% 0%, rgba(0, 113, 227, .14), transparent 30%),
    linear-gradient(135deg, #ffffff, #f1f7ff);
  box-shadow: 0 16px 36px rgba(11, 100, 192, .085);
}

.asset-bulk-bar.trash-mode {
  border-color: rgba(245, 158, 11, .28);
  background:
    radial-gradient(circle at 0% 0%, rgba(245, 158, 11, .12), transparent 30%),
    linear-gradient(135deg, #ffffff, #fffbeb);
}

.asset-bulk-summary {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: center;
}

.asset-bulk-summary span {
  color: #475467;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.asset-bulk-summary small {
  color: #667085;
  font-size: 12px;
  line-height: 1.35;
}

.asset-bulk-fields,
.asset-bulk-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
}

.asset-bulk-fields[hidden] {
  display: none;
}

.asset-bulk-fields select,
.asset-bulk-fields input {
  flex: 1 1 116px;
  min-width: 0;
  height: 34px;
  font-size: 12px;
}

.asset-bulk-fields #assetBulkStoragePathInput {
  flex-basis: 190px;
}

.asset-bulk-actions {
  justify-content: flex-end;
}

.asset-bulk-actions button {
  min-height: 34px;
  border-radius: 10px;
  white-space: nowrap;
}

.asset-title {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.asset-file-type {
  width: 42px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(135deg, #eaf3ff, #f8fbff);
  color: #0757a6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

.asset-table tr.active-row,
.asset-table tr:hover {
  background: #f8fbff;
}

.asset-select-control {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.asset-select-control span {
  color: #0757a6;
  font-size: 11px;
  font-weight: 800;
}

.asset-card.active {
  border-color: #8ec5ff;
  background: #f4f9ff;
}

.asset-detail-panel {
  position: sticky;
  top: 14px;
}

.asset-detail-body {
  display: grid;
  gap: 12px;
}

.asset-detail-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.asset-detail-head h3 {
  margin: 0 0 4px;
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
  word-break: break-word;
}

.asset-preview {
  min-height: 220px;
  max-height: 360px;
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f8fafc;
}

.asset-preview iframe,
.asset-preview img {
  width: 100%;
  min-height: 320px;
  display: block;
  border: 0;
}

.asset-preview img {
  min-height: auto;
  object-fit: contain;
}

.asset-preview pre {
  margin: 0;
  padding: 12px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #344054;
  font-size: 12px;
  line-height: 1.55;
}

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

.asset-detail-grid div {
  min-width: 0;
  padding: 9px;
  border: 1px solid #eef2f7;
  border-radius: 10px;
  background: #ffffff;
}

.asset-detail-grid span {
  display: block;
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.asset-detail-grid strong {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #111827;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-summary {
  margin: 0;
  color: #344054;
  font-size: 13px;
  line-height: 1.58;
}

.asset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.asset-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0757a6;
  font-size: 12px;
  font-weight: 700;
}

.asset-audit-trail-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, .72), rgba(255, 255, 255, .98)),
    #ffffff;
}

.asset-audit-head {
  display: grid;
  gap: 4px;
}

.asset-audit-head strong {
  color: #111827;
  font-size: 13px;
}

.asset-audit-head span {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

.asset-audit-list {
  display: grid;
  gap: 8px;
}

.asset-audit-item {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.asset-audit-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .12);
}

.asset-audit-item strong {
  display: block;
  color: #1d4ed8;
  font-size: 12px;
}

.asset-audit-item p,
.asset-audit-item em {
  display: block;
  margin: 2px 0 0;
  color: #475467;
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.asset-audit-item em {
  color: #667085;
}

.data-table th {
  height: 36px;
  background: #f8fafc;
  color: #667085;
}

.data-table td {
  padding: 11px 14px;
  vertical-align: top;
}

.data-table td strong,
.data-table td .meta,
.doc-card-meta span,
.archive-card .list-title strong,
.search-hit .list-title strong {
  overflow: hidden;
  text-overflow: ellipsis;
}

.data-table td strong,
.archive-card .list-title strong,
.search-hit .list-title strong {
  display: block;
  max-width: 100%;
  white-space: nowrap;
}

.data-table td .meta {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.row-actions {
  flex-wrap: wrap;
  gap: 6px;
}

.row-actions a,
.row-actions button {
  min-height: 30px;
  padding: 5px 8px;
  font-size: 12px;
}

.inbox-board > section {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: 520px;
}

.inbox-board .archive-queue {
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.scan-history-panel,
.scan-history-card {
  border-color: var(--enterprise-line);
}

.scan-history-card {
  background: #fbfcfe;
}

.role-card {
  border-color: var(--enterprise-line);
  background: #fbfcfe;
}

.permission-chips span {
  border-color: #dbeafe;
  background: #f8fbff;
}

#autoArchiveQueue {
  max-height: 480px;
  overflow: auto;
}

#templateList,
#userList,
#logList {
  max-height: 620px;
  overflow: auto;
  padding-right: 2px;
}

.admin-grid > .panel-card {
  min-width: 0;
}

.config-status .status-item,
.config-form {
  min-width: 0;
}

.chip,
.badge {
  min-height: 22px;
  padding: 3px 8px;
  border-color: var(--enterprise-line);
  background: #f8fafc;
  color: #344054;
  font-size: 12px;
}

.assistant-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  overflow: hidden;
}

.assistant-panel.expanded {
  position: sticky;
  top: 0;
  right: auto;
  bottom: auto;
  width: auto;
  height: 100vh;
  border-width: 0 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.assistant-panel::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .92), rgba(248, 250, 252, .96));
}

.assistant-head {
  min-height: 64px;
  padding: 12px 14px;
}

.agent-stage {
  margin: 12px 14px 0;
  grid-template-columns: 70px minmax(0, 1fr);
  background: #f8fbff;
  border-color: #d8e6f8;
  box-shadow: none;
}

.agent-status {
  color: var(--enterprise-text);
}

.agent-steps span {
  border-color: var(--enterprise-line);
  background: #ffffff;
  color: var(--enterprise-muted);
}

.agent-steps span.active {
  border-color: #b9d8ff;
  background: var(--enterprise-blue-soft);
  color: var(--enterprise-blue);
}

.prompt-chips,
.assistant-ops,
.ask-form {
  border-color: var(--enterprise-line);
  background: #ffffff;
}

.chatlog {
  padding: 14px;
}

@media (max-width: 1599px) {
  .app-shell,
  .app-shell.assistant-expanded {
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
  }

  .assistant-fab {
    display: grid;
    place-items: center;
  }

  .assistant-panel {
    display: none;
    position: fixed;
    inset: auto 18px 88px auto;
    z-index: 30;
    width: min(560px, calc(100vw - 36px));
    height: min(740px, calc(100vh - 116px));
    border: 1px solid var(--enterprise-line);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .18);
  }

  .assistant-panel.expanded {
    display: flex;
    position: fixed;
    inset: auto 18px 88px auto;
    width: min(680px, calc(100vw - 36px));
    height: min(760px, calc(100vh - 116px));
    border: 1px solid var(--enterprise-line);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .18);
  }
}

@media (min-width: 1600px) {
  .app-shell {
    grid-template-columns: var(--rail-width) minmax(0, 1fr) 360px;
  }

  .app-shell.assistant-expanded {
    grid-template-columns: var(--rail-width) minmax(0, 1fr) 440px;
  }
}

@media (max-width: 1320px) {
  .workspace-topbar,
  .ops-hero,
  .ops-board,
  .project-work-grid,
  .repository-work-grid,
  .search-work-grid,
  .repository-toolbar {
    grid-template-columns: 1fr;
  }

  .repository-list-panel .table-wrap.roomy {
    max-height: none;
  }
}

@media (max-width: 780px) {
  .app-shell,
  .app-shell.assistant-expanded {
    grid-template-columns: minmax(0, 1fr);
  }

  .workspace {
    padding: 12px;
  }

  .workspace-topbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .nav-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 12px 12px;
    scroll-snap-type: x mandatory;
  }

  .nav-item {
    flex: 0 0 auto;
    min-width: 112px;
    justify-content: center;
    white-space: nowrap;
  }

  .nav-item::before {
    display: none;
  }

  .ops-kpi-rail,
  .coverage-grid,
  .management-grid,
  .repository-toolbar,
  .search-workbar,
  .ops-actions,
  .command-actions,
  .workflow-showcase {
    grid-template-columns: 1fr;
  }

  .command-actions,
  .ops-actions {
    display: grid;
  }

  .command-actions button,
  .ops-actions button {
    width: 100%;
  }

  .workflow-showcase i {
    display: none;
  }

  .ops-copy h2,
  .command-copy h2 {
    font-size: 26px;
  }

  .assistant-panel,
  .assistant-panel.expanded {
    inset: 12px;
    width: auto;
    height: auto;
    max-height: calc(100vh - 24px);
  }
}

/* Production workspace refinement */
:root {
  --prod-bg: #f4f6f8;
  --prod-surface: #ffffff;
  --prod-soft: #f8fafc;
  --prod-line: #d9e0e8;
  --prod-line-strong: #c4ceda;
  --prod-text: #182230;
  --prod-muted: #667085;
  --prod-blue: #0a5fc7;
  --prod-blue-soft: #edf5ff;
  --prod-teal: #0f766e;
  --prod-amber: #a16207;
  --prod-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 10px 24px rgba(16, 24, 40, .04);
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .82), rgba(244, 246, 248, 0) 210px),
    var(--prod-bg);
}

.app-shell,
.app-shell.assistant-expanded {
  grid-template-columns: 236px minmax(0, 1fr) 356px;
  background: var(--prod-bg);
}

.workspace {
  padding: 18px 20px 26px;
  background: transparent;
}

.nav-rail {
  background: #ffffff;
  border-right: 1px solid var(--prod-line);
}

.brand-block {
  min-height: 60px;
  padding: 11px 14px;
}

.brand-logo {
  width: 36px;
  height: 36px;
}

.brand-block strong {
  font-size: 13px;
}

.brand-block span {
  font-size: 11px;
}

.nav-menu {
  gap: 1px;
  padding: 8px;
}

.nav-item {
  min-height: 36px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 13px;
}

.nav-item.active {
  background: var(--prod-blue-soft);
  border-color: #cfe3ff;
  box-shadow: none;
}

.workspace-topbar {
  grid-template-columns: minmax(230px, .78fr) minmax(460px, 1fr);
  margin-bottom: 14px;
  padding: 10px 12px;
  border-color: var(--prod-line);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--prod-shadow);
}

.workspace-topbar h1 {
  font-size: 24px;
}

.workspace-topbar .subtle {
  font-size: 12px;
}

.top-actions {
  align-items: center;
}

.global-search {
  max-width: 640px;
  border-color: var(--prod-line);
  background: #f8fafc;
}

.global-search input,
.global-search button,
.lang-toggle,
.avatar-btn {
  min-height: 34px;
}

.panel-card,
.plant-map-card,
.control-palette,
.control-knowledge,
.command-copy,
.agent-command-card,
.command-visual,
.stat-card,
.archive-card,
.config-form,
.search-hit,
.timeline-item,
.project-hero,
.repository-hero,
.search-hero,
.admin-hero,
.control-hero,
.ops-copy,
.ops-stage,
.ops-panel,
.repository-toolbar,
.search-workbar,
.project-metric,
.repository-metric,
.search-metric,
.admin-metric,
.inbox-metric,
.inbox-board > section,
.project-portfolio-card,
.timeline-step,
.object-link-card,
.repository-insight,
.document-card,
.control-entry-panel,
.control-widget {
  border-color: var(--prod-line);
  background: var(--prod-surface);
  box-shadow: var(--prod-shadow);
}

.panel-card,
.plant-map-card,
.control-knowledge,
.agent-command-card,
.ops-panel {
  padding: 14px;
}

.card-head,
.plant-map-head {
  min-height: 34px;
  margin-bottom: 10px;
  padding-bottom: 9px;
}

.card-head h2,
.plant-map-head h2 {
  font-size: 18px;
}

.project-hero,
.repository-hero,
.search-hero,
.admin-hero,
.control-hero {
  min-height: 96px;
  padding: 16px;
}

.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2,
.control-hero h2 {
  font-size: 23px;
}

.search-console {
  gap: 10px;
}

.search-hero {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(237, 245, 255, .82), rgba(255, 255, 255, .98) 54%),
    #ffffff;
}

.search-hero .chip {
  justify-self: end;
  max-width: 420px;
  white-space: normal;
  text-align: right;
}

.search-workbar {
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(132px, .78fr)) 84px 112px;
  gap: 8px;
  padding: 10px;
  border-color: var(--prod-line);
}

.search-workbar label {
  gap: 5px;
}

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

.search-workbar label span,
.repository-toolbar label span,
.control-entry-form label span {
  color: #5f6b7a;
  font-size: 11px;
  font-weight: 650;
}

.search-metrics,
.admin-metrics,
.repository-metrics,
.project-metrics {
  gap: 8px;
}

.search-metric,
.admin-metric,
.repository-metric,
.project-metric,
.inbox-metric,
.stat-card {
  min-height: 66px;
  padding: 10px 12px;
}

.search-metric strong,
.admin-metric strong,
.repository-metric strong,
.project-metric strong,
.inbox-metric strong,
.stat-card strong {
  font-size: 20px;
}

.search-work-grid {
  grid-template-columns: minmax(0, 1fr) 318px;
  gap: 10px;
}

.search-results {
  gap: 7px;
}

.search-hit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  gap: 14px;
  align-items: start;
  padding: 13px;
  border-left: 3px solid transparent;
}

.search-hit:hover {
  border-left-color: var(--prod-blue);
}

.search-hit-main {
  min-width: 0;
}

.search-hit .list-title {
  align-items: start;
  gap: 8px;
}

.search-hit .list-title strong {
  font-size: 15px;
  line-height: 1.35;
}

.search-snippet {
  display: -webkit-box;
  margin-top: 7px;
  color: #344054;
  font-size: 13px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.search-hit-side {
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.score-pill {
  min-height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: var(--prod-blue-soft);
  color: var(--prod-blue);
  font-size: 12px;
  font-weight: 700;
}

.search-hit-actions {
  display: grid;
  gap: 6px;
}

.search-hit-actions a,
.search-hit-actions button {
  display: inline-flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.control-entry-form.is-editing {
  padding: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
}

.control-task-list .task-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.control-task-list .row-actions {
  margin-top: 4px;
}

.ledger-action-row {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px solid #e5edf6;
  border-radius: 7px;
  background: #ffffff;
}

.ledger-action-row div:first-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.ledger-action-row strong,
.ledger-action-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ledger-action-row small {
  color: var(--prod-muted);
}

.ledger-action-row .row-actions,
.control-task-list .row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.control-task-list .row-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ledger-action-row .row-actions button,
.control-task-list .row-actions button {
  width: 100%;
}

.repository-insight.compact {
  min-height: 58px;
}

.repository-insight.compact div {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.quick-term-grid button {
  min-height: 36px;
}

.version-dialog {
  width: min(760px, calc(100vw - 32px));
}

.version-modal {
  gap: 14px;
}

.version-modal .card-head {
  align-items: start;
}

.version-list {
  display: grid;
  gap: 10px;
  max-height: min(540px, calc(100vh - 240px));
  overflow: auto;
  padding-right: 2px;
}

.version-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--prod-line);
  border-left: 3px solid var(--prod-teal);
  border-radius: 8px;
  background: #fbfdff;
}

.version-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.version-card-head strong {
  color: var(--prod-text);
  font-size: 16px;
}

.version-card-status {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.version-approval-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border: 1px solid #d8e4f0;
  border-radius: 999px;
  background: #f7fbff;
  color: var(--prod-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .01em;
}

.version-approval-badge.approved {
  border-color: #bfe7d3;
  background: #effcf5;
  color: #087443;
}

.version-approval-badge.pending {
  border-color: #f7d59f;
  background: #fff8eb;
  color: #9a5b00;
}

.version-approval-badge.in_review {
  border-color: #bfd9ff;
  background: #f0f6ff;
  color: #2458a8;
}

.version-approval-badge.rejected {
  border-color: #f4c4c4;
  background: #fff1f1;
  color: #b42318;
}

.version-grid {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1fr);
  gap: 8px;
}

.version-grid div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid #e5edf6;
  border-radius: 7px;
  background: #ffffff;
}

.version-grid span {
  color: var(--prod-muted);
  font-size: 11px;
  font-weight: 650;
}

.version-grid strong {
  min-width: 0;
  overflow: hidden;
  color: #263244;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-actions {
  justify-content: flex-end;
  padding-top: 2px;
}

.version-actions .small-btn {
  min-height: 32px;
}

.version-compare-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid #d9e7f2;
  border-radius: 10px;
  background: linear-gradient(180deg, #f9fcff, #ffffff);
}

.version-compare-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.version-compare-head h3 {
  margin: 0 0 4px;
  color: var(--prod-text);
  font-size: 16px;
}

.version-compare-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.version-compare-meta div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid #e5edf6;
  border-radius: 8px;
  background: #ffffff;
}

.version-compare-meta span {
  color: var(--prod-muted);
  font-size: 11px;
  font-weight: 650;
}

.version-compare-meta strong {
  overflow: hidden;
  color: #263244;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.version-diff-list {
  display: grid;
  gap: 4px;
  max-height: 260px;
  overflow: auto;
  padding: 4px;
  border-radius: 8px;
  background: #f4f7fb;
}

.version-diff-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #ffffff;
}

.version-diff-row span {
  color: var(--prod-muted);
  font-size: 11px;
  font-weight: 700;
}

.version-diff-row code {
  overflow: auto;
  color: #263244;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.version-diff-row.add {
  border-color: #bdebd2;
  background: #f0fff6;
}

.version-diff-row.remove {
  border-color: #ffd4d4;
  background: #fff5f5;
}

.version-diff-row.gap {
  background: transparent;
}

.template-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px minmax(150px, .8fr) minmax(108px, .55fr);
  gap: 8px;
  align-items: end;
  margin-bottom: 16px;
}

.template-form label {
  display: grid;
  gap: 6px;
  color: var(--prod-muted);
  font-size: 11px;
  font-weight: 650;
}

.template-form button {
  min-width: 0;
}

.template-form.is-editing {
  padding: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
}

.template-list {
  display: grid;
  gap: 8px;
}

.template-card {
  display: grid;
  gap: 8px;
}

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

.template-card-head .list-title {
  min-width: 0;
}

.template-card-head .row-actions {
  justify-content: end;
}

.template-card-head .row-actions button {
  min-width: 54px;
}

.user-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) repeat(2, minmax(110px, .6fr));
  gap: 8px;
  align-items: end;
  margin-bottom: 16px;
}

.user-form button {
  min-width: 0;
}

.user-form.is-editing {
  padding: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
}

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

.user-card {
  display: grid;
  gap: 8px;
}

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

.user-card-head .list-title {
  min-width: 0;
}

.user-card-head .row-actions {
  justify-content: end;
}

.user-card-head .row-actions button {
  min-width: 54px;
}

.role-form {
  grid-template-columns: minmax(180px, .75fr) minmax(260px, 1fr) auto auto;
}

.role-form.is-editing {
  padding: 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #f8fbff;
}

.role-card {
  display: grid;
  gap: 10px;
}

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

.role-card-head .list-title {
  min-width: 0;
}

.role-card-head .row-actions {
  justify-content: end;
}

.role-card-head .row-actions button {
  min-width: 54px;
}

.assistant-panel {
  border-left: 1px solid var(--prod-line);
}

@media (max-width: 1599px) {
  .app-shell,
  .app-shell.assistant-expanded {
    grid-template-columns: 236px minmax(0, 1fr);
  }
}

@media (max-width: 1320px) {
  .workspace-topbar,
  .search-hero,
  .search-work-grid {
    grid-template-columns: 1fr;
  }

  .search-hero .chip {
    justify-self: start;
    max-width: 100%;
    text-align: left;
  }

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

  .role-form,
  .template-form,
  .user-form,
  .role-list {
    grid-template-columns: 1fr;
  }

.search-query-field,
  .search-workbar button[type="submit"],
  .search-workbar button[data-switch-view] {
    grid-column: auto;
  }
}

@media (max-width: 780px) {
  html,
  body,
  .app-shell,
  .workspace,
  .view {
    max-width: 100%;
    overflow-x: clip;
  }

  .app-shell,
  .app-shell.assistant-expanded {
    display: block;
  }

  .nav-rail {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--prod-line);
    box-shadow: 0 8px 24px rgba(16, 24, 40, .08);
  }

  .brand-block {
    min-height: 56px;
    padding: 10px 12px 8px;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .nav-menu {
    display: flex;
    gap: 6px;
    padding: 6px 10px 10px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .nav-menu::-webkit-scrollbar {
    display: none;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 92px;
    min-height: 34px;
    justify-content: center;
    padding: 0 11px;
    white-space: nowrap;
    font-size: 12px;
    scroll-snap-align: start;
  }

  .nav-footer {
    display: none;
  }

  .workspace {
    padding: 10px;
  }

  .workspace-topbar {
    gap: 10px;
    margin-bottom: 10px;
    padding: 12px;
  }

  .workspace-topbar h1 {
    font-size: 24px;
  }

  .top-actions,
  .global-search {
    display: grid;
    width: 100%;
  }

  .top-actions {
    grid-template-columns: minmax(0, 1fr) 64px 72px;
    gap: 7px;
  }

  .global-search {
    grid-template-columns: minmax(0, 1fr) 76px;
    max-width: none;
  }

  .lang-toggle,
  .avatar-btn,
  .global-search button {
    width: 100%;
  }

  .search-console {
    gap: 8px;
  }

  .search-hero {
    min-height: auto;
    padding: 14px;
  }

  .search-hero h2 {
    font-size: 22px;
  }

  .search-workbar,
  .search-metrics,
  .search-work-grid,
  .quick-term-grid {
    grid-template-columns: 1fr;
  }

  .search-workbar {
    gap: 8px;
    padding: 10px;
  }

  .search-workbar button {
    width: 100%;
  }

  .search-hit {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .search-hit .list-title {
    display: grid;
    grid-template-columns: 1fr;
  }

  .search-hit .list-title strong {
    white-space: normal;
  }

  .search-hit-side {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

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

  .role-card-head {
    grid-template-columns: 1fr;
  }

  .template-card-head {
    grid-template-columns: 1fr;
  }

  .user-card-head {
    grid-template-columns: 1fr;
  }

  .template-card-head .row-actions,
  .user-card-head .row-actions,
  .role-card-head .row-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .search-hit-actions {
    grid-template-columns: 1fr;
  }

  .panel-card,
  .plant-map-card,
  .control-knowledge,
  .agent-command-card,
  .ops-panel {
    padding: 12px;
  }

  .assistant-fab {
    right: 12px;
    bottom: 12px;
  }
}

@media (max-width: 420px) {
  .workspace {
    padding: 8px;
  }

  .brand-block > div:last-child {
    min-width: 0;
  }

  .brand-block strong,
  .brand-block span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-item {
    min-width: 86px;
    padding: 0 9px;
  }

  .search-hit-side {
    grid-template-columns: 1fr;
  }
}

/* Production UI pass inspired by controlled-document and enterprise knowledge systems */
:root {
  --prod-bg: #f3f5f7;
  --prod-surface: #ffffff;
  --prod-raised: #fbfcfe;
  --prod-line: #d7dee8;
  --prod-line-strong: #bec9d7;
  --prod-text: #111827;
  --prod-muted: #5f6b7a;
  --prod-blue: #0a5fc7;
  --prod-blue-soft: #eaf3ff;
  --prod-teal: #0f766e;
  --prod-green: #1f8f56;
  --prod-amber: #a16207;
  --prod-red: #c2410c;
  --prod-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 10px 26px rgba(16, 24, 40, .035);
  --prod-shadow-hover: 0 1px 2px rgba(16, 24, 40, .06), 0 16px 34px rgba(16, 24, 40, .07);
  --rail-width: 236px;
  --radius-card: 8px;
}

body {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(243, 245, 247, 0) 220px),
    var(--prod-bg);
  color: var(--prod-text);
}

.app-shell,
.app-shell.assistant-expanded {
  background: var(--prod-bg);
}

.workspace {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, 0) 190px),
    var(--prod-bg);
}

.workspace-topbar,
.nav-rail,
.assistant-panel,
.panel-card,
.plant-map-card,
.control-palette,
.control-knowledge,
.command-copy,
.agent-command-card,
.command-visual,
.stat-card,
.project-hero,
.repository-hero,
.search-hero,
.admin-hero,
.control-hero,
.ops-copy,
.ops-stage,
.ops-panel,
.repository-toolbar,
.search-workbar,
.project-metric,
.repository-metric,
.search-metric,
.admin-metric,
.inbox-metric,
.inbox-board > section,
.project-portfolio-card,
.timeline-step,
.object-link-card,
.repository-insight,
.document-card,
.archive-card,
.search-hit,
.control-entry-panel,
.control-widget,
.config-form,
.role-card,
.template-card,
.user-card,
.version-card {
  border-color: var(--prod-line);
  background: var(--prod-surface);
  box-shadow: var(--prod-shadow);
}

.nav-rail {
  background: #ffffff;
  border-right: 1px solid var(--prod-line);
}

.brand-block {
  min-height: 62px;
  padding: 12px 14px;
}

.brand-logo,
.brand-mark,
.drop-icon,
.agent-badge {
  border-radius: 7px;
  background: var(--prod-blue);
}

.nav-item {
  min-height: 38px;
  border-radius: 6px;
  color: #465466;
  font-size: 13px;
}

.nav-item.active {
  background: var(--prod-blue-soft);
  border-color: #c5defc;
  color: var(--prod-blue);
}

.workspace-topbar {
  grid-template-columns: minmax(220px, .72fr) minmax(460px, 1fr);
  gap: 14px;
  margin-bottom: 14px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--prod-shadow);
}

.workspace-topbar h1 {
  font-size: 24px;
}

.workspace-topbar .subtle {
  max-width: 620px;
  font-size: 12px;
}

.global-search {
  max-width: 660px;
  border-color: var(--prod-line);
  background: #f8fafc;
}

.global-search input,
.global-search button,
.lang-toggle,
.avatar-btn {
  min-height: 34px;
}

button {
  background: var(--prod-blue);
  border-radius: 6px;
}

button:hover {
  background: #084faa;
}

button.secondary,
.lang-toggle,
button.text-btn,
button.small-btn,
.prompt-chips button {
  background: #ffffff;
  border-color: var(--prod-line);
  color: var(--prod-blue);
}

button.secondary:hover,
.lang-toggle:hover,
button.text-btn:hover,
button.small-btn:hover,
.prompt-chips button:hover {
  background: var(--prod-blue-soft);
  border-color: #b8d4f5;
}

.eyebrow {
  color: var(--prod-muted);
  letter-spacing: .02em;
}

.subtle,
.meta {
  color: var(--prod-muted);
}

.card-head,
.plant-map-head {
  min-height: 34px;
  margin-bottom: 10px;
  padding-bottom: 9px;
  border-bottom-color: var(--prod-line);
}

.card-head h2,
.plant-map-head h2 {
  font-size: 18px;
}

.command-deck {
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .8fr);
  gap: 12px;
  margin-bottom: 14px;
}

.command-copy {
  min-height: 260px;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(17, 24, 39, .94), rgba(10, 95, 199, .84) 55%, rgba(15, 118, 110, .8)),
    url("/assets/industrial-cluster-hero.png") center/cover;
  color: #ffffff;
}

.command-copy h2 {
  max-width: 640px;
  font-size: 32px;
  line-height: 1.14;
}

.command-copy .subtle,
.command-copy .eyebrow {
  color: rgba(255, 255, 255, .82);
}

.ops-strip span {
  min-height: 28px;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .12);
  border-radius: 6px;
}

.workflow-showcase {
  grid-template-columns: repeat(4, minmax(0, auto));
  gap: 7px;
}

.workflow-showcase i {
  display: none;
}

.workflow-showcase span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 6px;
  background: rgba(255, 255, 255, .09);
}

.command-actions {
  display: flex;
  flex-wrap: wrap;
}

.command-actions button {
  width: auto;
  min-width: 118px;
  box-shadow: none;
}

.command-visual,
.campus-visual {
  grid-column: 1 / -1;
  min-height: 206px;
}

.campus-visual img {
  min-height: 206px;
}

.agent-squad article,
.knowledge-flow div,
.coverage-card,
.evidence-stack div,
.pulse-row,
.operating-copy p,
.management-card,
.control-ledger-card,
.control-widget,
.repository-insight,
.object-link-card,
.timeline-step {
  background: var(--prod-raised);
  box-shadow: none;
}

.agent-squad strong {
  background: var(--prod-blue);
}

.stat-grid {
  gap: 8px;
  margin-bottom: 14px;
}

.stat-card,
.project-metric,
.repository-metric,
.search-metric,
.admin-metric,
.inbox-metric {
  min-height: 68px;
  padding: 10px 12px;
}

.stat-card strong,
.project-metric strong,
.repository-metric strong,
.search-metric strong,
.admin-metric strong,
.inbox-metric strong {
  font-size: 20px;
}

.stat-card::after {
  height: 2px;
  background: var(--prod-blue);
}

.dashboard-grid,
.two-column,
.admin-grid,
.control-widget-grid,
.repository-work-grid,
.search-work-grid,
.project-work-grid,
.ops-board {
  gap: 10px;
}

.panel-card,
.plant-map-card,
.control-knowledge,
.agent-command-card,
.ops-panel,
.control-entry-panel {
  padding: 14px;
}

.project-hero,
.repository-hero,
.search-hero,
.admin-hero,
.control-hero {
  min-height: 96px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(234, 243, 255, .62), rgba(255, 255, 255, .98) 58%),
    #ffffff;
}

.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2,
.control-hero h2 {
  font-size: 23px;
}

.ops-copy {
  min-height: 232px;
  background:
    linear-gradient(120deg, rgba(17, 24, 39, .94), rgba(10, 95, 199, .84) 55%, rgba(15, 118, 110, .82)),
    url("/assets/industrial-cluster-hero.png") center/cover;
}

.ops-copy h2 {
  font-size: 30px;
  text-shadow: none;
}

.ops-kpi-rail {
  gap: 8px;
}

.ops-kpi-rail div {
  min-height: 56px;
  padding: 9px 10px;
  border-radius: 6px;
}

.ops-stage {
  min-height: 232px;
  padding: 16px;
  background:
    linear-gradient(#e8eef6 1px, transparent 1px),
    linear-gradient(90deg, #e8eef6 1px, transparent 1px),
    #fbfdff;
  background-size: 34px 34px;
}

.ops-stage::before,
.ops-stage::after {
  display: none;
}

.ops-stage-orbit {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  aspect-ratio: auto;
  gap: 7px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.ops-stage-orbit span {
  position: static;
  min-width: 0;
  justify-content: space-between;
  padding: 8px 10px;
  border-color: var(--prod-line);
  background: rgba(255, 255, 255, .92);
  box-shadow: none;
}

.ops-stage-orbit span::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--prod-green);
}

.ops-core {
  position: static;
  width: 100%;
  min-height: 72px;
  margin-top: 8px;
  border-radius: 7px;
  box-shadow: none;
}

.ops-panel::before {
  height: 2px;
  background: var(--prod-blue);
}

.management-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.management-card {
  min-height: 124px;
  padding: 11px;
}

.coverage-card:hover,
.evidence-stack div:hover,
.pulse-row:hover,
.operating-copy p:hover,
.management-card:hover,
.search-hit:hover,
.document-card:hover,
.archive-card:hover,
.project-portfolio-card:hover,
.repository-insight:hover {
  transform: none;
  border-color: #b8d4f5;
  box-shadow: var(--prod-shadow-hover);
}

.control-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
}

.control-status-strip div {
  min-height: 72px;
  border-radius: 7px;
  background: #f8fafc;
}

.control-status-strip strong {
  font-size: 22px;
}

.control-workbench {
  grid-template-columns: 210px minmax(0, 1fr);
}

.control-module {
  min-height: 58px;
  padding: 10px 14px;
}

.plant-map {
  min-height: 360px;
  gap: 8px;
  padding: 12px;
  border-color: var(--prod-line);
  background:
    linear-gradient(#e6edf5 1px, transparent 1px),
    linear-gradient(90deg, #e6edf5 1px, transparent 1px),
    #fbfdff;
  background-size: 30px 30px;
}

.plant-zone {
  padding: 12px;
  border-color: #cfdef0;
  background: rgba(255, 255, 255, .94);
  box-shadow: none;
  color: var(--prod-text);
  text-align: left;
  appearance: none;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease, transform .1s ease;
}

.plant-zone:hover,
.plant-zone:focus-visible {
  border-color: #9cc8fb;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.plant-zone:active {
  transform: translateY(1px);
}

.plant-zone.active-zone {
  border-color: #78b7fb;
  background: linear-gradient(180deg, #ffffff, #f3f8ff);
  box-shadow: inset 3px 0 0 var(--prod-blue), 0 0 0 3px rgba(10, 95, 199, .1);
}

.plant-zone strong {
  font-size: 24px;
}

.plant-zone::before {
  background: var(--prod-blue);
}

.control-ledger-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.control-ledger-card {
  min-height: 166px;
  padding: 12px;
}

.control-ledger-card.active-ledger {
  border-color: #9cc8fb;
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
  box-shadow: 0 0 0 3px rgba(10, 95, 199, .1), var(--prod-shadow);
}

.control-module[aria-pressed="true"] {
  border-left: 3px solid var(--prod-blue);
}

.ledger-action-row {
  padding: 8px;
  border-color: #e2e8f0;
  background: #ffffff;
}

.ledger-action-row:hover {
  border-color: #b8d4f5;
  background: #fbfdff;
}

.control-entry-tabs {
  gap: 6px;
}

.control-entry-form {
  gap: 10px;
}

.control-entry-form.is-editing,
.template-form.is-editing,
.user-form.is-editing,
.role-form.is-editing {
  border-color: #b8d4f5;
  background: #f7fbff;
}

.repository-toolbar {
  grid-template-columns: minmax(220px, 1.4fr) minmax(168px, .9fr) repeat(4, minmax(124px, .72fr)) auto;
  gap: 8px;
  padding: 10px;
}

.search-workbar {
  grid-template-columns: minmax(250px, 1.4fr) repeat(4, minmax(126px, .74fr)) 84px 112px;
  gap: 8px;
  padding: 10px;
}

.search-hit {
  grid-template-columns: minmax(0, 1fr) 146px;
  border-left: 3px solid transparent;
}

.search-hit:hover {
  border-left-color: var(--prod-blue);
}

.table-wrap {
  border-color: var(--prod-line);
}

.data-table th {
  height: 36px;
  background: #f8fafc;
  color: var(--prod-muted);
}

.data-table td {
  padding: 10px 12px;
}

.row-actions a,
.row-actions button {
  min-height: 30px;
  border-radius: 6px;
  font-size: 12px;
}

.chip,
.badge,
.score-pill {
  border-radius: 999px;
}

.badge.good {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.badge.warn {
  border-color: #fde68a;
  background: #fffbeb;
  color: #92400e;
}

.badge.bad,
button.danger,
button.small-btn.danger {
  border-color: #fecaca;
  background: #fff7f7;
  color: #b42318;
}

.document-card-list {
  display: none;
}

.document-card {
  gap: 9px;
  padding: 12px;
}

.document-card .row-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-card .row-actions a,
.document-card .row-actions button {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.document-pager {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--prod-line);
}

.document-pager[hidden] {
  display: none;
}

.document-page-status {
  min-width: 230px;
  color: var(--prod-muted);
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

.document-pager button {
  min-width: 86px;
  min-height: 34px;
}

.document-pager button:disabled {
  cursor: not-allowed;
  opacity: .45;
}

.assistant-panel {
  background: #ffffff;
}

.assistant-panel.expanded {
  background: #ffffff;
}

@media (max-width: 1599px) {
  .app-shell,
  .app-shell.assistant-expanded {
    grid-template-columns: var(--rail-width) minmax(0, 1fr);
  }
}

@media (max-width: 1320px) {
  .workspace-topbar,
  .control-hero,
  .control-workbench,
  .repository-toolbar,
  .search-workbar,
  .search-hero,
  .repository-hero,
  .project-hero,
  .admin-hero,
  .ops-hero,
  .ops-board,
  .search-work-grid,
  .repository-work-grid,
  .project-work-grid {
    grid-template-columns: 1fr;
  }

  .control-ledger-grid,
  .control-widget-grid,
  .management-grid,
  .project-metrics,
  .repository-metrics,
  .search-metrics,
  .admin-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-query-field,
  .search-workbar button[type="submit"],
  .search-workbar button[data-switch-view] {
    grid-column: auto;
  }
}

.model-status-card {
  display: grid;
  gap: 10px;
  min-height: 196px;
}

.model-endpoint-line {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.model-runtime-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--prod-line);
  border-radius: 8px;
  background: var(--prod-raised);
}

.model-runtime-row strong {
  display: block;
  margin-bottom: 2px;
  color: var(--prod-text);
  font-size: 13px;
}

.model-runtime-row .meta {
  margin: 0;
  line-height: 1.45;
}

.runtime-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: var(--prod-line-strong);
  box-shadow: 0 0 0 4px rgba(190, 201, 215, .16);
}

.runtime-dot.local {
  background: var(--prod-teal);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .14);
}

.runtime-dot.cloud {
  background: var(--prod-blue);
  box-shadow: 0 0 0 4px rgba(10, 95, 199, .14);
}

.runtime-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.runtime-chips span {
  min-height: 24px;
  padding: 4px 8px;
  border: 1px solid var(--prod-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--prod-muted);
  font-size: 12px;
  font-weight: 650;
}

.model-test-state {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  min-height: 28px;
}

.model-test-state .meta {
  margin: 0;
}

.runtime-health {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.runtime-pill {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 8px;
  border: 1px solid var(--prod-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--prod-muted);
  font-size: 12px;
  line-height: 1.2;
  white-space: nowrap;
}

.runtime-pill b {
  color: var(--prod-text);
}

.runtime-pill.good {
  border-color: rgba(31, 143, 86, .24);
  background: rgba(232, 247, 239, .72);
}

.runtime-pill.warn {
  border-color: rgba(161, 98, 7, .28);
  background: rgba(255, 251, 235, .8);
}

.runtime-pill.bad {
  border-color: rgba(194, 65, 12, .24);
  background: rgba(255, 247, 237, .84);
}

.repository-governance {
  display: grid;
  gap: 8px;
}

.repository-governance-card {
  min-width: 0;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--prod-line);
  border-left-width: 3px;
  border-radius: 8px;
  background: #ffffff;
  color: var(--prod-text);
  text-align: left;
  box-shadow: none;
}

.repository-governance-card.warn {
  border-left-color: var(--prod-amber);
}

.repository-governance-card.good {
  border-left-color: var(--prod-green);
}

.repository-governance-card.active {
  border-color: #9ec5fe;
  border-left-color: var(--prod-blue);
  background: var(--prod-blue-soft);
}

.repository-governance-card.active b {
  border-color: #b6d4fe;
  background: #ffffff;
}

.repository-governance-card span,
.repository-governance-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.repository-governance-card span {
  font-weight: 700;
}

.repository-governance-card strong {
  font-size: 22px;
  line-height: 1;
}

.repository-governance-card small {
  grid-column: 1 / -1;
  color: var(--prod-muted);
  font-size: 12px;
}

.repository-governance-card b {
  justify-self: start;
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--prod-line);
  border-radius: 999px;
  background: var(--prod-raised);
  color: var(--prod-blue);
  font-size: 12px;
}

.ops-action-queue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ops-action-lane {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--prod-line);
  border-radius: 8px;
  background: var(--prod-raised);
}

.ops-action-lane .lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 28px;
}

.ops-action-lane .lane-head span {
  min-width: 28px;
  min-height: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--prod-line);
  border-radius: 999px;
  background: #ffffff;
  color: var(--prod-muted);
  font-size: 12px;
  font-weight: 700;
}

.ops-action-list {
  display: grid;
  gap: 8px;
}

.ops-action-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  min-height: 68px;
  padding: 10px;
  border: 1px solid var(--prod-line);
  border-left-width: 3px;
  border-radius: 8px;
  background: #ffffff;
}

.ops-action-item.bad {
  border-left-color: var(--prod-red);
}

.ops-action-item.warn {
  border-left-color: var(--prod-amber);
}

.ops-action-item.good {
  border-left-color: var(--prod-green);
}

.ops-action-item strong {
  display: block;
  overflow: hidden;
  color: var(--prod-text);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ops-action-item .meta {
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 780px) {
  .workspace {
    padding: 10px;
  }

  .workspace-topbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .top-actions {
    grid-template-columns: minmax(0, 1fr) 64px 72px;
  }

  .global-search {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .command-deck,
  .dashboard-grid,
  .control-ledger-grid,
  .control-widget-grid,
  .project-metrics,
  .repository-metrics,
  .search-metrics,
  .admin-metrics,
  .management-grid,
  .knowledge-flow,
  .phase-grid,
  .orchestration-bottom,
  .search-workbar,
  .repository-toolbar,
  .search-work-grid,
  .repository-work-grid,
  .project-work-grid,
  .control-entry-form,
    .template-form,
    .user-form,
    .role-form,
    .config-status,
    .model-config-grid,
    .ops-action-queue {
    grid-template-columns: 1fr;
  }

  .ops-action-item {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ops-action-item button {
    grid-column: 1 / -1;
    width: 100%;
  }

  .top-actions {
    grid-template-columns: minmax(0, 1fr) 64px 72px;
  }

  .global-search {
    grid-template-columns: minmax(0, 1fr) 76px;
  }

  .command-copy,
  .ops-copy {
    min-height: auto;
    padding: 18px;
  }

  .command-copy h2,
  .ops-copy h2 {
    font-size: 25px;
  }

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

  .command-actions,
  .ops-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .command-actions button,
  .ops-actions button {
    width: 100%;
  }

  .plant-map {
    display: grid;
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .plant-zone {
    grid-column: auto;
    grid-row: auto;
    min-height: 96px;
  }

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

  .control-entry-tabs button:first-child {
    grid-column: 1 / -1;
  }

  .table-wrap {
    display: none;
  }

  .document-card-list {
    display: grid;
    gap: 9px;
    margin-top: 10px;
  }

  .document-pager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .document-page-status {
    grid-column: 1 / -1;
    grid-row: 1;
    min-width: 0;
  }

  .document-pager button {
    width: 100%;
  }

  .search-hit,
  .search-hit-side {
    grid-template-columns: 1fr;
  }

  .repository-actions,
  .project-hero-actions {
    justify-content: stretch;
  }

  .repository-actions button,
  .project-hero-actions button,
  .search-workbar button,
  .repository-toolbar button {
    width: 100%;
  }
}

/* Production login refresh */
:root {
  --font-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Source Han Sans SC", "Microsoft YaHei UI", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-cn);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

h1,
h2,
h3,
.brand-block strong,
.hero-login h1,
.login-panel h2 {
  font-family: var(--font-display-cn);
  font-weight: 650;
}

.login-production {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 420px);
  background:
    linear-gradient(180deg, #f8fafc 0, #eef2f7 100%);
  color: #0f172a;
}

.login-production .login-visual {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 16, 34, .86), rgba(8, 16, 34, .55) 46%, rgba(8, 16, 34, .18)),
    url("/assets/industrial-cluster-hero.png") center/cover;
}

.login-production .login-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, .08), rgba(15, 23, 42, .42)),
    linear-gradient(135deg, rgba(37, 99, 235, .18), rgba(20, 184, 166, .1));
  pointer-events: none;
}

.login-production .hero-login {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.login-production .brand-mark {
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 10px;
  background: rgba(255, 255, 255, .14);
  color: #ffffff;
  font-size: 23px;
  font-weight: 700;
  box-shadow: none;
}

.login-production .hero-login .eyebrow {
  color: rgba(226, 232, 240, .9);
  font-size: 12px;
  letter-spacing: .08em;
}

.login-production .hero-login h1 {
  max-width: 760px;
  margin-top: 10px;
  color: #ffffff;
  font-size: clamp(42px, 5.4vw, 68px);
  line-height: 1.04;
}

.login-production .hero-login > p:not(.eyebrow) {
  max-width: 660px;
  margin-top: 20px;
  color: rgba(241, 245, 249, .92);
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.8;
}

.login-production .login-metrics,
.login-production .login-evidence {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.login-production .login-metrics {
  margin-top: 32px;
}

.login-production .login-metrics span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(226, 232, 240, .28);
  border-radius: 8px;
  background: rgba(15, 23, 42, .34);
  color: rgba(255, 255, 255, .94);
  font-size: 14px;
  font-weight: 600;
}

.login-production .login-evidence {
  margin-top: 14px;
}

.login-production .login-evidence span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(226, 232, 240, .86);
  font-size: 13px;
}

.login-production .login-evidence span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #38bdf8;
}

.login-production .login-panel {
  align-self: center;
  width: min(100% - 40px, 420px);
  margin: 0 auto;
  padding: 34px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .09);
}

.login-production .form-title-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
}

.login-production .login-panel .eyebrow {
  margin: 0;
  color: #2563eb;
  letter-spacing: .06em;
}

.login-production .lang-toggle {
  min-width: 52px;
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 7px;
}

.login-production .login-panel h2 {
  color: #0f172a;
  font-size: 31px;
  line-height: 1.16;
}

.login-production .login-panel .subtle {
  margin-top: 10px;
  color: #64748b;
  font-size: 14px;
  line-height: 1.65;
}

.login-production .login-panel label {
  margin-top: 20px;
  color: #334155;
  font-size: 13px;
  font-weight: 650;
}

.login-production .login-panel input {
  min-height: 46px;
  margin-top: 8px;
  border-color: #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 15px;
}

.login-production .login-panel input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}

.login-production .login-panel button[type="submit"],
.login-production .login-panel > button {
  width: 100%;
  min-height: 46px;
  margin-top: 24px;
  border-radius: 8px;
  background: #0f62fe;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.login-production .login-panel button[type="submit"]:hover,
.login-production .login-panel > button:hover {
  background: #004fce;
}

.login-production .notice.error {
  margin-top: 14px;
  border-radius: 8px;
}

.login-status-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  color: #64748b;
  font-size: 12px;
}

.login-status-line span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .12);
}

.login-status-line em {
  font-style: normal;
}

.brand-logo,
.brand-mark {
  font-family: var(--font-display-cn);
}

@media (max-width: 960px) {
  .login-production {
    grid-template-columns: 1fr;
    align-content: start;
    background:
      linear-gradient(180deg, rgba(8, 16, 34, .72), rgba(8, 16, 34, .4)),
      url("/assets/industrial-cluster-hero.png") center/cover;
  }

  .login-production .login-visual {
    min-height: auto;
    padding: 22px 18px 0;
    background: transparent;
  }

  .login-production .hero-login {
    padding-bottom: 14px;
  }

  .login-production .brand-mark {
    width: 40px;
    height: 40px;
    margin-bottom: 14px;
    font-size: 20px;
  }

  .login-production .hero-login .eyebrow {
    margin-bottom: 7px;
  }

  .login-production .hero-login h1 {
    max-width: 100%;
    font-size: 30px;
    line-height: 1.12;
  }

  .login-production .hero-login > p:not(.eyebrow),
  .login-production .login-evidence {
    display: none;
  }

  .login-production .login-panel {
    width: calc(100% - 28px);
    margin: 0 auto 20px;
    padding: 22px 24px;
  }

  .login-production .form-title-row {
    gap: 12px;
    margin-bottom: 16px;
  }

  .login-production .login-panel .eyebrow {
    min-width: 0;
    line-height: 1.3;
  }

  .login-production .lang-toggle {
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 32px;
    padding: 0 10px;
  }

  .login-production .login-panel h2 {
    font-size: 27px;
  }

  .login-production .login-panel .subtle {
    margin-top: 8px;
    line-height: 1.55;
  }

  .login-production .login-panel label {
    margin-top: 16px;
  }

  .login-production .login-panel input {
    min-height: 44px;
  }

  .login-production .login-panel button[type="submit"],
  .login-production .login-panel > button {
    min-height: 44px;
    margin-top: 20px;
  }
}

@media (max-width: 520px) {
  .login-production .login-visual {
    padding: 18px 16px 0;
  }

  .login-production .login-metrics {
    display: none;
  }

  .login-production .hero-login h1 {
    max-width: 100%;
    font-size: 26px;
  }

  .login-production .login-panel {
    width: calc(100% - 20px);
    padding: 20px;
  }

  .login-production .login-panel h2 {
    font-size: 24px;
  }
}

@media (max-width: 360px) {
  .login-production .login-visual {
    padding: 16px 14px 0;
  }

  .login-production .brand-mark {
    width: 38px;
    height: 38px;
    margin-bottom: 12px;
  }

  .login-production .hero-login h1 {
    font-size: 24px;
  }

  .login-production .login-panel {
    width: calc(100% - 16px);
    padding: 18px;
  }

  .login-production .login-panel .subtle {
    font-size: 13px;
  }

  .login-production .login-panel label {
    margin-top: 14px;
  }

  .login-status-line {
    margin-top: 14px;
  }
}

/* Product typography and live overview */
:root {
  --font-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Noto Sans CJK SC", "Source Han Sans SC", "Microsoft YaHei UI", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-number: "DIN Alternate", "SF Pro Display", "Roboto Condensed", "Arial Narrow", var(--font-display-cn);
  --type-body: 14px;
  --type-small: 12px;
  --type-title: 22px;
  --type-page: 30px;
}

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

body,
button,
input,
select,
textarea,
.nav-item,
.chip,
.badge,
.data-table,
.assistant-bubble,
.user-bubble {
  font-family: var(--font-cn);
  font-size: var(--type-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.workspace-topbar h1,
.command-copy h2,
.ops-copy h2,
.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.brand-block strong,
.list-title strong,
.portfolio-card-top strong,
.overview-project-head strong,
.overview-row strong {
  font-family: var(--font-display-cn);
  letter-spacing: 0;
  font-weight: 600;
}

.workspace-topbar h1 {
  font-size: var(--type-page);
  line-height: 1.18;
}

.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2 {
  font-size: var(--type-title);
  line-height: 1.25;
  font-weight: 600;
}

.subtle,
.meta,
.overview-meta,
.nav-footer,
.brand-block span,
.data-table th,
.data-table td {
  line-height: 1.62;
}

.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.brand-block strong {
  font-size: 15px;
}

.brand-block span,
.nav-item,
.data-table th,
.chip,
.badge,
button.text-btn,
button.small-btn {
  font-size: var(--type-small);
}

.nav-item {
  font-weight: 500;
}

.stat-card strong,
.overview-score,
.overview-metrics strong,
.repository-metric strong,
.project-metric strong,
.search-metric strong,
.admin-metric strong,
.inbox-metric strong {
  font-family: var(--font-number);
  letter-spacing: 0;
}

.data-table td strong,
.document-card strong,
.archive-card strong,
.search-hit strong,
.list-item strong,
.ledger-card-head strong,
.control-ledger-card strong {
  font-weight: 600;
}

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

.overview-main,
.overview-side {
  min-width: 0;
  border: 1px solid var(--cds-border-subtle);
  border-radius: var(--radius-card);
  background: #ffffff;
  box-shadow: var(--polish-shadow);
}

.overview-main {
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, .72), rgba(255, 255, 255, .96) 54%),
    #ffffff;
}

.overview-side {
  padding: 14px;
}

.overview-project {
  display: grid;
  gap: 14px;
}

.overview-project.empty-state {
  min-height: 154px;
  place-items: center;
}

.overview-project-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.overview-project-head strong {
  display: block;
  color: #0f172a;
  font-size: 20px;
  line-height: 1.32;
}

.overview-project-head .meta {
  margin-top: 6px;
  color: #64748b;
}

.overview-score {
  min-width: 72px;
  padding: 9px 10px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #075985;
  font-size: 25px;
  line-height: 1;
  text-align: center;
}

.overview-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf7;
}

.overview-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0066cc, #0f766e);
}

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

.overview-metrics article {
  min-width: 0;
  padding: 12px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: rgba(248, 250, 252, .86);
}

.overview-metrics span {
  display: block;
  color: #64748b;
  font-size: 12px;
  line-height: 1.25;
}

.overview-metrics strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 23px;
  line-height: 1;
}

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

.overview-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  align-items: start;
  padding: 11px;
  border: 1px solid #e5e7eb;
  border-left: 3px solid #cbd5e1;
  border-radius: 8px;
  background: #f9fafb;
}

.overview-row.warn {
  border-left-color: #f59e0b;
  background: #fffbeb;
}

.overview-row.bad {
  border-left-color: #ef4444;
  background: #fff7f7;
}

.overview-row.good {
  border-left-color: #22c55e;
}

.overview-row-main {
  min-width: 0;
}

.overview-row strong {
  display: block;
  overflow: hidden;
  color: #111827;
  font-size: 14px;
  line-height: 1.38;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-meta {
  margin-top: 4px;
  color: #64748b;
  font-size: 12px;
}

.overview-row .badge {
  align-self: start;
}

.overview-row .small-btn {
  grid-column: 1 / -1;
  justify-self: start;
  min-height: 30px;
  padding: 5px 10px;
}

@media (min-width: 781px) {
  .stat-grid {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }
}

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

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

@media (max-width: 780px) {
  :root {
    --type-body: 13px;
    --type-title: 19px;
    --type-page: 24px;
  }

  .dashboard-overview {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 12px;
  }

  .overview-main,
  .overview-side {
    padding: 10px;
  }

  .overview-project-head {
    grid-template-columns: 1fr;
  }

  .overview-score {
    justify-self: start;
  }

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

  .overview-metrics article {
    padding: 9px 10px;
  }

  .overview-metrics strong {
    font-size: 20px;
  }

  .overview-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    padding: 9px 10px;
  }

  .overview-row strong {
    white-space: normal;
  }

  .overview-meta {
    line-height: 1.45;
  }

  .overview-row .small-btn {
    grid-column: auto;
    justify-self: end;
    min-height: 28px;
    padding: 4px 8px;
  }

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

  .stat-card {
    min-height: 64px;
    padding: 10px;
  }

  .stat-card strong {
    margin-top: 6px;
    font-size: 22px;
  }
}

@media (max-width: 360px) {
  .overview-metrics,
  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-project-head strong {
    font-size: 18px;
  }

  .overview-score {
    min-width: 64px;
    font-size: 22px;
  }
}

/* Final product typography pass */
:root {
  --font-cn: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-display-cn: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --font-number: "SF Pro Display", "DIN Alternate", "Helvetica Neue", Arial, var(--font-cn);
  --type-body: 14px;
  --type-small: 12px;
  --type-title: 18px;
  --type-page: 25px;
  --type-hero: 30px;
}

html,
body {
  font-family: var(--font-cn);
}

body {
  font-size: var(--type-body);
  line-height: 1.58;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea,
.nav-item,
.chip,
.badge,
.data-table,
.assistant-bubble,
.user-bubble {
  font-family: var(--font-cn);
  font-size: var(--type-body);
  letter-spacing: 0;
  font-feature-settings: "kern" 1, "tnum" 1;
}

h1,
h2,
h3,
.workspace-topbar h1,
.hero-login h1,
.login-panel h2,
.command-copy h2,
.ops-copy h2,
.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2,
.card-head h2,
.plant-map-head h2,
.brand-block strong,
.list-title strong,
.portfolio-card-top strong,
.overview-project-head strong,
.overview-row strong {
  font-family: var(--font-display-cn);
  font-weight: 600;
  letter-spacing: 0;
}

.workspace-topbar h1 {
  font-size: var(--type-page);
  line-height: 1.22;
}

.hero-login h1 {
  font-size: 48px;
  line-height: 1.12;
}

.login-panel h2 {
  font-size: 28px;
  line-height: 1.18;
}

.command-copy h2,
.ops-copy h2 {
  font-size: var(--type-hero);
  line-height: 1.2;
}

.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2 {
  font-size: 23px;
  line-height: 1.24;
}

.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2 {
  font-size: var(--type-title);
  line-height: 1.28;
}

.eyebrow {
  margin-bottom: 5px;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.subtle,
.meta,
.overview-meta,
.nav-footer,
.brand-block span,
.data-table th,
.data-table td {
  line-height: 1.56;
}

button,
.nav-item,
.chip,
.badge,
.runtime-pill,
.runtime-chips span,
.repository-governance-card b {
  font-weight: 500;
}

button {
  min-height: 38px;
  line-height: 1.2;
}

button.text-btn,
button.small-btn,
.row-actions a,
.row-actions button {
  font-size: var(--type-small);
  font-weight: 500;
}

input,
select,
textarea {
  line-height: 1.4;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

.brand-block strong {
  font-size: 15px;
  line-height: 1.25;
}

.brand-block span {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.35;
}

.brand-logo,
.brand-mark {
  font-weight: 600;
}

.nav-item {
  min-height: 38px;
  font-size: 13px;
  line-height: 1.25;
}

.nav-item.active {
  font-weight: 600;
}

.workspace-topbar .subtle {
  font-size: 12px;
  line-height: 1.48;
}

.stat-card span,
.project-metric span,
.repository-metric span,
.search-metric span,
.admin-metric span,
.inbox-metric span,
.overview-metrics span {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

.stat-card strong,
.overview-score,
.overview-metrics strong,
.project-metric strong,
.repository-metric strong,
.search-metric strong,
.admin-metric strong,
.inbox-metric strong,
.control-status-strip strong,
.plant-zone strong,
.object-link-card strong,
.repository-governance-card strong {
  font-family: var(--font-number);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.data-table th {
  font-size: 12px;
  font-weight: 500;
}

.data-table td {
  font-size: 13px;
  line-height: 1.55;
}

.data-table td strong,
.document-card strong,
.archive-card strong,
.search-hit strong,
.list-item strong,
.ledger-card-head strong,
.control-ledger-card strong,
.repository-governance-card span {
  font-weight: 600;
}

.list-item,
.project-portfolio-card,
.document-card,
.archive-card,
.search-hit,
.overview-row,
.control-ledger-card,
.repository-governance-card {
  line-height: 1.52;
}

.chip,
.badge,
.runtime-pill {
  min-height: 24px;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.2;
}

.overview-project-head strong {
  font-size: 19px;
  line-height: 1.35;
}

.overview-row strong {
  font-size: 13px;
  line-height: 1.4;
}

.document-card .list-title strong,
.archive-card .list-title strong,
.search-hit strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.document-card .meta,
.archive-card .meta,
.search-hit p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.document-card .doc-card-meta {
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 780px) {
  :root {
    --type-body: 13px;
    --type-small: 12px;
    --type-title: 17px;
    --type-page: 22px;
    --type-hero: 23px;
  }

  body,
  button,
  input,
  select,
  textarea,
  .nav-item,
  .chip,
  .badge,
  .data-table,
  .assistant-bubble,
  .user-bubble {
    font-size: var(--type-body);
  }

  .workspace-topbar h1 {
    font-size: var(--type-page);
    line-height: 1.22;
  }

  .hero-login h1 {
    font-size: 28px;
    line-height: 1.18;
  }

  .login-panel h2 {
    font-size: 23px;
  }

  .command-copy h2,
  .ops-copy h2,
  .control-hero h2,
  .project-hero h2,
  .repository-hero h2,
  .search-hero h2,
  .admin-hero h2 {
    font-size: var(--type-hero);
    line-height: 1.25;
  }

  .card-head h2,
  .plant-map-head h2,
  .compact-head h2,
  .panel-card h2,
  .ops-panel h2 {
    font-size: var(--type-title);
  }

  .eyebrow,
  .data-table th,
  .chip,
  .badge,
  button.text-btn,
  button.small-btn {
    font-size: var(--type-small);
  }

  .overview-project-head strong {
    font-size: 18px;
  }
}

@media (max-width: 360px) {
  .workspace-topbar h1 {
    font-size: 21px;
  }

  .command-copy h2,
  .ops-copy h2,
  .control-hero h2,
  .project-hero h2,
  .repository-hero h2,
  .search-hero h2,
  .admin-hero h2 {
    font-size: 22px;
  }
}

/* Production asset-drive refinements */
.repository-list-panel {
  overflow: hidden;
}

.asset-list-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(239, 246, 255, .9), rgba(255, 255, 255, .96) 42%),
    #ffffff;
  box-shadow: 0 10px 28px rgba(15, 23, 42, .055);
}

.asset-path-summary {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, auto) minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  color: #667085;
  font-size: 12px;
}

.asset-path-summary span {
  font-weight: 650;
  white-space: nowrap;
}

.asset-path-summary strong {
  min-width: 0;
  overflow: hidden;
  color: #0b1220;
  font-size: 16px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-path-summary em {
  min-width: 0;
  overflow: hidden;
  color: #667085;
  font-style: normal;
  font-weight: 520;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-list-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.asset-sort-control {
  display: flex;
  gap: 7px;
  align-items: center;
  margin: 0;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}

.asset-sort-control select {
  min-width: 132px;
  height: 36px;
  padding-right: 30px;
  border-color: #d8e0eb;
  border-radius: 10px;
  background-color: #ffffff;
  color: #172033;
  font-size: 13px;
  font-weight: 560;
}

.asset-view-toggle {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 3px;
  border: 1px solid #d8e0eb;
  border-radius: 999px;
  background: #f7f9fc;
}

.asset-view-toggle button {
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  border-color: transparent;
  background: transparent;
  color: #667085;
  font-size: 12px;
  font-weight: 650;
  box-shadow: none;
}

.asset-view-toggle button:hover {
  background: #ffffff;
  color: #0b64c0;
}

.asset-view-toggle button.active,
.asset-view-toggle button[aria-pressed="true"] {
  background: #ffffff;
  color: #0757a6;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
}

.asset-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: -2px 0 12px;
  padding: 0 2px;
}

.asset-filter-chips[hidden] {
  display: none;
}

.asset-filter-chips > span {
  color: #667085;
  font-size: 12px;
  font-weight: 650;
}

.asset-filter-chips button {
  min-height: 30px;
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 5px 8px 5px 10px;
  border: 1px solid #cfe1f8;
  border-radius: 999px;
  background: #f4f9ff;
  color: #0757a6;
  box-shadow: none;
}

.asset-filter-chips button:hover {
  border-color: #9fc9f8;
  background: #eaf4ff;
}

.asset-filter-chips small {
  color: #51708f;
  font-size: 11px;
  font-weight: 650;
}

.asset-filter-chips strong {
  max-width: 170px;
  overflow: hidden;
  color: #0b4f8f;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-filter-chips b {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(7, 87, 166, .1);
  color: #0757a6;
  font-size: 12px;
  line-height: 1;
}

.repository-list-panel.table-mode #documentCardsFull {
  display: none;
}

.repository-list-panel.cards-mode .table-wrap.roomy {
  display: none;
}

.repository-list-panel.cards-mode #documentCardsFull {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.repository-list-panel.cards-mode .document-card.asset-card {
  min-height: 210px;
  display: grid;
  align-content: start;
  border: 1px solid #dfe7f2;
  border-left: 3px solid #8ec5ff;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(248, 251, 255, .98)),
    #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .07);
  cursor: pointer;
}

.badge.controlled {
  border-color: #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
}

.repository-list-panel.cards-mode .document-card.asset-card.controlled {
  border-left-color: #2563eb;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, .96), rgba(248, 251, 255, .98)),
    #ffffff;
}

.repository-list-panel.cards-mode .document-card.asset-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(15, 23, 42, .095);
}

.repository-list-panel.cards-mode .document-card.asset-card.active {
  border-color: #79b8ff;
  border-left-color: #0066cc;
  background: #f4f9ff;
}

.repository-list-panel.cards-mode .document-card .list-title {
  grid-template-columns: minmax(0, 1fr) auto;
}

.repository-list-panel.cards-mode .document-card .list-title .asset-select-control {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef6ff;
}

.repository-list-panel.cards-mode .document-card .list-title strong {
  min-height: 40px;
}

.repository-list-panel.cards-mode .document-card .doc-card-meta {
  grid-template-columns: 1fr;
  gap: 5px;
}

.repository-list-panel.cards-mode .document-card .doc-card-meta span {
  padding-left: 9px;
  border-left: 2px solid #d7e7fb;
}

.repository-list-panel.cards-mode .document-card .row-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-self: end;
  margin-top: 4px;
}

.repository-list-panel.trash-mode .document-card.asset-card {
  border-left-color: #f6c453;
}

.repository-list-panel.trash-mode .trash-folder-card,
.repository-list-panel.trash-mode .storage-trash-folder-row {
  background:
    linear-gradient(135deg, rgba(255, 251, 235, .9), rgba(255, 255, 255, .98) 52%),
    #ffffff;
}

.repository-list-panel.trash-mode .trash-folder-card .asset-file-type,
.repository-list-panel.trash-mode .storage-trash-folder-row .asset-file-type {
  border-color: rgba(217, 119, 6, .2);
  background: #fff7ed;
  color: #b45309;
}

.repository-list-panel.trash-mode .asset-list-command {
  background:
    linear-gradient(135deg, rgba(255, 251, 235, .95), rgba(255, 255, 255, .96) 46%),
    #ffffff;
}

.repository-list-panel .asset-table tbody tr {
  cursor: pointer;
}

.repository-list-panel .asset-table input,
.repository-list-panel .asset-card input {
  cursor: pointer;
}

.asset-list-command:focus-within,
.asset-filter-chips button:focus-visible,
.asset-view-toggle button:focus-visible {
  outline: 3px solid rgba(0, 113, 227, .14);
  outline-offset: 2px;
}

@media (max-width: 1320px) {
  .storage-overview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .storage-overview-main,
  .storage-capacity-card {
    grid-column: span 2;
  }

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

  .storage-drive-actions {
    grid-template-columns: minmax(230px, auto) minmax(260px, 1fr) repeat(3, auto);
  }

  .storage-insight-row {
    grid-template-columns: 1fr;
  }

  .asset-drive-grid {
    grid-template-columns: minmax(210px, 260px) minmax(0, 1fr);
  }

  .asset-detail-side {
    grid-column: 1 / -1;
  }

  .asset-bulk-bar {
    grid-template-columns: 1fr;
  }

  .asset-bulk-fields input,
  .asset-bulk-fields select,
  .asset-bulk-actions button {
    width: 100%;
  }

  .asset-bulk-actions {
    justify-content: flex-start;
  }

  .asset-list-command {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .asset-list-controls {
    justify-content: space-between;
  }
}

@media (max-width: 780px) {
  .repository-console {
    gap: 10px;
  }

  .repository-hero {
    min-height: 0;
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
  }

  .repository-hero h2 {
    margin-bottom: 4px;
  }

  .repository-hero .subtle {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

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

  .repository-metrics {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 2px 4px;
    scroll-snap-type: x proximity;
  }

  .repository-metric {
    min-width: 118px;
    min-height: 64px;
    gap: 4px;
    padding: 10px;
    border-radius: 14px;
    scroll-snap-align: start;
  }

  .repository-metric strong {
    font-size: 18px;
  }

  .repository-metric span {
    font-size: 11px;
    line-height: 1.25;
  }

  .storage-overview-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(148px, 54vw);
    grid-template-columns: none;
    gap: 8px;
    overflow-x: auto;
    padding: 0 2px 4px;
    scroll-snap-type: x proximity;
  }

  .storage-overview-card {
    min-height: 88px;
    padding: 10px;
    border-radius: 14px;
    scroll-snap-align: start;
  }

  .storage-overview-main,
  .storage-capacity-card {
    grid-column: auto;
  }

  .storage-overview-main {
    grid-template-columns: 1fr;
    min-width: min(310px, 78vw);
  }

  .storage-overview-card strong,
  .storage-overview-card h3 {
    font-size: 16px;
  }

  .storage-overview-card > span,
  .storage-overview-card small,
  .storage-overview-main span {
    font-size: 11px;
    line-height: 1.35;
  }

  .storage-overview-actions {
    gap: 5px;
    margin-top: 7px;
  }

  .storage-overview-actions .tiny-btn {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 11px;
  }

  .storage-overview-list {
    max-height: 94px;
    overflow: hidden;
  }

  .storage-overview-list button {
    padding: 6px 7px;
    border-radius: 10px;
  }

  .repository-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .repository-toolbar label {
    min-width: 0;
  }

  .repository-toolbar label:first-child,
  .repository-toolbar button {
    grid-column: 1 / -1;
  }

  .repository-toolbar input,
  .repository-toolbar select {
    min-height: 36px;
    font-size: 12px;
  }

  .storage-drive-strip {
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
  }

  .storage-drive-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .storage-drive-actions {
    grid-template-columns: 1fr;
  }

  .storage-breadcrumb-row {
    grid-column: 1;
    flex-wrap: wrap;
  }

  .storage-space-tabs {
    width: 100%;
    border-radius: 14px;
  }

  .storage-space-tabs button {
    min-width: 0;
    padding: 6px 8px;
  }

  .storage-board-empty {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 14px;
  }

  .storage-board-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .storage-board-empty-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .asset-drive-grid {
    grid-template-columns: 1fr;
  }

  .repository-list-panel {
    order: 1;
    overflow: visible;
  }

  .asset-folder-panel {
    order: 2;
  }

  .asset-detail-side {
    order: 3;
    grid-column: auto;
  }

  .asset-folder-tree {
    max-height: none;
  }

  .asset-bulk-bar {
    grid-template-columns: 1fr;
    padding: 9px;
  }

  .asset-bulk-summary span {
    white-space: normal;
  }

  .asset-bulk-fields,
  .asset-bulk-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .asset-list-command {
    gap: 10px;
    padding: 10px;
    border-radius: 12px;
  }

  .asset-path-summary {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .asset-path-summary strong {
    font-size: 15px;
  }

  .asset-list-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .asset-sort-control {
    width: 100%;
    justify-content: space-between;
  }

  .asset-sort-control select,
  .asset-view-toggle {
    width: 100%;
  }

  .asset-view-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .asset-view-toggle button {
    width: 100%;
  }

  .asset-filter-chips {
    gap: 6px;
    margin-bottom: 10px;
  }

  .asset-filter-chips button {
    max-width: 100%;
  }

  .asset-filter-chips strong {
    max-width: 210px;
  }

  .repository-list-panel.cards-mode #documentCardsFull {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .repository-list-panel.cards-mode .document-card.asset-card {
    min-height: 0;
  }
}

/* Final visible typeface lock */
:root {
  --font-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-number: "DIN Alternate", "SF Pro Display", "Aptos", "Segoe UI", Arial, var(--font-cn);
  --type-body: 14px;
  --type-small: 12px;
  --type-title: 18px;
  --type-page: 24px;
  --type-hero: 31px;
}

html,
body,
button,
input,
select,
textarea,
.nav-item,
.chip,
.badge,
.data-table,
.assistant-bubble,
.user-bubble,
.document-card,
.archive-card,
.search-hit,
.list-item {
  font-family: var(--font-cn) !important;
  letter-spacing: 0;
}

body {
  color: #182230;
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.workspace-topbar h1,
.hero-login h1,
.login-panel h2,
.command-copy h2,
.ops-copy h2,
.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2,
.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2,
.brand-block strong,
.list-title strong,
.overview-project-head strong,
.overview-row strong {
  font-family: var(--font-display-cn) !important;
  font-weight: 560 !important;
  letter-spacing: 0;
}

.workspace-topbar h1 {
  font-size: var(--type-page) !important;
  line-height: 1.24 !important;
}

.command-copy h2,
.ops-copy h2 {
  font-size: var(--type-hero) !important;
  line-height: 1.24 !important;
}

.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2 {
  font-size: 23px !important;
  line-height: 1.28 !important;
}

.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2 {
  font-size: var(--type-title) !important;
  line-height: 1.32 !important;
}

.eyebrow {
  color: #5f6b7a;
  font-size: var(--type-small);
  font-weight: 560 !important;
  letter-spacing: 0;
  line-height: 1.38;
  text-transform: none;
}

.subtle,
.meta,
.overview-meta,
.brand-block span,
.nav-footer,
.data-table td,
.document-card .meta,
.archive-card .meta,
.search-hit p {
  color: #667085;
  font-weight: 400;
  line-height: 1.58;
}

.brand-block strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.28;
}

.brand-block span {
  font-size: 12px;
  line-height: 1.36;
}

.nav-item {
  min-height: 40px;
  color: #475467;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.22;
}

.nav-item.active {
  color: var(--cds-blue);
  font-weight: 560 !important;
}

button,
.chip,
.badge,
.runtime-pill,
.runtime-chips span {
  font-weight: 520;
}

button {
  min-height: 39px;
  line-height: 1.2;
}

input,
select,
textarea {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
  font-weight: 400;
}

.data-table th {
  color: #667085;
  font-size: 12px;
  font-weight: 500 !important;
}

.data-table td {
  color: #182230;
  font-size: 13px;
}

.data-table td strong,
.document-card strong,
.archive-card strong,
.search-hit strong,
.list-item strong,
.ledger-card-head strong,
.control-ledger-card strong {
  font-weight: 560 !important;
}

.stat-card strong,
.overview-score,
.overview-metrics strong,
.project-metric strong,
.repository-metric strong,
.search-metric strong,
.admin-metric strong,
.inbox-metric strong,
.control-status-strip strong,
.plant-zone strong,
.object-link-card strong,
.repository-governance-card strong {
  font-family: var(--font-number) !important;
  font-weight: 560 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.login-production .login-panel,
.panel-card,
.workspace-topbar,
.control-hero,
.plant-map-card,
.control-palette,
.control-knowledge,
.command-copy,
.agent-command-card,
.command-visual,
.stat-card,
.list-item,
.archive-card,
.config-form,
.search-hit,
.assistant-bubble {
  border-radius: 8px;
}

.login-production .login-visual {
  background:
    linear-gradient(90deg, rgba(8, 16, 34, .82), rgba(8, 16, 34, .48) 48%, rgba(8, 16, 34, .16)),
    url("/assets/industrial-cluster-hero.png") center/cover;
}

.login-production .brand-mark {
  border-radius: 8px;
  font-family: var(--font-display-cn) !important;
  font-weight: 560 !important;
}

.login-production .hero-login .eyebrow {
  color: rgba(241, 245, 249, .9);
  font-size: 12px;
  font-weight: 400 !important;
}

.login-production .hero-login h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(38px, 4.4vw, 56px) !important;
  font-weight: 560 !important;
  line-height: 1.16 !important;
}

.login-production .hero-login > p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(241, 245, 249, .92);
  font-size: clamp(15px, 1.12vw, 17px) !important;
  font-weight: 400;
  line-height: 1.82;
}

.login-production .login-metrics span {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.login-production .login-evidence span {
  font-size: 12px;
  font-weight: 400;
}

.login-production .login-panel {
  width: min(100% - 48px, 408px);
  padding: 32px 34px;
  border-color: #dfe7f2;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .1);
}

.login-production .login-panel .eyebrow {
  color: #2563eb;
  font-weight: 500 !important;
}

.login-production .login-panel h2 {
  color: #101828;
  font-size: 25px !important;
  font-weight: 560 !important;
  line-height: 1.26 !important;
}

.login-production .login-panel .subtle {
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.login-production .login-panel label,
.form-grid label,
.modal-card label,
.voice-field,
.voice-rate-field,
.control-entry-form label span {
  color: #344054;
  font-size: 12px;
  font-weight: 500 !important;
  line-height: 1.35;
}

.login-production .login-panel input {
  min-height: 44px;
  border-color: #d8e0ea;
  background: #f8fafc;
  color: #101828;
  font-size: 14px;
}

.login-production .login-panel button[type="submit"],
.login-production .login-panel > button {
  min-height: 44px;
  margin-top: 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 560;
}

.login-status-line {
  color: #667085;
  font-size: 12px;
  font-weight: 400;
}

@media (max-width: 780px) {
  :root {
    --type-body: 13px;
    --type-title: 16px;
    --type-page: 21px;
    --type-hero: 23px;
  }

  body,
  button,
  input,
  select,
  textarea,
  .nav-item,
  .chip,
  .badge,
  .assistant-bubble,
  .user-bubble {
    font-size: var(--type-body);
  }

  .workspace-topbar h1 {
    font-size: var(--type-page) !important;
    line-height: 1.24 !important;
  }

  .workspace-topbar .subtle,
  .meta {
    font-size: 12px;
  }

  .command-copy h2,
  .ops-copy h2,
  .control-hero h2,
  .project-hero h2,
  .repository-hero h2,
  .search-hero h2,
  .admin-hero h2 {
    font-size: var(--type-hero) !important;
    line-height: 1.26 !important;
  }

  .card-head h2,
  .plant-map-head h2,
  .compact-head h2,
  .panel-card h2,
  .ops-panel h2 {
    font-size: var(--type-title) !important;
    line-height: 1.3 !important;
  }

  .nav-item {
    min-height: 36px;
    font-size: 12px !important;
  }

  .login-production .login-visual {
    padding: 18px 16px 0;
  }

  .login-production .brand-mark {
    width: 38px;
    height: 38px;
    margin-bottom: 13px;
    font-size: 19px;
  }

  .login-production .hero-login .eyebrow {
    margin-bottom: 6px;
  }

  .login-production .hero-login h1 {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  .login-production .login-panel {
    width: calc(100% - 20px);
    margin-bottom: 18px;
    padding: 20px;
  }

  .login-production .login-panel h2 {
    font-size: 22px !important;
  }

  .login-production .login-panel .subtle {
    font-size: 12px;
    line-height: 1.55;
  }

  .login-production .login-panel label {
    margin-top: 15px;
  }
}

@media (max-width: 360px) {
  .login-production .login-visual {
    padding: 15px 12px 0;
  }

  .login-production .hero-login h1 {
    font-size: 23px !important;
  }

  .login-production .login-panel {
    width: calc(100% - 14px);
    padding: 18px;
  }
}

/* Typeface lock */
:root {
  --font-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-number: "DIN Alternate", "SF Pro Display", "Aptos", "Segoe UI", Arial, var(--font-cn);
  --type-body: 14px;
  --type-small: 12px;
  --type-title: 18px;
  --type-page: 24px;
  --type-hero: 31px;
}

html,
body,
button,
input,
select,
textarea,
.nav-item,
.chip,
.badge,
.data-table,
.assistant-bubble,
.user-bubble,
.document-card,
.archive-card,
.search-hit,
.list-item {
  font-family: var(--font-cn) !important;
  letter-spacing: 0;
}

body {
  color: #182230;
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.workspace-topbar h1,
.hero-login h1,
.login-panel h2,
.command-copy h2,
.ops-copy h2,
.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2,
.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2,
.brand-block strong,
.list-title strong,
.overview-project-head strong,
.overview-row strong {
  font-family: var(--font-display-cn) !important;
  font-weight: 560 !important;
  letter-spacing: 0;
}

.workspace-topbar h1 {
  font-size: var(--type-page) !important;
  line-height: 1.24 !important;
}

.command-copy h2,
.ops-copy h2 {
  font-size: var(--type-hero) !important;
  line-height: 1.24 !important;
}

.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2 {
  font-size: 23px !important;
  line-height: 1.28 !important;
}

.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2 {
  font-size: var(--type-title) !important;
  line-height: 1.32 !important;
}

.eyebrow {
  color: #5f6b7a;
  font-size: var(--type-small);
  font-weight: 500 !important;
  letter-spacing: 0;
  line-height: 1.38;
  text-transform: none;
}

.subtle,
.meta,
.overview-meta,
.brand-block span,
.nav-footer,
.data-table td,
.document-card .meta,
.archive-card .meta,
.search-hit p {
  color: #667085;
  font-weight: 400;
  line-height: 1.58;
}

.brand-block strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.28;
}

.brand-block span {
  font-size: 12px;
  line-height: 1.36;
}

.nav-item {
  min-height: 40px;
  color: #475467;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.22;
}

.nav-item.active {
  color: var(--cds-blue);
  font-weight: 560 !important;
}

button,
.chip,
.badge,
.runtime-pill,
.runtime-chips span {
  font-weight: 520;
}

button {
  min-height: 39px;
  line-height: 1.2;
}

input,
select,
textarea {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
  font-weight: 400;
}

.data-table th {
  color: #667085;
  font-size: 12px;
  font-weight: 500 !important;
}

.data-table td {
  color: #182230;
  font-size: 13px;
}

.data-table td strong,
.document-card strong,
.archive-card strong,
.search-hit strong,
.list-item strong,
.ledger-card-head strong,
.control-ledger-card strong {
  font-weight: 560 !important;
}

.stat-card strong,
.overview-score,
.overview-metrics strong,
.project-metric strong,
.repository-metric strong,
.search-metric strong,
.admin-metric strong,
.inbox-metric strong,
.control-status-strip strong,
.plant-zone strong,
.object-link-card strong,
.repository-governance-card strong {
  font-family: var(--font-number) !important;
  font-weight: 560 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.login-production .login-panel,
.panel-card,
.workspace-topbar,
.control-hero,
.plant-map-card,
.control-palette,
.control-knowledge,
.command-copy,
.agent-command-card,
.command-visual,
.stat-card,
.list-item,
.archive-card,
.config-form,
.search-hit,
.assistant-bubble {
  border-radius: 8px;
}

.login-production .login-visual {
  background:
    linear-gradient(90deg, rgba(8, 16, 34, .82), rgba(8, 16, 34, .48) 48%, rgba(8, 16, 34, .16)),
    url("/assets/industrial-cluster-hero.png") center/cover;
}

.login-production .brand-mark {
  border-radius: 8px;
  font-family: var(--font-display-cn) !important;
  font-weight: 560 !important;
}

.login-production .hero-login .eyebrow {
  color: rgba(241, 245, 249, .9);
  font-size: 12px;
  font-weight: 400 !important;
}

.login-production .hero-login h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(38px, 4.4vw, 56px) !important;
  font-weight: 560 !important;
  line-height: 1.16 !important;
}

.login-production .hero-login > p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(241, 245, 249, .92);
  font-size: clamp(15px, 1.12vw, 17px) !important;
  font-weight: 400;
  line-height: 1.82;
}

.login-production .login-metrics span {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.login-production .login-evidence span {
  font-size: 12px;
  font-weight: 400;
}

.login-production .login-panel {
  width: min(100% - 48px, 408px);
  padding: 32px 34px;
  border-color: #dfe7f2;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .1);
}

.login-production .login-panel .eyebrow {
  color: #2563eb;
  font-weight: 500 !important;
}

.login-production .login-panel h2 {
  color: #101828;
  font-size: 25px !important;
  font-weight: 560 !important;
  line-height: 1.26 !important;
}

.login-production .login-panel .subtle {
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.login-production .login-panel label,
.form-grid label,
.modal-card label,
.voice-field,
.voice-rate-field,
.control-entry-form label span {
  color: #344054;
  font-size: 12px;
  font-weight: 500 !important;
  line-height: 1.35;
}

.login-production .login-panel input {
  min-height: 44px;
  border-color: #d8e0ea;
  background: #f8fafc;
  color: #101828;
  font-size: 14px;
}

.login-production .login-panel button[type="submit"],
.login-production .login-panel > button {
  min-height: 44px;
  margin-top: 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 560;
}

.login-status-line {
  color: #667085;
  font-size: 12px;
  font-weight: 400;
}

@media (max-width: 780px) {
  :root {
    --type-body: 13px;
    --type-title: 16px;
    --type-page: 21px;
    --type-hero: 23px;
  }

  body,
  button,
  input,
  select,
  textarea,
  .nav-item,
  .chip,
  .badge,
  .assistant-bubble,
  .user-bubble {
    font-size: var(--type-body);
  }

  .workspace-topbar h1 {
    font-size: var(--type-page) !important;
    line-height: 1.24 !important;
  }

  .workspace-topbar .subtle,
  .meta {
    font-size: 12px;
  }

  .command-copy h2,
  .ops-copy h2,
  .control-hero h2,
  .project-hero h2,
  .repository-hero h2,
  .search-hero h2,
  .admin-hero h2 {
    font-size: var(--type-hero) !important;
    line-height: 1.26 !important;
  }

  .card-head h2,
  .plant-map-head h2,
  .compact-head h2,
  .panel-card h2,
  .ops-panel h2 {
    font-size: var(--type-title) !important;
    line-height: 1.3 !important;
  }

  .nav-item {
    min-height: 36px;
    font-size: 12px !important;
  }

  .login-production .login-visual {
    padding: 18px 16px 0;
  }

  .login-production .brand-mark {
    width: 38px;
    height: 38px;
    margin-bottom: 13px;
    font-size: 19px;
  }

  .login-production .hero-login .eyebrow {
    margin-bottom: 6px;
  }

  .login-production .hero-login h1 {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  .login-production .login-panel {
    width: calc(100% - 20px);
    margin-bottom: 18px;
    padding: 20px;
  }

  .login-production .login-panel h2 {
    font-size: 22px !important;
  }

  .login-production .login-panel .subtle {
    font-size: 12px;
    line-height: 1.55;
  }

  .login-production .login-panel label {
    margin-top: 15px;
  }
}

@media (max-width: 360px) {
  .login-production .login-visual {
    padding: 15px 12px 0;
  }

  .login-production .hero-login h1 {
    font-size: 23px !important;
  }

  .login-production .login-panel {
    width: calc(100% - 14px);
    padding: 18px;
  }
}

/* Final typography refinement */
:root {
  --font-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-number: "DIN Alternate", "SF Pro Display", "Aptos", "Segoe UI", Arial, var(--font-cn);
  --type-body: 14px;
  --type-small: 12px;
  --type-title: 18px;
  --type-page: 24px;
  --type-hero: 31px;
}

html,
body {
  font-family: var(--font-cn) !important;
}

body {
  color: #182230;
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea,
.nav-item,
.chip,
.badge,
.data-table,
.assistant-bubble,
.user-bubble,
.document-card,
.archive-card,
.search-hit,
.list-item {
  font-family: var(--font-cn) !important;
  letter-spacing: 0;
  font-feature-settings: "kern" 1;
}

h1,
h2,
h3,
.workspace-topbar h1,
.hero-login h1,
.login-panel h2,
.command-copy h2,
.ops-copy h2,
.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2,
.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2,
.brand-block strong,
.list-title strong,
.overview-project-head strong,
.overview-row strong {
  font-family: var(--font-display-cn) !important;
  font-weight: 560 !important;
  letter-spacing: 0;
}

.workspace-topbar h1 {
  font-size: var(--type-page) !important;
  line-height: 1.24 !important;
}

.command-copy h2,
.ops-copy h2 {
  font-size: var(--type-hero) !important;
  line-height: 1.24 !important;
}

.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2 {
  font-size: 23px !important;
  line-height: 1.28 !important;
}

.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2 {
  font-size: var(--type-title) !important;
  line-height: 1.32 !important;
}

.eyebrow {
  color: #5f6b7a;
  font-size: var(--type-small);
  font-weight: 500 !important;
  letter-spacing: 0;
  line-height: 1.38;
  text-transform: none;
}

.subtle,
.meta,
.overview-meta,
.brand-block span,
.nav-footer,
.data-table td,
.document-card .meta,
.archive-card .meta,
.search-hit p {
  color: #667085;
  font-weight: 400;
  line-height: 1.58;
}

.brand-block strong {
  color: #111827;
  font-size: 15px;
  line-height: 1.28;
}

.brand-block span {
  font-size: 12px;
  line-height: 1.36;
}

.nav-item {
  min-height: 40px;
  color: #475467;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.22;
}

.nav-item.active {
  color: var(--cds-blue);
  font-weight: 560 !important;
}

button,
.chip,
.badge,
.runtime-pill,
.runtime-chips span {
  font-weight: 520;
}

button {
  min-height: 39px;
  line-height: 1.2;
}

button.text-btn,
button.small-btn,
.row-actions a,
.row-actions button {
  font-size: 12px;
  font-weight: 500;
}

input,
select,
textarea {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.42;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
  font-weight: 400;
}

.data-table th {
  color: #667085;
  font-size: 12px;
  font-weight: 500 !important;
}

.data-table td {
  color: #182230;
  font-size: 13px;
}

.data-table td strong,
.document-card strong,
.archive-card strong,
.search-hit strong,
.list-item strong,
.ledger-card-head strong,
.control-ledger-card strong {
  font-weight: 560 !important;
}

.chip,
.badge,
.runtime-pill {
  min-height: 24px;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.18;
}

.stat-card strong,
.overview-score,
.overview-metrics strong,
.project-metric strong,
.repository-metric strong,
.search-metric strong,
.admin-metric strong,
.inbox-metric strong,
.control-status-strip strong,
.plant-zone strong,
.object-link-card strong,
.repository-governance-card strong {
  font-family: var(--font-number) !important;
  font-weight: 560 !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.login-production .login-panel,
.panel-card,
.workspace-topbar,
.control-hero,
.plant-map-card,
.control-palette,
.control-knowledge,
.command-copy,
.agent-command-card,
.command-visual,
.stat-card,
.list-item,
.archive-card,
.config-form,
.search-hit,
.assistant-bubble {
  border-radius: 8px;
}

.login-production .login-visual {
  background:
    linear-gradient(90deg, rgba(8, 16, 34, .82), rgba(8, 16, 34, .48) 48%, rgba(8, 16, 34, .16)),
    url("/assets/industrial-cluster-hero.png") center/cover;
}

.login-production .brand-mark {
  border-radius: 8px;
  font-family: var(--font-display-cn) !important;
  font-weight: 560 !important;
}

.login-production .hero-login .eyebrow {
  color: rgba(241, 245, 249, .9);
  font-size: 12px;
  font-weight: 400 !important;
}

.login-production .hero-login h1 {
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(38px, 4.4vw, 56px) !important;
  font-weight: 560 !important;
  line-height: 1.16 !important;
}

.login-production .hero-login > p:not(.eyebrow) {
  max-width: 650px;
  color: rgba(241, 245, 249, .92);
  font-size: clamp(15px, 1.12vw, 17px) !important;
  font-weight: 400;
  line-height: 1.82;
}

.login-production .login-metrics span {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
}

.login-production .login-evidence span {
  font-size: 12px;
  font-weight: 400;
}

.login-production .login-panel {
  width: min(100% - 48px, 408px);
  padding: 32px 34px;
  border-color: #dfe7f2;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 46px rgba(15, 23, 42, .1);
}

.login-production .login-panel .eyebrow {
  color: #2563eb;
  font-weight: 500 !important;
}

.login-production .login-panel h2 {
  color: #101828;
  font-size: 25px !important;
  font-weight: 560 !important;
  line-height: 1.26 !important;
}

.login-production .login-panel .subtle {
  color: #667085;
  font-size: 13px;
  line-height: 1.6;
}

.login-production .login-panel label,
.form-grid label,
.modal-card label,
.voice-field,
.voice-rate-field,
.control-entry-form label span {
  color: #344054;
  font-size: 12px;
  font-weight: 500 !important;
  line-height: 1.35;
}

.login-production .login-panel input {
  min-height: 44px;
  border-color: #d8e0ea;
  background: #f8fafc;
  color: #101828;
  font-size: 14px;
}

.login-production .login-panel button[type="submit"],
.login-production .login-panel > button {
  min-height: 44px;
  margin-top: 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 560;
}

.login-status-line {
  color: #667085;
  font-size: 12px;
  font-weight: 400;
}

@media (max-width: 780px) {
  :root {
    --type-body: 13px;
    --type-title: 16px;
    --type-page: 21px;
    --type-hero: 23px;
  }

  body,
  button,
  input,
  select,
  textarea,
  .nav-item,
  .chip,
  .badge,
  .assistant-bubble,
  .user-bubble {
    font-size: var(--type-body);
  }

  .workspace-topbar h1 {
    font-size: var(--type-page) !important;
    line-height: 1.24 !important;
  }

  .workspace-topbar .subtle,
  .meta {
    font-size: 12px;
  }

  .command-copy h2,
  .ops-copy h2,
  .control-hero h2,
  .project-hero h2,
  .repository-hero h2,
  .search-hero h2,
  .admin-hero h2 {
    font-size: var(--type-hero) !important;
    line-height: 1.26 !important;
  }

  .card-head h2,
  .plant-map-head h2,
  .compact-head h2,
  .panel-card h2,
  .ops-panel h2 {
    font-size: var(--type-title) !important;
    line-height: 1.3 !important;
  }

  .nav-item {
    min-height: 36px;
    font-size: 12px !important;
  }

  .login-production .login-visual {
    padding: 18px 16px 0;
  }

  .login-production .brand-mark {
    width: 38px;
    height: 38px;
    margin-bottom: 13px;
    font-size: 19px;
  }

  .login-production .hero-login .eyebrow {
    margin-bottom: 6px;
  }

  .login-production .hero-login h1 {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  .login-production .login-panel {
    width: calc(100% - 20px);
    margin-bottom: 18px;
    padding: 20px;
  }

  .login-production .login-panel h2 {
    font-size: 22px !important;
  }

  .login-production .login-panel .subtle {
    font-size: 12px;
    line-height: 1.55;
  }

  .login-production .login-panel label {
    margin-top: 15px;
  }
}

@media (max-width: 360px) {
  .login-production .login-visual {
    padding: 15px 12px 0;
  }

  .login-production .hero-login h1 {
    font-size: 23px !important;
  }

  .login-production .login-panel {
    width: calc(100% - 14px);
    padding: 18px;
  }
}

/* Calm Chinese type tuning */
html,
body,
button,
input,
select,
textarea {
  font-synthesis-weight: none;
}

body {
  color: #1d2939;
  line-height: 1.66;
}

h1,
h2,
h3,
.workspace-topbar h1,
.hero-login h1,
.login-panel h2,
.command-copy h2,
.ops-copy h2,
.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2,
.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2,
.brand-block strong,
.list-title strong,
.portfolio-card-top strong,
.overview-project-head strong,
.overview-row strong {
  color: #182230;
  font-weight: 520;
}

.workspace-topbar h1 {
  font-size: 24px;
  line-height: 1.25;
}

.command-copy h2,
.ops-copy h2 {
  font-size: 28px;
  font-weight: 520;
  line-height: 1.24;
}

.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2 {
  font-size: 22px;
  font-weight: 520;
  line-height: 1.28;
}

.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2 {
  font-size: 18px;
  font-weight: 520;
  line-height: 1.3;
}

.eyebrow {
  color: #667085;
  font-weight: 500;
}

.subtle,
.meta,
.workspace-topbar .subtle,
.brand-block span {
  color: #667085;
}

.nav-item,
button,
.chip,
.badge,
.runtime-pill,
.runtime-chips span,
.repository-governance-card b {
  font-weight: 500;
}

.nav-item.active,
.data-table td strong,
.document-card strong,
.archive-card strong,
.search-hit strong,
.list-item strong,
.ledger-card-head strong,
.control-ledger-card strong,
.repository-governance-card span {
  font-weight: 560;
}

.data-table th {
  font-weight: 500;
}

.login-production .hero-login h1 {
  max-width: 680px;
  font-size: clamp(34px, 4.2vw, 48px);
  font-weight: 520;
  line-height: 1.15;
}

.login-production .hero-login > p:not(.eyebrow) {
  max-width: 610px;
  font-size: clamp(14px, 1.12vw, 16px);
  line-height: 1.76;
}

.login-production .login-panel h2 {
  font-size: 25px;
  font-weight: 520;
  line-height: 1.24;
}

.login-production .login-panel label,
.search-workbar label span,
.repository-toolbar label span,
.control-entry-form label span {
  font-weight: 500;
}

.login-production .login-metrics span {
  font-weight: 500;
}

.stat-card strong,
.overview-score,
.overview-metrics strong,
.project-metric strong,
.repository-metric strong,
.search-metric strong,
.admin-metric strong,
.inbox-metric strong,
.control-status-strip strong,
.plant-zone strong,
.object-link-card strong,
.repository-governance-card strong {
  color: #182230;
  font-weight: 560;
}

@media (max-width: 780px) {
  .workspace-topbar h1 {
    font-size: 22px;
  }

  .command-copy h2,
  .ops-copy h2,
  .control-hero h2,
  .project-hero h2,
  .repository-hero h2,
  .search-hero h2,
  .admin-hero h2 {
    font-size: 23px;
  }

  .card-head h2,
  .plant-map-head h2,
  .compact-head h2,
  .panel-card h2,
  .ops-panel h2 {
    font-size: 17px;
  }

  .login-production .hero-login h1 {
    font-size: 25px;
  }

  .login-production .login-panel h2 {
    font-size: 22px;
  }
}

@media (max-width: 360px) {
  .login-production .hero-login h1 {
    font-size: 24px;
  }
}

/* Definitive Chinese typography correction */
:root {
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif;
  --font-display-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans CJK SC", "Source Han Sans SC", Arial, sans-serif;
}

body,
button,
input,
select,
textarea,
.nav-item,
.chip,
.badge,
.data-table,
.assistant-bubble,
.user-bubble {
  color: #243044;
  font-family: var(--font-cn) !important;
  font-weight: 400;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
.workspace-topbar h1,
.hero-login h1,
.login-panel h2,
.command-copy h2,
.ops-copy h2,
.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2,
.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2,
.brand-block strong,
.list-title strong,
.portfolio-card-top strong,
.overview-project-head strong,
.overview-row strong {
  color: #182230;
  font-family: var(--font-display-cn) !important;
  font-weight: 500 !important;
  letter-spacing: 0;
}

.login-production .hero-login h1 {
  max-width: 640px;
  font-size: clamp(36px, 4.2vw, 52px) !important;
  font-weight: 560 !important;
  line-height: 1.16 !important;
}

.login-production .hero-login > p:not(.eyebrow) {
  max-width: 590px;
  margin-top: 16px;
  font-size: clamp(14px, 1.04vw, 16px) !important;
  font-weight: 400;
  line-height: 1.78;
}

.login-production .login-panel h2 {
  font-size: 24px !important;
  font-weight: 560 !important;
  line-height: 1.28 !important;
}

.workspace-topbar h1 {
  font-size: 23px !important;
  font-weight: 560 !important;
  line-height: 1.26 !important;
}

.command-copy h2,
.ops-copy h2 {
  font-size: 27px !important;
  font-weight: 560 !important;
  line-height: 1.26 !important;
}

.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2 {
  font-size: 21px !important;
  font-weight: 560 !important;
  line-height: 1.3 !important;
}

.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2 {
  font-size: 17px !important;
  font-weight: 560 !important;
  line-height: 1.32 !important;
}

.brand-block strong,
.data-table td strong,
.document-card strong,
.archive-card strong,
.search-hit strong,
.list-item strong,
.ledger-card-head strong,
.control-ledger-card strong,
.repository-governance-card span,
.overview-row strong {
  font-weight: 560 !important;
}

.nav-item,
.eyebrow,
button,
.chip,
.badge,
.runtime-pill,
.runtime-chips span,
.repository-governance-card b,
.login-production .login-panel label,
.search-workbar label span,
.repository-toolbar label span,
.control-entry-form label span {
  font-weight: 500 !important;
}

.nav-item.active,
button[type="submit"],
.avatar-btn,
.global-search button {
  font-weight: 560 !important;
}

.eyebrow {
  color: #6b7585;
  font-size: 12px;
  line-height: 1.38;
}

.subtle,
.meta,
.workspace-topbar .subtle,
.brand-block span,
.data-table td .meta,
.document-card .meta,
.archive-card .meta,
.search-hit p {
  color: #6b7585;
}

.stat-card strong,
.overview-score,
.overview-metrics strong,
.project-metric strong,
.repository-metric strong,
.search-metric strong,
.admin-metric strong,
.inbox-metric strong,
.control-status-strip strong,
.plant-zone strong,
.object-link-card strong,
.repository-governance-card strong {
  color: #182230;
  font-weight: 560 !important;
}

@media (max-width: 780px) {
  .login-production .hero-login h1 {
    font-size: 23px !important;
    line-height: 1.2 !important;
  }

  .login-production .login-panel h2 {
    font-size: 21px !important;
  }

  .workspace-topbar h1 {
    font-size: 21px !important;
  }

  .command-copy h2,
  .ops-copy h2,
  .control-hero h2,
  .project-hero h2,
  .repository-hero h2,
  .search-hero h2,
  .admin-hero h2 {
    font-size: 22px !important;
  }

  .card-head h2,
  .plant-map-head h2,
  .compact-head h2,
  .panel-card h2,
  .ops-panel h2 {
    font-size: 16px !important;
  }
}

/* Readability and typography refinement */
:root {
  --font-cn: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display-cn: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-number: "SF Pro Display", "DIN Alternate", "Arial Narrow", Arial, var(--font-cn);
  --type-body: 14px;
  --type-small: 12px;
  --type-title: 20px;
  --type-page: 28px;
  --type-hero: 32px;
}

body {
  color: #0f172a;
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.62;
}

body,
button,
input,
select,
textarea,
.nav-item,
.chip,
.badge,
.data-table,
.assistant-bubble,
.user-bubble {
  font-family: var(--font-cn);
  font-size: var(--type-body);
  letter-spacing: 0;
  font-feature-settings: "kern" 1, "tnum" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
.workspace-topbar h1,
.hero-login h1,
.login-panel h2,
.command-copy h2,
.ops-copy h2,
.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2,
.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2,
.brand-block strong,
.list-title strong,
.portfolio-card-top strong,
.overview-project-head strong,
.overview-row strong {
  color: #0b1220;
  font-family: var(--font-display-cn);
  font-weight: 650;
  letter-spacing: 0;
}

.workspace-topbar h1 {
  font-size: var(--type-page);
  line-height: 1.18;
}

.command-copy h2,
.ops-copy h2 {
  font-size: var(--type-hero);
  line-height: 1.18;
}

.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2 {
  font-size: 25px;
  line-height: 1.22;
}

.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2 {
  font-size: var(--type-title);
  line-height: 1.25;
}

.eyebrow {
  color: #526071;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1.36;
  text-transform: none;
}

.subtle,
.meta,
.overview-meta,
.nav-footer,
.brand-block span,
.data-table th,
.data-table td {
  line-height: 1.58;
}

.workspace-topbar .subtle,
.brand-block span,
.meta {
  color: #5b6778;
}

.nav-item {
  min-height: 40px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.24;
}

.brand-block strong {
  font-size: 16px;
  line-height: 1.24;
}

.brand-block span {
  font-size: 12px;
  line-height: 1.38;
}

button,
.chip,
.badge,
.runtime-pill,
.runtime-chips span,
.repository-governance-card b {
  font-weight: 600;
}

button {
  min-height: 40px;
}

button.text-btn,
button.small-btn,
.row-actions a,
.row-actions button {
  font-size: 12px;
  font-weight: 600;
}

.data-table th {
  color: #526071;
  font-size: 12px;
  font-weight: 650;
}

.data-table td {
  color: #111827;
  font-size: 14px;
  line-height: 1.56;
}

.data-table td strong,
.document-card strong,
.archive-card strong,
.search-hit strong,
.list-item strong,
.ledger-card-head strong,
.control-ledger-card strong,
.repository-governance-card span {
  font-weight: 650;
}

.data-table td .meta,
.document-card .meta,
.archive-card .meta,
.search-hit p {
  color: #5b6778;
  font-size: 13px;
}

.chip,
.badge,
.runtime-pill {
  min-height: 25px;
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.18;
}

.stat-card strong,
.overview-score,
.overview-metrics strong,
.project-metric strong,
.repository-metric strong,
.search-metric strong,
.admin-metric strong,
.inbox-metric strong,
.control-status-strip strong,
.plant-zone strong,
.object-link-card strong,
.repository-governance-card strong {
  font-family: var(--font-number);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.document-card {
  gap: 8px;
  padding: 12px;
  border-left: 3px solid #d7e3f1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .055);
}

.document-card .list-title {
  gap: 8px;
  align-items: flex-start;
}

.document-card .list-title strong,
.archive-card .list-title strong,
.search-hit strong {
  color: #0b1220;
  font-size: 15px;
  line-height: 1.34;
  word-break: break-word;
}

.document-card .meta,
.archive-card .meta,
.search-hit p {
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

.document-card .doc-card-meta {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr) auto;
  gap: 6px;
  color: #667085;
  font-size: 12px;
  line-height: 1.34;
}

.document-card .doc-card-meta span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.object-link-action {
  width: 100%;
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--cds-border-subtle);
  border-radius: var(--radius-card);
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}

.object-link-action:hover {
  border-color: #b9d8ff;
  background: #fbfdff;
}

.object-link-action:focus-visible {
  outline: 3px solid rgba(37, 99, 235, .18);
  outline-offset: 2px;
}

.object-link-action b {
  justify-self: start;
  color: #2563eb;
  font-size: 12px;
  font-weight: 650;
}

@media (max-width: 780px) {
  :root {
    --type-body: 14px;
    --type-small: 12px;
    --type-title: 18px;
    --type-page: 24px;
    --type-hero: 26px;
  }

  body,
  button,
  input,
  select,
  textarea,
  .nav-item,
  .chip,
  .badge,
  .data-table,
  .assistant-bubble,
  .user-bubble {
    font-size: var(--type-body);
  }

  .workspace-topbar h1 {
    font-size: var(--type-page);
    line-height: 1.18;
  }

  .workspace-topbar .subtle,
  .meta {
    font-size: 13px;
  }

  .command-copy h2,
  .ops-copy h2,
  .control-hero h2,
  .project-hero h2,
  .repository-hero h2,
  .search-hero h2,
  .admin-hero h2 {
    font-size: var(--type-hero);
    line-height: 1.22;
  }

  .card-head h2,
  .plant-map-head h2,
  .compact-head h2,
  .panel-card h2,
  .ops-panel h2 {
    font-size: var(--type-title);
    line-height: 1.24;
  }

  .nav-item {
    min-height: 38px;
    font-size: 13px;
  }

  .document-card-list {
    gap: 8px;
  }

  .document-card {
    gap: 7px;
    padding: 10px;
  }

  .document-card .list-title {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
  }

  .document-card .list-title strong,
  .archive-card .list-title strong,
  .search-hit strong {
    font-size: 14px;
    line-height: 1.32;
  }

  .document-card .meta,
  .archive-card .meta,
  .search-hit p {
    font-size: 13px;
    line-height: 1.42;
    -webkit-line-clamp: 2;
  }

  .document-card .doc-card-meta {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 5px 8px;
    font-size: 12px;
    line-height: 1.25;
  }

  .document-card .doc-card-meta span:first-child {
    grid-column: 1 / -1;
  }

  .document-card .row-actions {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    margin-top: 1px;
  }

  .document-card .row-actions a,
  .document-card .row-actions button {
    min-width: 0;
    min-height: 30px;
    padding: 4px 2px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .workspace-topbar h1 {
    font-size: 23px;
  }

  .command-copy h2,
  .ops-copy h2,
  .control-hero h2,
  .project-hero h2,
  .repository-hero h2,
  .search-hero h2,
  .admin-hero h2 {
    font-size: 24px;
  }

  .document-card .row-actions a,
  .document-card .row-actions button {
    font-size: 11px;
  }
}

/* Final typeface tuning for production readability */
:root {
  --font-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display-cn: "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-number: "DIN Alternate", "SF Pro Display", "Aptos", "Segoe UI", Arial, var(--font-cn);
  --type-body: 14px;
  --type-small: 12px;
  --type-title: 19px;
  --type-page: 25px;
  --type-hero: 30px;
}

html,
body {
  font-family: var(--font-cn);
}

body {
  color: #172033;
  font-size: var(--type-body);
  font-weight: 400;
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select,
textarea,
.nav-item,
.chip,
.badge,
.data-table,
.assistant-bubble,
.user-bubble {
  font-family: var(--font-cn);
  font-size: var(--type-body);
  letter-spacing: 0;
  font-feature-settings: "kern" 1;
}

h1,
h2,
h3,
.workspace-topbar h1,
.hero-login h1,
.login-panel h2,
.command-copy h2,
.ops-copy h2,
.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2,
.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2,
.brand-block strong,
.list-title strong,
.portfolio-card-top strong,
.overview-project-head strong,
.overview-row strong {
  color: #111827;
  font-family: var(--font-display-cn);
  font-weight: 560;
  letter-spacing: 0;
}

.workspace-topbar h1 {
  font-size: var(--type-page);
  line-height: 1.22;
}

.command-copy h2,
.ops-copy h2 {
  font-size: var(--type-hero);
  font-weight: 560;
  line-height: 1.22;
}

.control-hero h2,
.project-hero h2,
.repository-hero h2,
.search-hero h2,
.admin-hero h2 {
  font-size: 24px;
  line-height: 1.24;
}

.card-head h2,
.plant-map-head h2,
.compact-head h2,
.panel-card h2,
.ops-panel h2 {
  font-size: var(--type-title);
  line-height: 1.28;
}

.eyebrow {
  color: #647084;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.38;
  text-transform: none;
}

.subtle,
.meta,
.overview-meta,
.nav-footer,
.brand-block span,
.data-table th,
.data-table td {
  line-height: 1.58;
}

.workspace-topbar .subtle,
.brand-block span,
.meta {
  color: #667085;
}

.brand-block strong {
  font-size: 15px;
  font-weight: 560;
  line-height: 1.28;
}

.brand-block span {
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.38;
}

.nav-item {
  min-height: 38px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.24;
}

.nav-item.active {
  font-weight: 560;
}

button,
.chip,
.badge,
.runtime-pill,
.runtime-chips span,
.repository-governance-card b {
  font-weight: 500;
}

button {
  min-height: 38px;
  line-height: 1.2;
}

button.text-btn,
button.small-btn,
.row-actions a,
.row-actions button {
  font-size: 12px;
  font-weight: 500;
}

input,
select,
textarea {
  font-weight: 400;
  line-height: 1.42;
}

input::placeholder,
textarea::placeholder {
  color: #98a2b3;
}

.data-table th {
  color: #647084;
  font-size: 12px;
  font-weight: 500;
}

.data-table td {
  color: #172033;
  font-size: 13px;
  line-height: 1.58;
}

.data-table td strong,
.document-card strong,
.archive-card strong,
.search-hit strong,
.list-item strong,
.ledger-card-head strong,
.control-ledger-card strong,
.repository-governance-card span {
  font-weight: 560;
}

.data-table td .meta,
.document-card .meta,
.archive-card .meta,
.search-hit p {
  color: #667085;
  font-size: 13px;
}

.chip,
.badge,
.runtime-pill {
  min-height: 24px;
  padding: 3px 9px;
  font-size: 12px;
  line-height: 1.18;
}

.stat-card strong,
.overview-score,
.overview-metrics strong,
.project-metric strong,
.repository-metric strong,
.search-metric strong,
.admin-metric strong,
.inbox-metric strong,
.control-status-strip strong,
.plant-zone strong,
.object-link-card strong,
.repository-governance-card strong {
  font-family: var(--font-number);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.login-production .hero-login h1 {
  font-size: clamp(40px, 4.8vw, 58px);
  font-weight: 600;
  line-height: 1.12;
}

.login-production .hero-login > p:not(.eyebrow) {
  font-size: clamp(15px, 1.22vw, 17px);
  line-height: 1.78;
}

.login-production .login-panel h2 {
  font-size: 27px;
  font-weight: 600;
  line-height: 1.2;
}

.login-production .login-panel .subtle {
  line-height: 1.62;
}

.login-production .login-panel label {
  font-weight: 500;
}

.document-card .list-title strong,
.archive-card .list-title strong,
.search-hit strong {
  color: #111827;
  font-size: 14px;
  line-height: 1.38;
  word-break: break-word;
}

.document-card .meta,
.archive-card .meta,
.search-hit p {
  line-height: 1.5;
  -webkit-line-clamp: 2;
}

.document-card .doc-card-meta {
  color: #667085;
  font-size: 12px;
  line-height: 1.34;
}

@media (max-width: 780px) {
  :root {
    --type-body: 13px;
    --type-small: 12px;
    --type-title: 17px;
    --type-page: 22px;
    --type-hero: 24px;
  }

  body,
  button,
  input,
  select,
  textarea,
  .nav-item,
  .chip,
  .badge,
  .data-table,
  .assistant-bubble,
  .user-bubble {
    font-size: var(--type-body);
  }

  .workspace-topbar h1 {
    font-size: var(--type-page);
    line-height: 1.22;
  }

  .workspace-topbar .subtle,
  .meta {
    font-size: 12px;
  }

  .command-copy h2,
  .ops-copy h2,
  .control-hero h2,
  .project-hero h2,
  .repository-hero h2,
  .search-hero h2,
  .admin-hero h2 {
    font-size: var(--type-hero);
    line-height: 1.24;
  }

  .card-head h2,
  .plant-map-head h2,
  .compact-head h2,
  .panel-card h2,
  .ops-panel h2 {
    font-size: var(--type-title);
    line-height: 1.26;
  }

  .nav-item {
    min-height: 36px;
    font-size: 12px;
  }

  .login-production .hero-login h1 {
    font-size: 28px;
    line-height: 1.16;
  }

  .login-production .login-panel h2 {
    font-size: 23px;
  }

  .document-card .list-title strong,
  .archive-card .list-title strong,
  .search-hit strong {
    font-size: 13px;
    line-height: 1.36;
  }
}

@media (max-width: 360px) {
  .workspace-topbar h1 {
    font-size: 21px;
  }

  .command-copy h2,
  .ops-copy h2,
  .control-hero h2,
  .project-hero h2,
  .repository-hero h2,
  .search-hero h2,
  .admin-hero h2 {
    font-size: 22px;
  }
}

/* Authoritative final mobile repository top compaction */
@media (max-width: 780px) {
  .repository-console {
    gap: 10px;
  }

  .repository-hero {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    padding: 12px;
    border-radius: 15px;
  }

  .repository-hero h2 {
    margin-bottom: 3px;
    font-size: 22px;
    line-height: 1.18;
  }

  .repository-hero .subtle {
    display: -webkit-box;
    overflow: hidden;
    max-width: 100%;
    line-height: 1.42;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  .repository-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    width: 100%;
  }

  .repository-actions button {
    width: 100%;
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 10px;
    font-size: 12px;
  }

  .repository-metrics {
    display: flex;
    grid-template-columns: none;
    gap: 8px;
    margin: -1px -2px 0;
    padding: 1px 2px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .repository-metrics::-webkit-scrollbar,
  .storage-overview-grid::-webkit-scrollbar {
    display: none;
  }

  .repository-metric {
    flex: 0 0 min(32vw, 132px);
    min-width: 112px;
    min-height: 60px;
    gap: 3px;
    padding: 8px 9px;
    border-radius: 13px;
    box-shadow: none;
    scroll-snap-align: start;
  }

  .repository-metric strong {
    font-size: 17px;
    line-height: 1;
  }

  .repository-metric span {
    font-size: 11px;
    line-height: 1.24;
  }

  .storage-overview-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(148px, 54vw);
    grid-template-columns: none;
    gap: 8px;
    margin: -1px -2px 10px;
    padding: 1px 2px 4px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .storage-overview-card {
    min-height: 78px;
    gap: 5px;
    padding: 9px;
    border-radius: 13px;
    font-size: 11px;
    box-shadow: none;
    scroll-snap-align: start;
  }

  .storage-overview-main,
  .storage-capacity-card,
  .storage-favorite-card,
  .storage-share-card,
  .storage-recent-card,
  .storage-root-card {
    grid-column: auto;
  }

  .storage-overview-main {
    grid-template-columns: 1fr;
    min-width: min(296px, 76vw);
  }

  .storage-overview-card strong,
  .storage-overview-card h3 {
    font-size: 15px;
    line-height: 1.12;
  }

  .storage-overview-card > span,
  .storage-overview-card small,
  .storage-overview-main span {
    font-size: 11px;
    line-height: 1.28;
  }

  .storage-overview-actions {
    gap: 5px;
    margin-top: 6px;
  }

  .storage-overview-actions .tiny-btn {
    min-height: 27px;
    padding: 4px 7px;
    border-radius: 8px;
    font-size: 11px;
  }

  .storage-overview-list {
    max-height: 76px;
    overflow: hidden;
  }

  .storage-overview-list button {
    gap: 2px;
    padding: 5px 6px;
    border-radius: 9px;
  }

  .repository-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    padding: 9px;
    border-radius: 13px;
  }

  .repository-toolbar label {
    min-width: 0;
    gap: 4px;
  }

  .repository-toolbar label:first-child {
    grid-column: 1 / -1;
  }

  .repository-toolbar label span {
    font-size: 11px;
    line-height: 1.18;
  }

  .repository-toolbar input,
  .repository-toolbar select {
    min-height: 34px;
    padding: 6px 8px;
    border-radius: 9px;
    font-size: 12px;
  }

  .repository-toolbar button {
    grid-column: auto;
    width: 100%;
    min-height: 34px;
    padding: 7px 8px;
    border-radius: 9px;
    font-size: 12px;
  }
}

/* Executive visual polish 20260703 - authoritative final layer */
:root {
  --exec-bg: #eef3f8;
  --exec-surface: rgba(255,255,255,.92);
  --exec-ink: #0b1220;
  --exec-muted: #667085;
  --exec-blue: #155eef;
  --exec-blue-2: #0b4cd6;
  --exec-cyan: #06aed4;
  --exec-teal: #0f9f8f;
  --exec-red: #d92d20;
  --exec-ring: 0 0 0 4px rgba(21,94,239,.16);
  --exec-shadow-sm: 0 10px 26px rgba(15,23,42,.055);
  --exec-shadow-md: 0 22px 58px rgba(15,23,42,.11);
}

html, body {
  min-height: 100%;
  background:
    radial-gradient(circle at 12% -10%, rgba(21,94,239,.16), transparent 32%),
    radial-gradient(circle at 94% 8%, rgba(6,174,212,.12), transparent 28%),
    linear-gradient(180deg, #f8fbff, var(--exec-bg)) !important;
  color: var(--exec-ink);
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15,23,42,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,.72), transparent 78%);
}

body, button, input, select, textarea {
  font-family: Inter, "SF Pro Text", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
}

h1, h2, h3 { color: var(--exec-ink); letter-spacing: -.04em; }
.eyebrow { color: #486179; font-weight: 820; letter-spacing: .12em; text-transform: uppercase; }
.subtle, .meta { color: var(--exec-muted); }

button {
  border: 1px solid transparent;
  border-radius: 13px !important;
  background: linear-gradient(135deg, var(--exec-blue), var(--exec-blue-2));
  box-shadow: 0 10px 24px rgba(21,94,239,.16);
  color: #fff;
}
button:hover { background: linear-gradient(135deg, #236fff, #0b4cd6); box-shadow: 0 16px 34px rgba(21,94,239,.2); }
button:focus-visible, input:focus, select:focus, textarea:focus { outline: 0; border-color: rgba(21,94,239,.48) !important; box-shadow: var(--exec-ring) !important; }
button.secondary, .lang-toggle, button.text-btn, button.small-btn, .prompt-chips button, .tiny-btn {
  border-color: rgba(21,94,239,.16) !important;
  background: rgba(255,255,255,.9) !important;
  box-shadow: 0 7px 18px rgba(15,23,42,.045);
  color: var(--exec-blue) !important;
}
button.danger, button.small-btn.danger, button.secondary.danger { border-color: rgba(217,45,32,.2) !important; background: #fff5f4 !important; color: var(--exec-red) !important; box-shadow: none; }
input, select, textarea { border-color: rgba(15,23,42,.12) !important; border-radius: 13px !important; background: rgba(255,255,255,.96) !important; }

.login-view {
  background:
    radial-gradient(circle at 14% 14%, rgba(21,94,239,.28), transparent 28%),
    radial-gradient(circle at 72% 82%, rgba(6,174,212,.18), transparent 30%),
    #eef3f8 !important;
}
.login-visual {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(6,12,27,.92), rgba(12,35,73,.58), rgba(15,23,42,.18)),
    url("/assets/industrial-cluster-hero.png") center/cover !important;
}
.login-visual::after { content:""; position:absolute; inset:32px; border:1px solid rgba(255,255,255,.16); border-radius:34px; pointer-events:none; }
.hero-login { border:1px solid rgba(255,255,255,.2) !important; border-radius:34px !important; background:linear-gradient(145deg, rgba(255,255,255,.15), rgba(255,255,255,.05)) !important; box-shadow:0 28px 90px rgba(0,0,0,.28) !important; backdrop-filter:blur(22px) saturate(140%); }
.hero-login h1 { color:#fff; font-size:clamp(44px,5.5vw,72px) !important; line-height:.95; letter-spacing:-.06em; }
.hero-login p, .hero-login .subtle { color:rgba(255,255,255,.8) !important; font-size:16px; line-height:1.8; }
.brand-mark, .brand-logo { border-radius:16px !important; background:linear-gradient(145deg,#2f7bff,#155eef 55%,#063b93) !important; box-shadow:0 14px 32px rgba(21,94,239,.28) !important; }
.login-metrics span, .login-evidence span { border:1px solid rgba(255,255,255,.22) !important; border-radius:999px !important; background:rgba(255,255,255,.12) !important; color:rgba(255,255,255,.9); backdrop-filter:blur(14px); }
.login-panel { margin:clamp(18px,4vw,42px); border:1px solid rgba(15,23,42,.08) !important; border-radius:30px !important; background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(255,255,255,.88)) !important; box-shadow:0 30px 80px rgba(15,23,42,.12) !important; }
.login-panel h2 { font-size:34px !important; letter-spacing:-.05em; }

.app-shell { background: transparent !important; }
.nav-rail {
  margin: 12px 0 12px 12px;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 26px;
  background: radial-gradient(circle at 18% 0%, rgba(21,94,239,.28), transparent 34%), linear-gradient(180deg, rgba(9,18,38,.98), rgba(12,23,47,.96)) !important;
  box-shadow: 0 24px 60px rgba(2,6,23,.22) !important;
  backdrop-filter: blur(18px) saturate(145%);
}
.brand-block { border-bottom-color: rgba(255,255,255,.1) !important; }
.brand-block strong { color: #fff !important; }
.brand-block span, .nav-footer { color: rgba(255,255,255,.58) !important; }
.nav-item { border:1px solid transparent !important; border-radius:16px !important; color:rgba(255,255,255,.72) !important; font-weight:760; }
.nav-item:hover { border-color:rgba(255,255,255,.1) !important; background:rgba(255,255,255,.08) !important; color:#fff !important; }
.nav-item.active { border-color:rgba(255,255,255,.18) !important; background:linear-gradient(135deg,rgba(21,94,239,.92),rgba(6,174,212,.58)) !important; color:#fff !important; box-shadow:0 12px 28px rgba(21,94,239,.22) !important; }

.workspace { padding: 14px 18px 18px; }
.workspace-topbar {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: 26px !important;
  background: linear-gradient(120deg, rgba(255,255,255,.94), rgba(248,251,255,.82)) !important;
  box-shadow: 0 18px 48px rgba(15,23,42,.08) !important;
  backdrop-filter: blur(20px) saturate(150%);
}
.workspace-topbar h1 { font-size: clamp(26px,2.5vw,38px) !important; letter-spacing: -.055em; }
.global-search { border:1px solid rgba(21,94,239,.12) !important; border-radius:18px !important; background:#fff !important; box-shadow:0 10px 28px rgba(15,23,42,.045) !important; }
.global-search input { border:0 !important; background:transparent !important; box-shadow:none !important; }

.panel-card, .ops-panel, .repository-list-panel, .repository-side > section, .admin-grid .panel-card, .search-work-grid .panel-card, .dashboard-overview > article {
  border: 1px solid rgba(15,23,42,.08) !important;
  border-radius: 26px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,255,255,.88)) !important;
  box-shadow: var(--exec-shadow-sm) !important;
  backdrop-filter: blur(14px) saturate(140%);
}
.panel-card:hover, .ops-panel:hover, .repository-side > section:hover { box-shadow: var(--exec-shadow-md) !important; }
.card-head h2 { font-size: clamp(19px,1.6vw,24px); }
.chip, .badge { border:1px solid rgba(21,94,239,.16) !important; border-radius:999px !important; background:#eef6ff !important; color:var(--exec-blue) !important; font-weight:820; }
.badge.good, .chip.good { border-color:rgba(15,159,143,.18) !important; background:#ecfdf7 !important; color:#0b7d71 !important; }
.badge.warn, .chip.warn { border-color:rgba(183,121,31,.2) !important; background:#fffbeb !important; color:#9a5b13 !important; }

.command-deck {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255,255,255,.2) !important;
  border-radius: 34px !important;
  background: radial-gradient(circle at 86% 18%, rgba(6,174,212,.22), transparent 30%), radial-gradient(circle at 18% 0%, rgba(21,94,239,.22), transparent 28%), linear-gradient(135deg,#0b1220,#13264e 55%,#0b1220) !important;
  box-shadow: 0 30px 90px rgba(15,23,42,.22) !important;
}
.command-deck::before { content:""; position:absolute; inset:0; background:linear-gradient(90deg,rgba(255,255,255,.06) 1px,transparent 1px),linear-gradient(rgba(255,255,255,.06) 1px,transparent 1px); background-size:44px 44px; mask-image:radial-gradient(circle at 20% 20%,#000,transparent 70%); pointer-events:none; }
.command-copy, .agent-command-card, .campus-visual { position: relative; z-index: 1; }
.command-copy h2 { color:#fff !important; font-size:clamp(34px,4.4vw,62px) !important; line-height:1.02; letter-spacing:-.065em; }
.command-copy .subtle { max-width:680px; color:rgba(255,255,255,.76) !important; font-size:16px; line-height:1.78; }
.command-copy .eyebrow, .command-deck .eyebrow { color:rgba(183,219,255,.92) !important; }
.ops-strip span, .workflow-showcase span { border-color:rgba(255,255,255,.18) !important; background:rgba(255,255,255,.1) !important; color:rgba(255,255,255,.88) !important; backdrop-filter:blur(12px); }
.agent-command-card { border:1px solid rgba(255,255,255,.16) !important; background:rgba(255,255,255,.1) !important; box-shadow:none !important; backdrop-filter:blur(18px) saturate(150%); }
.agent-command-card h2, .agent-squad span { color:#fff !important; }
.agent-squad article { border-color:rgba(255,255,255,.14) !important; background:rgba(255,255,255,.09) !important; }
.agent-squad small { color:rgba(255,255,255,.62) !important; }
.campus-visual { overflow:hidden; border:1px solid rgba(255,255,255,.16) !important; border-radius:28px !important; box-shadow:0 24px 64px rgba(0,0,0,.22) !important; }

.ops-hero, .project-hero, .repository-hero, .search-hero, .admin-hero, .control-hero {
  overflow:hidden;
  border:1px solid rgba(15,23,42,.08) !important;
  border-radius:30px !important;
  background: radial-gradient(circle at 86% 0%,rgba(21,94,239,.14),transparent 34%), radial-gradient(circle at 12% 16%,rgba(6,174,212,.1),transparent 30%), linear-gradient(135deg,rgba(255,255,255,.98),rgba(246,250,255,.9)) !important;
  box-shadow: var(--exec-shadow-sm) !important;
}
.repository-hero { grid-template-columns:minmax(0,1.1fr) auto; align-items:center; padding:clamp(22px,2.4vw,34px) !important; }
.repository-hero h2, .ops-hero h2, .project-hero h2, .search-hero h2, .admin-hero h2, .control-hero h2 { font-size:clamp(28px,3.2vw,46px) !important; line-height:1.05; letter-spacing:-.06em; }
.stat-card, .project-metric, .repository-metric, .search-metric, .admin-metric, .inbox-metric { position:relative; overflow:hidden; border:1px solid rgba(15,23,42,.08) !important; border-radius:22px !important; background:radial-gradient(circle at 100% 0%,rgba(21,94,239,.11),transparent 38%),#fff !important; box-shadow:var(--exec-shadow-sm) !important; }
.stat-card strong, .repository-metric strong, .project-metric strong { color:#0b1220; font-size:clamp(24px,2.3vw,34px) !important; letter-spacing:-.055em; }

.dashboard-outcome {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 10px 0 14px;
}

.dashboard-outcome article {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 22px;
  background:
    radial-gradient(circle at 96% 0%, rgba(21, 94, 239, .11), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(248, 251, 255, .92));
  box-shadow: var(--exec-shadow-sm);
}

.dashboard-outcome article::after {
  content: "";
  position: absolute;
  inset: auto 16px 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, rgba(21, 94, 239, .92), rgba(6, 174, 212, .78));
}

.dashboard-outcome .outcome-lead {
  background:
    radial-gradient(circle at 12% 0%, rgba(6, 174, 212, .18), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(21, 94, 239, .16), transparent 36%),
    linear-gradient(135deg, #ffffff, #f4f8ff);
}

.dashboard-outcome h2 {
  margin: 0;
  font-size: clamp(21px, 1.7vw, 27px);
  letter-spacing: -.055em;
}

.dashboard-outcome strong {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 13px;
  background: #eef6ff;
  color: var(--exec-blue);
  font-size: 13px;
  font-weight: 860;
}

.dashboard-outcome span {
  display: block;
  color: #0b1220;
  font-size: 16px;
  font-weight: 860;
  letter-spacing: -.035em;
}

.dashboard-outcome p {
  margin: 8px 0 0;
  color: #526172;
  font-size: 13px;
  line-height: 1.6;
}

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

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

@media (min-width: 1100px) and (max-height: 760px) {
  .app-shell:not(.assistant-expanded) .dashboard-outcome {
    gap: 10px !important;
    margin: 8px 0 10px !important;
  }

  .app-shell:not(.assistant-expanded) .dashboard-outcome article {
    min-height: 92px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .app-shell:not(.assistant-expanded) .dashboard-outcome h2 {
    font-size: 20px !important;
  }

  .app-shell:not(.assistant-expanded) .dashboard-outcome strong {
    width: 30px !important;
    height: 30px !important;
    margin-bottom: 8px !important;
    border-radius: 11px !important;
  }

  .app-shell:not(.assistant-expanded) .dashboard-outcome p {
    margin-top: 5px !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }
}

.repository-toolbar, .search-workbar, .asset-bulk-panel, .storage-board-toolbar {
  border:1px solid rgba(15,23,42,.08) !important;
  border-radius:22px !important;
  background:linear-gradient(180deg,rgba(255,255,255,.96),rgba(248,251,255,.88)) !important;
  box-shadow:var(--exec-shadow-sm) !important;
}
.storage-overview-grid { gap:14px; }
.storage-overview-card { min-height:128px; border-color:rgba(15,23,42,.08) !important; border-radius:22px !important; background:radial-gradient(circle at 94% 0%,rgba(21,94,239,.12),transparent 34%),linear-gradient(145deg,rgba(255,255,255,.98),rgba(247,250,255,.9)) !important; box-shadow:var(--exec-shadow-sm) !important; }
.storage-overview-card:hover { border-color:rgba(21,94,239,.24) !important; box-shadow:var(--exec-shadow-md) !important; }
.storage-overview-main { background:radial-gradient(circle at 100% 0%,rgba(6,174,212,.18),transparent 34%),radial-gradient(circle at 0% 0%,rgba(21,94,239,.16),transparent 36%),linear-gradient(135deg,#fff,#f4f8ff) !important; }
.storage-overview-card strong, .storage-overview-card h3 { font-size:clamp(18px,1.45vw,24px) !important; letter-spacing:-.045em; }
.storage-drive-board { border:1px solid rgba(15,23,42,.08) !important; border-radius:24px !important; background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(248,251,255,.72)) !important; box-shadow:inset 0 1px 0 rgba(255,255,255,.75); }
.storage-board-grid { gap:14px; }
.storage-board-item { min-height:246px; border-color:rgba(15,23,42,.08) !important; border-radius:22px !important; background:radial-gradient(circle at 100% 0%,rgba(21,94,239,.09),transparent 34%),linear-gradient(180deg,rgba(255,255,255,.98),rgba(248,251,255,.9)) !important; box-shadow:0 10px 26px rgba(15,23,42,.055) !important; }
.storage-board-item:hover, .storage-board-item.active { border-color:rgba(21,94,239,.32) !important; box-shadow:0 22px 54px rgba(21,94,239,.13) !important; }
.storage-board-icon { width:48px; height:48px; border-radius:17px !important; background:linear-gradient(135deg,rgba(21,94,239,.16),rgba(6,174,212,.12)) !important; color:var(--exec-blue) !important; }
.storage-board-file-main strong, .storage-board-open strong { font-size:16px; letter-spacing:-.025em; }
.storage-board-meta-item { border-color:rgba(15,23,42,.07) !important; border-radius:14px !important; background:rgba(255,255,255,.72) !important; }
.storage-board-status { border-color:rgba(15,23,42,.08) !important; background:rgba(255,255,255,.8) !important; }
.storage-board-status.folder, .storage-board-status.file, .storage-board-status.pinned, .storage-board-status.versioned { background:#eef6ff !important; }

.table-wrap { overflow:hidden; border-radius:22px !important; background:#fff !important; box-shadow:var(--exec-shadow-sm) !important; }
.data-table { border-collapse:separate; border-spacing:0; }
.data-table th { position:sticky; top:0; z-index:2; background:#f7faff !important; color:#526172 !important; font-size:12px; font-weight:860; letter-spacing:.04em; }
.data-table td { border-top:1px solid rgba(15,23,42,.07) !important; color:#27364a; }
.data-table tr:hover td { background:#f8fbff !important; }
.repository-insight, .search-hit, .document-card, .archive-card, .timeline-step, .object-link-card { border-radius:18px !important; background:rgba(255,255,255,.86) !important; box-shadow:0 8px 22px rgba(15,23,42,.04) !important; }
.repository-insight:hover, .search-hit:hover, .document-card:hover, .archive-card:hover, .timeline-step:hover, .object-link-card:hover { border-color:rgba(21,94,239,.24) !important; box-shadow:0 16px 38px rgba(21,94,239,.1) !important; transform:translateY(-1px); }

.assistant-panel { margin:12px 12px 12px 0; border:1px solid rgba(15,23,42,.08) !important; border-radius:28px !important; background:radial-gradient(circle at 100% 0%,rgba(21,94,239,.14),transparent 34%),linear-gradient(180deg,rgba(255,255,255,.96),rgba(247,250,255,.9)) !important; box-shadow:0 24px 70px rgba(15,23,42,.12) !important; }
.assistant-head, .agent-stage, .chatlog, .ask-form, .assistant-ops { border-radius:20px !important; }
.agent-stage { border:1px solid rgba(21,94,239,.12) !important; background:radial-gradient(circle at 18% 0%,rgba(21,94,239,.16),transparent 38%),#f7fbff !important; }
.assistant-bubble { background:#eef6ff !important; color:#14325a !important; }
.ask-form textarea { border-radius:18px !important; background:#fff !important; }

.voice-material-overlay[hidden] {
  display: none !important;
}

.voice-material-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto auto;
  overflow: hidden;
  padding: clamp(18px, 2vw, 34px);
  --voice-level: 0%;
  background:
    radial-gradient(circle at 50% 45%, rgba(55, 255, 170, .075), transparent 24%),
    radial-gradient(circle at 21% 72%, rgba(217, 70, 239, .055), transparent 30%),
    radial-gradient(circle at 82% 42%, rgba(14, 165, 233, .035), transparent 34%),
    linear-gradient(180deg, #010204, #000 66%, #020404);
  color: #fff;
  isolation: isolate;
}

.voice-material-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 46%, rgba(255,255,255,.038), transparent 19%),
    linear-gradient(90deg, rgba(255,255,255,.014) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.011) 1px, transparent 1px);
  background-size: auto, 88px 88px, 88px 88px;
  mask-image: radial-gradient(circle at 50% 45%, #000 0%, transparent 68%);
  pointer-events: none;
}

.voice-material-overlay::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: clamp(92px, 13vh, 150px);
  width: min(560px, 62vw);
  height: 1px;
  translate: -50% 0;
  background: linear-gradient(90deg, transparent, rgba(65, 255, 186, .18), rgba(255, 206, 78, .12), transparent);
  filter: blur(.2px);
  opacity: .75;
  pointer-events: none;
}

.voice-material-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255,255,255,.8);
}

.voice-material-kicker {
  margin: 0 0 6px;
  color: rgba(255,255,255,.38);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: .34em;
}

.voice-material-top h2 {
  margin: 0;
  color: rgba(255,255,255,.82) !important;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: .18em;
}

.voice-material-close {
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 999px !important;
  background: rgba(255,255,255,.045) !important;
  color: rgba(255,255,255,.72) !important;
  box-shadow: none !important;
}

.voice-material-stage {
  position: relative;
  min-height: 0;
}

#voiceMaterialCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(132%) contrast(112%);
}

.voice-material-halo {
  position: absolute;
  left: 50%;
  top: 47%;
  width: min(48vw, 620px);
  height: min(30vw, 350px);
  border-radius: 50%;
  translate: -50% -50%;
  background:
    radial-gradient(closest-side, rgba(55, 255, 168, .15), transparent 66%),
    radial-gradient(closest-side, rgba(236, 72, 153, .1), transparent 72%),
    conic-gradient(from 120deg, transparent 0deg, rgba(255, 213, 74, .09) 58deg, transparent 110deg, rgba(217, 70, 239, .1) 190deg, transparent 270deg);
  filter: blur(30px) saturate(165%);
  opacity: .58;
  animation: voiceMaterialHalo 3.2s ease-in-out infinite alternate;
  pointer-events: none;
}

.voice-material-overlay.is-listening .voice-material-halo,
.voice-material-overlay.is-speaking .voice-material-halo {
  animation-duration: 1.15s;
  opacity: .9;
}

.voice-material-caption {
  width: min(680px, calc(100vw - 40px));
  justify-self: center;
  display: grid;
  gap: 3px;
  padding: 11px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(9, 13, 17, .62), rgba(3, 5, 8, .52));
  box-shadow: 0 22px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.05);
  text-align: center;
  backdrop-filter: blur(18px) saturate(140%);
}

.voice-material-caption strong {
  color: rgba(255,255,255,.92);
  font-size: 13px;
  font-weight: 720;
}

.voice-material-caption span {
  color: rgba(255,255,255,.54);
  font-size: 11px;
  line-height: 1.45;
}

.voice-material-dock {
  position: relative;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  margin-top: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px !important;
  background: rgba(5, 8, 11, .64);
  color: rgba(255,255,255,.42);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .18em;
  text-transform: uppercase;
  box-shadow: 0 18px 70px rgba(0,0,0,.42), inset 0 1px 0 rgba(255,255,255,.04);
  backdrop-filter: blur(18px) saturate(150%);
}

.voice-material-dock::before {
  content: "";
  position: absolute;
  left: 34px;
  right: 14px;
  bottom: -8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(67,255,178,.9), rgba(255,207,78,.75), rgba(217,70,239,.86));
  transform-origin: left center;
  transform: scaleX(var(--voice-level-scale, 0));
  opacity: .72;
  box-shadow: 0 0 18px rgba(67,255,178,.28);
}

.voice-material-spinner {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, #7cffb4 0 34%, transparent 36%);
  box-shadow: 0 0 0 1px rgba(124,255,180,.18), 0 0 16px rgba(124,255,180,.36);
  animation: voiceMaterialBlink 1.1s ease-in-out infinite alternate;
}

.voice-material-overlay.is-listening .voice-material-spinner,
.voice-material-overlay.is-speaking .voice-material-spinner {
  animation-duration: .42s;
  box-shadow: 0 0 0 1px rgba(255,206,78,.2), 0 0 20px rgba(255,206,78,.46);
}

.voice-material-actions {
  justify-self: center;
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 9px;
}

.voice-material-actions button {
  min-height: 36px;
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  background: rgba(255,255,255,.08) !important;
  color: rgba(255,255,255,.86) !important;
  box-shadow: none !important;
}

.voice-material-actions button.secondary {
  background: rgba(67, 255, 178, .12) !important;
  border-color: rgba(67, 255, 178, .24) !important;
  color: #dfffee !important;
}

@keyframes voiceMaterialHalo {
  from { transform: scale(.92) rotate(-3deg); }
  to { transform: scale(1.08) rotate(3deg); }
}

@keyframes voiceMaterialBlink {
  from { opacity: .44; transform: scale(.78); }
  to { opacity: 1; transform: scale(1.08); }
}

@media (max-width: 780px) {
  .voice-material-overlay {
    padding: 16px 12px 18px;
  }

  .voice-material-kicker {
    letter-spacing: .18em;
  }

  .voice-material-top h2 {
    letter-spacing: .08em;
  }

  .voice-material-caption {
    width: calc(100vw - 24px);
  }

  .voice-material-dock {
    max-width: calc(100vw - 24px);
    gap: 7px;
    overflow: hidden;
    font-size: 9px;
    letter-spacing: .12em;
  }
}

@media (min-width:1180px) { .repository-work-grid { grid-template-columns:minmax(0,1fr) minmax(300px,350px); gap:16px; } .dashboard-grid { gap:16px; } }
@media (max-width:1280px) { .nav-rail { margin:8px 0 8px 8px; } .assistant-panel { margin:8px 8px 8px 0; } .workspace { padding:10px 12px 14px; } }
@media (max-width:920px) { .login-panel { margin:0; border-radius:26px 26px 0 0 !important; } .nav-rail { margin:0; border-radius:0 0 22px 22px; } .workspace-topbar { top:8px; border-radius:22px !important; } .command-deck, .repository-hero, .ops-hero, .project-hero, .search-hero, .admin-hero, .control-hero { border-radius:24px !important; } .command-copy h2 { font-size:clamp(30px,8vw,44px) !important; } }
@media (max-width:780px) { body::before { background-size:28px 28px; } .workspace { padding:8px; } .workspace-topbar { margin-bottom:10px; padding:12px; } .workspace-topbar h1 { font-size:23px !important; } .panel-card, .ops-panel, .repository-list-panel, .repository-side > section { border-radius:18px !important; } .repository-hero { padding:14px !important; border-radius:20px !important; } .repository-metric { border-radius:16px !important; } .storage-overview-card, .storage-board-item { border-radius:17px !important; } .storage-drive-board { border-radius:18px !important; } .table-wrap { border-radius:16px !important; } }


/* Magnetic fluid pointer ribbon 20260703 */
.mag-fluid-aura {
  position: fixed;
  inset: -18vh -12vw;
  z-index: 11;
  pointer-events: none;
  opacity: .54;
  mix-blend-mode: screen;
  background:
    radial-gradient(34vw 28vh at 72% 20%, rgba(80, 120, 255, .24), transparent 64%),
    radial-gradient(24vw 34vh at 82% 62%, rgba(34, 211, 238, .18), transparent 68%),
    radial-gradient(38vw 26vh at 36% 48%, rgba(168, 85, 247, .14), transparent 72%),
    conic-gradient(from 138deg at 64% 36%, transparent 0deg, rgba(59, 130, 246, .16) 54deg, rgba(20, 184, 166, .1) 112deg, transparent 172deg, rgba(168, 85, 247, .13) 236deg, transparent 318deg);
  filter: blur(18px) saturate(142%);
  transform: translateZ(0);
  animation: magFluidAuraDrift 13s ease-in-out infinite alternate;
}

.mag-fluid-ribbon {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 12;
  pointer-events: none;
  opacity: .84;
  mix-blend-mode: screen;
  filter: saturate(152%) contrast(110%);
  transform: translateZ(0);
  will-change: opacity;
}

.login-view,
.app-shell {
  isolation: isolate;
}

.workspace-topbar,
.nav-rail,
.assistant-panel,
dialog,
.toast-stack,
.modal-layer,
.storage-share-dialog,
.storage-share-modal {
  position: relative;
}

@keyframes magFluidAuraDrift {
  0% {
    transform: translate3d(-1.5vw, -1vh, 0) scale(1) rotate(-1deg);
  }
  100% {
    transform: translate3d(1.2vw, 1.4vh, 0) scale(1.035) rotate(1.6deg);
  }
}

@media (max-width: 780px) {
  .mag-fluid-aura {
    opacity: .34;
    filter: blur(16px) saturate(124%);
  }

  .mag-fluid-ribbon {
    opacity: .58;
    filter: saturate(132%) contrast(104%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mag-fluid-aura,
  .mag-fluid-ribbon {
    display: none !important;
  }
}

/* Executive density tuning 20260703 - cockpit screenshot fit */
@media (min-width: 1100px) {
  .app-shell:not(.assistant-expanded) {
    grid-template-columns: 236px minmax(0, 1fr) !important;
  }

  .app-shell:not(.assistant-expanded) .workspace {
    padding: 10px 12px 14px !important;
  }

  .app-shell:not(.assistant-expanded) .workspace-topbar {
    top: 10px;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 44%) !important;
    align-items: center !important;
    gap: 14px !important;
    min-height: 0 !important;
    margin-bottom: 10px !important;
    padding: 14px 16px !important;
    border-radius: 24px !important;
  }

  .app-shell:not(.assistant-expanded) .workspace-topbar h1 {
    margin: 0 0 4px !important;
    font-size: clamp(25px, 2.15vw, 34px) !important;
    line-height: 1.02 !important;
  }

  .app-shell:not(.assistant-expanded) .workspace-topbar .eyebrow {
    margin-bottom: 4px !important;
  }

  .app-shell:not(.assistant-expanded) .workspace-topbar .subtle {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .app-shell:not(.assistant-expanded) .runtime-health {
    margin-top: 6px !important;
    gap: 6px !important;
  }

  .app-shell:not(.assistant-expanded) .runtime-chip {
    min-height: 25px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
  }

  .app-shell:not(.assistant-expanded) .top-actions {
    align-items: center !important;
    gap: 8px !important;
  }

  .app-shell:not(.assistant-expanded) .global-search {
    min-width: 0 !important;
    flex: 1 1 auto !important;
    padding: 4px !important;
    border-radius: 18px !important;
  }

  .app-shell:not(.assistant-expanded) .global-search input,
  .app-shell:not(.assistant-expanded) .global-search button,
  .app-shell:not(.assistant-expanded) .top-actions > button {
    min-height: 40px !important;
    border-radius: 14px !important;
  }

  .app-shell:not(.assistant-expanded) .global-search input {
    font-size: 13px !important;
  }

  .app-shell:not(.assistant-expanded) .command-deck {
    display: grid !important;
    grid-template-columns: minmax(0, 1.08fr) minmax(310px, .92fr) !important;
    gap: 10px !important;
    min-height: clamp(380px, 58vh, 455px) !important;
    max-height: none !important;
    padding: 12px !important;
    border-radius: 28px !important;
  }

  .app-shell:not(.assistant-expanded) .command-copy,
  .app-shell:not(.assistant-expanded) .agent-command-card {
    min-height: 0 !important;
    padding: clamp(18px, 2vw, 28px) !important;
    border-radius: 22px !important;
  }

  .app-shell:not(.assistant-expanded) .command-copy h2 {
    max-width: 680px !important;
    margin: 8px 0 12px !important;
    font-size: clamp(32px, 3.7vw, 48px) !important;
    line-height: 1.03 !important;
  }

  .app-shell:not(.assistant-expanded) .command-copy .subtle {
    max-width: 680px !important;
    margin-bottom: 16px !important;
    font-size: 15px !important;
    line-height: 1.72 !important;
  }

  .app-shell:not(.assistant-expanded) .ops-strip,
  .app-shell:not(.assistant-expanded) .workflow-showcase {
    gap: 7px !important;
    margin: 10px 0 !important;
  }

  .app-shell:not(.assistant-expanded) .workflow-showcase span,
  .app-shell:not(.assistant-expanded) .ops-strip span {
    min-height: 30px !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
  }

  .app-shell:not(.assistant-expanded) .command-actions {
    gap: 10px !important;
    margin-top: 18px !important;
  }

  .app-shell:not(.assistant-expanded) .command-actions button {
    min-height: 40px !important;
    padding: 8px 15px !important;
  }

  .app-shell:not(.assistant-expanded) .agent-command-card .card-head {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
  }

  .app-shell:not(.assistant-expanded) .agent-command-card h2 {
    font-size: clamp(20px, 1.7vw, 26px) !important;
  }

  .app-shell:not(.assistant-expanded) .agent-squad {
    gap: 8px !important;
  }

  .app-shell:not(.assistant-expanded) .agent-squad article {
    min-height: 58px !important;
    padding: 10px 12px !important;
    border-radius: 16px !important;
  }

  .app-shell:not(.assistant-expanded) .agent-squad strong {
    width: 36px !important;
    height: 36px !important;
    border-radius: 12px !important;
  }

  .app-shell:not(.assistant-expanded) .agent-squad small {
    font-size: 11px !important;
  }

  .app-shell:not(.assistant-expanded) .campus-visual {
    display: none !important;
  }

  .app-shell:not(.assistant-expanded) .stat-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 10px 0 !important;
  }

  .app-shell:not(.assistant-expanded) .stat-card,
  .app-shell:not(.assistant-expanded) .project-metric,
  .app-shell:not(.assistant-expanded) .repository-metric,
  .app-shell:not(.assistant-expanded) .search-metric,
  .app-shell:not(.assistant-expanded) .admin-metric,
  .app-shell:not(.assistant-expanded) .inbox-metric {
    min-height: 96px !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .app-shell:not(.assistant-expanded) .dashboard-overview {
    gap: 10px !important;
    margin-top: 10px !important;
  }

  .app-shell:not(.assistant-expanded) .assistant-fab {
    right: 16px !important;
    bottom: 16px !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 18px !important;
    box-shadow: 0 18px 40px rgba(21, 94, 239, .2) !important;
  }
}

@media (min-width: 1100px) and (max-height: 760px) {
  .app-shell:not(.assistant-expanded) .workspace-topbar {
    padding: 12px 14px !important;
  }

  .app-shell:not(.assistant-expanded) .workspace-topbar .runtime-health {
    max-height: 58px !important;
    overflow: hidden !important;
  }

  .app-shell:not(.assistant-expanded) .command-deck {
    min-height: 365px !important;
  }

  .app-shell:not(.assistant-expanded) .command-copy h2 {
    font-size: clamp(30px, 3.3vw, 43px) !important;
  }

  .app-shell:not(.assistant-expanded) .command-copy .subtle {
    font-size: 14px !important;
    line-height: 1.62 !important;
  }

  .app-shell:not(.assistant-expanded) .workflow-showcase {
    grid-template-columns: repeat(4, minmax(0, auto)) !important;
  }

  .app-shell:not(.assistant-expanded) .workflow-showcase i {
    display: none !important;
  }
}

/* Executive density tuning 20260703 - second pass */
@media (min-width: 1100px) and (max-height: 760px) {
  .app-shell:not(.assistant-expanded) .workspace-topbar {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 41%) !important;
    gap: 10px !important;
    margin-bottom: 8px !important;
    padding: 10px 12px !important;
  }

  .app-shell:not(.assistant-expanded) .workspace-topbar h1 {
    font-size: clamp(24px, 2vw, 31px) !important;
  }

  .app-shell:not(.assistant-expanded) .workspace-topbar .subtle {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .app-shell:not(.assistant-expanded) .runtime-health {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, max-content)) !important;
    max-height: 34px !important;
    overflow: hidden !important;
  }

  .app-shell:not(.assistant-expanded) .runtime-pill {
    min-height: 24px !important;
    padding: 4px 7px !important;
    font-size: 11px !important;
    white-space: nowrap !important;
  }

  .app-shell:not(.assistant-expanded) .top-actions > button {
    min-width: 56px !important;
    padding-inline: 12px !important;
  }

  .app-shell:not(.assistant-expanded) .command-deck {
    min-height: 330px !important;
    padding: 10px !important;
  }

  .app-shell:not(.assistant-expanded) .command-copy,
  .app-shell:not(.assistant-expanded) .agent-command-card {
    padding: 18px 26px !important;
  }

  .app-shell:not(.assistant-expanded) .command-copy h2 {
    margin: 6px 0 9px !important;
    font-size: clamp(28px, 3.05vw, 39px) !important;
    line-height: 1.02 !important;
  }

  .app-shell:not(.assistant-expanded) .command-copy .subtle {
    margin-bottom: 11px !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
  }

  .app-shell:not(.assistant-expanded) .ops-strip {
    margin: 8px 0 !important;
  }

  .app-shell:not(.assistant-expanded) .workflow-showcase {
    margin: 8px 0 !important;
  }

  .app-shell:not(.assistant-expanded) .workflow-showcase span,
  .app-shell:not(.assistant-expanded) .ops-strip span {
    min-height: 28px !important;
    padding: 5px 10px !important;
  }

  .app-shell:not(.assistant-expanded) .command-actions {
    margin-top: 12px !important;
  }

  .app-shell:not(.assistant-expanded) .command-actions button {
    min-height: 38px !important;
  }

  .app-shell:not(.assistant-expanded) .agent-squad article {
    min-height: 50px !important;
    padding: 8px 10px !important;
  }

  .app-shell:not(.assistant-expanded) .agent-squad strong {
    width: 32px !important;
    height: 32px !important;
  }

  .app-shell:not(.assistant-expanded) .stat-card,
  .app-shell:not(.assistant-expanded) .project-metric,
  .app-shell:not(.assistant-expanded) .repository-metric,
  .app-shell:not(.assistant-expanded) .search-metric,
  .app-shell:not(.assistant-expanded) .admin-metric,
  .app-shell:not(.assistant-expanded) .inbox-metric {
    min-height: 84px !important;
    padding: 12px !important;
  }
}

/* Executive density tuning 20260703 - repository workspace */
@media (min-width: 1100px) {
  .app-shell:not(.assistant-expanded) #view-documents .repository-hero {
    min-height: 0 !important;
    padding: 18px 26px !important;
    border-radius: 24px !important;
  }

  .app-shell:not(.assistant-expanded) #view-documents .repository-hero h2 {
    margin: 4px 0 8px !important;
    font-size: clamp(24px, 2.25vw, 34px) !important;
  }

  .app-shell:not(.assistant-expanded) #view-documents .repository-hero .subtle {
    max-width: 780px !important;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
  }

  .app-shell:not(.assistant-expanded) #view-documents .repository-hero-actions,
  .app-shell:not(.assistant-expanded) #view-documents .hero-actions {
    gap: 8px !important;
  }

  .app-shell:not(.assistant-expanded) #view-documents .repository-hero button,
  .app-shell:not(.assistant-expanded) #view-documents .repository-hero .secondary {
    min-height: 40px !important;
    padding: 8px 16px !important;
  }

  .app-shell:not(.assistant-expanded) #view-documents .repository-metrics {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 10px !important;
    margin: 10px 0 !important;
  }

  .app-shell:not(.assistant-expanded) #view-documents .repository-metric {
    min-height: 86px !important;
    padding: 12px 14px !important;
    border-radius: 18px !important;
  }

  .app-shell:not(.assistant-expanded) #view-documents .repository-metric strong {
    font-size: clamp(24px, 2vw, 30px) !important;
    line-height: 1 !important;
  }

  .app-shell:not(.assistant-expanded) #view-documents .repository-metric span {
    font-size: 12px !important;
  }

  .app-shell:not(.assistant-expanded) #storageOverview.storage-overview-grid {
    display: grid !important;
    grid-template-columns: minmax(300px, .9fr) repeat(3, minmax(0, .7fr)) !important;
    gap: 10px !important;
    margin: 10px 0 12px !important;
  }

  .app-shell:not(.assistant-expanded) #storageOverview .storage-overview-card {
    min-height: 126px !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .app-shell:not(.assistant-expanded) #storageOverview .storage-overview-main {
    grid-row: span 2 !important;
  }

  .app-shell:not(.assistant-expanded) #storageOverview .storage-overview-card strong,
  .app-shell:not(.assistant-expanded) #storageOverview .storage-overview-card h3 {
    font-size: clamp(18px, 1.4vw, 23px) !important;
  }

  .app-shell:not(.assistant-expanded) #storageOverview .storage-overview-card small,
  .app-shell:not(.assistant-expanded) #storageOverview .storage-overview-card span {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .app-shell:not(.assistant-expanded) #storageOverview .storage-overview-actions {
    gap: 7px !important;
    margin-top: 10px !important;
  }

  .app-shell:not(.assistant-expanded) #storageOverview .storage-overview-actions .tiny-btn {
    min-height: 30px !important;
    padding: 5px 9px !important;
  }
}

@media (min-width: 1100px) and (max-height: 760px) {
  .app-shell:not(.assistant-expanded) #view-documents .repository-hero {
    padding: 14px 24px !important;
  }

  .app-shell:not(.assistant-expanded) #view-documents .repository-metrics {
    gap: 8px !important;
  }

  .app-shell:not(.assistant-expanded) #view-documents .repository-metric {
    min-height: 74px !important;
    padding: 10px 12px !important;
  }

  .app-shell:not(.assistant-expanded) #view-documents .repository-metric strong {
    font-size: 25px !important;
  }

  .app-shell:not(.assistant-expanded) #storageOverview.storage-overview-grid {
    grid-template-columns: minmax(280px, .95fr) repeat(3, minmax(0, .68fr)) !important;
    gap: 8px !important;
  }

  .app-shell:not(.assistant-expanded) #storageOverview .storage-overview-card {
    min-height: 112px !important;
    padding: 12px !important;
  }

  .app-shell:not(.assistant-expanded) #storageOverview .storage-overview-main {
    min-height: 232px !important;
  }
}

/* Operations hero readability lock 20260704 */
#view-operations .ops-copy {
  position: relative !important;
  overflow: hidden !important;
  background:
    linear-gradient(115deg, rgba(4, 12, 27, .96) 0%, rgba(8, 38, 78, .88) 48%, rgba(11, 92, 96, .78) 100%),
    url("/assets/industrial-cluster-hero.png") center/cover !important;
  color: #fff !important;
}

#view-operations .ops-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, .18), transparent 24%),
    linear-gradient(90deg, rgba(2, 8, 23, .62) 0%, rgba(2, 8, 23, .32) 52%, rgba(2, 8, 23, .48) 100%);
  pointer-events: none;
}

#view-operations .ops-copy::after {
  z-index: 0;
  opacity: .5;
}

#view-operations .ops-copy > * {
  position: relative;
  z-index: 1;
}

#view-operations .ops-copy .eyebrow,
#view-operations .ops-copy .subtle {
  color: rgba(255, 255, 255, .86) !important;
  text-shadow: 0 1px 14px rgba(2, 8, 23, .42);
}

#view-operations .ops-copy h2 {
  color: #ffffff !important;
  text-shadow: 0 12px 34px rgba(2, 8, 23, .48), 0 1px 0 rgba(255, 255, 255, .08) !important;
}

#view-operations .ops-kpi-rail div {
  border-color: rgba(255, 255, 255, .38) !important;
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 16px 36px rgba(2, 8, 23, .16), inset 0 1px 0 rgba(255,255,255,.72) !important;
}

#view-operations .ops-kpi-rail strong {
  color: #101828 !important;
}

#view-operations .ops-kpi-rail span {
  color: #475467 !important;
}

#view-operations .ops-actions button.secondary {
  background: rgba(255, 255, 255, .94) !important;
  border-color: rgba(255,255,255,.72) !important;
  color: #0b63ce !important;
}

/* Operations KPI loading guard 20260704 */
#view-operations .ops-kpi-rail.is-loading div.is-pending {
  position: relative;
  overflow: hidden;
}

#view-operations .ops-kpi-rail.is-loading div.is-pending::after {
  content: "";
  position: absolute;
  inset: 0;
  translate: -110% 0;
  background: linear-gradient(90deg, transparent, rgba(11, 99, 206, .08), transparent);
  animation: operationsKpiSync 1.4s ease-in-out infinite;
  pointer-events: none;
}

#view-operations .ops-kpi-rail.is-loading div.is-pending strong {
  color: #98a2b3 !important;
}

#view-operations .ops-kpi-rail.is-loading div.is-pending span::after {
  content: " · 同步中";
  color: #667085;
}

@keyframes operationsKpiSync {
  to { translate: 110% 0; }
}

/* Mobile storage overview lock 20260704 */
@media (max-width: 780px) {
  #view-documents #storageOverview.storage-overview-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-auto-flow: row !important;
    grid-auto-columns: initial !important;
    gap: 10px !important;
    margin: 10px 0 12px !important;
    padding: 0 !important;
    overflow: visible !important;
    scroll-snap-type: none !important;
  }

  #view-documents #storageOverview .storage-overview-card,
  #view-documents #storageOverview .storage-overview-main,
  #view-documents #storageOverview .storage-capacity-card,
  #view-documents #storageOverview .storage-favorite-card,
  #view-documents #storageOverview .storage-share-card,
  #view-documents #storageOverview .storage-recent-card,
  #view-documents #storageOverview .storage-root-card {
    grid-column: auto !important;
    grid-row: auto !important;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 0 !important;
    scroll-snap-align: none !important;
  }

  #view-documents #storageOverview .storage-overview-main {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 13px !important;
  }

  #view-documents #storageOverview .storage-overview-current {
    min-width: 0 !important;
    padding: 12px !important;
  }

  #view-documents #storageOverview .storage-overview-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  #view-documents #storageOverview .storage-overview-actions .tiny-btn {
    width: 100% !important;
    min-height: 32px !important;
    justify-content: center !important;
  }

  #view-documents #storageOverview .storage-overview-list {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Mobile touch target lock 20260704 */
@media (max-width: 780px) {
  button,
  .small-btn,
  .tiny-btn,
  .text-btn,
  .lang-toggle,
  .avatar-btn,
  .nav-item,
  input,
  select,
  textarea,
  .prompt-chips button,
  .asset-filter-chips button,
  .storage-overview-actions .tiny-btn,
  .repository-actions button,
  .project-hero-actions button,
  .ops-actions button,
  .command-actions button,
  .voice-material-actions button {
    min-height: 40px !important;
  }

  .nav-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .top-actions > button,
  .global-search button,
  .global-search input {
    min-height: 42px !important;
  }

  .storage-overview-actions .tiny-btn,
  .asset-bulk-actions button,
  .asset-folder-actions button,
  .control-ledger-card .small-btn {
    min-height: 40px !important;
    padding-block: 8px !important;
  }

  .control-ledger-actions,
  .asset-folder-actions,
  .asset-bulk-actions,
  .storage-overview-actions {
    gap: 8px !important;
  }
}

/* Mobile storage action touch override 20260704 */
@media (max-width: 780px) {
  #view-documents #storageOverview .storage-overview-actions .tiny-btn,
  .app-shell #view-documents #storageOverview .storage-overview-actions .tiny-btn {
    min-height: 40px !important;
    padding-block: 8px !important;
    align-items: center !important;
    justify-content: center !important;
  }
}

/* Login form production guard 20260704 */
.login-production .login-panel input::placeholder {
  color: #98a2b3;
}

.login-production .login-panel button[type="submit"][aria-busy="true"] {
  cursor: progress;
  opacity: .88;
  box-shadow: 0 14px 32px rgba(15, 98, 254, .18) !important;
}

.login-production .login-panel button[type="submit"][aria-busy="true"]::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: 9px;
  display: inline-block;
  border: 2px solid rgba(255, 255, 255, .46);
  border-top-color: #fff;
  border-radius: 999px;
  animation: loginSubmitSpin .72s linear infinite;
}

@keyframes loginSubmitSpin {
  to { transform: rotate(360deg); }
}

/* Voice material GitHub-inspired refit 20260704 fluid20 */
.voice-material-overlay {
  --voice-energy-scale: .32;
  background:
    radial-gradient(48vw 42vh at 50% 43%, rgba(47, 255, 178, .11), transparent 55%),
    radial-gradient(36vw 34vh at 25% 70%, rgba(180, 72, 255, .095), transparent 62%),
    radial-gradient(34vw 36vh at 80% 38%, rgba(31, 178, 255, .078), transparent 65%),
    linear-gradient(180deg, #02040a 0%, #000205 58%, #030705 100%) !important;
}

.voice-material-overlay::before {
  background:
    radial-gradient(circle at 50% 44%, rgba(255,255,255,.045), transparent 21%),
    repeating-conic-gradient(from 18deg at 50% 46%, rgba(112,255,200,.05) 0deg 1.4deg, transparent 1.5deg 8deg),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.014) 1px, transparent 1px) !important;
  background-size: auto, auto, 72px 72px, 72px 72px !important;
  mask-image: radial-gradient(circle at 50% 46%, #000 0%, rgba(0,0,0,.86) 38%, transparent 76%) !important;
  opacity: .88;
}

.voice-material-top,
.voice-material-caption,
.voice-material-dock,
.voice-material-actions {
  position: relative;
  z-index: 3;
}

.voice-material-stage {
  position: relative;
  min-height: clamp(360px, 58vh, 720px) !important;
  display: grid;
  place-items: center;
  isolation: isolate;
  perspective: 900px;
}

.voice-material-stage::before,
.voice-material-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 48%;
  width: min(76vw, 840px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
}

.voice-material-stage::before {
  z-index: 0;
  background:
    repeating-conic-gradient(from 0deg, rgba(93,255,190,.34) 0deg 1.15deg, transparent 1.25deg 5.8deg),
    conic-gradient(from 140deg, transparent 0deg, rgba(71,255,184,.26) 52deg, transparent 96deg, rgba(182,88,255,.22) 172deg, transparent 246deg, rgba(255,207,91,.18) 308deg, transparent 360deg);
  -webkit-mask: radial-gradient(circle, transparent 0 31%, #000 32% 34.5%, transparent 36% 100%);
  mask: radial-gradient(circle, transparent 0 31%, #000 32% 34.5%, transparent 36% 100%);
  opacity: .4;
  filter: blur(.35px) drop-shadow(0 0 18px rgba(64,255,188,.18));
  transform: rotateX(63deg) rotateZ(-8deg);
  animation: voiceMaterialDisc 11s linear infinite;
}

.voice-material-stage::after {
  z-index: 0;
  width: min(62vw, 680px);
  background:
    radial-gradient(closest-side, rgba(67,255,184,.14), transparent 58%),
    conic-gradient(from 220deg, transparent, rgba(38,178,255,.18), transparent 34%, rgba(255,210,88,.16), transparent 66%, rgba(210,78,255,.18), transparent);
  -webkit-mask: radial-gradient(circle, transparent 0 46%, #000 47% 49%, transparent 50% 100%);
  mask: radial-gradient(circle, transparent 0 46%, #000 47% 49%, transparent 50% 100%);
  opacity: .62;
  filter: blur(1px) drop-shadow(0 0 30px rgba(170,88,255,.24));
  transform: rotateX(57deg) rotateZ(18deg);
  animation: voiceMaterialDiscReverse 15s linear infinite;
}

#voiceMaterialCanvas {
  z-index: 2;
  filter: saturate(168%) contrast(118%) brightness(108%) drop-shadow(0 0 34px rgba(56,255,177,.18)) !important;
}

.voice-material-rings {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: 1;
  width: min(64vw, 690px);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
  opacity: .92;
  transform: rotateX(58deg) rotateZ(0deg);
  transform-style: preserve-3d;
}

.voice-material-rings span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(102,255,202,.18);
  background:
    repeating-conic-gradient(from 0deg, rgba(80,255,190,.22) 0deg 1.3deg, transparent 1.45deg 8.2deg),
    conic-gradient(from 90deg, transparent, rgba(58,185,255,.22), transparent 32%, rgba(255,196,86,.2), transparent 64%, rgba(201,86,255,.18), transparent);
  -webkit-mask: radial-gradient(circle, transparent 0 48%, #000 49% 50.5%, transparent 51.5% 100%);
  mask: radial-gradient(circle, transparent 0 48%, #000 49% 50.5%, transparent 51.5% 100%);
  filter: drop-shadow(0 0 18px rgba(62,255,188,.22));
  animation: voiceMaterialRingSpin 8.8s linear infinite;
}

.voice-material-rings span:nth-child(2) {
  inset: 9%;
  opacity: .62;
  border-color: rgba(199,92,255,.16);
  transform: rotateZ(34deg) translateZ(22px);
  animation-duration: 12.5s;
  animation-direction: reverse;
}

.voice-material-rings span:nth-child(3) {
  inset: 18%;
  opacity: .46;
  border-color: rgba(255,205,92,.14);
  transform: rotateZ(-22deg) translateZ(-18px);
  animation-duration: 17s;
}

.voice-material-halo {
  z-index: 0;
  width: min(62vw, 740px) !important;
  height: min(40vw, 500px) !important;
  top: 48% !important;
  background:
    radial-gradient(closest-side, rgba(61,255,183,.22), transparent 62%),
    radial-gradient(closest-side, rgba(37,188,255,.15), transparent 69%),
    conic-gradient(from 120deg, transparent 0deg, rgba(255, 213, 74, .18) 58deg, transparent 110deg, rgba(217, 70, 239, .2) 190deg, transparent 270deg, rgba(52, 255, 180, .16) 330deg, transparent 360deg) !important;
  filter: blur(34px) saturate(190%) !important;
  opacity: .74 !important;
}

.voice-material-overlay.is-listening .voice-material-stage::before,
.voice-material-overlay.is-speaking .voice-material-stage::before {
  opacity: .72;
  animation-duration: 5.6s;
}

.voice-material-overlay.is-listening .voice-material-rings,
.voice-material-overlay.is-speaking .voice-material-rings {
  opacity: 1;
}

.voice-material-caption {
  border-color: rgba(112,255,202,.18) !important;
  background:
    linear-gradient(180deg, rgba(8, 13, 18, .7), rgba(2, 5, 8, .58)) !important;
  box-shadow:
    0 24px 84px rgba(0,0,0,.5),
    0 0 54px rgba(52,255,182,.08),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.voice-material-caption strong {
  color: rgba(245,255,250,.96) !important;
  letter-spacing: .03em;
}

.voice-material-dock {
  border-color: rgba(112,255,202,.14) !important;
  background: rgba(2, 8, 11, .72) !important;
}

.voice-material-spinner {
  background: radial-gradient(circle, #82ffd0 0 30%, rgba(82,255,208,.16) 33% 56%, transparent 58%) !important;
}

@keyframes voiceMaterialDisc {
  from { transform: rotateX(63deg) rotateZ(-8deg); }
  to { transform: rotateX(63deg) rotateZ(352deg); }
}

@keyframes voiceMaterialDiscReverse {
  from { transform: rotateX(57deg) rotateZ(18deg); }
  to { transform: rotateX(57deg) rotateZ(-342deg); }
}

@keyframes voiceMaterialRingSpin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@media (max-width: 780px) {
  .voice-material-stage {
    min-height: clamp(330px, 54vh, 560px) !important;
  }

  .voice-material-stage::before {
    width: 118vw;
  }

  .voice-material-stage::after,
  .voice-material-rings {
    width: 96vw;
  }

  .voice-material-halo {
    width: 104vw !important;
    height: 66vw !important;
  }
}

/* Voice material contrast tuning 20260704 fluid20 */
.voice-material-stage::before {
  width: min(68vw, 760px) !important;
  opacity: .28 !important;
  background:
    repeating-conic-gradient(from 0deg, rgba(94,255,202,.22) 0deg .95deg, transparent 1.08deg 6.4deg),
    conic-gradient(from 140deg, transparent 0deg, rgba(71,255,184,.18) 52deg, transparent 96deg, rgba(182,88,255,.16) 172deg, transparent 246deg, rgba(255,207,91,.14) 308deg, transparent 360deg) !important;
}

.voice-material-rings {
  width: min(58vw, 650px) !important;
}

.voice-material-rings span {
  background:
    repeating-conic-gradient(from 0deg, rgba(86,255,205,.16) 0deg 1.05deg, transparent 1.24deg 8.8deg),
    conic-gradient(from 90deg, transparent, rgba(58,185,255,.2), transparent 32%, rgba(255,196,86,.16), transparent 64%, rgba(201,86,255,.16), transparent) !important;
}

#voiceMaterialCanvas {
  filter: saturate(184%) contrast(126%) brightness(104%) drop-shadow(0 0 42px rgba(76,255,198,.2)) !important;
}

.voice-material-overlay.is-listening .voice-material-stage::before,
.voice-material-overlay.is-speaking .voice-material-stage::before {
  opacity: .48 !important;
}


/* Voice material accessibility and small-screen guard 20260705 fluid20 */
.voice-material-overlay {
  --voice-safe-bottom: max(18px, env(safe-area-inset-bottom));
  padding-bottom: var(--voice-safe-bottom) !important;
}

.voice-material-actions button:focus-visible,
.voice-material-close:focus-visible {
  outline: 2px solid rgba(128, 255, 210, .92) !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px rgba(61, 255, 183, .12), 0 18px 48px rgba(0,0,0,.34) !important;
}

@media (max-width: 520px) {
  .voice-material-overlay {
    grid-template-rows: auto minmax(280px, 1fr) auto auto auto !important;
    padding: 14px 10px max(16px, env(safe-area-inset-bottom)) !important;
  }

  .voice-material-top {
    align-items: center !important;
    gap: 10px !important;
  }

  .voice-material-kicker {
    max-width: 58vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: .12em !important;
  }

  .voice-material-top h2 {
    font-size: 12px !important;
  }

  .voice-material-close {
    min-height: 40px !important;
    padding-inline: 14px !important;
  }

  .voice-material-stage {
    min-height: min(48vh, 390px) !important;
  }

  .voice-material-stage::before {
    width: 108vw !important;
  }

  .voice-material-stage::after,
  .voice-material-rings {
    width: 92vw !important;
  }

  .voice-material-caption {
    padding: 10px 14px !important;
    border-radius: 22px !important;
  }

  .voice-material-actions {
    width: min(100%, 360px);
  }

  .voice-material-actions button {
    flex: 1 1 0;
    min-height: 44px !important;
    padding-inline: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voice-material-halo,
  .voice-material-stage::before,
  .voice-material-stage::after,
  .voice-material-rings span,
  .voice-material-spinner {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
  }

  #voiceMaterialCanvas {
    filter: saturate(140%) contrast(112%) brightness(102%) drop-shadow(0 0 28px rgba(76,255,198,.14)) !important;
  }
}


/* Voice material mobile overflow trim 20260705 fluid20 */
@media (max-width: 520px) {
  .voice-material-stage {
    overflow: hidden;
    border-radius: 0;
  }

  .voice-material-stage::before {
    width: 96vw !important;
  }

  .voice-material-stage::after {
    width: 82vw !important;
  }

  .voice-material-rings {
    width: 78vw !important;
    opacity: .86 !important;
  }

  .voice-material-rings span:nth-child(2) {
    inset: 11% !important;
  }

  .voice-material-rings span:nth-child(3) {
    inset: 22% !important;
  }

  .voice-material-halo {
    width: 88vw !important;
    height: 56vw !important;
  }
}

/* Route-split navigation cleanup 20260705 fluid21 */
.nav-menu {
  gap: 10px !important;
  padding: 12px 10px !important;
  overflow-y: auto;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-group + .nav-group {
  padding-top: 8px;
  border-top: 1px solid rgba(15, 23, 42, .07);
}

.nav-group-title {
  margin: 0 0 2px;
  padding: 0 8px;
  color: #8792a2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.4;
}

.nav-item {
  position: relative;
  gap: 9px !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  border-radius: 10px !important;
}

.nav-item::before {
  display: none !important;
}

.nav-index {
  width: 25px;
  min-width: 25px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #eef3f8;
  color: #718096;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

.nav-item > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-item:hover .nav-index {
  background: #e5edf7;
  color: #36506f;
}

.nav-item.active {
  background: linear-gradient(135deg, rgba(11, 99, 206, .13), rgba(19, 142, 116, .10)) !important;
  border-color: rgba(11, 99, 206, .22) !important;
}

.nav-item.active .nav-index {
  background: #0b63ce;
  color: #fff;
  box-shadow: 0 8px 18px rgba(11, 99, 206, .18);
}

.route-focus-target {
  outline: 2px solid rgba(11, 99, 206, .28);
  outline-offset: 8px;
  border-radius: 18px;
}

#appView[data-current-route="project-map"] #view-control #objectLedgerPanel,
#appView[data-current-route="project-map"] #view-control #controlLedgerGrid {
  display: none !important;
}

#appView[data-current-route="project-ledger"] #view-control #projectMapPanel,
#appView[data-current-route="project-ledger"] #view-control #controlWidgetGrid,
#appView[data-current-route="project-ledger"] #view-control #controlKnowledgePanel {
  display: none !important;
}

#appView[data-current-route="project-ledger"] #view-control .control-workbench {
  grid-template-columns: minmax(188px, 220px) minmax(0, 1fr) !important;
}

#appView[data-current-route="project-ledger"] #view-control .control-main {
  display: grid;
  grid-template-columns: minmax(320px, .82fr) minmax(420px, 1.18fr);
  gap: 18px;
  align-items: start;
}

#appView[data-current-route="project-ledger"] #view-control #controlLedgerGrid {
  display: grid !important;
}

#appView[data-current-route="storage-drive"] #view-documents #documentFilterPanel {
  display: none !important;
}

#appView[data-current-route="storage-drive"] #view-documents .asset-drive-grid {
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) !important;
}

#appView[data-current-route="storage-drive"] #view-documents #documentGovernancePanel {
  display: none !important;
}

#appView[data-current-route="document-ledger"] #view-documents #storageOverview,
#appView[data-current-route="document-ledger"] #view-documents #storageDriveDropzone {
  display: none !important;
}

#appView[data-current-route="document-ledger"] #view-documents .asset-drive-grid {
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr) !important;
}

#appView[data-current-route="document-ledger"] #view-documents #documentGovernancePanel {
  display: none !important;
}

#appView[data-current-route="document-governance"] #view-documents #storageOverview,
#appView[data-current-route="document-governance"] #view-documents #storageDriveDropzone,
#appView[data-current-route="document-governance"] #view-documents #documentFilterPanel,
#appView[data-current-route="document-governance"] #view-documents #assetFolderPanel,
#appView[data-current-route="document-governance"] #view-documents #assetLedgerPanel {
  display: none !important;
}

#appView[data-current-route="document-governance"] #view-documents .asset-drive-grid {
  display: block !important;
}

#appView[data-current-route="document-governance"] #view-documents #documentGovernancePanel {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

#appView[data-current-route="document-governance"] #view-documents #documentGovernancePanel .panel-card:first-child {
  grid-column: 1 / -1;
}

@media (max-width: 980px) {
  #appView[data-current-route="project-ledger"] #view-control .control-workbench,
  #appView[data-current-route="project-ledger"] #view-control .control-main,
  #appView[data-current-route="storage-drive"] #view-documents .asset-drive-grid,
  #appView[data-current-route="document-ledger"] #view-documents .asset-drive-grid,
  #appView[data-current-route="document-governance"] #view-documents #documentGovernancePanel {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 860px) {
  .nav-menu {
    display: flex !important;
    flex-direction: row !important;
    gap: 8px !important;
    padding: 7px 10px 11px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .nav-group {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
    align-items: stretch;
  }

  .nav-group + .nav-group {
    padding-top: 0;
    padding-left: 8px;
    border-top: 0;
    border-left: 1px solid rgba(15, 23, 42, .10);
  }

  .nav-group-title {
    align-self: center;
    padding: 0 2px 0 0;
    writing-mode: vertical-rl;
    letter-spacing: .08em;
    font-size: 10px;
  }

  .nav-item {
    width: auto !important;
    min-width: 112px !important;
    justify-content: flex-start !important;
    scroll-snap-align: start;
  }

  .nav-index {
    width: 23px;
    min-width: 23px;
    height: 21px;
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .nav-item {
    min-width: 106px !important;
    min-height: 36px !important;
    padding-inline: 8px !important;
    font-size: 12px !important;
  }

  .nav-index {
    width: 22px;
    min-width: 22px;
  }
}

/* Keep split-page navigation reachable after deep page jumps 20260705 fluid21 */
.nav-rail {
  position: sticky !important;
  top: 0 !important;
  z-index: 40 !important;
}

@media (max-width: 860px) {
  .nav-rail {
    position: sticky !important;
    top: 0 !important;
    background: rgba(255, 255, 255, .98) !important;
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
  }
}

/* Outcomes route and evidence-chain panel 20260705 fluid24 */
.outcome-system {
  position: relative;
  grid-template-columns: minmax(300px, 1.22fr) repeat(5, minmax(150px, .72fr)) !important;
  align-items: stretch;
  gap: 12px !important;
  padding: 14px !important;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 26px;
  background:
    radial-gradient(circle at 10% 0%, rgba(11, 99, 206, .10), transparent 28%),
    linear-gradient(135deg, rgba(255,255,255,.96), rgba(247,250,252,.92));
  box-shadow: 0 18px 50px rgba(15, 23, 42, .07);
}

.outcome-system::before {
  content: "";
  position: absolute;
  inset: 28px 16px auto 342px;
  height: 2px;
  background: linear-gradient(90deg, rgba(11, 99, 206, .18), rgba(20, 184, 166, .12), transparent);
  pointer-events: none;
}

.outcome-system article {
  position: relative;
  min-height: 150px;
  padding: 18px !important;
  border: 1px solid rgba(15, 23, 42, .07) !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .045) !important;
}

.outcome-system .outcome-lead {
  overflow: hidden;
  color: #0f172a;
  background:
    linear-gradient(145deg, rgba(11, 99, 206, .10), rgba(16, 185, 129, .07)),
    rgba(255,255,255,.94) !important;
}

.outcome-system .outcome-lead h2 {
  margin: 4px 0 8px;
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.outcome-system .outcome-lead p {
  max-width: 62ch;
  color: #435063;
  line-height: 1.72;
}

.outcome-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.outcome-proof-strip span {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(11, 99, 206, .12);
  border-radius: 16px;
  background: rgba(255,255,255,.78);
}

.outcome-proof-strip strong {
  color: #0b63ce;
  font-size: 22px;
  line-height: 1;
}

.outcome-proof-strip em {
  color: #64748b;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.outcome-system article:not(.outcome-lead)::after {
  content: "";
  position: absolute;
  top: 30px;
  left: -7px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #0b63ce;
  box-shadow: 0 0 0 5px rgba(11, 99, 206, .10);
}

.outcome-system article:not(.outcome-lead) strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 26px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #eef6ff;
  color: #0b63ce;
  font-size: 12px;
  font-weight: 900;
}

.outcome-system article:not(.outcome-lead) span {
  display: block;
  color: #101828;
  font-size: 16px;
  font-weight: 850;
}

.outcome-system article:not(.outcome-lead) p {
  margin-top: 8px;
  color: #5f6b7a;
  font-size: 13px;
  line-height: 1.62;
}

#appView[data-current-route="outcomes"] #view-dashboard .command-deck,
#appView[data-current-route="outcomes"] #view-dashboard .stat-grid,
#appView[data-current-route="outcomes"] #view-dashboard .dashboard-overview,
#appView[data-current-route="outcomes"] #view-dashboard .dashboard-grid,
#appView[data-current-route="outcomes"] #view-dashboard .orchestration-card,
#appView[data-current-route="outcomes"] #view-dashboard > .panel-card {
  display: none !important;
}

#appView[data-current-route="outcomes"] #view-dashboard .outcome-system {
  margin-top: 0;
}

@media (max-width: 1480px) {
  .outcome-system {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(220px, .72fr)) !important;
  }

  .outcome-system::before {
    display: none;
  }

  .outcome-system .outcome-lead {
    grid-column: 1 / -1;
  }
}

@media (max-width: 780px) {
  .outcome-system {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    padding: 10px !important;
    border-radius: 22px;
  }

  .outcome-system article {
    min-height: 0;
    padding: 15px !important;
    border-radius: 18px !important;
  }

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

  .outcome-system article:not(.outcome-lead)::after {
    top: 24px;
    left: -5px;
    width: 10px;
    height: 10px;
  }
}

/* Material and compliance evidence loop 20260705 fluid25 */
.evidence-compliance-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 26px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, .03), rgba(11, 99, 206, .06)),
    rgba(255,255,255,.95);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .06);
}

.evidence-compliance-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.evidence-compliance-head h2 {
  margin: 4px 0 8px;
  color: #101828;
  font-size: clamp(22px, 1.8vw, 30px);
  letter-spacing: -.035em;
  line-height: 1.1;
}

.evidence-compliance-head p:not(.eyebrow) {
  max-width: 78ch;
  color: #5b6676;
  line-height: 1.7;
}

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

.evidence-compliance-grid article {
  position: relative;
  min-height: 158px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 18px;
  background: rgba(255,255,255,.86);
}

.evidence-compliance-grid article::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, #0b63ce, #14b8a6);
  opacity: .78;
}

.evidence-compliance-grid strong {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 24px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: #0b63ce;
  font-size: 12px;
  font-weight: 900;
}

.evidence-compliance-grid span {
  display: block;
  color: #111827;
  font-size: 15px;
  font-weight: 850;
}

.evidence-compliance-grid p {
  margin: 8px 0 0;
  color: #657083;
  font-size: 13px;
  line-height: 1.62;
}

#appView[data-current-route="outcomes"] #view-dashboard .evidence-compliance-panel {
  display: block !important;
}

@media (max-width: 1180px) {
  .evidence-compliance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .evidence-compliance-panel {
    margin-top: 10px;
    padding: 12px;
    border-radius: 22px;
  }

  .evidence-compliance-head {
    grid-template-columns: 1fr;
  }

  .evidence-compliance-grid {
    grid-template-columns: 1fr;
  }

  .evidence-compliance-grid article {
    min-height: 0;
    padding: 15px 15px 15px 17px;
  }
}

/* Live outcome metrics 20260705 fluid26 */
.outcome-live-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 0%, rgba(20, 184, 166, .10), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
  box-shadow: 0 18px 48px rgba(15, 23, 42, .055);
}

.outcome-live-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.outcome-live-head h2 {
  margin: 4px 0 8px;
  color: #101828;
  font-size: clamp(22px, 1.8vw, 30px);
  letter-spacing: -.035em;
  line-height: 1.1;
}

.outcome-live-head p:not(.eyebrow) {
  max-width: 76ch;
  color: #5b6676;
  line-height: 1.7;
}

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

.outcome-live-card {
  position: relative;
  overflow: hidden;
  min-height: 148px;
  padding: 17px;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 20px;
  background: rgba(255,255,255,.9);
}

.outcome-live-card::after {
  content: "";
  position: absolute;
  right: -32px;
  top: -32px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(11,99,206,.10);
}

.outcome-live-card strong {
  display: block;
  color: #0f172a;
  font-size: clamp(30px, 3vw, 46px);
  line-height: .96;
  letter-spacing: -.05em;
}

.outcome-live-card span {
  display: block;
  margin-top: 12px;
  color: #111827;
  font-size: 15px;
  font-weight: 850;
}

.outcome-live-card p {
  margin: 7px 0 0;
  color: #657083;
  font-size: 13px;
  line-height: 1.58;
}

.outcome-live-card.tone-green::after { background: rgba(20, 184, 166, .13); }
.outcome-live-card.tone-amber::after { background: rgba(245, 158, 11, .16); }
.outcome-live-card.tone-slate::after { background: rgba(71, 85, 105, .12); }

#appView[data-current-route="outcomes"] #view-dashboard .outcome-live-panel {
  display: block !important;
}

@media (max-width: 1180px) {
  .outcome-live-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .outcome-live-panel {
    margin-top: 10px;
    padding: 12px;
    border-radius: 22px;
  }

  .outcome-live-head {
    grid-template-columns: 1fr;
  }

  .outcome-live-grid {
    grid-template-columns: 1fr;
  }

  .outcome-live-card {
    min-height: 0;
    padding: 15px;
  }
}

/* Submission material readiness 20260705 fluid27 */
.submission-readiness-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 26px;
  background:
    radial-gradient(circle at 8% 0%, rgba(245, 158, 11, .10), transparent 30%),
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(248,250,252,.94));
  box-shadow: 0 18px 48px rgba(15, 23, 42, .055);
}

.submission-readiness-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.submission-readiness-head h2 {
  margin: 4px 0 8px;
  color: #101828;
  font-size: clamp(22px, 1.8vw, 30px);
  letter-spacing: -.035em;
  line-height: 1.1;
}

.submission-readiness-head p:not(.eyebrow) {
  max-width: 78ch;
  color: #5b6676;
  line-height: 1.7;
}

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

.submission-readiness-card {
  position: relative;
  min-height: 160px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 20px;
  background: rgba(255,255,255,.9);
}

.readiness-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 12px;
  font-weight: 850;
}

.readiness-status span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(146, 64, 14, .12);
}

.readiness-status em {
  font-style: normal;
}

.submission-readiness-card.is-ready .readiness-status {
  background: #dcfce7;
  color: #166534;
}

.submission-readiness-card.is-ready .readiness-status span {
  background: rgba(22, 101, 52, .12);
}

.submission-readiness-card strong {
  display: block;
  color: #101828;
  font-size: 15px;
  font-weight: 850;
}

.submission-readiness-card p {
  margin: 8px 0 0;
  color: #657083;
  font-size: 13px;
  line-height: 1.58;
}

.submission-readiness-card small {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #0b63ce;
  font-size: 12px;
  font-weight: 900;
}

#appView[data-current-route="outcomes"] #view-dashboard .submission-readiness-panel {
  display: block !important;
}

@media (max-width: 1320px) {
  .submission-readiness-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .submission-readiness-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .submission-readiness-panel {
    margin-top: 10px;
    padding: 12px;
    border-radius: 22px;
  }

  .submission-readiness-head {
    grid-template-columns: 1fr;
  }

  .submission-readiness-grid {
    grid-template-columns: 1fr;
  }

  .submission-readiness-card {
    min-height: 0;
    padding: 15px;
  }

  .submission-readiness-card small {
    position: static;
    margin-top: 10px;
    width: max-content;
  }
}

/* Split dashboard specialist pages 20260706 fluid28 */
#appView[data-current-route="dashboard"] #view-dashboard .outcome-system,
#appView[data-current-route="dashboard"] #view-dashboard .outcome-live-panel,
#appView[data-current-route="dashboard"] #view-dashboard .submission-readiness-panel,
#appView[data-current-route="dashboard"] #view-dashboard .material-preparation-panel,
#appView[data-current-route="dashboard"] #view-dashboard .evidence-compliance-panel {
  display: none !important;
}

#appView[data-current-route="outcomes"] #view-dashboard .submission-readiness-panel,
#appView[data-current-route="outcomes"] #view-dashboard .material-preparation-panel,
#appView[data-current-route="outcomes"] #view-dashboard .evidence-compliance-panel,
#appView[data-current-route="materials"] #view-dashboard .outcome-system,
#appView[data-current-route="materials"] #view-dashboard .outcome-live-panel,
#appView[data-current-route="materials"] #view-dashboard .evidence-compliance-panel,
#appView[data-current-route="compliance"] #view-dashboard .outcome-system,
#appView[data-current-route="compliance"] #view-dashboard .outcome-live-panel,
#appView[data-current-route="compliance"] #view-dashboard .submission-readiness-panel,
#appView[data-current-route="compliance"] #view-dashboard .material-preparation-panel {
  display: none !important;
}

#appView[data-current-route="materials"] #view-dashboard .command-deck,
#appView[data-current-route="materials"] #view-dashboard .stat-grid,
#appView[data-current-route="materials"] #view-dashboard .dashboard-overview,
#appView[data-current-route="materials"] #view-dashboard .dashboard-grid,
#appView[data-current-route="materials"] #view-dashboard .orchestration-card,
#appView[data-current-route="materials"] #view-dashboard > .panel-card,
#appView[data-current-route="compliance"] #view-dashboard .command-deck,
#appView[data-current-route="compliance"] #view-dashboard .stat-grid,
#appView[data-current-route="compliance"] #view-dashboard .dashboard-overview,
#appView[data-current-route="compliance"] #view-dashboard .dashboard-grid,
#appView[data-current-route="compliance"] #view-dashboard .orchestration-card,
#appView[data-current-route="compliance"] #view-dashboard > .panel-card {
  display: none !important;
}

#appView[data-current-route="materials"] #view-dashboard .submission-readiness-panel,
#appView[data-current-route="materials"] #view-dashboard .material-preparation-panel,
#appView[data-current-route="compliance"] #view-dashboard .evidence-compliance-panel {
  display: block !important;
}

.material-preparation-panel {
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 26px;
  background: radial-gradient(circle at 92% 0%, rgba(99, 102, 241, .11), transparent 30%), rgba(255,255,255,.96);
  box-shadow: 0 18px 48px rgba(15, 23, 42, .055);
}

.material-preparation-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.material-preparation-head h2 {
  margin: 4px 0 8px;
  color: #101828;
  font-size: clamp(22px, 1.8vw, 30px);
  letter-spacing: -.035em;
  line-height: 1.1;
}

.material-preparation-head p:not(.eyebrow) {
  max-width: 78ch;
  color: #5b6676;
  line-height: 1.7;
}

.material-preparation-summary {
  display: grid;
  gap: 4px;
  min-width: 190px;
  padding: 12px 14px;
  border-radius: 18px;
  background: #eff6ff;
  color: #0b3b75;
}

.material-preparation-summary strong { font-size: 17px; }
.material-preparation-summary span { color: #526172; font-size: 12px; font-weight: 760; }

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

.material-preparation-card {
  display: grid;
  gap: 10px;
  min-height: 214px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 20px;
  background: rgba(255,255,255,.9);
}

.material-card-top,
.readiness-actions,
.material-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.material-card-top { justify-content: space-between; }
.material-card-top span { padding: 5px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 12px; font-weight: 850; }
.material-preparation-card.is-ready .material-card-top span { background: #dcfce7; color: #166534; }
.material-card-top em { color: #64748b; font-size: 12px; font-style: normal; font-weight: 800; }
.material-preparation-card strong { color: #101828; font-size: 15px; font-weight: 880; }
.material-preparation-card p { margin: 0; color: #657083; font-size: 13px; line-height: 1.58; }
.material-preparation-card small { color: #526172; font-size: 12px; line-height: 1.45; }
.material-actions { margin-top: auto; }
.material-actions button, .readiness-actions button { min-height: 30px; padding: 0 10px; font-size: 12px; }

@media (max-width: 1320px) {
  .material-preparation-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 920px) {
  .material-preparation-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .material-preparation-panel { margin-top: 10px; padding: 12px; border-radius: 22px; }
  .material-preparation-head { grid-template-columns: 1fr; }
  .material-preparation-grid { grid-template-columns: 1fr; }
  .material-preparation-card { min-height: 0; padding: 15px; }
}

/* Tidy specialist route spacing 20260706 fluid29 */
#appView[data-current-route="materials"] #view-dashboard,
#appView[data-current-route="outcomes"] #view-dashboard,
#appView[data-current-route="compliance"] #view-dashboard {
  display: grid;
  gap: 18px;
}

#appView[data-current-route="materials"] .submission-readiness-panel,
#appView[data-current-route="materials"] .material-preparation-panel,
#appView[data-current-route="outcomes"] .outcome-system,
#appView[data-current-route="outcomes"] .outcome-live-panel,
#appView[data-current-route="compliance"] .evidence-compliance-panel {
  margin-top: 0 !important;
}

#appView[data-current-route="materials"] .submission-readiness-grid,
#appView[data-current-route="materials"] .material-preparation-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

#appView[data-current-route="materials"] .submission-readiness-card,
#appView[data-current-route="materials"] .material-preparation-card {
  min-height: 178px;
}

#appView[data-current-route="materials"] .submission-readiness-card p,
#appView[data-current-route="materials"] .material-preparation-card p {
  max-width: 46ch;
}

@media (max-width: 1180px) {
  #appView[data-current-route="materials"] .submission-readiness-grid,
  #appView[data-current-route="materials"] .material-preparation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  #appView[data-current-route="materials"] .submission-readiness-grid,
  #appView[data-current-route="materials"] .material-preparation-grid {
    grid-template-columns: 1fr;
  }
}

/* Split material readiness and actions 20260706 fluid30 */
#appView[data-current-route="material-actions"] #view-dashboard .command-deck,
#appView[data-current-route="material-actions"] #view-dashboard .stat-grid,
#appView[data-current-route="material-actions"] #view-dashboard .dashboard-overview,
#appView[data-current-route="material-actions"] #view-dashboard .dashboard-grid,
#appView[data-current-route="material-actions"] #view-dashboard .orchestration-card,
#appView[data-current-route="material-actions"] #view-dashboard > .panel-card,
#appView[data-current-route="material-actions"] #view-dashboard .outcome-system,
#appView[data-current-route="material-actions"] #view-dashboard .outcome-live-panel,
#appView[data-current-route="material-actions"] #view-dashboard .submission-readiness-panel,
#appView[data-current-route="material-actions"] #view-dashboard .evidence-compliance-panel {
  display: none !important;
}

#appView[data-current-route="material-actions"] #view-dashboard .material-preparation-panel {
  display: block !important;
  margin-top: 0 !important;
}

#appView[data-current-route="materials"] #view-dashboard .material-preparation-panel {
  display: none !important;
}

#appView[data-current-route="materials"] #view-dashboard .submission-readiness-panel {
  display: block !important;
}

/* Compact scrollable rail after split routes 20260706 fluid31 */
.nav-rail {
  max-height: 100vh;
  overflow: hidden;
}

.nav-menu {
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px !important;
  scrollbar-width: thin;
}

.nav-menu::-webkit-scrollbar { width: 6px; }
.nav-menu::-webkit-scrollbar-thumb { border-radius: 999px; background: rgba(148, 163, 184, .38); }
.nav-menu::-webkit-scrollbar-track { background: transparent; }

.nav-group { padding-bottom: 6px; }
.nav-group + .nav-group { padding-top: 6px; }
.nav-group-title { margin-bottom: 0 !important; font-size: 10px !important; letter-spacing: .13em !important; }
.nav-item { min-height: 32px !important; padding: 0 9px !important; font-size: 13px !important; }
.nav-index { width: 23px !important; min-width: 23px !important; height: 20px !important; font-size: 10px !important; }
.nav-footer { flex-shrink: 0; }

@media (max-width: 860px) {
  .nav-menu { overflow-x: auto; overflow-y: hidden; padding-right: 0 !important; }
  .nav-group { padding-bottom: 0; }
  .nav-group + .nav-group { padding-top: 0; border-top: 0; }
}

/* Mobile rail as horizontal command chips 20260706 fluid32 */
@media (max-width: 860px) {
  .nav-rail {
    max-height: none !important;
    overflow: visible !important;
    padding: 10px 10px 8px !important;
  }

  .brand-block {
    min-height: 48px !important;
    margin-bottom: 8px !important;
  }

  .nav-menu {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    padding: 0 2px 8px !important;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .nav-group {
    display: contents !important;
  }

  .nav-group-title {
    display: none !important;
  }

  .nav-item {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: max-content !important;
    min-height: 34px !important;
    padding: 0 12px 0 8px !important;
    border-radius: 999px !important;
    scroll-snap-align: start;
  }

  .nav-item > span:last-child {
    max-width: 7.5em;
  }

  .nav-footer {
    margin-top: 2px !important;
    min-height: 28px !important;
    border-radius: 999px !important;
  }

  .workspace-topbar {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .top-actions,
  .global-search {
    width: 100% !important;
  }

  .global-search input {
    min-width: 0 !important;
  }
}

@media (max-width: 520px) {
  .nav-item > span:last-child { max-width: 6.2em; }
  .workspace-topbar .runtime-health { gap: 5px !important; }
  .runtime-pill { font-size: 11px !important; }
  .material-preparation-head h2,
  .submission-readiness-head h2,
  .evidence-compliance-head h2,
  .outcome-live-head h2 { font-size: 22px !important; }
}

/* Final mobile override: one-row scroll chips 20260706 fluid33 */
@media (max-width: 860px) {
  .app-shell .nav-menu {
    display: flex !important;
    flex-flow: row nowrap !important;
    grid-template-columns: none !important;
    max-height: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    align-items: center !important;
  }

  .app-shell .nav-item {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
}

/* Card action alignment cleanup 20260706 fluid34 */
.submission-readiness-card,
.material-preparation-card,
.evidence-compliance-grid article,
.outcome-live-card {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.submission-readiness-card:hover,
.material-preparation-card:hover,
.evidence-compliance-grid article:hover,
.outcome-live-card:hover {
  border-color: rgba(11, 99, 206, .18) !important;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .075) !important;
  transform: translateY(-1px);
}

.submission-readiness-card {
  display: flex;
  flex-direction: column;
}

.readiness-actions {
  margin-top: auto;
  padding-top: 12px;
}

.material-preparation-card .material-actions {
  padding-top: 2px;
}

/* Primary action clarity 20260706 fluid35 */
.material-actions button:first-child,
.readiness-actions button:last-child {
  background: linear-gradient(135deg, #2563eb, #0b63ce) !important;
  border-color: rgba(37, 99, 235, .35) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(37, 99, 235, .18) !important;
}

.material-actions button.secondary,
.readiness-actions button:first-child {
  background: rgba(255,255,255,.88) !important;
  color: #0b4a8f !important;
  box-shadow: none !important;
}

/* Focused route entries and finer outcome split 20260706 fluid36 */
.route-gateway-panel {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 28px;
  background:
    radial-gradient(circle at 8% 0%, rgba(37, 99, 235, .13), transparent 32%),
    radial-gradient(circle at 92% 0%, rgba(20, 184, 166, .12), transparent 30%),
    rgba(255,255,255,.96);
  box-shadow: 0 20px 56px rgba(15, 23, 42, .065);
}

.route-gateway-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.58), transparent 42%, rgba(255,255,255,.35));
}

.route-gateway-head,
.route-gateway-grid {
  position: relative;
  z-index: 1;
}

.route-gateway-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.route-gateway-head h2 {
  margin: 4px 0 8px;
  color: #101828;
  font-size: clamp(22px, 1.8vw, 30px);
  letter-spacing: -.035em;
  line-height: 1.08;
}

.route-gateway-head p:not(.eyebrow) {
  max-width: 78ch;
  color: #5b6676;
  line-height: 1.7;
}

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

.route-entry-card {
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 9px;
  min-height: 146px;
  padding: 15px;
  border: 1px solid rgba(15, 23, 42, .07);
  border-radius: 20px;
  background: rgba(255,255,255,.9);
  color: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

.route-entry-card:hover,
.route-entry-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, .22);
  background: rgba(255,255,255,.98);
  box-shadow: 0 16px 34px rgba(15, 23, 42, .075);
  outline: none;
}

.route-entry-card span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 24px;
  border-radius: 999px;
  background: #eff6ff;
  color: #0b63ce;
  font-size: 12px;
  font-weight: 900;
}

.route-entry-card strong {
  color: #101828;
  font-size: 15px;
  font-weight: 880;
}

.route-entry-card small {
  color: #657083;
  font-size: 12px;
  line-height: 1.55;
}

.route-entry-card.is-primary {
  border-color: rgba(37, 99, 235, .22);
  background: linear-gradient(135deg, rgba(37, 99, 235, .10), rgba(20, 184, 166, .08)), rgba(255,255,255,.96);
}

.route-entry-card.is-primary span {
  background: linear-gradient(135deg, #2563eb, #0b63ce);
  color: #fff;
}

#appView[data-current-route="outcomes"] #view-dashboard .route-gateway-panel,
#appView[data-current-route="outcome-method"] #view-dashboard .command-deck,
#appView[data-current-route="outcome-method"] #view-dashboard .stat-grid,
#appView[data-current-route="outcome-method"] #view-dashboard .route-gateway-panel,
#appView[data-current-route="outcome-method"] #view-dashboard .dashboard-overview,
#appView[data-current-route="outcome-method"] #view-dashboard .dashboard-grid,
#appView[data-current-route="outcome-method"] #view-dashboard .orchestration-card,
#appView[data-current-route="outcome-method"] #view-dashboard > .panel-card,
#appView[data-current-route="outcome-method"] #view-dashboard .outcome-live-panel,
#appView[data-current-route="outcome-method"] #view-dashboard .submission-readiness-panel,
#appView[data-current-route="outcome-method"] #view-dashboard .material-preparation-panel,
#appView[data-current-route="outcome-method"] #view-dashboard .evidence-compliance-panel,
#appView[data-current-route="outcome-metrics"] #view-dashboard .command-deck,
#appView[data-current-route="outcome-metrics"] #view-dashboard .stat-grid,
#appView[data-current-route="outcome-metrics"] #view-dashboard .route-gateway-panel,
#appView[data-current-route="outcome-metrics"] #view-dashboard .dashboard-overview,
#appView[data-current-route="outcome-metrics"] #view-dashboard .dashboard-grid,
#appView[data-current-route="outcome-metrics"] #view-dashboard .orchestration-card,
#appView[data-current-route="outcome-metrics"] #view-dashboard > .panel-card,
#appView[data-current-route="outcome-metrics"] #view-dashboard .outcome-system,
#appView[data-current-route="outcome-metrics"] #view-dashboard .submission-readiness-panel,
#appView[data-current-route="outcome-metrics"] #view-dashboard .material-preparation-panel,
#appView[data-current-route="outcome-metrics"] #view-dashboard .evidence-compliance-panel,
#appView[data-current-route="materials"] #view-dashboard .route-gateway-panel,
#appView[data-current-route="material-actions"] #view-dashboard .route-gateway-panel,
#appView[data-current-route="compliance"] #view-dashboard .route-gateway-panel {
  display: none !important;
}

#appView[data-current-route="outcome-method"] #view-dashboard .outcome-system,
#appView[data-current-route="outcome-metrics"] #view-dashboard .outcome-live-panel {
  display: grid !important;
  margin-top: 0 !important;
}

#appView[data-current-route="outcome-metrics"] #view-dashboard .outcome-live-panel {
  display: block !important;
}

#appView[data-current-route="outcome-method"] #view-dashboard,
#appView[data-current-route="outcome-metrics"] #view-dashboard,
#appView[data-current-route="material-actions"] #view-dashboard {
  display: grid;
  gap: 18px;
}

@media (max-width: 1380px) {
  .route-gateway-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
  .route-gateway-panel { margin-top: 10px; padding: 12px; border-radius: 22px; }
  .route-gateway-head { grid-template-columns: 1fr; }
  .route-gateway-grid { grid-template-columns: 1fr; }
  .route-entry-card { min-height: 0; padding: 14px; }
}

/* Clean production UI pass 20260706 fluid39 */
:root {
  --clean-bg: #f6f8fb;
  --clean-card: rgba(255, 255, 255, .96);
  --clean-line: rgba(15, 23, 42, .08);
  --clean-text: #111827;
  --clean-muted: #667085;
  --clean-blue: #155eef;
  --clean-shadow: 0 14px 36px rgba(15, 23, 42, .07);
}

body {
  background: var(--clean-bg) !important;
  color: var(--clean-text) !important;
}

@media (min-width: 1100px) {
  .app-shell:not(.assistant-expanded) {
    grid-template-columns: 220px minmax(0, 1fr) !important;
  }

  .app-shell:not(.assistant-expanded) .assistant-panel {
    display: none !important;
  }

  .app-shell:not(.assistant-expanded) .assistant-fab {
    display: grid !important;
    place-items: center;
  }
}

.app-shell {
  background: linear-gradient(180deg, #f8fbff 0, var(--clean-bg) 240px) !important;
}

.nav-rail {
  background: rgba(255, 255, 255, .96) !important;
  border-right: 1px solid var(--clean-line) !important;
  box-shadow: 8px 0 28px rgba(15, 23, 42, .035) !important;
}

.brand-block {
  min-height: 58px !important;
  padding: 10px 12px !important;
}

.brand-logo {
  width: 34px !important;
  height: 34px !important;
  border-radius: 12px !important;
}

.brand-block strong,
.nav-item > span:last-child {
  font-size: 13px !important;
}

.nav-menu {
  gap: 5px !important;
  padding: 8px !important;
}

.nav-group {
  gap: 3px !important;
}

.nav-group + .nav-group {
  margin-top: 4px !important;
  padding-top: 7px !important;
}

.nav-group-title {
  padding-inline: 6px !important;
  color: #98a2b3 !important;
  font-size: 10px !important;
}

.nav-item {
  min-height: 34px !important;
  padding: 0 8px !important;
  border-radius: 11px !important;
  color: #475467 !important;
  font-weight: 760 !important;
}

.nav-index {
  width: 22px !important;
  min-width: 22px !important;
  height: 20px !important;
  font-size: 10px !important;
  background: #f2f4f7 !important;
}

.nav-item.active {
  background: #eef4ff !important;
  color: var(--clean-blue) !important;
  border-color: rgba(21, 94, 239, .16) !important;
  box-shadow: none !important;
}

.workspace {
  padding: 14px 18px 22px !important;
}

.workspace-topbar {
  top: 10px !important;
  margin-bottom: 14px !important;
  padding: 14px 16px !important;
  border: 1px solid var(--clean-line) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .9) !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, .055) !important;
}

.workspace-topbar h1 {
  font-size: clamp(26px, 2.2vw, 34px) !important;
  letter-spacing: -.04em !important;
}

.global-search {
  border-radius: 16px !important;
  background: #f9fafb !important;
}

.command-deck {
  grid-template-columns: minmax(0, 1.14fr) minmax(280px, .86fr) !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.command-deck::before,
.command-visual,
.campus-visual {
  display: none !important;
}

.command-copy,
.agent-command-card,
.panel-card,
.dashboard-overview > article,
.stat-card,
.route-gateway-panel,
.outcome-system,
.outcome-live-panel,
.submission-readiness-panel,
.material-preparation-panel,
.evidence-compliance-panel {
  border: 1px solid var(--clean-line) !important;
  border-radius: 24px !important;
  background: var(--clean-card) !important;
  box-shadow: var(--clean-shadow) !important;
}

.command-copy {
  min-height: 300px !important;
  padding: 26px !important;
  color: #ffffff !important;
  background:
    radial-gradient(circle at 84% 0%, rgba(56, 189, 248, .26), transparent 32%),
    linear-gradient(135deg, #101828, #123b76 62%, #0f766e) !important;
}

.command-copy h2 {
  max-width: 760px !important;
  font-size: clamp(38px, 4vw, 56px) !important;
  line-height: .98 !important;
}

.command-copy .subtle {
  max-width: 820px !important;
  color: rgba(255,255,255,.82) !important;
  font-size: 15px !important;
}

.ops-strip,
.workflow-showcase,
.command-actions {
  gap: 8px !important;
}

.ops-strip span,
.workflow-showcase span {
  border-radius: 999px !important;
  background: rgba(255,255,255,.14) !important;
}

.agent-command-card {
  min-height: 300px !important;
  padding: 20px !important;
}

.agent-squad {
  gap: 8px !important;
}

.agent-squad article {
  min-height: 54px !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
  background: #f8fafc !important;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 12px !important;
  margin: 0 0 14px !important;
}

.stat-card {
  min-height: 96px !important;
  padding: 16px !important;
}

.stat-card strong {
  margin-top: 10px !important;
  font-size: clamp(28px, 3vw, 42px) !important;
}

.route-gateway-panel {
  margin-top: 0 !important;
  padding: 18px !important;
}

.route-gateway-head {
  margin-bottom: 12px !important;
}

.route-gateway-head h2,
.outcome-live-head h2,
.submission-readiness-head h2,
.material-preparation-head h2,
.evidence-compliance-head h2 {
  font-size: clamp(24px, 2vw, 32px) !important;
}

.route-gateway-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

.route-entry-card {
  min-height: 112px !important;
  padding: 16px !important;
  border-radius: 18px !important;
  background: #f9fafb !important;
}

.route-entry-card strong {
  font-size: 16px !important;
}

.dashboard-overview,
.dashboard-grid,
.outcome-live-grid,
.submission-readiness-grid,
.material-preparation-grid,
.evidence-compliance-grid {
  gap: 12px !important;
}

.outcome-live-card,
.submission-readiness-card,
.material-preparation-card,
.evidence-compliance-grid article {
  min-height: 0 !important;
  border-radius: 18px !important;
  background: #f9fafb !important;
}

.assistant-fab {
  color: #fff !important;
  font-weight: 900 !important;
}

@media (max-width: 1380px) {
  .command-deck { grid-template-columns: 1fr !important; }
  .agent-command-card { min-height: 0 !important; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

@media (max-width: 860px) {
  .workspace { padding: 10px !important; }
  .workspace-topbar { position: relative !important; top: 0 !important; grid-template-columns: 1fr !important; }
  .command-copy { min-height: 0 !important; padding: 20px !important; }
  .command-copy h2 { font-size: clamp(31px, 10vw, 44px) !important; }
  .route-gateway-grid,
  .stat-grid { grid-template-columns: 1fr !important; }
  .route-entry-card { min-height: 0 !important; }
}

/* Production dashboard order pass 20260706 fluid40 */
#appView[data-current-route="dashboard"] #view-dashboard {
  display: grid !important;
  gap: 14px !important;
}

#appView[data-current-route="dashboard"] #view-dashboard .dashboard-overview,
#appView[data-current-route="dashboard"] #view-dashboard .dashboard-grid,
#appView[data-current-route="dashboard"] #view-dashboard .orchestration-card,
#appView[data-current-route="dashboard"] #view-dashboard > .panel-card {
  display: none !important;
}

#appView[data-current-route="dashboard"] .workspace {
  max-width: 1440px !important;
  width: 100% !important;
  margin: 0 auto !important;
}

#appView[data-current-route="dashboard"] .command-deck,
#appView[data-current-route="dashboard"] .stat-grid,
#appView[data-current-route="dashboard"] .route-gateway-panel {
  width: 100% !important;
}

#appView[data-current-route="dashboard"] .command-deck {
  grid-template-columns: minmax(0, 1.22fr) minmax(320px, .78fr) !important;
  align-items: stretch !important;
}

#appView[data-current-route="dashboard"] .command-copy,
#appView[data-current-route="dashboard"] .agent-command-card {
  min-height: 280px !important;
}

#appView[data-current-route="dashboard"] .agent-command-card .card-head {
  margin-bottom: 12px !important;
}

#appView[data-current-route="dashboard"] .agent-squad {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

#appView[data-current-route="dashboard"] .agent-squad article {
  display: grid !important;
  grid-template-columns: 42px minmax(0, .55fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  align-items: center !important;
}

#appView[data-current-route="dashboard"] .agent-squad article small {
  margin: 0 !important;
  text-align: right !important;
}

#appView[data-current-route="dashboard"] .stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

#appView[data-current-route="dashboard"] .route-gateway-panel {
  padding: 16px !important;
}

#appView[data-current-route="dashboard"] .route-gateway-head {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
}

#appView[data-current-route="dashboard"] .route-gateway-head p:not(.eyebrow) {
  max-width: 62ch !important;
}

#appView[data-current-route="dashboard"] .route-gateway-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}

#appView[data-current-route="dashboard"] .route-entry-card {
  min-height: 126px !important;
  align-content: start !important;
}

#appView[data-current-route="dashboard"] .route-entry-card small {
  display: -webkit-box !important;
  overflow: hidden !important;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 1480px) {
  #appView[data-current-route="dashboard"] .route-gateway-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1180px) {
  #appView[data-current-route="dashboard"] .command-deck {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 860px) {
  #appView[data-current-route="dashboard"] .route-gateway-head,
  #appView[data-current-route="dashboard"] .route-gateway-grid,
  #appView[data-current-route="dashboard"] .stat-grid {
    grid-template-columns: 1fr !important;
  }

  #appView[data-current-route="dashboard"] .agent-squad article {
    grid-template-columns: 36px minmax(0, 1fr) !important;
  }

  #appView[data-current-route="dashboard"] .agent-squad article small {
    grid-column: 2;
    text-align: left !important;
  }
}

/* Project brand mark 20260706 fluid41 */
.brand-mark-img,
.brand-logo-img {
  display: block !important;
  object-fit: contain !important;
  background: transparent !important;
  color: transparent !important;
  box-shadow: none !important;
}

.brand-mark-img {
  width: 72px !important;
  height: 72px !important;
  margin-bottom: 32px !important;
  border-radius: 22px !important;
  filter: drop-shadow(0 18px 32px rgba(21, 94, 239, .28));
}

.brand-logo-img {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  border-radius: 12px !important;
}
