:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --line: #d8dee8;
  --line-strong: #b8c2d2;
  --text: #162033;
  --muted: #607086;
  --nav: #172238;
  --nav-2: #22314d;
  --blue: #2367b5;
  --green: #207a4f;
  --amber: #a16207;
  --red: #b42318;
  --violet: #6d4bc1;
  --gray: #697386;
  --shadow: 0 18px 50px rgba(20, 32, 52, 0.14);
  --radius: 8px;
  --sidebar-width: 264px;
  --sidebar-wide-width: min(520px, 42vw);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
  overflow-x: hidden;
}

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

button {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.app-shell.is-sidebar-wide {
  --sidebar-active-width: var(--sidebar-wide-width);
}

.sidebar {
  position: sticky;
  top: 0;
  width: var(--sidebar-active-width);
  max-width: calc(100vw - 28px);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 12px 10px;
  color: #f8fafc;
  background: var(--nav);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 20;
}

.brand {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 4px 6px 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: #e8f1ff;
  color: #163c70;
  font-weight: 800;
  font-size: 14px;
}

.brand-title {
  font-size: 15px;
  font-weight: 750;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand-subtitle {
  color: #aab8cc;
  font-size: 12px;
  margin-top: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button.sidebar-close-button {
  display: none;
}

.nav-list {
  display: grid;
  flex: 0 0 auto;
  gap: 4px;
}

.sidebar-nav-explorer {
  flex: 1 1 0;
  min-height: 0;
  margin-top: 12px;
  overflow: hidden;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #d8e0ec;
  background: transparent;
  text-align: left;
}

.nav-item svg,
.icon-button svg,
.primary-button svg,
.ghost-button svg,
.search-box svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.nav-item:hover,
.nav-item.is-active {
  color: #ffffff;
  background: var(--nav-2);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-footer {
  margin-top: auto;
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.sidebar-nav-explorer + .sidebar-footer {
  flex: 0 0 auto;
  margin-top: 12px;
}

.small-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar .small-label {
  color: #aab8cc;
}

.target-date {
  margin-top: 4px;
  color: #ffffff;
  font-size: 19px;
  font-weight: 780;
}

.icon-button.sidebar-explorer-size-toggle {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  min-height: 28px;
  padding: 0;
  color: #d8e0ec;
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(255, 255, 255, 0.1);
}

.icon-button.sidebar-explorer-size-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
}

.icon-button.sidebar-explorer-size-toggle svg {
  width: 14px;
  height: 14px;
}

.workspace {
  min-width: 0;
}

.icon-button.workspace-menu-toggle {
  display: none;
  margin: 14px 14px 0 auto;
}

.phase-pill,
.date-pill,
.blocker-pill,
.status-badge,
.priority-badge,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.phase-pill {
  color: #173f6e;
  background: #dcecff;
}

.date-pill {
  color: #345063;
  background: #e7edf5;
}

.blocker-pill {
  color: #7a271a;
  background: #fee4df;
}

.primary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 740;
}

.primary-button {
  padding: 0 13px;
  color: #ffffff;
  background: var(--blue);
}

.primary-button:hover {
  background: #1d579c;
}

.ghost-button {
  padding: 0 12px;
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.ghost-button:hover {
  border-color: var(--line-strong);
  background: #f8fafc;
}

.primary-button:disabled,
.ghost-button:disabled,
.icon-button:disabled {
  opacity: 0.48;
  cursor: default;
  box-shadow: none;
}

.icon-button {
  width: 38px;
  padding: 0;
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}

.icon-button.mobile-menu {
  display: none;
}

.main-content {
  min-width: 0;
  padding: 22px 22px 96px;
}

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

.view-title h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.18;
}

.view-title p {
  max-width: 900px;
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.summary-card,
.panel,
.record-card,
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.summary-card {
  min-height: 110px;
  padding: 16px;
}

.summary-value {
  margin-top: 12px;
  font-size: 28px;
  font-weight: 820;
}

.summary-note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.gantt-breadcrumb-strip {
  margin-bottom: 14px;
}

.gantt-reading-note {
  margin-bottom: 14px;
  padding: 12px 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
  font-size: 13px;
  line-height: 1.5;
}

.gantt-reading-note strong {
  color: var(--text);
}

.overview-intro-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.overview-intro-grid .panel {
  margin-bottom: 0;
}

.overview-card-body {
  display: grid;
  gap: 10px;
}

.overview-card-body p {
  margin: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.52;
}

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

.overview-list-heading h3 {
  margin: 0;
  color: #40516a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.overview-list-heading p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.overview-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.overview-list-item + .overview-list-item {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.overview-list-item .record-link {
  font-size: 13px;
}

.overview-list-item .table-subtext {
  margin-top: 2px;
}

.overview-filter-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.overview-filter-stack .gantt-reading-note,
.overview-filter-stack .filter-row {
  margin-bottom: 0;
}

.gantt-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow-x: auto;
  padding: 2px 0 4px;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.gantt-breadcrumbs::-webkit-scrollbar {
  display: none;
}

.gantt-crumb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 6px 16px rgba(20, 32, 52, 0.06);
}

.gantt-crumb-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 780;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.gantt-crumb-value {
  color: var(--text);
  font-size: 13px;
  font-weight: 820;
}

.gantt-crumb-separator {
  color: var(--muted);
  font-size: 13px;
  font-weight: 780;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
}

.dashboard-stack {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.focus-compact-stack {
  display: grid;
  gap: 12px;
}

.priority-queue-page {
  margin-top: 2px;
  gap: 10px;
  max-height: min(72vh, 760px);
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.path-node.priority-queue-item {
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
  padding: 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}

.path-node.priority-queue-item:focus-visible {
  outline: 2px solid #9cc7fb;
  outline-offset: 2px;
  border-color: var(--line-strong);
  background: #ffffff;
}

.priority-queue-item .path-index {
  width: 26px;
  height: 26px;
  margin-top: 1px;
  font-size: 12px;
}

.priority-queue-body {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.priority-queue-heading {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.priority-queue-item .path-title {
  font-size: 15px;
  line-height: 1.25;
}

.priority-queue-item .path-meta {
  font-size: 11px;
  line-height: 1.3;
}

.priority-queue-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 7px 12px;
  margin-top: 7px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.priority-queue-detail {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.priority-queue-detail-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.priority-queue-detail-value {
  color: #23334a;
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.priority-queue-detail-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.priority-queue-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #35506a;
  background: #f1f5fa;
  text-transform: lowercase;
}

.priority-queue-action svg {
  width: 12px;
  height: 12px;
}

.priority-queue-action[data-action="unblock"] {
  color: #8b1d14;
  background: #fee4df;
  border-color: #f7cfc6;
}

.priority-queue-action[data-action="decide"] {
  color: #7a4a00;
  background: #fef0c7;
  border-color: #f6dda3;
}

.priority-queue-action[data-action="shape"] {
  color: #5f2f8d;
  background: #f0e8ff;
  border-color: #dcc8ff;
}

.priority-queue-action[data-action="do"] {
  color: #174b83;
  background: #dcecff;
  border-color: #c6dcfb;
}

.priority-queue-action[data-action="review"] {
  color: #075e3b;
  background: #dff5e8;
  border-color: #c3ebd3;
}

.priority-queue-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: start;
  justify-content: flex-end;
  gap: 4px;
}

.priority-queue-tags > * {
  min-height: 22px;
  padding: 0 7px;
  font-size: 11px;
}

.focus-list-group {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}

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

.focus-list-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 15px;
}

.focus-list-heading h2 svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

.focus-list-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.focus-list-heading .tag {
  flex: 0 0 auto;
}

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

.focus-list-item {
  background: var(--surface);
}

.focus-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.focus-shortcut {
  position: relative;
  min-height: 104px;
  padding: 14px 36px 14px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.focus-shortcut.is-clickable {
  cursor: pointer;
}

.focus-shortcut.is-clickable:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px rgba(20, 32, 52, 0.08);
}

.shortcut-dot {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gray);
}

.shortcut-dot[data-tone="green"] {
  background: var(--green);
}

.shortcut-dot[data-tone="blue"] {
  background: var(--blue);
}

.shortcut-dot[data-tone="amber"] {
  background: var(--amber);
}

.shortcut-dot[data-tone="red"] {
  background: var(--red);
}

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

.session-steps div {
  min-height: 140px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}

.session-steps span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 10px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.session-steps strong {
  display: block;
  font-size: 14px;
}

.session-steps p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.panel {
  min-width: 0;
  padding: 16px;
  margin-bottom: 16px;
}

.collapsible-panel {
  padding: 0;
  overflow: hidden;
}

.collapsible-panel[open] .collapse-indicator {
  transform: rotate(180deg);
}

.collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  list-style: none;
  cursor: pointer;
}

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

.collapsible-summary h2 {
  margin: 0;
  font-size: 17px;
}

.collapsible-summary p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.collapsible-summary:hover {
  background: #fbfcfe;
}

.collapse-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  transition: transform 160ms ease, color 160ms ease, border-color 160ms ease;
}

.collapse-indicator svg {
  width: 17px;
  height: 17px;
}

.collapsible-content {
  padding: 0 16px 16px;
}

.dashboard-stack .collapsible-panel,
.dashboard-grid .collapsible-panel {
  margin-bottom: 0;
}

.files-view-stack {
  gap: 18px;
}

.sidebar-file-explorer,
.files-preview-panel {
  height: 100%;
}

.sidebar-file-explorer {
  display: grid;
  gap: 12px;
}

.sidebar-explorer-heading,
.explorer-preview-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.sidebar-explorer-title {
  font-size: 18px;
  font-weight: 800;
}

.sidebar-explorer-count {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.explorer-tree {
  min-height: 0;
  max-height: min(72vh, 760px);
  overflow: auto;
  padding: 2px 4px 2px 0;
}

.explorer-tree-node,
.explorer-tree-children {
  display: grid;
  gap: 2px;
}

.explorer-tree-folder,
.explorer-tree-file {
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--text);
  background: transparent;
  text-align: left;
}

.explorer-tree-folder {
  display: grid;
  grid-template-columns: 16px 18px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 6px 8px 6px calc(8px + var(--level-offset, 0px));
  background: #edf1f6;
}

.explorer-tree-file {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 7px 8px 7px calc(8px + var(--level-offset, 0px));
  background: #f7f9fc;
}

.explorer-tree-folder svg,
.explorer-tree-file svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.explorer-tree-caret {
  transform: rotate(0deg);
  transform-origin: center;
  transition: transform 140ms ease;
}

.explorer-tree-folder[aria-expanded="true"] .explorer-tree-caret {
  transform: rotate(90deg);
}

.explorer-tree-folder:hover,
.explorer-tree-file:hover {
  background: #eef2f7;
  border-color: var(--line);
}

.explorer-tree-file[aria-pressed="true"] {
  color: #173f6e;
  background: #dcecff;
  border-color: #b8d4f7;
}

.explorer-tree-name,
.explorer-tree-path {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.explorer-tree-name {
  font-size: 13px;
  font-weight: 740;
}

.explorer-tree-file-copy {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.explorer-tree-path {
  color: var(--muted);
  font-size: 11px;
}

.explorer-tree-count,
.explorer-tree-file-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 740;
  white-space: nowrap;
}

.sidebar-nav-file-explorer {
  height: 100%;
  min-height: 0;
  gap: 7px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  grid-template-rows: auto minmax(0, 1fr);
}

.sidebar-nav-file-explorer .sidebar-explorer-heading {
  align-items: center;
  padding: 0 0 1px;
}

.sidebar-nav-file-explorer .sidebar-explorer-title {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-nav-file-explorer .sidebar-explorer-count {
  color: #aab8cc;
  font-size: 11px;
}

.sidebar-nav-file-explorer .explorer-tree {
  max-height: none;
  overflow: auto;
  padding: 1px 3px 1px 0;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

.sidebar-nav-file-explorer .explorer-tree-node,
.sidebar-nav-file-explorer .explorer-tree-children {
  width: max-content;
  min-width: 100%;
  gap: 1px;
}

.sidebar-nav-file-explorer .explorer-tree-folder,
.sidebar-nav-file-explorer .explorer-tree-file {
  display: flex;
  align-items: center;
  width: max-content;
  min-width: 100%;
  color: #d8e0ec;
  border-radius: 6px;
  white-space: nowrap;
  padding-right: 6px;
  padding-left: calc(4px + var(--level-offset, 0px));
}

.sidebar-nav-file-explorer .explorer-tree-folder {
  gap: 4px;
  min-height: 23px;
  padding-top: 2px;
  padding-bottom: 2px;
  background: rgba(255, 255, 255, 0.045);
}

.sidebar-nav-file-explorer .explorer-tree-file {
  gap: 5px;
  min-height: 23px;
  padding-top: 2px;
  padding-bottom: 2px;
  background: rgba(255, 255, 255, 0.065);
}

.sidebar-nav-file-explorer .explorer-tree-folder svg,
.sidebar-nav-file-explorer .explorer-tree-file svg {
  width: 12px;
  height: 12px;
}

.sidebar-nav-file-explorer .explorer-tree-folder:hover,
.sidebar-nav-file-explorer .explorer-tree-file:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.12);
}

.sidebar-nav-file-explorer .explorer-tree-file[aria-pressed="true"] {
  color: #ffffff;
  background: #2a4167;
  border-color: rgba(189, 213, 247, 0.28);
  box-shadow: inset 3px 0 0 #8ab9ff;
}

.sidebar-nav-file-explorer .explorer-tree-name {
  color: inherit;
  flex: 0 0 auto;
  overflow: visible;
  text-overflow: clip;
  font-size: 11px;
  font-weight: 720;
}

.sidebar-nav-file-explorer .explorer-tree-count {
  flex: 0 0 auto;
  margin-left: 4px;
  color: #8190a6;
  font-size: 10px;
}

.sidebar-nav-file-explorer .explorer-tree-file-copy {
  display: block;
  flex: 0 0 auto;
}

.sidebar-nav-file-explorer .explorer-tree-file-meta,
.sidebar-nav-file-explorer .explorer-tree-path {
  display: none;
}

.files-preview-panel .panel-header {
  margin-bottom: 14px;
}

.files-preview-panel {
  min-height: 420px;
}

.explorer-preview-panel {
  display: grid;
  gap: 14px;
}

.explorer-preview-topline {
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.explorer-preview-title h3 {
  margin: 2px 0 0;
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.explorer-file-path {
  margin-top: 5px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.explorer-file-timestamp {
  margin-top: 6px;
  color: #56677f;
  font-size: 12px;
  font-weight: 600;
}

.explorer-preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.explorer-action-link,
.explorer-action-button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  min-width: 116px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #fbfcfe;
  font-family: inherit;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.explorer-download-menu {
  position: relative;
}

.explorer-download-summary {
  list-style: none;
  cursor: pointer;
}

.explorer-download-summary::-webkit-details-marker {
  display: none;
}

.explorer-download-summary-formats {
  color: #60738c;
  font-size: 11px;
  font-weight: 700;
}

.explorer-download-summary-caret {
  transition: transform 140ms ease;
}

.explorer-download-menu[open] .explorer-download-summary {
  color: #173f6e;
  background: #eef4fb;
  border-color: #b8d4f7;
  box-shadow: inset 0 0 0 1px #cfe1f7;
}

.explorer-download-menu[open] .explorer-download-summary-caret {
  transform: rotate(180deg);
}

.explorer-download-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 8;
  display: grid;
  gap: 4px;
  min-width: 100%;
  padding: 6px;
  border: 1px solid #c7d4e4;
  border-radius: calc(var(--radius) + 2px);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(30, 55, 90, 0.18);
}

.explorer-download-menu-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: calc(var(--radius) - 2px);
  color: var(--text);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.explorer-download-menu-item:hover {
  color: var(--text);
  background: #eef4fb;
  text-decoration: none;
}

.explorer-download-menu-item svg {
  width: 15px;
  height: 15px;
}

.explorer-action-link:hover,
.explorer-action-button:hover {
  color: var(--text);
  background: #eef4fb;
  border-color: #c7d4e4;
  text-decoration: none;
}

.explorer-action-link svg,
.explorer-action-button svg {
  width: 15px;
  height: 15px;
}

.explorer-conversion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.explorer-action-button.is-disabled {
  color: #8190a6;
  background: #eef2f7;
  border-color: var(--line);
  cursor: not-allowed;
  opacity: 0.82;
}

.explorer-action-button.is-disabled:hover {
  color: #8190a6;
  background: #eef2f7;
  border-color: var(--line);
}

.explorer-action-button[aria-pressed="true"] {
  color: #173f6e;
  background: #eef4fb;
  border-color: #b8d4f7;
  box-shadow: inset 0 0 0 1px #cfe1f7;
}

.explorer-preview-note {
  color: var(--muted);
  font-size: 12px;
}

.explorer-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.explorer-preview-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  color: #40516a;
  background: #eef2f7;
  font-size: 12px;
  font-weight: 760;
}

.explorer-text-preview {
  max-height: min(70vh, 780px);
  margin: 0;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #20314b;
  background: #fbfcfe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.docx-preview-document {
  max-height: min(70vh, 780px);
  margin: 0;
  overflow: auto;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #20314b;
  background: #fbfcfe;
  line-height: 1.5;
}

.docx-preview-document > :first-child {
  margin-top: 0;
}

.docx-preview-document > :last-child {
  margin-bottom: 0;
}

.docx-preview-document h1,
.docx-preview-document h2,
.docx-preview-document h3,
.docx-preview-document h4,
.docx-preview-document h5,
.docx-preview-document h6 {
  line-height: 1.25;
}

.docx-preview-document table {
  min-width: 0;
  margin: 14px 0;
  border: 1px solid var(--line);
}

.docx-preview-document img {
  max-width: 100%;
  height: auto;
}

.explorer-image-preview,
.explorer-pdf-preview {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}

.explorer-image-preview {
  max-height: 72vh;
  object-fit: contain;
}

.explorer-pdf-preview {
  min-height: 72vh;
}

.explorer-audio-preview {
  width: 100%;
}

.explore-view-stack {
  gap: 18px;
}

.explore-panel {
  overflow: hidden;
}

.explore-panel-header {
  align-items: flex-start;
}

.explore-mode-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #eef2f7;
}

.explore-mode-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 11px;
  border: 0;
  color: #40516a;
  background: transparent;
  font-size: 13px;
  font-weight: 780;
}

.explore-mode-button + .explore-mode-button {
  border-left: 1px solid var(--line);
}

.explore-mode-button[aria-pressed="true"] {
  color: #ffffff;
  background: var(--blue);
}

.explore-mode-button svg,
.explore-clear-button svg,
.explore-edge-view-button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.explore-graph-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.explore-graph-controls button {
  display: inline-grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #40516a;
  background: transparent;
}

.explore-graph-controls button:hover,
.explore-graph-controls button:focus-visible {
  color: #173f6e;
  border-color: #bfd4ef;
  background: #e8f1ff;
}

.explore-graph-controls svg {
  width: 15px;
  height: 15px;
}

.explore-graph-controls span {
  min-width: 43px;
  color: #40516a;
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
  text-align: center;
}

.explore-filter-controls {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.explore-filter-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.explore-filter-toggle,
.explore-tag-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.explore-filter-toggle {
  min-height: 30px;
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
}

.explore-filter-toggle input,
.explore-tag-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--blue);
}

.explore-filter-summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.explore-clear-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  margin-left: auto;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #40516a;
  background: var(--surface);
  font-size: 12px;
  font-weight: 780;
}

.explore-clear-button:disabled {
  opacity: 0.48;
  cursor: default;
}

.explore-tag-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: start;
  gap: 9px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.explore-tag-group {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e1e7f0;
  border-radius: var(--radius);
  background: var(--surface);
}

.explore-tag-group.is-selected {
  border-color: #9bbce5;
  box-shadow: inset 0 0 0 1px #cfe1f7;
}

.explore-tag-group-title {
  margin-bottom: 7px;
  color: #40516a;
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
}

.explore-tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.explore-tag-option {
  min-width: 0;
  min-height: 28px;
  padding: 0 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #40516a;
  background: #fbfcfe;
  font-size: 12px;
  font-weight: 740;
}

.explore-tag-option.is-selected {
  color: #173f6e;
  border-color: #9bbce5;
  background: #e8f1ff;
}

.explore-tag-count {
  color: var(--muted);
  font-size: 11px;
}

.explore-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 12px;
}

.explore-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #40516a;
  background: #fbfcfe;
  font-size: 12px;
  font-weight: 740;
}

.explore-legend-item.is-active {
  color: #173f6e;
  border-color: #9bbce5;
  background: #e8f1ff;
}

.explore-color-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
}

.explore-graph-wrap {
  position: relative;
  width: 100%;
  max-height: min(72vh, 780px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}

.explore-graph {
  display: block;
  min-width: 100%;
}

.explore-concept-graph-wrap {
  overflow: hidden;
}

.explore-concept-graph {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.explore-concept-graph:active {
  cursor: grabbing;
}

.explore-edges line {
  stroke-width: 1.25;
  stroke-opacity: 0.28;
}

.explore-edge.is-selectable {
  cursor: pointer;
}

.explore-edge.is-selected > .explore-linear-edge,
.explore-edge.is-selected > .explore-concept-edge {
  stroke-width: 2.6;
  stroke-opacity: 0.86;
}

.explore-edge-hit-target {
  cursor: pointer;
  pointer-events: stroke;
  stroke: transparent;
  stroke-width: 14;
  stroke-opacity: 0;
}

.explore-edge-hit-target:focus-visible {
  outline: none;
  stroke: #2563eb;
  stroke-opacity: 0.42;
}

.explore-concept-edge {
  stroke-width: 1.4;
  stroke-opacity: 0.2;
}

.explore-concept-edge.is-semantic {
  stroke-dasharray: 4 4;
  stroke-opacity: 0.34;
}

.explore-concept-edge.is-highlighted {
  stroke-width: 2.4;
  stroke-opacity: 0.78;
}

.explore-cluster circle {
  opacity: 0.075;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-opacity: 0.12;
}

.explore-cluster.is-active circle {
  opacity: 0.16;
  stroke-opacity: 0.5;
}

.explore-cluster text {
  fill: #607086;
  font-size: 11px;
  font-weight: 820;
  text-anchor: middle;
  text-transform: uppercase;
}

.explore-node circle {
  stroke: #ffffff;
  stroke-width: 1.5;
}

.explore-node.is-folder circle {
  stroke-width: 2;
}

.explore-node.is-concept circle {
  stroke-width: 1.7;
}

.explore-node.is-concept.is-selectable {
  cursor: pointer;
}

.explore-node.is-concept.is-selectable:focus {
  outline: none;
}

.explore-node.is-concept.is-selectable:focus-visible circle,
.explore-node.is-concept.is-selected circle {
  stroke: #172238;
  stroke-width: 2.8;
}

.explore-node.is-concept.is-highlighted circle {
  stroke: #172238;
  stroke-width: 2.5;
}

.explore-node text {
  fill: #23334a;
  font-size: 11px;
  font-weight: 690;
  paint-order: stroke;
  pointer-events: none;
  stroke: #fbfcfe;
  stroke-linejoin: round;
  stroke-width: 3px;
}

.explore-node.is-folder text {
  font-size: 12px;
  font-weight: 820;
}

.explore-edge-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.explore-edge-selection-item {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  padding: 5px 6px 5px 9px;
  border: 1px solid #dce5f1;
  border-radius: var(--radius);
  background: var(--surface);
}

.explore-edge-selection-filename {
  min-width: 0;
  max-width: min(62vw, 460px);
  color: var(--text);
  font-size: 12px;
  font-weight: 780;
  overflow-wrap: anywhere;
}

.explore-edge-view-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  border: 1px solid #b9cde8;
  border-radius: 6px;
  color: #173f6e;
  background: #e8f1ff;
  font-size: 12px;
  font-weight: 820;
}

.explore-edge-view-button:hover,
.explore-edge-view-button:focus-visible {
  border-color: #7da7dc;
  background: #d9eaff;
}

.collapsible-body {
  padding: 0 22px 22px;
}

@media (max-width: 980px) {
  .explore-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .explore-mode-toggle {
    width: 100%;
    min-width: 0;
  }

  .explorer-preview-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .explorer-preview-actions {
    justify-content: flex-start;
  }
}

.merged-deliverables-panel {
  margin-top: 16px;
}

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

.panel-header h2 {
  margin: 0;
  font-size: 17px;
}

.panel-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.edge-chat {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 35;
}

.edge-chat-launcher {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  color: #ffffff;
  background: var(--blue);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.edge-chat-launcher:hover {
  background: #1f5fa7;
}

.edge-chat-launcher svg {
  width: 18px;
  height: 18px;
}

.edge-chat-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(420px, calc(100vw - 28px));
  height: min(640px, calc(100vh - 40px));
  min-width: 0;
  max-width: calc(100vw - 28px);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.edge-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  color: #ffffff;
  background: var(--nav);
}

.edge-chat-header > div:first-child {
  min-width: 0;
}

.edge-chat-title {
  font-size: 15px;
  font-weight: 850;
}

.edge-chat-context {
  max-width: 100%;
  margin-top: 3px;
  overflow: hidden;
  color: #bac7d8;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-chat-header-actions {
  display: flex;
  gap: 6px;
}

.icon-button.edge-chat-icon-button {
  width: 34px;
  min-height: 34px;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.icon-button.edge-chat-icon-button:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
}

.edge-chat-notice {
  padding: 9px 14px;
  color: #40516a;
  background: #edf3fb;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.35;
}

.edge-chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  min-width: 0;
  padding: 14px;
  overflow-x: hidden;
  overflow-y: auto;
  background: #f8fafc;
}

.edge-chat-message {
  display: grid;
  gap: 5px;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.edge-chat-message.is-user {
  color: #ffffff;
  background: #234c85;
  border-color: #234c85;
}

.edge-chat-message-role {
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.edge-chat-message.is-assistant .edge-chat-message-role {
  color: var(--blue);
}

.edge-chat-message.is-user .edge-chat-message-role {
  color: #d8e8ff;
}

.edge-chat-message-content {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  font-size: 13px;
  line-height: 1.48;
}

.edge-chat-message-content pre,
.edge-chat-message-content code {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.edge-chat-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  max-width: 100%;
  margin-top: 3px;
}

.edge-chat-sources button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  padding: 3px 6px;
  overflow: hidden;
  color: #34455e;
  background: #edf3fb;
  border: 1px solid #cfdae9;
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.edge-chat-sources button:hover {
  color: #143d69;
  background: #dbeafe;
  border-color: #9fbbe4;
}

.edge-chat-thinking {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  color: var(--muted);
  font-size: 13px;
}

.edge-chat-thinking svg {
  width: 16px;
  height: 16px;
  animation: edge-chat-spin 900ms linear infinite;
}

.edge-chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 8px;
  align-items: end;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.edge-chat-composer textarea {
  width: 100%;
  min-height: 44px;
  max-height: 110px;
  resize: vertical;
  padding: 9px 10px;
  color: var(--text);
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.35;
}

.icon-button.edge-chat-send {
  width: 40px;
  min-height: 40px;
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.icon-button.edge-chat-send:hover {
  background: #1f5fa7;
}

@keyframes edge-chat-spin {
  to {
    transform: rotate(360deg);
  }
}

.critical-path {
  display: grid;
  gap: 10px;
}

.path-node {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfe;
}

.path-index {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color: #ffffff;
  background: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.path-title,
.record-title {
  font-weight: 760;
  overflow-wrap: anywhere;
}

.path-meta,
.record-meta,
.table-subtext {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.participant-quick-links {
  margin-bottom: 0;
}

.participant-quick-links-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.participant-quick-links-row {
  display: grid;
  grid-template-columns: minmax(140px, 0.26fr) minmax(0, 1fr);
  min-width: 0;
}

.participant-quick-links-row + .participant-quick-links-row {
  border-top: 1px solid var(--line);
}

.participant-quick-links-row > div {
  min-width: 0;
  padding: 11px 12px;
}

.participant-quick-links-head {
  color: var(--muted);
  background: #f7f9fc;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.participant-quick-links-person {
  color: #31435c;
  background: #fbfcfe;
  font-size: 13px;
  font-weight: 800;
}

.participant-quick-links-links {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-left: 1px solid var(--line);
}

.participant-quick-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  max-width: 100%;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #fbfcfe;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 740;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.participant-quick-link:hover,
.participant-quick-link:focus-visible,
.participant-quick-link.is-active {
  border-color: #b8d4f7;
  color: #173f6e;
  background: #e8f1ff;
  text-decoration: none;
}

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

.deliverable-entry {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.deliverable-entry-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.deliverable-entry-header .status-badge {
  justify-self: end;
}

.deliverable-entry-title-block {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.deliverable-entry-title {
  font-size: 15px;
  line-height: 1.25;
}

.deliverable-entry-title-block p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.deliverable-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 8px 12px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.deliverable-detail {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.deliverable-detail dt {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.deliverable-detail dd {
  display: grid;
  justify-items: start;
  gap: 3px;
  margin: 0;
  color: #23334a;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.deliverable-detail-note {
  color: var(--muted);
}

.deliverable-source-badge {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid #c7ddf7;
  border-radius: 999px;
  color: #174b83;
  background: #dcecff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 740;
  line-height: 1.2;
  text-align: left;
  overflow-wrap: anywhere;
}

.deliverable-source-badge:hover,
.deliverable-source-badge:focus-visible,
.deliverable-source-badge.is-active {
  color: #173f6e;
  background: #eef4fb;
  border-color: #9fc5f0;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

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

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}

th {
  color: #40516a;
  background: #f1f5fa;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #fbfcfe;
}

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

.recent-edit-item {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) minmax(180px, auto);
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #fbfcfe;
  text-align: left;
}

.recent-edit-item:hover {
  border-color: var(--line-strong);
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(20, 32, 52, 0.08);
}

.recent-edit-item.is-active {
  color: #173f6e;
  background: #dcecff;
  border-color: #b8d4f7;
}

.recent-edit-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--blue);
  background: #e8f1ff;
}

.recent-edit-icon svg {
  width: 17px;
  height: 17px;
}

.recent-edit-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.recent-edit-title {
  font-size: 13px;
  font-weight: 760;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-edit-path {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-edit-meta {
  display: grid;
  gap: 3px;
  justify-items: end;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.record-link {
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-weight: 760;
}

.record-link:hover {
  color: var(--blue);
}

.status-badge[data-tone="green"],
.priority-badge[data-tone="green"] {
  color: #075e3b;
  background: #dff5e8;
}

.status-badge[data-tone="blue"],
.priority-badge[data-tone="blue"] {
  color: #174b83;
  background: #dcecff;
}

.status-badge[data-tone="amber"],
.priority-badge[data-tone="amber"] {
  color: #7a4a00;
  background: #fef0c7;
}

.status-badge[data-tone="red"],
.priority-badge[data-tone="red"] {
  color: #8b1d14;
  background: #fee4df;
}

.status-badge[data-tone="violet"],
.priority-badge[data-tone="violet"] {
  color: #4b318a;
  background: #ece6ff;
}

.status-badge[data-tone="gray"],
.priority-badge[data-tone="gray"] {
  color: #4b5565;
  background: #e7edf5;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.filter-row label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.filter-row select {
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
}

.board {
  display: grid;
  grid-template-columns: repeat(6, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.board-column {
  min-width: 220px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f1f5fa;
}

.board-column h3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #40516a;
}

.record-stack {
  display: grid;
  gap: 10px;
}

.record-card {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.compact-card {
  gap: 7px;
}

.record-card.is-clickable {
  cursor: pointer;
}

.record-card.is-clickable:hover {
  border-color: var(--line-strong);
  box-shadow: 0 8px 24px rgba(20, 32, 52, 0.08);
}

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

.tag {
  color: #40516a;
  background: #edf2f7;
  min-height: 22px;
  font-size: 11px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hover-card {
  position: fixed;
  top: -9999px;
  left: -9999px;
  z-index: 35;
  width: min(380px, calc(100vw - 24px));
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(18, 26, 40, 0.96);
  color: #f8fbff;
  box-shadow: 0 18px 34px rgba(9, 16, 29, 0.28);
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease;
}

.hover-card.is-visible {
  opacity: 1;
}

.hover-card[data-tone="green"] {
  border-color: rgba(121, 218, 168, 0.58);
}

.hover-card[data-tone="blue"] {
  border-color: rgba(128, 188, 255, 0.58);
}

.hover-card[data-tone="amber"] {
  border-color: rgba(255, 207, 107, 0.58);
}

.hover-card[data-tone="red"] {
  border-color: rgba(255, 145, 128, 0.62);
}

.hover-card[data-tone="violet"] {
  border-color: rgba(198, 171, 255, 0.6);
}

.hover-card[data-tone="gray"] {
  border-color: rgba(214, 223, 238, 0.42);
}

.hover-card-eyebrow {
  color: rgba(248, 251, 255, 0.72);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hover-card-title {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.35;
}

.hover-card-rows {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.hover-card-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.hover-card-row-label {
  color: rgba(248, 251, 255, 0.7);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hover-card-row-value {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.4;
}

.hover-card-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(248, 251, 255, 0.86);
  font-size: 12px;
  line-height: 1.45;
}

.gantt-proposal-area-tag {
  border: 1px solid transparent;
  cursor: help;
}

.gantt-proposal-area-tag[data-tone="green"] {
  color: #075e3b;
  background: #dff5e8;
  border-color: #b7e2c8;
}

.gantt-proposal-area-tag[data-tone="blue"] {
  color: #174b83;
  background: #dcecff;
  border-color: #b8d4ff;
}

.gantt-proposal-area-tag[data-tone="amber"] {
  color: #7a4a00;
  background: #fef0c7;
  border-color: #f4d7a0;
}

.gantt-proposal-area-tag[data-tone="red"] {
  color: #8b1d14;
  background: #fee4df;
  border-color: #f7b5a9;
}

.gantt-proposal-area-tag[data-tone="violet"] {
  color: #4b318a;
  background: #ece6ff;
  border-color: #d1c0ff;
}

.gantt-proposal-area-tag[data-tone="gray"] {
  color: #4b5565;
  background: #e7edf5;
  border-color: #cfd7e3;
}

.gantt-shell {
  display: grid;
  gap: 14px;
  min-width: 0;
  max-width: 100%;
}

.gantt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.gantt-toolbar-copy {
  min-width: 0;
}

.gantt-scroll-hint {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.gantt-zoom-controls {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.gantt-zoom-button {
  min-width: 40px;
  padding: 0 12px;
  font-size: 17px;
  font-weight: 780;
}

.gantt-zoom-readout {
  min-width: 72px;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}

.gantt-secondary-stack {
  margin-top: 18px;
}

.gantt-frame {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(20, 32, 52, 0.06);
}

.gantt-scroller {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scrollbar-width: thin;
  cursor: grab;
}

.gantt-scroller.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.gantt-scroller.is-dragging * {
  cursor: grabbing !important;
  user-select: none;
}

.gantt-table {
  --gantt-lane-width: 220px;
  --gantt-month-width: 88px;
  width: max(100%, calc(var(--gantt-lane-width) + var(--gantt-month-count) * var(--gantt-month-width)));
  min-width: 0;
}

.gantt-header-row,
.gantt-row {
  display: grid;
  grid-template-columns: var(--gantt-lane-width) minmax(0, 1fr);
}

.gantt-header-row {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.gantt-row + .gantt-row {
  border-top: 1px solid var(--line);
}

.gantt-corner,
.gantt-lane-label {
  z-index: 2;
  padding: 14px 16px;
  background: var(--surface);
  border-right: 1px solid var(--line);
}

.gantt-corner {
  z-index: 3;
}

.gantt-range {
  margin-top: 6px;
  color: var(--text);
  font-size: 13px;
  font-weight: 780;
}

.gantt-lane-title {
  font-weight: 790;
}

.gantt-lane-subtitle {
  margin-top: 8px;
  color: #31445e;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.35;
}

.gantt-lane-proposal-areas {
  margin-top: 5px;
}

.proposal-area-phase-list {
  margin-top: 0;
}

.gantt-axis,
.gantt-track {
  position: relative;
}

.gantt-axis {
  min-height: 58px;
  background: #fbfcff;
}

.gantt-axis-month,
.gantt-track-month {
  position: absolute;
  top: 0;
  bottom: 0;
  border-left: 1px solid var(--line);
}

.gantt-axis-month.is-alt,
.gantt-track-month.is-alt {
  background: rgba(35, 103, 181, 0.04);
}

.gantt-axis-month span {
  position: absolute;
  top: 12px;
  left: 10px;
  right: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.gantt-track {
  min-height: var(--gantt-track-height, 92px);
  background: #fbfcff;
  overflow: visible;
}

.gantt-bar {
  position: absolute;
  z-index: 1;
  min-height: 56px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #edf2f7;
  box-shadow: 0 6px 16px rgba(20, 32, 52, 0.08);
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, z-index 0ms;
}

.gantt-bar:hover,
.gantt-bar.is-hovered {
  z-index: 6;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 32, 52, 0.16);
}

.gantt-bar-kicker {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-bar-title {
  margin-top: 3px;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-bar-meta {
  margin-top: 4px;
  color: #445268;
  font-size: 11px;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-bar[data-tone="green"] {
  color: #11482f;
  background: #e6f6ed;
  border-color: #b7e2c8;
}

.gantt-bar[data-tone="blue"] {
  color: #123e70;
  background: #e7f1ff;
  border-color: #b8d4ff;
}

.gantt-bar[data-tone="amber"] {
  color: #6f4606;
  background: #fff2db;
  border-color: #f4d7a0;
}

.gantt-bar[data-tone="red"] {
  color: #7a271a;
  background: #fee4df;
  border-color: #f7b5a9;
}

.gantt-bar[data-tone="violet"] {
  color: #452c7a;
  background: #efe7ff;
  border-color: #d1c0ff;
}

.gantt-bar[data-tone="gray"] {
  color: #334155;
  background: #e8edf3;
  border-color: #cfd7e3;
}

.clinic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

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

.fit-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.fit-dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--gray);
}

.fit-dot[data-fit="green"]::before {
  background: var(--green);
}

.fit-dot[data-fit="amber"]::before {
  background: var(--amber);
}

.fit-dot[data-fit="red"]::before {
  background: var(--red);
}

.empty-state {
  padding: 28px;
  color: var(--muted);
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.dialog-header h2 {
  margin: 4px 0 0;
  font-size: 20px;
  line-height: 1.2;
}

.quick-add-dialog {
  width: min(680px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-add-dialog::backdrop {
  background: rgba(18, 28, 45, 0.32);
}

.quick-add-dialog form {
  padding: 18px;
}

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

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

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 10px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.form-grid textarea {
  resize: vertical;
}

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

.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 16px;
}

.dialog-note {
  margin: 0 auto 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.export-box {
  width: 100%;
  min-height: 260px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  background: #fbfcfe;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.45;
}

@media (max-width: 1180px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-intro-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .focus-strip,
  .session-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

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

  .sidebar {
    position: fixed;
    width: min(340px, calc(100vw - 28px));
    transform: translateX(-105%);
    transition: transform 180ms ease;
  }

  .app-shell.is-sidebar-wide .sidebar {
    width: calc(100vw - 28px);
  }

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

  .brand {
    position: relative;
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 4px 48px 14px 6px;
  }

  .icon-button.sidebar-close-button {
    display: inline-flex;
    position: absolute;
    top: 4px;
    right: 6px;
    width: 36px;
    min-height: 36px;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
  }

  .icon-button.sidebar-close-button:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(255, 255, 255, 0.22);
  }

  .icon-button.workspace-menu-toggle {
    display: inline-flex;
    position: sticky;
    top: 10px;
    z-index: 16;
    margin: 10px 14px 0 auto;
    background: rgba(246, 248, 251, 0.94);
    backdrop-filter: blur(12px);
  }

  .primary-button span,
  .ghost-button span {
    display: none;
  }

  .main-content {
    padding: 14px 14px 92px;
  }

  .edge-chat {
    right: 14px;
    bottom: 14px;
  }

  .edge-chat-launcher {
    width: 52px;
    min-height: 52px;
    justify-content: center;
    padding: 0;
  }

  .edge-chat-launcher span {
    display: none;
  }

  .edge-chat-panel {
    height: min(560px, calc(100vh - 28px));
  }

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

  .gantt-breadcrumb-strip {
    margin-bottom: 10px;
  }

  .gantt-shell {
    margin-inline: -14px;
  }

  .gantt-toolbar {
    padding-inline: 14px;
  }

  .focus-grid,
  .focus-strip,
  .session-steps {
    grid-template-columns: 1fr;
  }

  .path-node {
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: start;
  }

  .path-node .status-badge {
    grid-column: 2;
    justify-self: start;
  }

  .priority-queue-item .priority-queue-tags {
    grid-column: 2;
    justify-self: start;
  }

  .view-header {
    display: grid;
  }

  .gantt-table {
    width: max(100%, calc(var(--gantt-lane-width) + var(--gantt-month-count) * max(74px, var(--gantt-month-width))));
    min-width: 0;
  }

  .gantt-scroller {
    padding: 0 14px 10px;
  }

  .gantt-zoom-controls {
    width: 100%;
    justify-content: flex-end;
  }

  .gantt-corner,
  .gantt-lane-label {
    padding: 12px;
  }

  .gantt-axis-month span {
    font-size: 11px;
  }

  .gantt-bar {
    min-height: 52px;
    padding: 7px 8px;
  }

  .participant-quick-links-row {
    grid-template-columns: 1fr;
  }

  .participant-quick-links-head {
    display: none;
  }

  .participant-quick-links-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .participant-quick-link {
    text-align: center;
  }

  .deliverable-entry {
    padding: 12px;
  }

  .deliverable-entry-header,
  .deliverable-details {
    grid-template-columns: 1fr;
  }

  .deliverable-entry-header .status-badge {
    justify-self: start;
  }

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