:root {
  --bg: #f8fafc;
  --bg-soft: #f1f5f9;
  --panel: #ffffff;
  --panel-subtle: #f8fafc;
  --ink: #111827;
  --muted: #64748b;
  --accent: #4f46e5;
  --accent-2: #0f766e;
  --danger: #dc2626;
  --line: #e5e7eb;
  --line-strong: #cbd5e1;
  --shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

body:has(.pm-workspace-shell) .shell {
  max-width: 1680px;
  margin-top: 14px;
}

.pm-workspace-shell {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  min-width: 0;
}

.pm-sidebar {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
  display: grid;
  gap: 12px;
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 12px;
  position: sticky;
  top: 76px;
}

.pm-sidebar-brand {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.pm-sidebar-brand > span {
  align-items: center;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  color: #4338ca;
  display: inline-flex;
  flex: 0 0 34px;
  font-weight: 900;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.pm-sidebar-brand strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-sidebar-nav {
  align-items: stretch;
  display: grid;
  gap: 2px;
  justify-content: stretch;
}

.pm-sidebar-nav a,
.pm-sidebar-section a {
  align-items: center;
  border-radius: 6px;
  color: #334155;
  display: flex;
  font-weight: 680;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  text-decoration: none;
}

.pm-sidebar-nav a:hover,
.pm-sidebar-nav a.active,
.pm-sidebar-section a:hover,
.pm-sidebar-section a.active {
  background: #eef8ff;
  color: var(--accent);
  transform: none;
}

.pm-sidebar-nav a span {
  display: none;
}

.pm-sidebar-section {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding-top: 12px;
}

.pm-sidebar-section h2 {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.pm-sidebar-list {
  display: grid;
  gap: 5px;
}

.pm-sidebar-list a {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  display: grid;
}

.pm-sidebar-list span {
  color: var(--muted);
  font-size: 0.8rem;
}

.pm-filter-chip {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 740;
  padding: 6px 9px;
}

.pm-filter-chip.active {
  background: #eef8ff;
  border-color: var(--accent);
  color: var(--accent);
}

.pm-filter-chip span {
  color: inherit;
  font-size: 0.76rem;
  margin-left: auto;
}

.pm-workspace-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.pm-utility-bar {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  padding: 10px;
  position: sticky;
  top: 66px;
  z-index: 6;
}

.pm-search-form {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(180px, 1fr) auto;
  min-width: 0;
}

.pm-search-form input[type="search"] {
  min-height: 42px;
}

.pm-create-menu {
  position: relative;
}

.pm-create-menu summary {
  background: var(--accent);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 800;
  list-style: none;
  min-height: 42px;
  padding: 10px 14px;
}

.pm-create-menu summary::-webkit-details-marker {
  display: none;
}

.pm-create-menu[open] form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: 340px;
  padding: 14px;
  position: absolute;
  right: 0;
  top: 50px;
  z-index: 8;
}

.pm-workspace-header {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 180px);
  padding: 16px;
}

.pm-workspace-header h1 {
  font-size: 1.45rem;
  line-height: 1.08;
  margin: 0 0 8px;
}

.pm-workspace-header p:not(.eyebrow) {
  color: var(--muted);
  margin: 0;
  max-width: 820px;
}

.pm-header-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pm-header-meta span {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475569;
  font-size: 0.8rem;
  font-weight: 720;
  padding: 5px 8px;
}

.pm-summary-drawer {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-top: 10px;
  padding: 8px 10px;
}

.pm-summary-drawer summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 760;
}

.pm-summary-drawer p {
  margin-top: 8px !important;
}

.pm-compact-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pm-view-tabs {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-start;
  overflow-x: auto;
  padding: 8px;
}

.pm-view-tabs a {
  border: 1px solid transparent;
  border-radius: 8px;
  color: #28516f;
  flex: 0 0 auto;
  font-weight: 820;
  padding: 8px 10px;
  text-decoration: none;
}

.pm-view-tabs a:hover,
.pm-view-tabs a.active {
  background: #eef8ff;
  border-color: var(--line);
  color: var(--accent);
  transform: none;
}

.pm-search-state {
  color: var(--muted);
  margin: 0;
}

.pm-view-frame {
  min-width: 0;
}

.pm-view-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  padding: 18px;
}

.pm-home-columns,
.pm-reports-columns,
.pm-work-items-layout {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pm-home-columns .pm-panel,
.pm-reports-columns .pm-panel,
.pm-work-items-layout .pm-panel,
.pm-work-items-layout .pm-detail-drawer {
  box-shadow: none;
  margin-bottom: 0;
}

.pm-grid-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pm-grid-toolbar span {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 780;
  padding: 7px 10px;
}

.pm-dense-grid table {
  min-width: 1180px;
}

.pm-dense-grid th,
.pm-dense-grid td {
  font-size: 0.84rem;
  line-height: 1.35;
  padding: 8px 10px;
}

.pm-dense-grid td:first-child {
  min-width: 260px;
}

.pm-dense-grid td strong,
.pm-dense-grid td span {
  display: block;
}

.pm-grid-row.pm-grid-task td:first-child {
  padding-left: 24px;
}

.pm-grid-row.pm-grid-subtask td:first-child {
  padding-left: 42px;
}

.pm-status-badge {
  background: #ecfdf5;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 820;
  padding: 4px 8px;
  width: fit-content;
}

.pm-grid-create-row td {
  background: #f8fbff;
  color: var(--accent);
  font-weight: 820;
}

.pm-work-item {
  color: inherit;
  text-decoration: none;
}

.pm-issue-head {
  align-items: center;
}

.pm-issue-summary {
  align-items: end;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  justify-items: end;
  min-width: 118px;
  padding: 10px 12px;
}

.pm-issue-summary strong {
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
}

.pm-issue-summary span {
  color: var(--muted);
  font-size: 0.78rem;
}

.pm-issue-toolbar {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
}

.pm-issue-chip-row,
.pm-issue-sort {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.pm-issue-chip,
.pm-issue-sort a {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #28516f;
  font-size: 0.82rem;
  font-weight: 820;
  padding: 7px 10px;
  text-decoration: none;
}

.pm-issue-chip span {
  color: var(--muted);
  margin-left: 4px;
}

.pm-issue-chip.active,
.pm-issue-sort a.active {
  background: #e0f2fe;
  border-color: #7dd3fc;
  color: #075985;
}

.pm-issue-sort > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.pm-issue-layout {
  align-items: start;
  grid-template-columns: minmax(0, 1.45fr) minmax(340px, 0.75fr);
}

.pm-issue-list-panel {
  min-width: 0;
}

.pm-issue-list-head,
.pm-issue-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 72px minmax(230px, 1.5fr) minmax(100px, 0.7fr) minmax(90px, 0.55fr) minmax(110px, 0.7fr) minmax(92px, 0.55fr) minmax(92px, 0.55fr);
}

.pm-issue-list-head {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 840;
  padding: 0 10px 4px;
  text-transform: uppercase;
}

.pm-issue-row {
  align-items: center;
  background: #ffffff;
  min-height: 64px;
  padding: 10px;
}

.pm-issue-row:hover {
  border-color: #93c5fd;
  transform: none;
}

.pm-issue-row.is-blocked {
  border-color: #fecaca;
}

.pm-issue-key {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  color: #3730a3;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  justify-content: center;
  padding: 5px 7px;
  width: fit-content;
}

.pm-issue-summary-cell {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.pm-issue-summary-cell strong,
.pm-issue-summary-cell small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-issue-summary-cell small {
  color: var(--muted);
}

.pm-priority-badge {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #334155;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 820;
  padding: 4px 8px;
  width: fit-content;
}

.pm-priority-badge.priority-high,
.pm-priority-badge.priority-critical,
.pm-priority-badge.priority-p0,
.pm-priority-badge.priority-p1 {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}

.pm-priority-badge.priority-medium,
.pm-priority-badge.priority-p2 {
  background: #fefce8;
  border-color: #fde68a;
  color: #854d0e;
}

.pm-issue-empty {
  background: #f8fbff;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 18px;
}

.pm-issue-detail {
  position: sticky;
  top: 128px;
}

.pm-issue-detail .pm-detail-grid {
  grid-template-columns: 1fr;
}

.pm-issue-detail-title {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.pm-issue-title-input {
  min-width: 0;
  width: 100%;
}

.pm-selected-work-form,
.pm-selected-work-form label {
  display: grid;
  gap: 6px;
}

.pm-selected-work-form {
  gap: 12px;
  margin-top: 12px;
}

.pm-selected-work-form label {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.pm-selected-work-form input,
.pm-selected-work-form select,
.pm-selected-work-form textarea {
  color: var(--ink);
  font: inherit;
}

.pm-selected-work-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pm-selected-work-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.pm-selected-work-actions .pm-checkbox-label {
  align-items: center;
  display: flex;
}

.pm-field-label {
  align-items: baseline;
  display: flex;
  gap: 6px;
}

.pm-field-label small {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 650;
  text-transform: none;
}

@media (max-width: 720px) {
  .pm-selected-work-fields {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .pm-workspace-shell,
  .pm-workspace-header,
  .pm-home-columns,
  .pm-reports-columns,
  .pm-work-items-layout {
    grid-template-columns: 1fr;
  }

  .pm-issue-toolbar,
  .pm-issue-layout {
    grid-template-columns: 1fr;
  }

  .pm-issue-detail {
    position: static;
  }

  .pm-sidebar,
  .pm-utility-bar {
    position: static;
  }

  .pm-sidebar {
    max-height: none;
  }

  .pm-compact-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .pm-workspace-shell {
    gap: 12px;
  }

  .pm-sidebar {
    padding: 12px;
  }

  .pm-sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pm-utility-bar,
  .pm-search-form,
  .pm-compact-metrics {
    grid-template-columns: 1fr;
  }

  .pm-create-menu[open] form {
    min-width: 0;
    position: static;
    width: 100%;
  }

  .pm-issue-list-head {
    display: none;
  }

  .pm-issue-row {
    align-items: start;
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .pm-issue-row > span:nth-child(n + 3) {
    grid-column: 2;
  }

  .pm-issue-summary-cell strong,
  .pm-issue-summary-cell small {
    white-space: normal;
  }

  .pm-view-panel,
  .pm-workspace-header {
    padding: 14px;
  }

  .pm-workspace-header h1 {
    font-size: 1.55rem;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #eaf7ff 0, var(--bg) 280px),
    var(--bg);
  font-size: 15px;
  line-height: 1.55;
}

.topbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  padding: 12px 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10;
}

.brand {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 34px;
  width: 34px;
}

.profile-switcher {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex: 0 1 360px;
  gap: 8px;
  min-width: 260px;
  padding: 6px;
}

.active-profile-context {
  align-items: center;
  display: grid;
  flex: 0 1 520px;
  gap: 6px 10px;
  grid-template-columns: minmax(260px, 1fr) auto;
  min-width: 0;
}

.profile-switcher label {
  color: #28516f;
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-weight: 850;
  padding-left: 4px;
}

.profile-switcher select {
  background: #ffffff;
  font-size: 0.86rem;
  height: 36px;
  min-width: 0;
  padding: 6px 8px;
}

.profile-switcher button {
  flex: 0 0 auto;
  font-size: 0.78rem;
  height: 36px;
  min-width: 54px;
  padding: 6px 10px;
}

.active-profile-summary {
  border-left: 3px solid var(--accent-2);
  display: grid;
  gap: 1px;
  min-width: 150px;
  padding-left: 10px;
}

.active-profile-summary span {
  color: #28516f;
  font-size: 0.68rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.active-profile-summary strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.15;
}

.active-profile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  grid-column: 1 / -1;
}

.active-profile-links a {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #28516f;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1;
  padding: 6px 9px;
  text-decoration: none;
}

.active-profile-links a:hover {
  background: #e0f2fe;
  border-color: var(--line-strong);
  color: var(--accent);
}

nav {
  align-items: center;
  display: flex;
  flex: 1 1 520px;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

nav a {
  border-radius: 999px;
  color: #28516f;
  font-weight: 650;
  padding: 8px 12px;
  text-decoration: none;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

nav a:hover {
  background: #e0f2fe;
  color: var(--accent);
  transform: translateY(-1px);
}

.shell {
  max-width: 1180px;
  margin: 28px auto;
  padding: 0 18px 42px;
}

.grid.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.card h1,
.card h2 {
  letter-spacing: 0;
  line-height: 1.15;
  margin: 0 0 10px;
}

.card p {
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--panel-subtle);
  color: #28516f;
  font-size: 0.82rem;
  font-weight: 750;
}

tbody tr:hover {
  background: #f2f9ff;
}

button,
.btn-link,
.button-link {
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

button:hover,
.btn-link:hover,
.button-link:hover {
  background: #0369a1;
  box-shadow: 0 10px 24px rgba(2, 132, 199, 0.18);
  transform: translateY(-1px);
}

button.danger {
  background: var(--danger);
}

button.secondary {
  background: #e0f2fe;
  color: #0369a1;
}

button.secondary:hover {
  background: #bae6fd;
}

.icon-button {
  align-items: center;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  padding: 0;
  width: 34px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  background: #ffffff;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.22);
  outline: 0;
}

.row.space {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.inline-form {
  display: inline;
}

.mono {
  font-family: "IBM Plex Mono", "JetBrains Mono", monospace;
}

.muted {
  color: var(--muted);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trace-feed {
  max-height: 380px;
  overflow-y: auto;
  display: grid;
  gap: 10px;
}

.trace-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel-subtle);
}

.trace-item pre {
  white-space: pre-wrap;
  margin: 8px 0 0;
  background: #eaf7ff;
  padding: 8px;
  border-radius: 8px;
}

a {
  color: var(--accent);
}

.pill {
  background: #e0f2fe;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: #0369a1;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1;
  padding: 6px 9px;
}

.btn-link.secondary,
.button-link.secondary {
  background: #e0f2fe;
  color: #0369a1;
}

.btn-link.secondary:hover,
.button-link.secondary:hover {
  background: #bae6fd;
}

.sigma-hero {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(255, 255, 255, 0.84)),
    #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 22px;
}

.sigma-hero h1 {
  font-size: clamp(2rem, 6vw, 4.1rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0 0 8px;
}

.sigma-hero p {
  color: var(--muted);
  margin: 0;
  max-width: 690px;
}

.sigma-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
}

.sigma-form {
  display: grid;
  gap: 10px;
}

.sigma-form h2,
.sigma-sidebar h2,
.sigma-output h2 {
  margin-top: 0;
}

.sigma-form label {
  color: #28516f;
  font-size: 0.82rem;
  font-weight: 750;
}

.sigma-sidebar {
  align-self: start;
}

.sigma-project-list {
  display: grid;
  gap: 8px;
}

.sigma-project-link {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 3px;
  padding: 11px;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.sigma-project-link:hover,
.sigma-project-link.active {
  background: #f2f9ff;
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.sigma-project-link span {
  color: var(--muted);
  font-size: 0.83rem;
}

.sigma-output {
  margin-top: 16px;
}

.sigma-output-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.sigma-output-head p {
  color: var(--muted);
}

.sigma-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sigma-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0 16px;
}

.sigma-metrics div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 14px;
}

.sigma-metrics span {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sigma-metrics small {
  color: var(--muted);
  font-weight: 700;
}

.module-frame-page {
  display: grid;
  gap: 12px;
  min-height: calc(100vh - 104px);
}

.module-frame-bar {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.module-frame-bar h1 {
  font-size: 1.65rem;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0;
}

.module-frame {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: calc(100vh - 184px);
  width: 100%;
}

.code-preview {
  background: #0f172a;
  border-radius: 8px;
  color: #e0f2fe;
  max-height: 520px;
  overflow: auto;
  padding: 14px;
  white-space: pre;
}

body:has(.argus-shell) {
  overflow: hidden;
}

body:has(.argus-shell) .shell {
  margin: 0;
  max-width: none;
  padding: 0;
}

.argus-shell {
  --argus-left-width: 260px;
  --argus-right-width: 340px;
  display: grid;
  grid-template-columns: var(--argus-left-width) minmax(0, 1fr) var(--argus-right-width);
  grid-template-rows: minmax(0, 1fr);
  height: calc(100vh - 60px);
  min-height: 680px;
  position: relative;
}

.argus-shell.argus-panel-mode-compact {
  --argus-left-width: 76px;
  --argus-right-width: 300px;
}

.argus-left,
.argus-right {
  background: rgba(255, 255, 255, 0.9);
  border-color: var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow-y: auto;
}

.argus-left {
  border-right: 1px solid var(--line);
  padding: 18px;
}

.argus-shell.argus-panel-mode-compact .argus-left {
  padding: 12px 10px;
}

.argus-right {
  border-left: 1px solid var(--line);
  padding: 18px;
  scrollbar-gutter: stable;
}

.argus-right > * {
  flex: 0 0 auto;
}

.argus-shell.argus-panel-mode-compact .argus-right {
  padding: 14px;
}

.argus-resize-handle {
  bottom: 0;
  cursor: col-resize;
  position: absolute;
  top: 0;
  width: 14px;
  z-index: 8;
}

.argus-resize-handle-left {
  left: var(--argus-left-width);
  transform: translateX(-50%);
}

.argus-resize-handle-right {
  right: var(--argus-right-width);
  transform: translateX(50%);
}

.argus-resize-handle::before {
  background: #7cbde6;
  border-radius: 999px;
  content: "";
  height: 54px;
  left: 50%;
  opacity: 0;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.16s ease, width 0.16s ease;
  width: 3px;
}

.argus-resize-handle:hover,
.argus-resize-handle:focus-visible,
.argus-shell.argus-resizing .argus-resize-handle {
  background: rgba(2, 132, 199, 0.08);
  outline: 0;
}

.argus-resize-handle:hover::before,
.argus-resize-handle:focus-visible::before,
.argus-shell.argus-resizing .argus-resize-handle::before {
  opacity: 1;
  width: 4px;
}

.argus-shell.argus-resizing,
.argus-shell.argus-resizing * {
  cursor: col-resize;
  user-select: none;
}

.argus-panel-head h1,
.argus-inspector-head h2 {
  line-height: 1;
  margin: 0 0 16px;
}

.argus-panel-head h1 {
  font-size: 2.2rem;
}

.argus-shell.argus-panel-mode-compact .argus-panel-head h1 {
  font-size: 1rem;
  margin-bottom: 12px;
  text-align: center;
}

.argus-shell.argus-panel-mode-compact .argus-panel-head .eyebrow,
.argus-shell.argus-panel-mode-compact .argus-search,
.argus-shell.argus-panel-mode-compact .argus-quick-starts,
.argus-shell.argus-panel-mode-compact .argus-left > .argus-section-label,
.argus-shell.argus-panel-mode-compact .argus-toolbox,
.argus-shell.argus-panel-mode-compact .argus-actions,
.argus-shell.argus-panel-mode-compact .argus-hygiene-card {
  display: none;
}

.argus-inspector-head {
  margin-bottom: 8px;
}

.argus-selection-context {
  background: #eef7ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  color: #164e63;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
  margin-top: 6px;
  padding: 9px 10px;
}

.argus-process-focus-select {
  margin-top: 6px;
  min-height: 42px;
  width: 100%;
}

.argus-work-parent-field {
  display: grid;
  gap: 6px;
}

.argus-work-parent-field[hidden] {
  display: none;
}

.argus-work-parent-field small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.argus-search {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.argus-section-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0;
  margin: 2px 0 8px;
  text-transform: uppercase;
}

.argus-quick-starts {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 16px;
}

.argus-quick-starts .argus-section-label {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.argus-quick-starts button {
  background: #e0f2fe;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font-size: 0.78rem;
  padding: 9px 8px;
  text-align: left;
}

.argus-quick-starts button:hover {
  background: #bae6fd;
  box-shadow: none;
  color: #075985;
  transform: none;
}

.argus-quick-starts[hidden],
.argus-quick-starts button[hidden],
.argus-toolbox button[hidden] {
  display: none;
}

.argus-toolbox {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.argus-toolbox button {
  background: #f8fbff;
  border: 1px solid var(--line);
  color: #28516f;
  font-size: 0.82rem;
  padding: 9px 8px;
  text-align: left;
}

.argus-toolbox button:hover {
  background: #e0f2fe;
  border-color: var(--line-strong);
  color: var(--accent);
}

.argus-toolbox-process-categories button {
  font-weight: 850;
}

.argus-toolbox-process-tool {
  border-left: 3px solid var(--process-tool-border, var(--line-strong));
}

.argus-toolbox-process-tool-bau {
  --process-tool-bg: #f8fafc;
  --process-tool-border: #cbd5e1;
  --process-tool-fg: #334155;
}

.argus-toolbox-process-tool-project {
  --process-tool-bg: #eef2ff;
  --process-tool-border: #c4b5fd;
  --process-tool-fg: #3730a3;
}

.argus-toolbox-process-tool-task {
  --process-tool-bg: #fffbeb;
  --process-tool-border: #fcd34d;
  --process-tool-fg: #92400e;
}

.argus-toolbox-process-tool-report {
  --process-tool-bg: #ecfdf5;
  --process-tool-border: #99f6e4;
  --process-tool-fg: #0f766e;
}

.argus-toolbox-process-tool-automation {
  --process-tool-bg: #ecfeff;
  --process-tool-border: #67e8f9;
  --process-tool-fg: #155e75;
}

.argus-toolbox-process-categories .argus-toolbox-process-tool {
  background: var(--process-tool-bg);
  border-color: var(--process-tool-border);
  color: var(--process-tool-fg);
}

.argus-toolbox-process-categories .argus-toolbox-process-tool:hover {
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
  transform: none;
}

.argus-actions {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.argus-hygiene-card {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  padding: 14px;
}

.argus-hygiene-card[hidden] {
  display: none;
}

.argus-hygiene-card[data-hygiene-status="clean"] {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.28);
}

.argus-hygiene-card[data-hygiene-status="needs_review"],
.argus-hygiene-card[data-hygiene-status="error"] {
  background: #fff7ed;
  border-color: rgba(249, 115, 22, 0.28);
}

.argus-hygiene-head {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.argus-hygiene-head .argus-section-label {
  margin: 0 0 4px;
}

.argus-hygiene-head strong {
  color: var(--ink);
  display: block;
  font-size: 0.95rem;
}

.argus-hygiene-head button {
  padding: 7px 10px;
  white-space: nowrap;
}

.argus-hygiene-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.argus-hygiene-actions button.active {
  background: #f97316;
  border-color: #f97316;
  box-shadow: none;
  color: #ffffff;
}

.argus-actions button.active {
  background: #f59e0b;
  border-color: #f59e0b;
  color: #ffffff;
}

.argus-hygiene-metrics {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.argus-hygiene-metrics span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 8px;
}

.argus-hygiene-metrics strong,
.argus-hygiene-metrics small {
  display: block;
}

.argus-hygiene-metrics strong {
  color: var(--ink);
  font-size: 1rem;
}

.argus-hygiene-metrics small,
.argus-hygiene-findings {
  color: var(--muted);
  font-size: 0.72rem;
}

.argus-hygiene-findings ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
}

.argus-hygiene-findings li {
  align-items: center;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.argus-hygiene-findings button {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.2);
  border-radius: 999px;
  color: #0369a1;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 850;
  padding: 3px 7px;
}

.argus-hygiene-findings button:hover {
  background: rgba(2, 132, 199, 0.15);
}

.argus-hygiene-recommendation {
  background: rgba(15, 23, 42, 0.04);
  border: 1px dashed rgba(100, 116, 139, 0.36);
  border-radius: 12px;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.35;
  padding: 8px;
}

.argus-hygiene-recommendation[hidden] {
  display: none;
}

.argus-actions button[hidden] {
  display: none;
}

.argus-mini-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
}

.argus-mini-stats div {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  padding: 10px;
}

.argus-mini-stats span {
  font-size: 1.3rem;
  font-weight: 800;
}

.argus-mini-stats small {
  color: var(--muted);
  font-weight: 700;
}

.argus-shell.argus-panel-mode-compact .argus-mini-stats {
  gap: 6px;
  grid-template-columns: 1fr;
}

.argus-shell.argus-panel-mode-compact .argus-mini-stats div {
  padding: 7px 4px;
  text-align: center;
}

.argus-shell.argus-panel-mode-compact .argus-mini-stats span {
  font-size: 1rem;
}

.argus-shell.argus-panel-mode-compact .argus-mini-stats small {
  display: none;
}

.argus-main {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
  min-width: 0;
}

.argus-toolbar {
  align-items: start;
  background: rgba(248, 251, 255, 0.92);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(180px, max-content) minmax(320px, 1fr) auto;
  padding: 12px 16px;
}

.argus-toolbar span {
  color: var(--muted);
  margin-left: 10px;
}

.argus-toolbar span.argus-mode-action {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  color: #92400e;
  display: inline-block;
  font-weight: 800;
  margin-top: 4px;
  padding: 3px 9px;
}

.argus-toolbar-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.argus-canvas-controls {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  min-width: 0;
  padding-bottom: 2px;
  position: relative;
  z-index: 1;
}

.argus-view-modes,
.argus-line-style,
.argus-panel-mode,
.argus-org-layout {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  min-width: 0;
}

.argus-line-style,
.argus-panel-mode,
.argus-org-layout {
  border-left: 1px solid var(--line);
  padding-left: 8px;
}

.argus-org-layout[hidden] {
  display: none;
}

.argus-handoff-strip {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 7px;
}

.argus-handoff-strip[hidden] {
  display: none;
}

.argus-handoff-strip-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  margin-left: 0;
  text-transform: uppercase;
}

.argus-handoff-item {
  align-items: center;
  display: inline-flex;
  gap: 5px;
  margin-left: 0;
  min-width: 0;
}

.argus-handoff-strip button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  color: #28516f;
  display: inline-flex;
  gap: 8px;
  min-height: 42px;
  padding: 6px 9px;
  text-align: left;
}

.argus-handoff-strip button:hover,
.argus-handoff-strip button.active {
  background: #eef8f4;
  border-color: #0f766e;
  box-shadow: none;
  color: #0f766e;
  transform: none;
}

.argus-handoff-strip button.argus-handoff-has-todos {
  border-color: #fb923c;
  box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.18);
}

.argus-handoff-strip button.argus-handoff-has-todos:hover,
.argus-handoff-strip button.argus-handoff-has-todos.active {
  background: #fff7ed;
  border-color: #f97316;
  color: #c2410c;
}

.argus-handoff-copy {
  display: grid;
  gap: 2px;
  margin-left: 0;
  min-width: 0;
}

.argus-handoff-strip strong {
  font-size: 0.74rem;
  line-height: 1;
}

.argus-handoff-strip small {
  color: #64748b;
  display: block;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-handoff-strip .argus-handoff-todos {
  color: #c2410c;
  max-width: none;
}

.argus-handoff-count {
  background: #e2e8f0;
  border-radius: 999px;
  color: #334155;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  margin-left: 0;
  min-width: 18px;
  padding: 4px 6px;
  text-align: center;
}

.argus-handoff-strip button.active .argus-handoff-count,
.argus-handoff-strip button:hover .argus-handoff-count {
  background: #ccfbf1;
  color: #0f766e;
}

.argus-handoff-open {
  align-items: center;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 8px;
  color: #3730a3;
  display: grid;
  font-size: 0.68rem;
  font-weight: 900;
  gap: 2px;
  min-height: 42px;
  max-width: 98px;
  overflow: hidden;
  padding: 6px 9px;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-handoff-open span,
.argus-handoff-open small {
  display: block;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-handoff-open span {
  color: inherit;
  margin-left: 0;
}

.argus-handoff-open small {
  color: #4f46e5;
  max-width: 76px;
}

.argus-handoff-open:hover {
  background: #e0e7ff;
  color: #312e81;
}

.argus-action-queue {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  flex: 1 0 100%;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 7px;
}

.argus-action-queue[hidden] {
  display: none;
}

.argus-action-queue-label {
  color: #b45309;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.argus-action-queue-label strong {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #c2410c;
  display: inline-flex;
  line-height: 1;
  margin-left: 4px;
  padding: 3px 6px;
}

.argus-action-queue-summary {
  color: #64748b;
  font-size: 0.67rem;
  font-weight: 800;
  margin-right: 2px;
}

.argus-action-queue-item {
  align-items: start;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 9px;
  color: #9a3412;
  display: grid;
  gap: 2px;
  max-width: 190px;
  padding: 6px 9px;
  position: relative;
  text-align: left;
}

.argus-action-queue-rank {
  background: #fed7aa;
  border-radius: 999px;
  color: #9a3412;
  font-size: 0.56rem;
  font-weight: 950;
  line-height: 1;
  padding: 3px 5px;
  position: absolute;
  right: 5px;
  top: 5px;
}

.argus-action-queue-item strong,
.argus-action-queue-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-action-queue-item strong {
  font-size: 0.72rem;
}

.argus-action-queue-item small {
  color: #c2410c;
  font-size: 0.62rem;
  font-weight: 850;
}

.argus-action-queue-item.active {
  background: #ffedd5;
  border-color: #f97316;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.18);
}

.argus-action-queue-gap {
  background: #fffbeb;
  border-color: #fde68a;
}

.argus-action-queue-more {
  background: #f8fafc;
  border: 1px dashed #f59e0b;
  border-radius: 999px;
  color: #92400e;
  cursor: pointer;
  font-size: 0.68rem;
  font-weight: 900;
  padding: 6px 9px;
}

.argus-action-queue-more:hover {
  background: #fff7ed;
  border-style: solid;
}

.argus-view-modes button,
.argus-line-style button,
.argus-panel-mode button,
.argus-org-layout button {
  background: #ffffff;
  border: 1px solid var(--line);
  color: #28516f;
  flex: 0 0 auto;
  font-size: 0.76rem;
  height: 32px;
  padding: 0 10px;
}

.argus-view-modes button.active,
.argus-view-modes button:hover,
.argus-line-style button.active,
.argus-line-style button:hover,
.argus-panel-mode button.active,
.argus-panel-mode button:hover,
.argus-org-layout button.active,
.argus-org-layout button:hover {
  background: #0284c7;
  border-color: #0284c7;
  box-shadow: none;
  color: #ffffff;
  transform: none;
}

.argus-fit-button {
  height: 34px;
  padding: 0 12px;
}

.argus-reset-focus {
  height: 34px;
  padding: 0 12px;
}

.argus-reset-focus[hidden] {
  display: none;
}

.argus-reset-focus:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.argus-canvas {
  background:
    linear-gradient(#d8eafa 1px, transparent 1px),
    linear-gradient(90deg, #d8eafa 1px, transparent 1px),
    #f7fbff;
  background-size: 28px 28px;
  cursor: grab;
  overflow: auto;
  position: relative;
}

.argus-canvas.panning {
  cursor: grabbing;
}

.argus-plane {
  height: 1600px;
  position: relative;
  transform-origin: 0 0;
  width: 3600px;
}

.argus-edges,
.argus-node-layer {
  inset: 0;
  position: absolute;
}

.argus-edges {
  height: 1600px;
  pointer-events: none;
  width: 3600px;
}

.argus-node-layer {
  pointer-events: none;
}

.argus-edge-path {
  fill: none;
  stroke: #7cbde6;
  stroke-linecap: round;
  stroke-width: 2.5;
}

.argus-edge-path.related {
  stroke: #38bdf8;
  stroke-width: 3;
}

.argus-edge-path.muted,
.argus-edge-label.muted,
.argus-edge-badge.muted {
  display: none;
}

.argus-edge-path.selected {
  stroke: #0284c7;
  stroke-width: 4;
}

.argus-edge-handoff-todo {
  stroke: #f97316;
  stroke-dasharray: 8 5;
  stroke-width: 3.5;
}

.argus-edge-handoff-todo.related,
.argus-edge-handoff-todo.selected {
  stroke: #ea580c;
  stroke-width: 4.5;
}

.argus-edge-straight {
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.argus-edge-org-chart {
  stroke: #67b7e8;
  stroke-width: 3;
}

.argus-edge-focus-branch {
  stroke: #1d4ed8;
  stroke-width: 3.5;
}

.argus-edge-focus-owner {
  stroke: #0369a1;
  stroke-width: 3;
}

.argus-edge-focus-upstream {
  stroke: #7c3aed;
  stroke-dasharray: 7 5;
  stroke-width: 3;
}

.argus-edge-focus-downstream {
  stroke: #0f766e;
  stroke-width: 3;
}

.argus-edge-focus-handoff {
  stroke: #0284c7;
  stroke-dasharray: 12 5;
  stroke-width: 3;
}

.argus-edge-focus-support {
  stroke: #f59e0b;
  stroke-dasharray: 4 5;
  stroke-width: 3;
}

.argus-edge-focus-signal {
  stroke: #ef4444;
  stroke-dasharray: 3 6;
  stroke-width: 3;
}

.argus-edge-hit {
  cursor: pointer;
  fill: none;
  pointer-events: stroke;
  stroke: rgba(2, 132, 199, 0);
  stroke-linecap: round;
  stroke-width: 18;
}

.argus-edge-temp {
  fill: none;
  pointer-events: none;
  stroke: #14b8a6;
  stroke-dasharray: 8 8;
  stroke-linecap: round;
  stroke-width: 3;
}

#argus-arrow path {
  fill: #7cbde6;
}

.argus-edge-label {
  cursor: pointer;
  fill: #28516f;
  font-size: 12px;
  font-weight: 750;
  paint-order: stroke;
  pointer-events: auto;
  stroke: #f7fbff;
  stroke-width: 4px;
  text-anchor: middle;
}

.argus-edge-label-todo {
  fill: #c2410c;
  font-weight: 900;
  stroke-width: 5px;
}

.argus-edge-badge {
  cursor: pointer;
  fill: #475569;
  font-size: 10px;
  font-weight: 850;
  paint-order: stroke;
  pointer-events: auto;
  stroke: #f7fbff;
  stroke-width: 5px;
  text-anchor: middle;
}

.argus-edge-badge-official,
.argus-edge-badge-verified {
  fill: #047857;
}

.argus-edge-badge-review,
.argus-edge-badge-stale,
.argus-edge-badge-missing {
  fill: #b45309;
}

.argus-node {
  align-items: center;
  background: var(--node-bg, #ffffff);
  border: 1px solid var(--node-border, var(--line-strong));
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(2, 132, 199, 0.14);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  min-height: 88px;
  padding: 12px;
  position: absolute;
  text-align: left;
  width: 280px;
  pointer-events: auto;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.argus-node::before {
  background: var(--node-accent, #0284c7);
  border-radius: 8px 0 0 8px;
  content: "";
  inset: 0 auto 0 0;
  position: absolute;
  width: 7px;
}

.argus-node:active {
  cursor: grabbing;
}

.argus-node:hover,
.argus-node.selected {
  border-color: var(--node-accent, var(--accent));
  box-shadow: 0 20px 42px rgba(2, 132, 199, 0.2);
}

.argus-node:hover {
  transform: translateY(-1px);
}

.argus-node:focus-visible {
  border-color: var(--node-accent, var(--accent));
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18), 0 20px 42px rgba(2, 132, 199, 0.2);
  outline: none;
}

.argus-node.selected {
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18), 0 24px 48px rgba(2, 132, 199, 0.24);
  z-index: 24;
}

.argus-node-select-hint {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  color: #1d4ed8;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  opacity: 0;
  padding: 4px 7px;
  pointer-events: none;
  position: absolute;
  right: 8px;
  text-transform: uppercase;
  top: 7px;
  transform: translateY(-2px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.argus-node:hover .argus-node-select-hint,
.argus-node:focus-visible .argus-node-select-hint,
.argus-node.selected .argus-node-select-hint {
  opacity: 1;
  transform: none;
}

.argus-node.selected .argus-node-select-hint {
  background: var(--node-accent, #0284c7);
  border-color: var(--node-accent, #0284c7);
  color: #ffffff;
}

.argus-node-quick-actions {
  align-items: center;
  background: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  pointer-events: auto;
  position: absolute;
  z-index: 48;
}

.argus-node-quick-actions button {
  background: #ffffff;
  border: 0;
  border-radius: 6px;
  color: #0f172a;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 900;
  min-height: 26px;
  padding: 0 9px;
}

.argus-node-quick-actions button:hover,
.argus-node-quick-actions button:focus-visible {
  background: #e0f2fe;
  outline: none;
}

.argus-node.multi-selected {
  outline: 3px solid rgba(14, 165, 233, 0.26);
  outline-offset: 4px;
}

.argus-node.connecting {
  outline: 3px solid rgba(20, 184, 166, 0.28);
}

.argus-node.connect-target {
  border-style: dashed;
  box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.18), 0 18px 36px rgba(2, 132, 199, 0.1);
}

.argus-node.connect-target:hover {
  border-style: solid;
  box-shadow: 0 0 0 5px rgba(125, 211, 252, 0.24), 0 22px 46px rgba(2, 132, 199, 0.2);
}

.argus-node.linked {
  border-color: #7dd3fc;
  box-shadow: 0 18px 38px rgba(56, 189, 248, 0.18);
}

.argus-node.muted {
  display: none;
}

.argus-node-connect-handle {
  align-items: center;
  background: #ffffff;
  border: 2px solid #7dd3fc;
  border-radius: 999px;
  color: #0369a1;
  cursor: crosshair;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  opacity: 0;
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.16s ease, box-shadow 0.16s ease;
  width: 22px;
}

.argus-node:hover .argus-node-connect-handle,
.argus-node.selected .argus-node-connect-handle,
.argus-node.connecting .argus-node-connect-handle {
  opacity: 1;
}

.argus-node-connect-handle:hover {
  box-shadow: 0 0 0 5px rgba(125, 211, 252, 0.28);
}

.argus-node-branch-toggle {
  align-items: center;
  background: #ffffff;
  border: 1px solid #7dd3fc;
  border-radius: 999px;
  box-shadow: 0 8px 16px rgba(2, 132, 199, 0.14);
  color: #0369a1;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 900;
  height: 22px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 10px;
  top: 10px;
  width: 36px;
}

.argus-node-branch-toggle:hover {
  background: #e0f2fe;
  box-shadow: 0 0 0 5px rgba(125, 211, 252, 0.24);
}

.argus-node-branch-toggle strong {
  font-size: 0.82rem;
  line-height: 1;
}

.argus-node-branch-toggle small {
  color: #0c4a6e;
  font-size: 0.62rem;
  font-weight: 850;
  line-height: 1;
}

.argus-node-code {
  align-items: center;
  background: var(--node-code-bg, #e0f2fe);
  border-radius: 8px;
  color: var(--node-code-fg, #0369a1);
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 850;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.argus-node-company {
  --node-accent: #075985;
  --node-bg: #e0f2fe;
  --node-border: #38bdf8;
  --node-code-bg: #075985;
  --node-code-fg: #ffffff;
}

.argus-node-division {
  --node-accent: #7c3aed;
  --node-bg: #f5f3ff;
  --node-border: #c4b5fd;
  --node-code-bg: #ede9fe;
  --node-code-fg: #5b21b6;
}

.argus-node-department {
  --node-accent: #0284c7;
  --node-bg: #ffffff;
  --node-border: #7dd3fc;
  --node-code-bg: #e0f2fe;
  --node-code-fg: #0369a1;
}

.argus-node-branch {
  --node-accent: #0f766e;
  --node-bg: #f0fdfa;
  --node-border: #5eead4;
  --node-code-bg: #ccfbf1;
  --node-code-fg: #0f766e;
}

.argus-node-team {
  --node-accent: #2563eb;
  --node-bg: #eff6ff;
  --node-border: #93c5fd;
  --node-code-bg: #dbeafe;
  --node-code-fg: #1d4ed8;
}

.argus-node-role {
  --node-accent: #64748b;
  --node-bg: #f8fafc;
  --node-border: #cbd5e1;
  --node-code-bg: #e2e8f0;
  --node-code-fg: #334155;
}

.argus-node-company .argus-node-main strong {
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
}

.argus-node-division .argus-node-main strong {
  font-style: italic;
  font-weight: 850;
}

.argus-node-department .argus-node-main strong {
  font-weight: 900;
}

.argus-node-branch .argus-node-main strong,
.argus-node-team .argus-node-main strong {
  font-weight: 820;
}

.argus-node-role .argus-node-main strong {
  font-weight: 760;
}

.argus-node-project {
  --node-accent: #4f46e5;
  --node-bg: #f5f3ff;
  --node-border: #c4b5fd;
  --node-code-bg: #e0e7ff;
  --node-code-fg: #3730a3;
}

.argus-node-kpi {
  --node-accent: #0f766e;
  --node-bg: #f0fdfa;
  --node-border: #99f6e4;
  --node-code-bg: #ccfbf1;
  --node-code-fg: #0f766e;
}

.argus-node-document,
.argus-node-decision {
  --node-accent: #f59e0b;
  --node-bg: #fffbeb;
  --node-border: #fde68a;
  --node-code-bg: #fef3c7;
  --node-code-fg: #92400e;
}

.argus-node-focus-hub {
  border-width: 2px;
  box-shadow: 0 26px 54px rgba(2, 132, 199, 0.25);
  transform: scale(1.08);
  z-index: 3;
}

.argus-node-focus-process {
  --node-accent: #1d4ed8;
  --node-border: #93c5fd;
  --node-code-bg: #dbeafe;
  --node-code-fg: #1d4ed8;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.16);
}

.argus-node-focus-owner {
  --node-accent: #0369a1;
  --node-border: #bae6fd;
  --node-code-bg: #e0f2fe;
  --node-code-fg: #0369a1;
  border-style: dashed;
  width: 230px;
}

.argus-node-focus-dependency {
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.1);
  width: 260px;
}

.argus-node-focus-upstream {
  --node-accent: #7c3aed;
  --node-border: #c4b5fd;
  --node-code-bg: #ede9fe;
  --node-code-fg: #5b21b6;
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.12);
  width: 230px;
}

.argus-node-focus-downstream {
  --node-accent: #0f766e;
  --node-border: #5eead4;
  --node-code-bg: #ccfbf1;
  --node-code-fg: #0f766e;
  box-shadow: 0 14px 28px rgba(15, 118, 110, 0.12);
  width: 230px;
}

.argus-node-focus-handoff {
  --node-accent: #0284c7;
  border-style: dashed;
  width: 230px;
}

.argus-node-focus-support {
  --node-accent: #f59e0b;
  --node-border: #fde68a;
  box-shadow: 0 14px 28px rgba(245, 158, 11, 0.12);
  width: 230px;
}

.argus-node-focus-signal {
  --node-accent: #ef4444;
  --node-border: #fecaca;
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.12);
  width: 230px;
}

.argus-node-category-bau {
  --node-accent: #64748b;
  --node-bg: #ffffff;
  --node-border: #cbd5e1;
  --node-code-bg: #f1f5f9;
  --node-code-fg: #334155;
  --process-category-bg: #f8fafc;
  --process-category-border: #cbd5e1;
  --process-category-fg: #334155;
}

.argus-node-category-project {
  --node-accent: #4f46e5;
  --node-bg: #f5f3ff;
  --node-border: #c4b5fd;
  --node-code-bg: #e0e7ff;
  --node-code-fg: #3730a3;
  --process-category-bg: #eef2ff;
  --process-category-border: #c4b5fd;
  --process-category-fg: #3730a3;
}

.argus-node-category-task {
  --node-accent: #d97706;
  --node-bg: #fffbeb;
  --node-border: #fde68a;
  --node-code-bg: #fef3c7;
  --node-code-fg: #92400e;
  --process-category-bg: #fffbeb;
  --process-category-border: #fcd34d;
  --process-category-fg: #92400e;
}

.argus-node-category-report {
  --node-accent: #0f766e;
  --node-bg: #f0fdfa;
  --node-border: #99f6e4;
  --node-code-bg: #ccfbf1;
  --node-code-fg: #0f766e;
  --process-category-bg: #ecfdf5;
  --process-category-border: #99f6e4;
  --process-category-fg: #0f766e;
}

.argus-node-category-automation {
  --node-accent: #0891b2;
  --node-bg: #ecfeff;
  --node-border: #67e8f9;
  --node-code-bg: #cffafe;
  --node-code-fg: #155e75;
  --process-category-bg: #ecfeff;
  --process-category-border: #67e8f9;
  --process-category-fg: #155e75;
}

.argus-node-focus-org-dependency {
  border-style: dashed;
}

.argus-focus-guide {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #28516f;
  font-size: 0.72rem;
  font-weight: 850;
  padding: 5px 10px;
  pointer-events: none;
  position: absolute;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
  z-index: 1;
}

.argus-focus-guide-hub {
  border-color: #7dd3fc;
  color: #0369a1;
}

.argus-focus-guide-upstream {
  border-color: #c4b5fd;
  color: #5b21b6;
}

.argus-focus-guide-owner {
  border-color: #bae6fd;
  color: #0369a1;
}

.argus-focus-guide-process {
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.argus-focus-guide-downstream {
  border-color: #5eead4;
  color: #0f766e;
}

.argus-focus-guide-support {
  border-color: #fde68a;
  color: #92400e;
}

.argus-focus-guide-signal {
  border-color: #fecaca;
  color: #b91c1c;
}

.argus-node-main {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.argus-node-main strong,
.argus-node-main small,
.argus-node-main em,
.argus-node-metric {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-node-context {
  color: var(--node-accent, #0284c7);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.argus-node-category {
  align-self: start;
  background: var(--process-category-bg, #f8fafc);
  border: 1px solid var(--process-category-border, #cbd5e1);
  border-radius: 999px;
  color: var(--process-category-fg, #334155);
  display: inline-flex;
  font-size: 0.62rem;
  font-weight: 900;
  justify-self: start;
  letter-spacing: 0;
  line-height: 1;
  max-width: 100%;
  padding: 4px 7px;
  text-transform: uppercase;
}

.argus-node-next-action {
  color: #92400e;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 850;
}

.argus-node-link-summary {
  color: #2563eb;
  font-size: 0.67rem;
  font-style: normal;
  font-weight: 850;
}

.argus-node-link-summary-todo {
  color: #c2410c;
}

.argus-node-hygiene-issue {
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.16), 0 18px 34px rgba(15, 23, 42, 0.12);
}

.argus-node-hygiene-badge {
  align-self: start;
  background: #fff7ed;
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 999px;
  color: #c2410c;
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  text-transform: uppercase;
}

.argus-node-hygiene-duplicate .argus-node-hygiene-badge {
  background: #fef2f2;
  border-color: rgba(239, 68, 68, 0.24);
  color: #b91c1c;
}

.argus-node-operational-gap {
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.28), 0 12px 26px rgba(15, 23, 42, 0.08);
}

.argus-node-handoff-todo {
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.22), 0 12px 26px rgba(15, 23, 42, 0.08);
}

.argus-node-operational-badge,
.argus-node-handoff-badge {
  align-self: start;
  background: #fffbeb;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  color: #92400e;
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  text-transform: uppercase;
}

.argus-node-handoff-badge {
  background: #fff7ed;
  border-color: #fb923c;
  color: #c2410c;
}

.argus-node-baseline-badge {
  align-self: start;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  color: #1d4ed8;
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  text-transform: uppercase;
}

.argus-node-main strong {
  display: -webkit-box;
  font-size: 0.95rem;
  line-height: 1.05;
  white-space: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.argus-node-main small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.argus-node-metric {
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
  max-width: 62px;
  padding: 5px 7px;
}

.argus-node-risk .argus-node-code {
  background: #fee2e2;
  color: #b91c1c;
}

.argus-node-automation .argus-node-code {
  background: var(--node-code-bg, #f0fdfa);
  color: var(--node-code-fg, #0f766e);
}

.argus-node-process .argus-node-code {
  background: var(--node-code-bg, #dbeafe);
  color: var(--node-code-fg, #1d4ed8);
}

.argus-node-system .argus-node-code {
  background: var(--node-code-bg, #fef3c7);
  color: var(--node-code-fg, #92400e);
}

.argus-overview-panel {
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
  padding: 12px;
}

.argus-overview-panel h2,
.argus-overview-panel p {
  margin: 0;
}

.argus-overview-panel h2 {
  font-size: 1.16rem;
  line-height: 1.15;
}

.argus-overview-panel p:not(.eyebrow) {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.argus-overview-signals {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.argus-overview-signal {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid #64748b;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr;
  min-height: 52px;
  min-width: 0;
  padding: 8px 9px;
}

.argus-overview-signal span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.argus-overview-signal strong {
  color: var(--ink);
  font-size: 0.84rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  text-align: left;
  text-overflow: ellipsis;
  white-space: normal;
}

.argus-overview-signal-primary {
  background: #f8fbff;
  border-color: #bfdbfe;
  border-left: 4px solid #2563eb;
  min-height: 0;
}

.argus-overview-signal[data-overview-signal="what"] {
  border-left-color: #2563eb;
}

.argus-overview-signal[data-overview-signal="owner"] {
  border-left-color: #0f766e;
}

.argus-overview-signal[data-overview-signal="status"] {
  border-left-color: #0891b2;
}

.argus-overview-signal[data-overview-signal="open-in"] {
  border-left-color: #6366f1;
}

.argus-overview-signal[data-overview-signal="data-quality"] {
  border-left-color: #7c3aed;
}

.argus-overview-signal-primary strong {
  font-size: 0.95rem;
  line-height: 1.15;
}

.argus-overview-signal-next-step {
  align-items: center;
  background: #ecfeff;
  border-color: #a5f3fc;
  border-left: 4px solid #0891b2;
  grid-column: 1 / -1;
  grid-template-columns: minmax(68px, 0.55fr) minmax(0, 1.45fr);
  min-height: 0;
}

.argus-overview-signal-next-step strong {
  color: #0e7490;
  text-align: right;
  white-space: normal;
}

.argus-overview-signal-module {
  background: #eef2ff;
  border-color: #c7d2fe;
  border-left: 4px solid #6366f1;
  grid-column: 1 / -1;
  grid-template-columns: minmax(68px, 0.55fr) minmax(0, 1.45fr);
  min-height: 0;
}

.argus-overview-signal-module strong {
  color: #4338ca;
  text-align: right;
}

.argus-overview-signal-module.argus-overview-signal-muted {
  background: #f8fafc;
  border-color: var(--line);
  border-left-color: #94a3b8;
}

.argus-overview-signal-module.argus-overview-signal-muted strong {
  color: #64748b;
}

.argus-overview-signal-warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.argus-overview-signal-warning strong {
  color: #92400e;
}

.argus-overview-signal-muted {
  opacity: 0.72;
}

.argus-overview-brief {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding-top: 8px;
}

.argus-overview-brief[hidden] {
  display: none;
}

.argus-overview-disclosure {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.argus-overview-disclosure summary {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  list-style: none;
  min-width: 0;
  padding: 8px 9px;
}

.argus-overview-disclosure summary::-webkit-details-marker {
  display: none;
}

.argus-overview-disclosure summary::after {
  color: var(--muted);
  content: "v";
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 900;
}

.argus-overview-disclosure[open] summary::after {
  content: "^";
}

.argus-overview-disclosure summary span {
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.argus-overview-disclosure summary strong {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-overview-brief-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.argus-overview-brief-head span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.argus-overview-brief-head strong {
  color: #0e7490;
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: right;
}

.argus-overview-brief-grid {
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.argus-overview-brief-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid #64748b;
  border-radius: 6px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
}

.argus-overview-brief-item span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.argus-overview-brief-item strong {
  color: var(--ink);
  font-size: 0.78rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.argus-overview-brief-item small {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 750;
  line-height: 1.25;
}

.argus-overview-brief-normal {
  border-left-color: #0f766e;
}

.argus-overview-brief-warning {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #d97706;
}

.argus-overview-brief-muted {
  opacity: 0.78;
}

@media (max-width: 1120px) {
  .argus-overview-signals {
    grid-template-columns: 1fr;
  }

  .argus-overview-brief-head {
    align-items: start;
    flex-direction: column;
  }

  .argus-overview-brief-head strong {
    text-align: left;
  }

  .argus-overview-brief-grid {
    grid-template-columns: 1fr;
  }

  .argus-overview-signal-next-step,
  .argus-overview-signal-module {
    grid-template-columns: 1fr;
  }

  .argus-overview-signal-next-step strong,
  .argus-overview-signal-module strong {
    text-align: left;
  }

  .argus-overview-command-grid,
  .argus-overview-actions-org .argus-overview-command-grid {
    grid-template-columns: 1fr;
  }
}

.argus-overview-context {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 7px;
  padding-top: 8px;
}

.argus-overview-context[hidden] {
  display: none;
}

.argus-overview-advanced-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.argus-overview-description {
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 6px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 8px;
}

.argus-overview-description span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.argus-overview-description p {
  color: #334155;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
  margin: 0;
  overflow-wrap: anywhere;
}

.argus-overview-advanced-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid #64748b;
  border-radius: 6px;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 7px 8px;
}

.argus-overview-advanced-item span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.argus-overview-advanced-item strong {
  color: var(--ink);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-overview-advanced-normal {
  border-left-color: #0f766e;
}

.argus-overview-advanced-warning {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #d97706;
}

.argus-overview-advanced-muted {
  opacity: 0.78;
}

.argus-overview-context-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.argus-overview-context-head span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.argus-overview-context-head strong {
  color: #334155;
  font-size: 0.72rem;
}

.argus-overview-context-list {
  display: grid;
  gap: 6px;
}

.argus-overview-context-item {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 3px solid #64748b;
  border-radius: 6px;
  display: grid;
  gap: 2px 7px;
  grid-template-columns: minmax(72px, 0.7fr) minmax(0, 1.3fr);
  min-width: 0;
  padding: 7px 8px;
}

.argus-overview-context-item span {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.argus-overview-context-item strong {
  color: var(--ink);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-overview-context-item small {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 750;
  grid-column: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-overview-context-normal {
  border-left-color: #0f766e;
}

.argus-overview-context-warning {
  background: #fffbeb;
  border-color: #fde68a;
  border-left-color: #d97706;
}

.argus-overview-context-muted {
  opacity: 0.78;
}

.argus-overview-context-empty,
.argus-overview-context-more {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 750;
  line-height: 1.35;
}

.argus-overview-context-more {
  text-align: right;
}

@media (max-width: 1120px) {
  .argus-overview-context-item {
    grid-template-columns: 1fr;
  }

  .argus-overview-context-item small {
    grid-column: 1;
  }

  .argus-overview-advanced-grid {
    grid-template-columns: 1fr;
  }
}

.argus-overview-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
}

.argus-overview-actions-org {
  grid-template-columns: 1fr;
}

.argus-overview-actions button,
.argus-overview-action-link {
  font-size: 0.74rem;
  min-width: 0;
  padding: 8px 6px;
}

.argus-overview-action-disclosure {
  grid-column: 1 / -1;
}

.argus-overview-command-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.argus-overview-command-grid-default {
  grid-column: 1 / -1;
}

.argus-overview-actions-org .argus-overview-command-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.argus-overview-launchpad {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
  padding: 0;
}

.argus-operational-readiness {
  background: #f8fafc;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  display: grid;
  gap: 7px;
  grid-column: 1 / -1;
  padding: 8px;
}

.argus-operational-readiness-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.argus-operational-readiness-head span,
.argus-operational-readiness-item span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
}

.argus-operational-readiness-head strong {
  color: #0f172a;
  font-size: 0.72rem;
  font-weight: 950;
}

.argus-operational-readiness-grid {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.argus-operational-readiness-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  padding: 6px;
}

.argus-operational-readiness-item:hover {
  border-color: #0284c7;
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.12);
}

.argus-operational-readiness-item strong {
  color: #0f172a;
  font-size: 0.74rem;
  font-weight: 950;
}

.argus-operational-readiness-item small {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.2;
}

.argus-operational-readiness-item[data-readiness-gap]:not([data-readiness-gap=""]) small::after {
  color: #92400e;
  content: " · fix " attr(data-readiness-gap);
  font-weight: 900;
}

.argus-operational-readiness-ready {
  border-color: #86efac;
}

.argus-operational-readiness-warning {
  border-color: #fbbf24;
  background: #fffbeb;
}

.argus-overview-launchpad-label {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.argus-overview-launchpad-links {
  display: grid;
  gap: 7px;
  grid-template-columns: 1fr;
}

.argus-overview-action-link {
  align-items: center;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 6px;
  color: #3730a3;
  display: grid;
  gap: 5px;
  grid-template-columns: minmax(62px, 0.7fr) minmax(0, 1.3fr) auto;
  justify-content: stretch;
  min-height: 38px;
  padding: 6px 8px 6px 12px;
  position: relative;
  text-align: left;
  text-decoration: none;
}

.argus-overview-action-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.argus-overview-action-contract {
  color: #475569;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.2;
}

.argus-overview-action-contract-detail {
  color: #64748b;
  display: block;
  font-size: 0.62rem;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 3px;
}

.argus-overview-action-link::before {
  background: #6366f1;
  border-radius: 999px;
  content: "";
  height: calc(100% - 12px);
  left: 5px;
  position: absolute;
  top: 6px;
  width: 3px;
}

.argus-overview-action-link-original::before {
  background: #0f766e;
}

.argus-overview-action-link-tracker::before {
  background: #0284c7;
}

.argus-overview-action-link-sigmaseven::before {
  background: #7c3aed;
}

.argus-overview-action-path {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #334155;
  display: block;
  font-size: 0.64rem;
  font-weight: 900;
  justify-self: start;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  padding: 4px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-overview-action-module {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.argus-overview-action-link strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.argus-overview-action-link strong {
  color: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
}

.argus-overview-action-target {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: #334155;
  display: block;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1.1;
  min-width: 0;
  overflow: hidden;
  padding: 4px 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-overview-action-open {
  background: #ffffff;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  color: #3730a3;
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 900;
  justify-content: center;
  line-height: 1.12;
  max-width: 58px;
  min-width: 44px;
  overflow-wrap: anywhere;
  padding: 4px 6px;
  text-align: center;
  white-space: normal;
}

.argus-overview-action-link:hover {
  background: #e0e7ff;
  color: #312e81;
}

.argus-overview-route-disclosure {
  gap: 6px;
}

.argus-overview-route-grid {
  display: grid;
  gap: 6px;
}

.argus-overview-route-detail {
  background: #ffffff;
  border: 1px dashed var(--line);
  border-radius: 6px;
  display: grid;
  gap: 5px;
  padding: 7px;
}

.argus-overview-route-detail span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.argus-overview-route-detail .argus-overview-action-path,
.argus-overview-route-detail .argus-overview-action-target {
  justify-self: start;
  margin-left: 0;
  max-width: 100%;
}

.argus-field-hint,
.argus-field-warning {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 5px;
}

.argus-field-hint {
  color: var(--muted);
}

.argus-field-warning {
  color: #92400e;
}

.argus-field-warning[hidden] {
  display: none;
}

.argus-bulk-process-panel,
.argus-quick-add-panel {
  background: rgba(248, 251, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.argus-bulk-process-panel[hidden],
.argus-quick-add-panel[hidden] {
  display: none;
}

.argus-bulk-head,
.argus-bulk-actions,
.argus-quick-add-head,
.argus-quick-add-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.argus-bulk-head h3,
.argus-quick-add-head h3 {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.15;
  margin: 0;
}

.argus-bulk-context,
.argus-bulk-feedback,
.argus-quick-add-context,
.argus-quick-add-feedback {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
  margin: 0;
}

.argus-quick-add-form {
  display: grid;
  gap: 8px;
}

.argus-quick-add-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
}

.argus-quick-add-grid-single {
  grid-template-columns: 1fr;
}

.argus-quick-add-grid > div {
  min-width: 0;
}

.argus-quick-add-form label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.argus-quick-add-form input,
.argus-quick-add-form textarea {
  width: 100%;
}

.argus-quick-add-form [hidden] {
  display: none;
}

.argus-bulk-process-panel textarea {
  min-height: 138px;
  resize: vertical;
}

.argus-bulk-actions button {
  min-width: 0;
}

.argus-bulk-preview-table {
  max-height: 238px;
  overflow: auto;
}

.argus-bulk-preview-table table {
  border-collapse: collapse;
  font-size: 0.72rem;
  width: 100%;
}

.argus-bulk-preview-table th,
.argus-bulk-preview-table td {
  border-bottom: 1px solid var(--line);
  padding: 7px 5px;
  text-align: left;
  vertical-align: top;
}

.argus-bulk-preview-table th {
  color: #28516f;
  font-weight: 800;
}

.argus-bulk-row-error td,
.argus-bulk-feedback-error {
  color: #b91c1c;
}

.argus-edit-panel {
  background: rgba(248, 251, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 10px;
  overflow: hidden;
}

.argus-edit-panel-summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  list-style: none;
  min-width: 0;
  padding: 11px 12px;
}

.argus-edit-panel-summary::-webkit-details-marker {
  display: none;
}

.argus-edit-panel-summary:hover {
  background: #e0f2fe;
}

.argus-edit-panel[open] .argus-edit-panel-summary {
  border-bottom: 1px solid var(--line);
}

.argus-edit-panel[open] > .argus-edit-panel-summary .argus-section-chevron {
  transform: rotate(180deg);
}

.argus-form {
  display: grid;
  gap: 10px;
  padding: 10px;
}

.argus-form .argus-primary-section {
  order: 0;
}

.argus-form-actions {
  order: 1;
}

.argus-form section:not(.argus-primary-section) {
  order: 2;
}

.argus-form label,
.argus-connection-panel label {
  color: #28516f;
  font-size: 0.78rem;
  font-weight: 750;
}

.argus-form :disabled {
  opacity: 0.62;
}

.argus-field-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.argus-collapsible {
  background: rgba(248, 251, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.argus-section-toggle {
  align-items: center;
  background: transparent;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  padding: 12px;
  width: 100%;
}

.argus-section-toggle:hover {
  background: #e0f2fe;
  box-shadow: none;
  color: var(--accent);
  transform: none;
}

.argus-section-chevron {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
}

.argus-section-title-block {
  display: grid;
  gap: 3px;
  min-width: 0;
  text-align: left;
}

.argus-section-title-block strong {
  font-size: 1.08rem;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-section-title-block small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-collapsible.collapsed .argus-section-body {
  display: none;
}

.argus-collapsible.collapsed .argus-section-chevron {
  transform: rotate(-90deg);
}

.argus-section-body {
  display: grid;
  gap: 8px;
  padding: 0 12px 12px;
}

.argus-form-actions {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr 1fr;
  margin: -2px 0 2px;
  padding: 8px 0 10px;
  z-index: 4;
}

.argus-form-actions button {
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
}

.argus-connection-panel {
  margin-bottom: 6px;
}

.argus-connection-source {
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  color: #075985;
  font-size: 0.78rem;
  font-weight: 850;
  overflow: hidden;
  padding: 8px 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-node-links {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.argus-link-summary {
  align-items: center;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  color: #7c2d12;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 10px;
}

.argus-link-summary strong {
  font-size: 0.78rem;
}

.argus-link-summary span {
  background: rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  padding: 4px 7px;
}

.argus-link-summary-ready {
  color: #047857;
}

.argus-link-summary-todo {
  color: #c2410c;
}

.argus-link-summary-fix {
  background: #f97316;
  border-color: #ea580c;
  color: #fff;
  font-size: 0.7rem;
  padding: 5px 8px;
}

.argus-link-row {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 1fr) auto auto;
  padding: 8px;
}

.argus-link-row-context {
  background: #ffffff;
  border-style: dashed;
}

.argus-link-row span {
  display: grid;
  min-width: 0;
}

.argus-link-next-action {
  color: #92400e;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 850;
}

.argus-link-next-action-ready {
  color: #047857;
}

.argus-link-next-action-todo {
  color: #c2410c;
}

.argus-link-row small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-link-row button {
  font-size: 0.72rem;
  padding: 6px 8px;
}

.argus-link-badges,
.argus-badge-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.argus-pill-signal {
  background: #f0f9ff;
  color: #075985;
}

.argus-link-badges:empty {
  display: none;
}

.argus-pill {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 850;
  line-height: 1;
  padding: 4px 6px;
  white-space: nowrap;
}

.argus-pill-draft,
.argus-pill-manual {
  background: #eef2ff;
  color: #4338ca;
}

.argus-pill-official,
.argus-pill-verified {
  background: #dcfce7;
  color: #047857;
}

.argus-pill-review,
.argus-pill-estimated,
.argus-pill-stale,
.argus-pill-missing {
  background: #fef3c7;
  color: #b45309;
}

.argus-edge-inspector {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding: 12px;
}

.argus-edge-inspector[hidden] {
  display: none;
}

.argus-edge-inspector h3,
.argus-edge-inspector p {
  margin: 0;
}

.argus-edge-inspector p:not(.eyebrow) {
  color: var(--muted);
}

.argus-edge-detail-form {
  display: grid;
  gap: 8px;
}

.argus-edge-detail-form label {
  color: #28516f;
  font-size: 0.78rem;
  font-weight: 750;
}

.argus-process-edge-fields {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 10px;
}

.argus-process-edge-fields[hidden] {
  display: none;
}

.argus-process-edge-fields strong {
  color: var(--ink);
  font-size: 0.84rem;
}

.argus-edge-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr 1fr;
}

.argus-edge-actions button {
  min-width: 0;
  padding-left: 8px;
  padding-right: 8px;
}

.argus-minimap {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  bottom: 16px;
  box-shadow: 0 14px 34px rgba(2, 132, 199, 0.16);
  cursor: crosshair;
  height: 132px;
  overflow: hidden;
  position: absolute;
  right: 16px;
  width: 216px;
  z-index: 4;
}

.argus-minimap[hidden] {
  display: none;
}

.argus-minimap svg,
.argus-minimap-nodes,
.argus-minimap-viewport {
  inset: 0;
  position: absolute;
}

.argus-minimap-edge {
  fill: none;
  stroke: #93c5fd;
  stroke-width: 1.2;
}

.argus-minimap-node {
  background: #0284c7;
  border-radius: 2px;
  height: 5px;
  position: absolute;
  width: 12px;
}

.argus-minimap-node.selected {
  background: #14b8a6;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.22);
}

.argus-minimap-viewport {
  border: 2px solid #0284c7;
  border-radius: 4px;
  pointer-events: none;
}

.argus-empty-state {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  left: 50%;
  max-width: min(560px, calc(100% - 40px));
  padding: 18px;
  position: absolute;
  top: 44%;
  transform: translate(-50%, -50%);
  width: 520px;
  z-index: 6;
}

.argus-empty-state[hidden] {
  display: none;
}

.argus-empty-state strong {
  display: block;
  font-size: 1.1rem;
}

.argus-empty-state span {
  color: var(--muted);
}

.argus-empty-kicker {
  color: #0f766e;
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 4px;
  text-transform: uppercase;
}

.argus-empty-handoffs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.argus-empty-handoffs a {
  background: #eef8f4;
  border: 1px solid #b7e4d5;
  border-radius: 8px;
  color: #28516f;
  display: grid;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 2px;
  padding: 8px 10px;
  text-align: center;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.argus-empty-handoffs a:hover {
  background: #dcfce7;
  border-color: #5eead4;
  transform: translateY(-1px);
}

.argus-empty-handoffs strong,
.argus-empty-handoffs small,
.argus-empty-handoffs span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-empty-handoffs strong {
  color: #0f172a;
  font-size: 0.8rem;
}

.argus-empty-handoffs small {
  color: #64748b;
  font-size: 0.68rem;
}

.argus-empty-handoffs span {
  background: #ffffff;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  color: #0f766e;
  font-size: 0.66rem;
  font-weight: 900;
  line-height: 1;
  margin-top: 4px;
  padding: 5px 7px;
}

.argus-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.argus-relationship-popover {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(2, 132, 199, 0.18);
  display: grid;
  gap: 8px;
  padding: 12px;
  position: absolute;
  width: 260px;
  z-index: 7;
}

.argus-relationship-popover[hidden] {
  display: none;
}

.argus-relationship-popover strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.argus-relationship-popover label {
  color: #28516f;
  font-size: 0.74rem;
  font-weight: 750;
}

.argus-suggestion-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.argus-suggestion-list .muted {
  font-size: 0.76rem;
}

.argus-suggestion-list button {
  background: #eef8ff;
  border: 1px solid var(--line);
  color: #28516f;
  font-size: 0.72rem;
  line-height: 1.1;
  padding: 6px 8px;
}

.argus-suggestion-list button.active,
.argus-suggestion-list button:hover {
  background: #dbeafe;
  border-color: #93c5fd;
  box-shadow: none;
  color: #1d4ed8;
  transform: none;
}

.argus-relationship-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

button.secondary-button {
  background: #f3faf7;
  color: var(--ink);
  border: 1px solid var(--line);
}

.workspace-header {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  margin-bottom: 16px;
}

.workspace-header h1 {
  font-size: 2.35rem;
  line-height: 1.02;
  margin: 0 0 10px;
}

.workspace-header p {
  color: var(--muted);
  margin: 0;
  max-width: 820px;
}

.workspace-active-profile-callout {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--line-strong);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  justify-content: space-between;
  margin-top: 14px;
  max-width: 820px;
  padding: 10px 12px;
}

.workspace-active-profile-callout.is-active {
  border-left-color: var(--accent-2);
}

.workspace-active-profile-callout div {
  display: grid;
  gap: 2px;
}

.workspace-active-profile-callout span {
  color: #28516f;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}

.workspace-active-profile-callout strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
}

.workspace-active-profile-callout p {
  font-size: 0.86rem;
}

.workspace-active-profile-callout a {
  color: var(--accent);
  font-weight: 800;
}

.workspace-profile-links {
  display: flex;
  flex: none;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-start;
  margin-top: 10px;
}

.workspace-profile-links a {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #28516f;
  font-size: 0.8rem;
  font-weight: 750;
  padding: 7px 10px;
  text-decoration: none;
}

.workspace-profile-links a:hover {
  background: #e0f2fe;
  border-color: var(--line-strong);
  color: var(--accent);
}

.workspace-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.workspace-root-meta {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
}

.workspace-root-meta div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 3px;
  padding-bottom: 10px;
}

.workspace-root-meta div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.workspace-root-meta dt {
  color: #28516f;
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-root-meta dd {
  color: var(--ink);
  margin: 0;
  overflow-wrap: anywhere;
}

.workspace-stats {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.workspace-stat {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  padding: 14px;
}

.workspace-stat span {
  color: #0f766e;
  font-size: 1.7rem;
  font-weight: 850;
  line-height: 1;
}

.workspace-stat strong {
  color: #28516f;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.workspace-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.44fr);
}

.workspace-wide {
  grid-column: 1 / -1;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.workspace-section {
  margin-bottom: 16px;
  min-width: 0;
}

.workspace-section-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.workspace-section-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.workspace-create-profile-panel {
  position: relative;
}

.workspace-create-profile-panel summary {
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 820;
  list-style: none;
  padding: 9px 12px;
}

.workspace-create-profile-panel summary::-webkit-details-marker {
  display: none;
}

.workspace-create-profile-panel[open] summary {
  background: #075985;
  border-color: #075985;
}

.workspace-create-profile-panel form {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  min-width: min(420px, calc(100vw - 40px));
  padding: 14px;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 20;
}

.workspace-section-head h2,
.workspace-section-head p {
  margin: 0;
}

.workspace-list {
  display: grid;
  gap: 10px;
}

.workspace-list-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  padding: 12px;
}

.workspace-list-item div {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.workspace-list-item span:not(.workspace-status) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-align: right;
}

.workspace-list-item p {
  color: var(--muted);
  margin: 0;
}

.workspace-opportunity-form {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 18px;
}

.workspace-opportunity-form label:nth-last-child(-n + 6) {
  grid-column: 1 / -1;
}

.workspace-opportunity-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.workspace-opportunity-card {
  align-items: stretch;
}

.workspace-opportunity-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workspace-opportunity-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.8rem;
  padding: 4px 8px;
}

.workspace-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1;
  padding: 6px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.workspace-status-active,
.workspace-status-review {
  background: #dcfce7;
  color: #047857;
}

.workspace-status-foundation,
.workspace-status-planned {
  background: #e0f2fe;
  color: #075985;
}

.workspace-status-intake,
.workspace-status-queued,
.workspace-status-sample {
  background: #fef3c7;
  color: #92400e;
}

.workspace-bullet-list {
  color: var(--muted);
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.workspace-switcher {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.workspace-switcher a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding: 12px;
  text-decoration: none;
}

.workspace-switcher a:hover,
.workspace-switcher a.active {
  background: #f2f9ff;
  border-color: var(--line-strong);
}

.workspace-switcher span {
  color: var(--muted);
  font-size: 0.82rem;
}

.original-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
}

.original-sidebar,
.original-chat,
.original-doc {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(19, 32, 27, 0.08);
}

.new-session-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 12px;
}

.session-list {
  display: grid;
  gap: 8px;
}

.session-link {
  display: grid;
  gap: 4px;
  padding: 10px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8fcfa;
}

.session-link.active {
  border-color: var(--accent);
  box-shadow: inset 3px 0 0 var(--accent);
}

.session-link span,
.status-pill,
.message span {
  color: var(--muted);
  font-size: 0.82rem;
}

.original-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 16px;
}

.status-pill {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  background: #f8fcfa;
}

.message-feed {
  display: grid;
  gap: 10px;
  max-height: 460px;
  overflow-y: auto;
  padding: 8px 2px;
}

.message {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: #f8fcfa;
}

.message.user {
  background: #fff8ef;
}

.message p {
  margin: 4px 0 0;
  white-space: pre-wrap;
}

.chat-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.original-doc pre {
  min-height: 520px;
  max-height: 620px;
  overflow: auto;
  white-space: pre-wrap;
  background: #f8fcfa;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
}

.pm-header {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 16px;
  padding: 18px;
}

.pm-header h1,
.pm-header p {
  margin: 0;
}

.pm-header h1 {
  font-size: 2.6rem;
  line-height: 0.98;
}

.pm-header p:not(.eyebrow) {
  color: var(--muted);
  max-width: 760px;
}

.pm-metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 16px;
}

.pm-metrics div {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  padding: 14px;
}

.pm-metrics span {
  font-size: 1.7rem;
  font-weight: 850;
  line-height: 1;
}

.pm-metrics small {
  color: var(--muted);
  font-weight: 750;
}

.pm-workspace {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(260px, 0.8fr) minmax(420px, 1.35fr) minmax(320px, 0.95fr);
}

.pm-panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.pm-panel h2,
.pm-panel h3 {
  line-height: 1.15;
  margin: 0 0 10px;
}

.pm-form {
  display: grid;
  gap: 8px;
}

.pm-form label {
  color: #28516f;
  font-size: 0.8rem;
  font-weight: 750;
}

.pm-list-panel td strong {
  display: block;
  max-width: 360px;
}

.pm-detail {
  display: grid;
  gap: 12px;
}

.pm-detail-head {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.pm-detail-head h2,
.pm-detail-head p {
  margin: 0;
}

.pm-detail-head > strong {
  align-items: center;
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  color: #0f766e;
  display: inline-flex;
  font-size: 1.05rem;
  height: 48px;
  justify-content: center;
  min-width: 48px;
  padding: 0 10px;
}

.pm-status-form {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.pm-score-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.pm-score-grid label {
  display: grid;
  gap: 4px;
}

.pm-section {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.pm-section p {
  color: var(--muted);
  margin: 0 0 8px;
}

.pm-roadmap {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.pm-roadmap li {
  color: var(--muted);
}

.pm-roadmap strong {
  color: var(--ink);
  margin-right: 8px;
}

.pm-roadmap span {
  background: #eef2ff;
  border-radius: 999px;
  color: #4338ca;
  font-size: 0.7rem;
  font-weight: 850;
  padding: 3px 6px;
}

.pm-roadmap p {
  margin: 4px 0 0;
}

.pm-links {
  display: grid;
  gap: 6px 10px;
  grid-template-columns: max-content minmax(0, 1fr);
  margin: 0;
}

.pm-links dt {
  color: #28516f;
  font-size: 0.78rem;
  font-weight: 850;
}

.pm-links dd {
  color: var(--muted);
  margin: 0;
  overflow-wrap: anywhere;
}

.pm-command-shell {
  display: grid;
  gap: 16px;
}

.pm-command-head {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px;
}

.pm-command-head h1,
.pm-command-head p,
.pm-hero-panel h2,
.pm-hero-panel p {
  margin: 0;
}

.pm-command-head h1 {
  font-size: 2.6rem;
  line-height: 1;
}

.pm-command-head p:not(.eyebrow),
.pm-hero-panel p {
  color: var(--muted);
}

.pm-command-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(240px, 0.72fr) minmax(540px, 1.55fr) minmax(280px, 0.78fr);
}

.pm-command-main,
.pm-side-rail {
  display: grid;
  gap: 16px;
}

.pm-intake-panel,
.pm-side-rail {
  position: sticky;
  top: 78px;
}

.pm-mini-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
}

.pm-mini-list h3,
.pm-jira-preview h3,
.pm-jira-links h3 {
  font-size: 0.95rem;
  margin: 0;
}

.pm-initiative-link {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 3px;
  padding: 10px;
  text-decoration: none;
}

.pm-initiative-link:hover,
.pm-initiative-link.active {
  background: #e0f2fe;
  border-color: var(--line-strong);
}

.pm-initiative-link span {
  color: var(--muted);
  font-size: 0.78rem;
}

.pm-hero-panel {
  align-items: start;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  padding: 18px;
}

.pm-hero-panel h2 {
  font-size: 2.1rem;
  line-height: 1.05;
}

.pm-dashboard-cards {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pm-dashboard-cards article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
}

.pm-dashboard-cards span {
  color: var(--ink);
  font-size: 1.18rem;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: capitalize;
  white-space: nowrap;
}

.pm-dashboard-cards small {
  color: var(--muted);
  font-weight: 760;
}

.pm-section-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pm-section-head p {
  color: var(--muted);
  margin: 0;
}

.pm-gantt {
  display: grid;
  gap: 9px;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.pm-gantt-row {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 250px) minmax(320px, 1fr);
  min-width: 620px;
}

.pm-gantt-label {
  display: grid;
  min-width: 0;
}

.pm-gantt-label strong,
.pm-gantt-label span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pm-gantt-label span {
  color: var(--muted);
  font-size: 0.78rem;
}

.pm-gantt-track {
  background: #eef8ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  height: 28px;
  overflow: hidden;
  position: relative;
}

.pm-gantt-bar {
  align-items: center;
  background: #0284c7;
  border-radius: 999px;
  color: #ffffff;
  display: flex;
  font-size: 0.72rem;
  font-weight: 850;
  height: 100%;
  justify-content: flex-end;
  min-width: 44px;
  padding: 0 8px;
  position: absolute;
  top: 0;
}

.pm-gantt-milestone .pm-gantt-bar {
  background: #0f766e;
}

.pm-gantt-subtask .pm-gantt-bar {
  background: #7c3aed;
}

.pm-two-column {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
}

.pm-work-list,
.pm-signal-list,
.pm-jira-preview,
.pm-jira-links {
  display: grid;
  gap: 8px;
}

.pm-work-item,
.pm-log-row,
.pm-jira-preview div {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.pm-work-item.active {
  background: #eef6ff;
  border-color: #7aa7d9;
}

.pm-work-task {
  margin-left: 14px;
}

.pm-work-subtask {
  margin-left: 28px;
}

.pm-work-item span,
.pm-log-row span,
.pm-jira-preview span {
  color: var(--muted);
  font-size: 0.78rem;
}

.pm-work-item p,
.pm-signal-list p,
.pm-log-row p {
  color: var(--muted);
  margin: 0;
}

.pm-jira-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  margin: 10px 0;
  padding: 10px;
}

.pm-jira-state.ready {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.pm-jira-state.missing {
  background: #fffbeb;
  border-color: #fde68a;
}

.pm-jira-state span,
.pm-sync-result {
  color: var(--muted);
  font-size: 0.82rem;
}

.pm-action-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr 1fr;
}

.pm-action-row form,
.pm-action-row button,
.pm-action-row a {
  width: 100%;
}

.pm-jira-links a {
  background: #eef2ff;
  border-radius: 999px;
  color: #4338ca;
  font-size: 0.78rem;
  font-weight: 850;
  padding: 6px 9px;
  text-decoration: none;
  width: fit-content;
}

.pm-report-preview {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.pm-report-preview summary {
  cursor: pointer;
  font-weight: 800;
}

.pm-report-preview pre {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 320px;
  overflow: auto;
  padding: 10px;
  white-space: pre-wrap;
}

.pm-empty-command {
  min-height: 420px;
}

body:has(.pm-command-shell) .shell {
  max-width: 1500px;
  margin-top: 18px;
}

.pm-command-shell {
  gap: 14px;
}

.pm-command-head {
  padding: 18px 22px;
}

.pm-command-head h1 {
  font-size: 2.25rem;
  line-height: 1.02;
}

.pm-command-head p:not(.eyebrow) {
  max-width: 760px;
}

.pm-head-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.pm-command-layout {
  align-items: start;
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  min-width: 0;
}

.pm-command-main {
  min-width: 0;
}

.pm-hero-panel {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  padding: 20px 22px;
}

.pm-title-block {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.pm-title-block h2 {
  font-size: 2rem;
  line-height: 1.06;
  max-width: 760px;
}

.pm-title-block > p:not(.eyebrow) {
  max-width: 720px;
}

.pm-meta-strip {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 4px;
}

.pm-meta-strip span {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  font-size: 0.9rem;
  gap: 2px;
  min-width: 0;
  padding: 10px;
}

.pm-meta-strip strong {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.pm-status-card {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.pm-status-card > summary {
  color: var(--accent);
  cursor: pointer;
  font-weight: 820;
}

.pm-status-card form {
  display: grid;
  gap: 10px;
}

.pm-status-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.pm-status-row label {
  display: grid;
  gap: 5px;
}

.pm-score-drawer {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
}

.pm-score-drawer summary,
.pm-intake-drawer summary,
.pm-quick-add summary {
  cursor: pointer;
  font-weight: 820;
}

.pm-score-drawer .pm-score-grid {
  margin-top: 10px;
}

.pm-dashboard-cards article {
  border-radius: 6px;
  box-shadow: none;
  min-height: 72px;
}

.pm-dashboard-cards .pm-health-blocked {
  border-color: #fecaca;
  box-shadow: 0 14px 34px rgba(220, 38, 38, 0.08);
}

.pm-dashboard-cards .pm-health-at_risk {
  border-color: #fde68a;
}

.pm-dashboard-cards .pm-health-healthy,
.pm-dashboard-cards .pm-health-on_track {
  border-color: #99f6e4;
}

.pm-view-switcher {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
}

.pm-view-switcher a {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 820;
  padding: 8px 10px;
  text-decoration: none;
}

.pm-view-switcher a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.pm-home-view,
.pm-inbox-view,
.pm-board-view,
.pm-sheet-view,
.pm-reports-view,
.pm-detail-drawer {
  padding: 16px;
  scroll-margin-top: 82px;
}

.pm-home-grid,
.pm-report-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pm-home-grid article,
.pm-report-grid article {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px;
}

.pm-collapsed-panel {
  padding: 0;
}

.pm-collapsed-panel > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  font-weight: 860;
  justify-content: space-between;
  list-style: none;
  padding: 14px;
}

.pm-collapsed-panel > summary::-webkit-details-marker {
  display: none;
}

.pm-collapsed-panel[open] {
  padding: 0 14px 14px;
}

.pm-collapsed-panel[open] > summary {
  border-bottom: 1px solid var(--line);
  margin: 0 -14px 14px;
}

.pm-home-grid strong,
.pm-report-grid strong {
  color: var(--ink);
}

.pm-home-grid span,
.pm-report-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.pm-inbox-list {
  display: grid;
  gap: 8px;
}

.pm-inbox-row {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 3px;
  padding: 10px;
  text-decoration: none;
}

.pm-inbox-row.urgent {
  border-color: #fecaca;
}

.pm-inbox-row span {
  color: var(--muted);
  font-size: 0.88rem;
}

.pm-board-lanes {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pm-board-lane {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 10px;
}

.pm-board-lane h3 {
  font-size: 0.92rem;
  margin: 0;
  text-transform: capitalize;
}

.pm-board-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 10px;
}

.pm-board-card span,
.pm-board-card small {
  color: var(--muted);
}

.pm-detail-drawer {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pm-detail-drawer summary {
  cursor: pointer;
  font-weight: 860;
}

.pm-detail-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  margin-top: 14px;
}

.pm-detail-grid section {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.pm-detail-grid dl {
  display: grid;
  gap: 8px;
  margin: 10px 0 0;
}

.pm-detail-grid dl div {
  display: grid;
  gap: 2px;
}

.pm-detail-grid dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 820;
  text-transform: uppercase;
}

.pm-detail-grid dd {
  color: var(--ink);
  margin: 0;
}

.pm-timeline-panel {
  min-width: 0;
  padding: 20px 22px;
}

.pm-section-head.compact {
  margin-bottom: 8px;
}

.pm-section-head .eyebrow {
  margin-bottom: 2px;
}

.pm-gantt-row {
  grid-template-columns: minmax(220px, 310px) minmax(420px, 1fr);
  min-width: 760px;
}

.pm-gantt-track {
  height: 30px;
}

.pm-side-rail {
  position: sticky;
  top: 78px;
}

.pm-action-center,
.pm-jira-panel,
.pm-workspace-context {
  display: grid;
  gap: 12px;
}

.pm-action-center h2,
.pm-jira-panel h2,
.pm-workspace-context h2 {
  margin-bottom: 0;
}

.pm-intake-drawer,
.pm-quick-add {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  padding: 10px;
}

.pm-intake-drawer form,
.pm-quick-add form {
  margin-top: 10px;
}

.pm-side-rail .pm-panel {
  padding: 14px;
}

.pm-side-rail .pm-panel h2 {
  font-size: 1.25rem;
}

.pm-jira-state {
  margin: 0;
}

.pm-action-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pm-action-row button,
.pm-action-row .button-link {
  min-height: 42px;
  padding-left: 8px;
  padding-right: 8px;
}

.pm-log-row {
  margin-bottom: 8px;
}

.pm-signal-list p {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px;
}

.pm-signal-list strong {
  color: var(--ink);
}

.pm-context-list {
  display: grid;
  gap: 8px;
}

.pm-context-list p {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 10px;
}

.pm-context-list strong {
  color: var(--ink);
}

.pm-operating-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.pm-daily-update,
.pm-contract-panel,
.pm-activity-panel {
  display: grid;
  gap: 12px;
}

.pm-update-health {
  align-self: start;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 820;
  padding: 8px 11px;
  white-space: nowrap;
}

.pm-update-health.current {
  background: #ecfdf5;
  border-color: #99f6e4;
  color: #0f766e;
}

.pm-update-health.watch {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.pm-update-health.stale {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.pm-update-form {
  display: grid;
  gap: 9px;
}

.pm-update-form label {
  color: #20435f;
  display: grid;
  font-weight: 760;
  gap: 5px;
}

.pm-update-fields {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
}

.pm-update-list {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.pm-contract-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr);
}

.pm-contract-grid > div {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
}

.pm-contract-grid h3 {
  color: var(--ink);
  font-size: 0.95rem;
  margin: 0 0 7px;
}

.pm-contract-grid ul {
  margin: 0;
  padding-left: 18px;
}

.pm-contract-grid li,
.pm-contract-grid p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 6px;
}

.pm-contract-grid p {
  display: grid;
  gap: 2px;
}

.pm-contract-grid strong {
  color: var(--ink);
}

.pm-context-drawer {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.pm-context-drawer summary {
  cursor: pointer;
  font-weight: 820;
}

.pm-context-drawer form {
  margin-top: 10px;
}

.pm-activity-row {
  border-left: 3px solid #bae6fd;
  display: grid;
  gap: 3px;
  padding: 0 0 10px 10px;
}

.pm-activity-row span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  text-transform: uppercase;
}

.pm-activity-row strong {
  color: var(--ink);
}

.pm-activity-row p {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.pm-empty-layout {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
}

@media (max-width: 1180px) {
  .pm-command-layout,
  .pm-hero-panel,
  .pm-operating-grid,
  .pm-home-grid,
  .pm-report-grid,
  .pm-board-lanes,
  .pm-detail-grid,
  .pm-empty-layout {
    grid-template-columns: 1fr;
  }

  .pm-side-rail {
    position: static;
  }

  .pm-dashboard-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pm-contract-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.doc-callouts-list {
  display: grid;
  gap: 10px;
}

.doc-callout-card {
  align-items: start;
  background: rgba(17, 24, 39, 0.62);
  border: 1px solid #374151;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  grid-template-columns: 38px minmax(0, 1fr);
  padding: 12px;
}

.doc-callout-number {
  align-items: center;
  background: #1e1b4b;
  border: 1px solid #4f46e5;
  border-radius: 999px;
  color: #c7d2fe;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 700;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.doc-callout-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.doc-callout-fields label {
  color: #9ca3af;
  display: grid;
  font-size: 0.72rem;
  gap: 5px;
}

.doc-callout-fields input,
.doc-callout-fields textarea {
  background: #111827;
  border: 1px solid #374151;
  border-radius: 8px;
  color: #f9fafb;
  font-size: 0.82rem;
  min-width: 0;
  padding: 8px 9px;
}

.doc-callout-fields textarea {
  resize: vertical;
}

.doc-callout-description {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    overflow-x: hidden;
    padding: 12px 18px;
  }

  nav {
    flex: 0 1 auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    width: 100%;
  }

  nav a {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 9px 12px;
  }

  .profile-switcher {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }

  .active-profile-context {
    flex: 1 1 100%;
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
  }

  .active-profile-links {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .active-profile-links a {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 10px 12px;
  }

  .active-profile-summary {
    border-left-width: 4px;
  }

  body:has(.pm-command-shell) .topbar {
    gap: 8px;
    padding: 10px 18px;
  }

  body:has(.pm-command-shell) nav {
    flex-wrap: nowrap;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body:has(.pm-command-shell) nav a {
    flex: 0 0 auto;
  }

  .sigma-hero,
  .sigma-output-head {
    align-items: stretch;
    flex-direction: column;
  }

  .sigma-grid,
  .sigma-metrics {
    grid-template-columns: 1fr;
  }

  .sigma-actions {
    justify-content: flex-start;
  }

  .module-frame-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .module-frame {
    min-height: 72vh;
  }

  .workspace-header,
  .workspace-grid {
    grid-template-columns: 1fr;
  }

  .workspace-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:has(.argus-shell) {
    overflow: auto;
  }

  .argus-shell {
    grid-template-columns: 1fr;
    height: auto;
  }

  .argus-shell.argus-panel-mode-compact {
    grid-template-columns: 1fr;
  }

  .argus-resize-handle {
    display: none;
  }

  .argus-left,
  .argus-right {
    border: 0;
    max-height: none;
  }

  .argus-main {
    min-height: 620px;
  }

  .argus-toolbar {
    grid-template-columns: 1fr;
  }

  .argus-canvas-controls,
  .argus-view-modes,
  .argus-line-style,
  .argus-panel-mode,
  .argus-org-layout,
  .argus-toolbar-actions {
    justify-content: flex-start;
  }

  .argus-line-style,
  .argus-panel-mode,
  .argus-org-layout {
    border-left: 0;
    padding-left: 0;
  }

  .argus-minimap {
    bottom: 10px;
    right: 10px;
    transform: scale(0.82);
    transform-origin: bottom right;
  }

  .original-workspace,
  .original-main,
  .pm-workspace,
  .pm-metrics,
  .pm-command-grid,
  .pm-command-layout,
  .pm-hero-panel,
  .pm-dashboard-cards,
  .pm-two-column,
  .pm-operating-grid,
  .pm-update-fields,
  .pm-contract-grid,
  .pm-meta-strip,
  .pm-empty-layout {
    grid-template-columns: 1fr;
  }

  .pm-header,
  .pm-command-head,
  .pm-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .pm-header h1 {
    font-size: 2rem;
  }

  .pm-score-grid {
    grid-template-columns: 1fr;
  }

  .pm-intake-panel,
  .pm-side-rail {
    position: static;
  }

  .pm-action-row {
    grid-template-columns: 1fr;
  }

  .pm-command-head h1 {
    font-size: 1.75rem;
  }

  .pm-hero-panel h2 {
    font-size: 1.55rem;
  }

  .pm-command-head,
  .pm-hero-panel,
  .pm-timeline-panel {
    padding: 14px;
  }

  .pm-gantt-row {
    grid-template-columns: minmax(180px, 230px) minmax(360px, 1fr);
    min-width: 560px;
  }

  .pm-command-main,
  .pm-hero-panel,
  .pm-panel,
  .pm-title-block {
    min-width: 0;
  }

  .doc-callout-card,
  .doc-callout-fields {
    grid-template-columns: 1fr;
  }
}

/* Final Project Manager route polish overrides. */
body:has(.pm-workspace-shell) {
  background: #f6f7f9;
}

body:has(.pm-workspace-shell) .shell {
  max-width: 1720px;
}

.pm-workspace-shell {
  gap: 16px;
  grid-template-columns: 232px minmax(0, 1fr);
}

.pm-sidebar {
  background: #f4f5f7;
  border-color: #dfe3e8;
  border-radius: 8px;
  box-shadow: none;
}

.pm-sidebar-brand > span {
  background: #172b4d;
  border-color: #172b4d;
  color: #ffffff;
}

.pm-sidebar-nav a {
  color: #344563;
  font-size: 0.92rem;
  min-height: 38px;
}

.pm-sidebar-nav a::before {
  align-items: center;
  background: #ffffff;
  border: 1px solid #dfe3e8;
  border-radius: 6px;
  color: #5e6c84;
  display: inline-flex;
  flex: 0 0 24px;
  font-size: 0.72rem;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.pm-sidebar-nav a[data-nav-key="home"]::before {
  content: "O";
}

.pm-sidebar-nav a[data-nav-key="inbox"]::before {
  content: "I";
}

.pm-sidebar-nav a[data-nav-key="board"]::before {
  content: "B";
}

.pm-sidebar-nav a[data-nav-key="work-items"]::before {
  content: "W";
}

.pm-sidebar-nav a[data-nav-key="reports"]::before {
  content: "R";
}

.pm-sidebar-nav a:hover,
.pm-sidebar-nav a.active,
.pm-sidebar-section a:hover,
.pm-sidebar-section a.active {
  background: #ffffff;
  color: #0c66e4;
}

.pm-sidebar-list a {
  background: transparent;
  border-color: transparent;
}

.pm-sidebar-list a:hover,
.pm-sidebar-list a.active {
  background: #ffffff;
  border-color: #dfe3e8;
}

.pm-utility-bar,
.pm-workspace-header,
.pm-view-panel,
.pm-panel,
.pm-dashboard-cards article {
  border-color: #dfe3e8;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.08);
}

.pm-utility-bar {
  background: #ffffff;
  grid-template-columns: minmax(280px, 1fr) auto auto;
}

.pm-workspace-header {
  grid-template-columns: minmax(0, 1fr) minmax(128px, 168px);
  padding: 18px 20px;
}

.pm-workspace-header h1,
.pm-section-head h2 {
  font-size: 1.35rem;
}

.pm-summary-drawer,
.pm-status-card,
.pm-collapsed-panel,
.pm-context-drawer,
.pm-quick-add,
.pm-board-lane,
.pm-issue-toolbar {
  background: #f7f8f9;
  border-color: #dfe3e8;
}

.pm-view-panel {
  background: #ffffff;
  padding: 18px;
}

.pm-section-head {
  margin-bottom: 4px;
}

.pm-section-head p:not(.eyebrow) {
  display: none;
}

.pm-home-grid,
.pm-report-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pm-home-grid article,
.pm-report-grid article,
.pm-contract-grid > div,
.pm-context-list p,
.pm-inbox-row,
.pm-board-card,
.pm-work-item,
.pm-log-row,
.pm-jira-preview div {
  background: #ffffff;
  border-color: #dfe3e8;
  border-radius: 8px;
}

.pm-home-columns {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
}

.pm-inbox-board {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pm-inbox-column {
  display: grid;
  gap: 10px;
}

.pm-inbox-column h3,
.pm-board-lane h3 {
  color: #172b4d;
  font-size: 0.86rem;
  font-weight: 820;
  margin: 0;
}

.pm-inbox-row {
  min-height: 54px;
}

.pm-inbox-row p {
  display: none;
}

.pm-board-lanes {
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  overflow-x: auto;
}

.pm-reports-columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pm-issue-chip,
.pm-issue-sort a {
  border-radius: 6px;
}

.pm-issue-chip.active,
.pm-issue-sort a.active {
  background: #deebff;
  border-color: #85b8ff;
  color: #0c66e4;
}

.pm-issue-layout {
  grid-template-columns: minmax(0, 1.42fr) minmax(340px, 0.72fr);
}

.pm-issue-layout.no-selection {
  grid-template-columns: minmax(0, 1fr);
}

.pm-issue-row {
  border-radius: 0;
  border-width: 0 0 1px;
  min-height: 58px;
}

.pm-issue-row:first-child {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.pm-issue-row:last-child {
  border-bottom: 0;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.pm-issue-row:hover,
.pm-issue-row.active {
  background: #f0f6ff;
}

.pm-issue-key {
  background: #f1f2f4;
  border-color: #dfe3e8;
  color: #344563;
}

.pm-status-badge {
  background: #e3fcef;
  border-color: #abf5d1;
  color: #006644;
}

.pm-priority-badge.priority-high,
.pm-priority-badge.priority-critical,
.pm-priority-badge.priority-p0,
.pm-priority-badge.priority-p1 {
  background: #ffebe6;
  border-color: #ffbdad;
  color: #bf2600;
}

.pm-detail-drawer {
  border-color: #dfe3e8;
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.08);
}

.pm-detail-grid section {
  background: #f7f8f9;
  border-color: #dfe3e8;
}

@media (max-width: 1180px) {
  .pm-workspace-shell,
  .pm-workspace-header,
  .pm-home-columns,
  .pm-home-grid,
  .pm-report-grid,
  .pm-reports-columns,
  .pm-inbox-board,
  .pm-issue-layout,
  .pm-issue-layout.no-selection {
    grid-template-columns: 1fr;
  }

  .pm-board-lanes {
    grid-template-columns: repeat(4, minmax(220px, 280px));
  }
}

@media (max-width: 760px) {
  .pm-utility-bar {
    grid-template-columns: 1fr;
  }

  .pm-board-lanes {
    grid-template-columns: 1fr;
    overflow: visible;
  }
}

/* Uncodixfy UI pass: plain operational shell, list-first PM workflow. */
:root {
  --bg: #f6f6f4;
  --bg-soft: #ececea;
  --panel: #ffffff;
  --panel-subtle: #f7f7f5;
  --ink: #1f2328;
  --muted: #626a73;
  --accent: #0f766e;
  --accent-2: #4b5563;
  --danger: #b42318;
  --line: #d9d9d6;
  --line-strong: #b9b9b4;
  --shadow: none;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px;
}

.topbar {
  align-items: center;
  background: #ffffff;
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  gap: 16px;
  padding: 10px 20px;
}

.brand {
  font-weight: 760;
}

.brand img {
  height: 30px;
  width: 30px;
}

.active-profile-context {
  align-items: center;
  flex: 1 1 620px;
  grid-template-columns: minmax(220px, 320px) minmax(150px, auto);
}

.profile-switcher,
.active-profile-links a,
.card,
.trace-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
}

.profile-switcher {
  padding: 4px;
}

.profile-switcher label,
.active-profile-summary span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 680;
  text-transform: none;
}

.active-profile-summary {
  border-left: 1px solid var(--line-strong);
}

.active-profile-links {
  gap: 4px;
  overflow-x: visible;
}

.active-profile-links a,
.topbar > nav a {
  border-radius: 5px;
  color: #3f464d;
  font-size: 0.82rem;
  font-weight: 620;
  line-height: 1.1;
  padding: 7px 9px;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.active-profile-links a:hover,
.topbar > nav a:hover {
  background: var(--panel-subtle);
  border-color: var(--line-strong);
  color: var(--ink);
  transform: none;
}

.shell {
  margin: 20px auto;
  padding: 0 20px 36px;
}

button,
.btn-link,
.button-link {
  background: #1f2328;
  border: 1px solid #1f2328;
  border-radius: 6px;
  box-shadow: none;
  color: #ffffff;
  font-weight: 680;
  min-height: 38px;
  padding: 8px 12px;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

button:hover,
.btn-link:hover,
.button-link:hover {
  background: #343a40;
  box-shadow: none;
  transform: none;
}

button.secondary,
.button-link.secondary {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--ink);
}

button.secondary:hover,
.button-link.secondary:hover {
  background: var(--panel-subtle);
  color: var(--ink);
}

input,
textarea,
select {
  background: #ffffff;
  border-color: var(--line-strong);
  border-radius: 6px;
  min-height: 38px;
}

input:focus,
textarea:focus,
select:focus,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18);
  outline: 0;
}

.eyebrow,
.pm-kicker {
  color: var(--muted);
  display: inline-block;
  font-size: 0.79rem;
  font-weight: 620;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0 0 4px;
  text-transform: none;
}

body:has(.pm-workspace-shell) {
  background: #f6f6f4;
}

body:has(.pm-workspace-shell) .shell {
  max-width: none;
  margin: 0;
  padding: 0;
}

.pm-workspace-shell {
  align-items: stretch;
  gap: 0;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 55px);
}

.pm-sidebar {
  background: #f1f1ef;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  max-height: calc(100vh - 55px);
  padding: 14px 12px;
  top: 55px;
}

.pm-sidebar-brand {
  border-bottom: 1px solid var(--line);
  padding: 2px 2px 12px;
}

.pm-sidebar-brand > span {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 720;
}

.pm-sidebar-nav {
  gap: 1px;
}

.pm-sidebar-nav a,
.pm-sidebar-section a,
.pm-sidebar-list a {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #3f464d;
  font-size: 0.91rem;
  font-weight: 620;
  min-height: 34px;
  padding: 7px 8px;
}

.pm-sidebar-nav a::before {
  content: none;
  display: none;
}

.pm-sidebar-nav a:hover,
.pm-sidebar-nav a.active,
.pm-sidebar-section a:hover,
.pm-sidebar-section a.active,
.pm-sidebar-list a:hover,
.pm-sidebar-list a.active {
  background: #ffffff;
  border-color: var(--line);
  color: var(--ink);
}

.pm-sidebar-section {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.pm-sidebar-section h2 {
  color: var(--muted);
  font-size: 0.79rem;
  font-weight: 620;
  text-transform: none;
}

.pm-workspace-panel {
  background: #ffffff;
  gap: 0;
}

.pm-utility-bar {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  grid-template-columns: minmax(260px, 1fr) auto auto;
  padding: 10px 14px;
  top: 55px;
}

.pm-create-menu summary {
  background: #1f2328;
  border: 1px solid #1f2328;
  border-radius: 6px;
  color: #ffffff;
  min-height: 38px;
  padding: 8px 12px;
}

.pm-create-menu[open] form {
  border-color: var(--line);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(31, 35, 40, 0.12);
}

.pm-workspace-header {
  align-items: start;
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 160px);
  padding: 16px 18px;
}

.pm-workspace-header h1 {
  font-size: 1.35rem;
  line-height: 1.18;
  margin-bottom: 8px;
}

.pm-header-meta {
  gap: 0;
}

.pm-header-meta span {
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0;
}

.pm-header-meta span + span::before {
  color: var(--line-strong);
  content: "/";
  padding: 0 8px;
}

.pm-summary-drawer,
.pm-status-card,
.pm-collapsed-panel,
.pm-context-drawer,
.pm-quick-add,
.pm-board-lane,
.pm-issue-toolbar,
.pm-view-panel,
.pm-panel,
.pm-dashboard-cards article,
.pm-home-grid article,
.pm-report-grid article,
.pm-contract-grid > div,
.pm-context-list p,
.pm-inbox-row,
.pm-board-card,
.pm-work-item,
.pm-log-row,
.pm-jira-preview div,
.pm-detail-drawer,
.pm-detail-grid section {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: none;
}

.pm-summary-drawer,
.pm-status-card {
  background: var(--panel-subtle);
}

.pm-dashboard-cards.pm-compact-metrics {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pm-dashboard-cards article {
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 18px;
}

.pm-dashboard-cards article:last-child {
  border-right: 0;
}

.pm-dashboard-cards span {
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 700;
}

.pm-dashboard-cards small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 560;
  text-transform: none;
}

.pm-view-frame {
  display: block;
}

.pm-view-panel {
  border: 0;
  border-radius: 0;
  padding: 18px;
}

.pm-section-head {
  align-items: end;
  border-bottom: 1px solid var(--line);
  margin: 0 0 12px;
  padding-bottom: 10px;
}

.pm-section-head h2 {
  font-size: 1.08rem;
  font-weight: 720;
  margin: 0;
}

.pm-home-grid,
.pm-report-grid {
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pm-home-columns,
.pm-inbox-board,
.pm-reports-columns {
  gap: 12px;
}

.pm-board-lane {
  background: var(--panel-subtle);
}

.pm-board-card,
.pm-inbox-row,
.pm-log-row {
  min-height: 0;
  padding: 10px;
}

.pm-issue-toolbar {
  align-items: center;
  background: var(--panel-subtle);
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 0;
  padding: 10px;
}

.pm-issue-chip,
.pm-issue-sort a,
.pm-status-badge,
.pm-priority-badge,
.pm-issue-key,
.pm-update-health,
.pill {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: #3f464d;
  font-weight: 620;
}

.pm-issue-chip.active,
.pm-issue-sort a.active {
  background: #e6f3f1;
  border-color: #88bdb6;
  color: #0f5f58;
}

.pm-issue-layout {
  gap: 0;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, 0.7fr);
}

.pm-issue-list-panel,
.pm-detail-drawer {
  border-radius: 0;
}

.pm-issue-list-head {
  background: #f1f1ef;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 640;
}

.pm-issue-row {
  border-color: var(--line);
  border-radius: 0;
  min-height: 56px;
}

.pm-issue-row:first-child,
.pm-issue-row:last-child {
  border-radius: 0;
}

.pm-issue-row:hover,
.pm-issue-row.active {
  background: #f4faf8;
}

.pm-detail-drawer {
  border-left: 0;
}

.pm-detail-drawer summary {
  background: #f1f1ef;
  border-bottom: 1px solid var(--line);
  font-weight: 720;
  padding: 10px 12px;
}

.pm-detail-grid section {
  background: var(--panel-subtle);
}

@media (max-width: 1180px) {
  .pm-workspace-shell {
    grid-template-columns: 1fr;
  }

  .pm-sidebar,
  .pm-utility-bar {
    max-height: none;
    position: static;
  }

  .pm-sidebar {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pm-issue-layout,
  .pm-issue-layout.no-selection,
  .pm-home-grid,
  .pm-report-grid,
  .pm-inbox-board,
  .pm-reports-columns {
    grid-template-columns: 1fr;
  }

  .pm-detail-drawer {
    border-left: 1px solid var(--line);
  }
}

@media (max-width: 760px) {
  .topbar,
  .active-profile-context,
  .pm-utility-bar,
  .pm-search-form,
  .pm-dashboard-cards.pm-compact-metrics {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    display: grid;
  }

  .topbar > nav {
    flex: none;
    flex-wrap: wrap;
    justify-content: start;
    overflow-x: visible;
    width: 100%;
  }

  .active-profile-links {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .pm-dashboard-cards article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .pm-dashboard-cards article:last-child {
    border-bottom: 0;
  }

  .pm-workspace-header {
    grid-template-columns: 1fr;
  }

  .pm-issue-row {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}

/* Full-board operational redesign: shared Radix/Refine-inspired shell. */
:root {
  --app-bg: #f5f7fa;
  --app-surface: #ffffff;
  --app-surface-soft: #f8fafc;
  --app-sidebar: #101923;
  --app-sidebar-soft: #172536;
  --app-text: #111827;
  --app-muted: #667085;
  --app-border: #dce3ec;
  --app-border-strong: #c7d2df;
  --app-accent: #0f8b8d;
  --app-accent-strong: #0b6f71;
  --app-focus: rgba(15, 139, 141, 0.22);
  --app-radius-1: 8px;
  --app-radius-2: 12px;
  --app-radius-3: 16px;
  --app-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

body.hyperion-app-frame {
  background: var(--app-bg);
  color: var(--app-text);
  font-family: "Inter", "IBM Plex Sans", "Segoe UI", sans-serif;
  font-size: 15px;
}

.app-layout {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  min-height: 100vh;
}

.app-sidebar {
  background: linear-gradient(180deg, var(--app-sidebar), #142131);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  color: #e9eef5;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 22px;
  height: 100vh;
  overflow: auto;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.app-brand {
  color: #ffffff;
  min-height: 44px;
}

.app-brand img {
  background: rgba(255, 255, 255, 0.92);
  border-radius: 12px;
  height: 34px;
  padding: 4px;
  width: 34px;
}

.app-sidebar-nav {
  align-content: start;
  display: grid;
  gap: 6px;
}

.app-sidebar-nav a {
  border: 1px solid transparent;
  border-radius: var(--app-radius-2);
  color: #cdd8e6;
  display: grid;
  gap: 1px;
  min-height: 48px;
  padding: 9px 12px;
  text-decoration: none;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.app-sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateX(2px);
}

.app-sidebar-nav a.active {
  background: rgba(15, 139, 141, 0.18);
  border-color: rgba(91, 214, 202, 0.36);
  color: #ffffff;
}

.app-sidebar-nav span {
  font-size: 14px;
  font-weight: 820;
  line-height: 1.2;
}

.app-sidebar-nav small {
  color: #92a5bb;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.app-main {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.topbar.app-topbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--app-border);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  display: flex;
  justify-content: flex-end;
  min-height: 66px;
  padding: 10px 22px;
  position: sticky;
  top: 0;
  z-index: 18;
}

.app-topbar .active-profile-context {
  flex: 0 1 640px;
  grid-template-columns: minmax(280px, 1fr) auto;
}

.app-topbar .profile-switcher {
  background: var(--app-surface-soft);
  border-color: var(--app-border);
  border-radius: var(--app-radius-2);
  min-width: 0;
}

.app-topbar .active-profile-summary {
  border-left-color: var(--app-accent);
  min-width: 150px;
}

.app-content.shell {
  margin: 0;
  max-width: 1480px;
  min-width: 0;
  padding: 18px 22px 42px;
  width: 100%;
}

body:has(.argus-shell) .app-content,
body:has(.pm-workspace-shell) .app-content {
  max-width: none;
}

.active-profile-links,
.workspace-profile-links {
  display: none !important;
}

.card,
.workspace-header,
.workspace-section,
.argus-left,
.argus-right,
.argus-toolbar,
.argus-canvas,
.pm-view-panel,
.pm-workspace-header,
.pm-utility-bar,
.table-wrap,
.trace-feed,
.sigmaseven-panel,
.original-panel {
  border-color: var(--app-border) !important;
  border-radius: var(--app-radius-3) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.card,
.workspace-section,
.workspace-header {
  background: var(--app-surface);
}

.card h1,
.card h2,
.workspace-header h1,
.workspace-section h2,
.pm-workspace-header h1,
.argus-panel-head h1 {
  color: var(--app-text);
  letter-spacing: 0;
}

.eyebrow,
.pm-kicker,
.argus-section-label {
  color: var(--app-accent-strong);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

button,
.button-link,
input,
select,
textarea,
summary,
.pill {
  border-radius: var(--app-radius-1);
}

button,
.button-link {
  font-weight: 800;
  min-height: 36px;
}

button:not(.secondary):not(.danger),
.button-link:not(.secondary) {
  background: var(--app-sidebar);
  color: #ffffff;
}

button.secondary,
.button-link.secondary,
.argus-canvas-controls button,
.argus-toolbar-actions button {
  background: #eef7f7;
  border-color: #c7e6e4;
  color: var(--app-accent-strong);
}

button:hover,
.button-link:hover {
  transform: translateY(-1px);
}

input,
select,
textarea {
  border-color: var(--app-border-strong);
  min-height: 38px;
}

input:focus,
textarea:focus,
select:focus,
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  border-color: var(--app-accent);
  box-shadow: 0 0 0 3px var(--app-focus);
}

table {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-2);
}

th {
  background: #f1f5f9;
  color: #475467;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  color: #344054;
}

.grid.two {
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.workspace-header {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  padding: 20px;
}

.workspace-actions,
.workspace-section-actions,
.argus-actions,
.argus-hygiene-actions,
.argus-toolbar-actions,
.argus-canvas-controls {
  gap: 8px;
}

.workspace-root-meta,
.workspace-list-item,
.workspace-stat,
.argus-mini-stats div,
.argus-overview-panel,
.argus-quick-add-panel,
.argus-edge-inspector,
.argus-edit-panel {
  background: var(--app-surface-soft);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-2);
}

.argus-shell {
  --argus-left-width: min(236px, 24vw);
  --argus-right-width: min(304px, 28vw);
  gap: 10px;
  min-height: calc(100vh - 104px);
}

.argus-shell.argus-panel-mode-compact {
  --argus-left-width: 72px;
  --argus-right-width: min(292px, 28vw);
}

.argus-toolbar {
  align-items: start;
  grid-template-columns: minmax(170px, 0.8fr) minmax(280px, 1fr) auto;
}

.argus-canvas-controls,
.argus-toolbar-actions {
  flex-wrap: wrap;
}

.argus-left,
.argus-right {
  background: var(--app-surface);
}

.argus-toolbar {
  background: rgba(255, 255, 255, 0.94);
  min-height: 58px;
}

.argus-canvas {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96)),
    radial-gradient(circle at 1px 1px, rgba(15, 139, 141, 0.10) 1px, transparent 0);
  background-size: auto, 22px 22px;
}

.argus-label-toggle.active {
  background: var(--app-sidebar) !important;
  border-color: var(--app-sidebar) !important;
  color: #ffffff !important;
}

.argus-edge-label,
.argus-edge-badge {
  pointer-events: auto;
}

.argus-edge-path {
  transition: stroke 140ms ease, stroke-width 140ms ease, opacity 140ms ease;
}

.argus-edge-path.argus-edge-handoff-todo {
  stroke-dasharray: 6 6;
}

.ui-page-header,
.ui-action-bar {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.ui-page-header {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-3);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  margin-bottom: 14px;
  padding: 18px;
}

.ui-page-header h1,
.ui-page-header p {
  margin: 0;
}

.ui-page-header p {
  color: var(--app-muted);
  max-width: 760px;
}

.ui-metric-strip {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ui-metric-strip article {
  display: grid;
  gap: 4px;
  min-height: 82px;
  padding: 14px;
}

.ui-metric-strip strong {
  font-size: 24px;
  line-height: 1;
}

.ui-metric-strip span {
  color: var(--app-muted);
  font-size: 12px;
  font-weight: 760;
}

.ui-empty-state {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.pm-radix-shell {
  box-shadow: none;
}

@media (max-width: 980px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    height: auto;
    padding: 14px;
    position: static;
  }

  .app-sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .topbar.app-topbar {
    justify-content: stretch;
    position: static;
  }

  .app-topbar .active-profile-context,
  .workspace-header,
  .ui-metric-strip {
    grid-template-columns: 1fr;
  }

  .argus-shell,
  .argus-shell.argus-panel-mode-compact {
    --argus-left-width: 100%;
    --argus-right-width: 100%;
    grid-template-columns: 1fr !important;
    height: auto;
    min-height: 0;
  }

  .argus-left,
  .argus-right {
    max-height: none;
    min-width: 0;
  }

  .argus-main,
  .argus-toolbar,
  .argus-canvas {
    min-width: 0;
  }

  .argus-toolbar {
    grid-template-columns: 1fr;
  }

  .argus-resize-handle {
    display: none;
  }

  .argus-canvas {
    min-height: 520px;
  }

  .app-content.shell {
    padding: 14px;
  }
}

@media (max-width: 620px) {
  .app-sidebar-nav {
    grid-template-columns: 1fr;
  }

  .app-topbar .active-profile-context {
    gap: 8px;
  }

  .profile-switcher {
    min-width: 0;
  }
}

/* Current CRM visual layer lives in /static/refine-crm.css. Keep this file for legacy module and fallback rules. */

.hyperion-login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 24px;
  color: #172033;
  background: radial-gradient(circle at top right, #dff7f6 0, transparent 34%), #f4f7fb;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.hyperion-login-card {
  width: min(100%, 430px);
  padding: 42px;
  border: 1px solid #dbe5ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 22px 56px rgba(23, 32, 51, .12);
}

.hyperion-login-mark { width: 48px; height: 48px; padding: 8px; border: 1px solid #bfe3e4; border-radius: 12px; background: #effcfc; }
.hyperion-login-kicker { margin: 22px 0 6px; color: #087d78; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.hyperion-login-card h1 { margin: 0; font-size: 28px; letter-spacing: -.03em; }
.hyperion-login-card > p:not(.hyperion-login-kicker):not(.hyperion-login-error) { color: #5f7085; line-height: 1.55; }
.hyperion-google-login { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 48px; margin: 28px 0 16px; border: 1px solid #ccd9e6; border-radius: 9px; color: #172033; background: #fff; font-weight: 750; text-decoration: none; }
.hyperion-google-login:hover { border-color: #78c9c8; background: #f2fbfb; }
.hyperion-google-login svg { width: 20px; height: 20px; }
.hyperion-login-card small { display: block; color: #738196; line-height: 1.45; }
.hyperion-login-error { margin: 18px 0 0; padding: 10px 12px; border: 1px solid #f5c3c3; border-radius: 8px; color: #9c2c2c; background: #fff4f4; font-size: 14px; }
.reference-server-shell .argus-reference-frame { position: relative; }

#hyperion-shell-navigation-status.hyperion-shell-navigation-loading {
  position: fixed;
  z-index: 5000;
  top: 86px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(82vw, 420px);
  margin: 0;
  padding: 10px 14px;
  transform: translateX(-50%);
  color: #075f60;
  background: rgba(255, 255, 255, .96);
  border: 1px solid #a9dbda;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(5, 94, 96, .14);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
}

#hyperion-shell-navigation-status.hyperion-shell-navigation-loading::before {
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  content: "";
  border: 2px solid #bfe3e4;
  border-top-color: #087d78;
  border-radius: 50%;
  animation: hyperion-navigation-spin .7s linear infinite;
}

.reference-server-shell.hyperion-navigation-pending .server-app-content {
  cursor: progress;
}

.argus-app-nav .argus-nav-children a[data-navigation-pending]::after {
  width: 12px;
  height: 12px;
  margin-left: auto;
  content: "";
  border: 2px solid #bfe3e4;
  border-top-color: #087d78;
  border-radius: 50%;
  animation: hyperion-navigation-spin .7s linear infinite;
}

@keyframes hyperion-navigation-spin { to { transform: rotate(360deg); } }

#hyperion-shell-navigation-status.hyperion-shell-navigation-error {
  display: block;
  width: min(100%, 760px);
  margin: 0 auto 12px;
  padding: 12px 16px;
  color: #8a1c1c;
  background: #fff4f4;
  border: 1px solid #efb6b6;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
}
#hyperion-shell-navigation-status.hyperion-shell-navigation-error > p { margin: 0; }
#hyperion-shell-navigation-status .hyperion-shell-navigation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
#hyperion-shell-navigation-status .hyperion-shell-navigation-actions button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #d89999;
  border-radius: 7px;
  color: #7b1717;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 750;
}
#hyperion-shell-navigation-status .hyperion-shell-navigation-actions button:first-child {
  border-color: #a53636;
  color: #ffffff;
  background: #a53636;
}
#hyperion-shell-navigation-status .hyperion-shell-navigation-actions button:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 2px;
}
.server-mobile-nav-toggle { display: none !important; }
.server-mobile-nav-backdrop[hidden] { display: none !important; }
@media (max-width: 940px) {
  .server-mobile-nav-toggle { display: inline-flex !important; }
}
.under-development-watermark {
  position: absolute;
  z-index: 50;
  inset: 74px 0 0;
  display: grid;
  place-items: center;
  min-height: calc(100vh - 74px);
  padding: 32px;
  background: rgba(244, 247, 251, .62);
  backdrop-filter: blur(1px);
  cursor: not-allowed;
}

.under-development-watermark > div {
  max-width: 440px;
  padding: 26px 32px;
  border: 1px solid #a9dbda;
  border-radius: 14px;
  color: #075f60;
  text-align: center;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 42px rgba(5, 94, 96, .14);
}

.under-development-watermark p { margin: 0 0 6px; font-size: 24px; font-weight: 850; letter-spacing: -.02em; }
.under-development-watermark span { color: #54687c; line-height: 1.5; }
.hyperion-login-notice { margin: 18px 0 0; padding: 10px 12px; border: 1px solid #b9dfcf; border-radius: 8px; color: #176947; background: #effaf5; font-size: 14px; }
.hyperion-access-denied-icon { display: grid; place-items: center; width: 48px; height: 48px; margin: 0 0 22px; border: 1px solid #f0d2a7; border-radius: 12px; color: #8a5709; background: #fff8e8; }
.hyperion-access-denied-icon svg { width: 24px; height: 24px; }
.hyperion-access-actions { display: grid; gap: 10px; margin: 28px 0 18px; }
.hyperion-access-action { display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 18px; border: 1px solid #ccd9e6; border-radius: 9px; color: #172033; background: #fff; font-weight: 750; text-decoration: none; }
.hyperion-access-action:hover { border-color: #78c9c8; background: #f2fbfb; }
.hyperion-access-action.is-primary { border-color: #087d78; color: #fff; background: #087d78; }
.hyperion-access-action.is-primary:hover { border-color: #076963; background: #076963; }
.hyperion-access-logout { margin: 0; }
.hyperion-access-logout button { width: 100%; min-height: 44px; border: 0; color: #53657b; background: transparent; cursor: pointer; font: inherit; font-weight: 700; }
.hyperion-access-logout button:hover { color: #075f60; }
.hyperion-login-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: #7a8899; font-size: 12px; text-transform: uppercase; }
.hyperion-login-divider::before, .hyperion-login-divider::after { content: ""; flex: 1; height: 1px; background: #e1e8ef; }
.hyperion-password-login, .account-password-form { display: grid; gap: 14px; margin: 20px 0; }
.hyperion-password-login label, .account-password-form label { display: grid; gap: 6px; color: #435269; font-size: 13px; font-weight: 700; }
.hyperion-password-login input, .account-password-form input { min-height: 44px; padding: 9px 11px; border: 1px solid #ccd9e6; border-radius: 8px; color: #172033; background: #fff; font: inherit; }
.hyperion-password-login input:focus, .account-password-form input:focus { outline: 2px solid #98dddc; outline-offset: 1px; border-color: #4cafad; }
.hyperion-password-login button, .account-password-form button { min-height: 44px; border: 0; border-radius: 8px; color: #fff; background: #087d78; cursor: pointer; font: inherit; font-weight: 750; }
.hyperion-password-login button:hover, .account-password-form button:hover { background: #076963; }

.account-logout-form { margin-top: 20px; }
.account-logout-form button { border: 1px solid #d6e0ea; border-radius: 7px; padding: 9px 13px; color: #4d5d73; background: #fff; cursor: pointer; font: inherit; font-size: 14px; font-weight: 700; }
.account-logout-form button:hover { color: #075f60; border-color: #9fd6d5; background: #f2fbfb; }
.account-password-form { max-width: 520px; }
.account-password-success { padding: 10px 12px; border: 1px solid #b9dfcf; border-radius: 8px; color: #176947; background: #effaf5; }

@media (max-width: 720px) {
  .hyperion-login-card { padding: 30px 24px; }
}
.hyperion-mutation-status {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 10000;
  max-width: min(24rem, calc(100vw - 2rem));
  padding: 0.65rem 0.85rem;
  border: 1px solid #b9d7d4;
  border-radius: 0.7rem;
  background: #f4fbfa;
  color: #075f5a;
  box-shadow: 0 10px 30px rgb(15 55 70 / 15%);
  font-size: 0.84rem;
  font-weight: 700;
}

.hyperion-mutation-status[data-state="saving"]::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: -0.08rem;
  animation: hyperion-mutation-spin 0.7s linear infinite;
}

.hyperion-mutation-status[data-state="error"] {
  border-color: #efb1b1;
  background: #fff5f5;
  color: #9b1c1c;
}

form[data-hyperion-mutation-pending="true"] {
  cursor: progress;
}

@keyframes hyperion-mutation-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hyperion-mutation-status[data-state="saving"]::before { animation: none; }
}
