:root {
  color-scheme: light;
  --color-page: #f4f8fb;
  --color-paper: #fcfeff;
  --color-surface: #ffffff;
  --color-surface-soft: #eef5fa;
  --color-primary-50: #eaf6ff;
  --color-primary-100: #d8eeff;
  --color-primary-300: #8cc8f2;
  --color-primary-500: #2f8fd3;
  --color-primary-700: #1f5f8f;
  --color-text-main: #17212b;
  --color-text-muted: #53616f;
  --color-text-soft: #7a8996;
  --color-border: #d7e3ee;
  --color-border-soft: #e7eef5;
  --color-success-bg: #e8f6ef;
  --color-warning-bg: #fff4cc;
  --color-danger-bg: #fdecec;
  --color-success: #2f855a;
  --color-warning: #a66a00;
  --color-danger: #c2410c;
  --font-ui: "Be Vietnam Pro", "Noto Sans", sans-serif;
  --font-reading: "Noto Sans", "Be Vietnam Pro", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", "Consolas", monospace;
  --bg: var(--color-page);
  --bg-strong: var(--color-primary-100);
  --panel: rgba(255, 255, 255, 0.92);
  --panel-strong: var(--color-paper);
  --panel-soft: var(--color-surface-soft);
  --text: var(--color-text-main);
  --muted: var(--color-text-muted);
  --line: rgba(31, 95, 143, 0.16);
  --accent: var(--color-primary-500);
  --accent-strong: var(--color-primary-700);
  --accent-soft: var(--color-primary-100);
  --accent-ghost: rgba(47, 143, 211, 0.1);
  --warning: var(--color-warning);
  --warning-soft: var(--color-warning-bg);
  --danger: var(--color-danger);
  --shadow: 0 24px 60px rgba(23, 33, 43, 0.1);
  --shadow-soft: 0 16px 32px rgba(23, 33, 43, 0.07);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

/* AI work event ledger and incident review */
.ai-log-view-switch {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border: 1px solid #cbd8e3;
  border-radius: 6px;
  background: #eef3f7;
}

.ai-log-view-switch button {
  min-height: 38px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #3d5264;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ai-log-view-switch button.active {
  background: #ffffff;
  color: #126b78;
  box-shadow: 0 1px 3px rgba(21, 45, 62, 0.14);
}

.ai-log-filterbar {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  padding: 16px;
  border-block: 1px solid #d5dfe7;
  background: #f7f9fb;
}

.ai-log-filterbar label {
  display: grid;
  gap: 7px;
  color: #496072;
  font-size: 13px;
  font-weight: 700;
}

.ai-log-filterbar input,
.ai-log-filterbar select,
.ai-incident-review-panel input,
.ai-incident-review-panel select,
.ai-incident-review-panel textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c5d2dc;
  border-radius: 5px;
  background: #ffffff;
  color: #1e2d3a;
  font: inherit;
  padding: 8px 10px;
}

.ai-log-list-panel {
  margin-top: 16px;
  border: 1px solid #d5dfe7;
  border-radius: 6px;
  background: #ffffff;
  overflow: hidden;
}

.ai-log-list-panel > .section-head {
  padding: 16px 18px;
  border-bottom: 1px solid #d5dfe7;
}

.ai-log-list {
  overflow-x: auto;
}

.ai-log-table-head,
.ai-log-row {
  display: grid;
  min-width: 1120px;
  grid-template-columns: minmax(270px, 2fr) minmax(180px, 1.2fr) minmax(180px, 1fr) 90px minmax(150px, 1fr) minmax(140px, 1fr) 165px;
  align-items: center;
  min-height: 62px;
  border-bottom: 1px solid #e1e8ed;
}

.ai-log-table-head.event,
.ai-log-row.event {
  grid-template-columns: minmax(310px, 2fr) minmax(150px, .9fr) minmax(180px, 1fr) minmax(140px, .8fr) minmax(150px, .8fr) 165px;
}

.ai-log-table-head {
  min-height: 42px;
  background: #edf3f5;
  color: #516575;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ai-log-table-head > span,
.ai-log-row > span,
.ai-log-row > time {
  min-width: 0;
  padding: 10px 14px;
  overflow-wrap: anywhere;
}

.ai-log-row {
  color: #263b4b;
  text-decoration: none;
  font-size: 13px;
}

.ai-log-row:hover {
  background: #f2f8f8;
}

.ai-log-primary {
  display: grid;
  gap: 4px;
}

.ai-log-primary strong {
  color: #172a38;
  font-size: 14px;
}

.ai-log-primary small,
.ai-log-row small {
  color: #667987;
  overflow-wrap: anywhere;
}

.ai-log-primary small a,
.ai-event-entry small a {
  color: #126b78;
  font-weight: 700;
}

.ai-log-state,
.ai-log-outcome {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 4px;
  background: #e8edf1;
  color: #405463;
  font-size: 11px;
  font-weight: 800;
}

.ai-log-state.state-open,
.ai-log-outcome.outcome-failed { background: #fde8e5; color: #a23e32; }
.ai-log-state.state-investigating,
.ai-log-outcome.outcome-blocked { background: #fff0ce; color: #95610b; }
.ai-log-state.state-resolved,
.ai-log-outcome.outcome-succeeded { background: #ddf2e8; color: #23704f; }
.ai-log-state.state-accepted-normal,
.ai-log-outcome.outcome-deferred { background: #e8e9f7; color: #515a91; }

.ai-log-list-panel > .management-pagination {
  padding: 13px 16px;
}

.ai-incident-detail-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}

.ai-incident-detail-shell > *,
.ai-incident-detail-header > div {
  min-width: 0;
}

.ai-incident-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-block: 10px 16px;
  border-bottom: 1px solid #d5dfe7;
}

.ai-incident-detail-header h3 {
  margin: 4px 0 6px;
  font-size: 24px;
  overflow-wrap: anywhere;
}

.ai-incident-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 18px;
  align-items: start;
}

.ai-incident-summary {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  border-block: 1px solid #d5dfe7;
  background: #f7f9fb;
}

.ai-incident-summary > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 14px;
  border-right: 1px solid #d5dfe7;
}

.ai-incident-summary > div:last-child { border-right: 0; }
.ai-incident-summary span { color: #687a87; font-size: 12px; }
.ai-incident-summary strong { overflow-wrap: anywhere; color: #213442; font-size: 13px; }

.ai-trace-panel {
  margin-top: 16px;
  border-top: 1px solid #d5dfe7;
}

.ai-trace-panel > .section-head { padding: 16px 0 10px; }

.ai-event-timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding-left: 18px;
  border-left: 2px solid #bfd0d9;
}

.ai-event-entry {
  position: relative;
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 16px;
  padding: 13px 0 15px 16px;
  border-bottom: 1px solid #e3e9ed;
}

.ai-event-entry::before {
  content: "";
  position: absolute;
  left: -24px;
  top: 18px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  background: #4b8594;
  box-shadow: 0 0 0 1px #4b8594;
}

.ai-event-entry.outcome-failed::before { background: #b94b3f; box-shadow: 0 0 0 1px #b94b3f; }
.ai-event-entry.outcome-blocked::before { background: #c3871c; box-shadow: 0 0 0 1px #c3871c; }
.ai-event-entry.outcome-succeeded::before { background: #31805f; box-shadow: 0 0 0 1px #31805f; }

.ai-event-entry time { color: #617581; font-size: 12px; }
.ai-event-entry p { margin: 5px 0; color: #415664; overflow-wrap: anywhere; }
.ai-event-entry small { color: #71818c; }
.ai-event-entry-title { display: flex; justify-content: space-between; gap: 12px; }
.ai-event-entry-title strong { overflow-wrap: anywhere; }
.ai-event-entry-title span { flex: 0 0 auto; color: #5d7180; font-size: 11px; font-weight: 800; }

.ai-incident-review-panel {
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid #cfd9e1;
  border-radius: 6px;
  background: #f7f9fb;
}

.ai-incident-review-panel h3 { margin: 0 0 6px; font-size: 17px; }
.ai-incident-review-panel label { margin-top: 6px; color: #475c6b; font-size: 12px; font-weight: 800; }
.ai-incident-review-panel textarea { min-height: 110px; resize: vertical; }
.ai-incident-review-panel .primary-btn { margin-top: 8px; }

@media (max-width: 980px) {
  .ai-log-filterbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-incident-detail-grid { grid-template-columns: 1fr; }
  .ai-incident-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .ai-log-view-switch,
  .ai-log-filterbar,
  .ai-incident-summary { grid-template-columns: 1fr; width: 100%; }
  .ai-incident-summary > div { border-right: 0; border-bottom: 1px solid #d5dfe7; }
  .ai-incident-detail-header { align-items: stretch; flex-direction: column; }
  .ai-incident-detail-header .ai-log-state { align-self: flex-start; }
  .ai-event-entry { grid-template-columns: 1fr; gap: 5px; }
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--text);
  background: var(--color-page);
}

body.modal-open {
  overflow: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

button {
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

button:hover {
  transform: translateY(-1px);
}

.shell {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 300px;
  grid-template-rows: 64px minmax(0, 1fr);
  min-height: 100vh;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--color-page);
}

.login-card {
  width: min(520px, 100%);
  display: grid;
  gap: 16px;
  padding: 34px;
  border-radius: 32px;
  background: var(--color-paper);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
}

.login-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand-row strong,
.login-brand-row span {
  display: block;
}

.login-brand-row strong {
  font-size: 18px;
}

.login-brand-row span {
  margin-top: 3px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.auth-brand-mark {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 12px;
  background: var(--color-primary-500);
  box-shadow: inset 0 -8px 14px rgba(31, 95, 143, 0.18);
}

.login-copy {
  display: grid;
  gap: 8px;
  margin: 12px 0 4px;
}

.login-card h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 46px);
  line-height: 1.08;
  letter-spacing: 0;
}

.login-card label {
  font-weight: 800;
}

.login-card .primary-btn {
  margin-top: 4px;
  width: 100%;
}

.login-helper {
  margin: -2px 0 0;
  color: var(--color-primary-700);
  font-size: 13px;
  font-weight: 700;
}

.topbar {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 280px auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(252, 254, 255, 0.9);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar-brand span {
  color: var(--muted);
  font-size: 12px;
}

.brand-mark {
  display: inline-block;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 10px;
  background: var(--color-primary-500);
  box-shadow: inset 0 -8px 14px rgba(31, 95, 143, 0.18);
}

.back-btn,
.icon-btn {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  cursor: pointer;
}

.back-btn {
  padding: 11px 14px;
  white-space: nowrap;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
}

.domain-nav,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.domain-nav {
  justify-content: flex-start;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.domain-nav::-webkit-scrollbar {
  display: none;
}

.topbar .domain-nav .nav-btn {
  flex: 0 0 auto;
  padding: 10px 12px;
  border-radius: 8px;
  scroll-snap-align: start;
  white-space: nowrap;
}

.topbar-actions .secondary-btn {
  padding: 10px 12px;
  border-radius: 8px;
}

.topbar-actions .topbar-utility-btn {
  display: inline-grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
}

.topbar-utility-btn span {
  font-size: 15px;
  line-height: 1;
}

.settings-menu {
  position: relative;
}

.settings-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-paper);
  box-shadow: var(--shadow-soft);
  z-index: 50;
}

.settings-dropdown button {
  border: 0;
  border-radius: 12px;
  padding: 10px 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.settings-dropdown button:hover {
  background: var(--color-primary-50);
}

.sidebar {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: 18px;
  background: rgba(252, 254, 255, 0.78);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(18px);
  overflow: auto;
}

body.left-sidebar-collapsed .sidebar {
  display: none;
}

body.left-sidebar-collapsed .shell {
  grid-template-columns: minmax(0, 1fr) 300px;
}

.shell:has(.right-sidebar.collapsed) {
  grid-template-columns: 300px minmax(0, 1fr);
}

body.left-sidebar-collapsed .shell:has(.right-sidebar.collapsed) {
  grid-template-columns: minmax(0, 1fr);
}

.right-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: rgba(252, 254, 255, 0.74);
  overflow: auto;
}

.right-sidebar.collapsed {
  display: none;
}

.brand-card,
.meta-card,
.panel,
.project-overview-panel,
.knowledge-explorer-sidebar,
.knowledge-explorer-viewer,
.review-queue-panel,
.create-panel,
.board-column,
.detail-panel,
.cloudpack-panel,
.spec-list,
.mission-hero,
.board-summary-panel,
.spec-summary-panel,
.bootstrap-summary-panel,
.cloudpack-summary-panel,
.account-summary-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.brand-card,
.meta-card {
  padding: 18px;
}

.brand h1,
.toolbar h2,
.detail-header h3,
.mission-hero h3,
.section-head h3 {
  margin: 0;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.toolbar-project {
  margin: 8px 0 0;
  color: var(--muted);
}

.detail-form label,
.create-panel label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
}

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

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(47, 143, 211, 0.16);
  border-color: rgba(47, 143, 211, 0.34);
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.project-card:focus-visible,
.board-card:focus-visible,
.spec-item:focus-visible {
  outline: 3px solid rgba(47, 143, 211, 0.34);
  outline-offset: 3px;
}

textarea {
  resize: vertical;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav-btn,
.primary-btn,
.secondary-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  cursor: pointer;
}

.nav-btn {
  background: transparent;
  color: var(--text);
  text-align: left;
}

.nav-btn.disabled {
  cursor: not-allowed;
  color: var(--color-text-soft);
  opacity: 0.6;
}

.nav-btn.active {
  background: var(--accent-ghost);
  color: var(--accent);
  font-weight: 700;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #f8fffc;
  box-shadow: 0 14px 28px rgba(47, 143, 211, 0.22);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  border: 1px solid var(--line);
}

.meta {
  display: grid;
  gap: 12px;
}

.meta-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  color: var(--muted);
}

.main {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 18px;
  padding: 24px;
}

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

.toolbar-copy {
  display: grid;
  gap: 4px;
}

.screen {
  display: none;
  min-width: 0;
}

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

.mission-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at top right, rgba(47, 143, 211, 0.12), transparent 38%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(234, 246, 255, 0.9) 100%);
}

.mission-hero-copy {
  display: grid;
  gap: 12px;
}

.mission-hero-side {
  display: grid;
  gap: 14px;
}

.hero-status-row,
.chip-grid,
.metrics-strip,
.hero-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-status-pill,
.route-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  font-size: 13px;
}

.hero-status-pill strong,
.route-chip strong {
  color: var(--accent-strong);
}

.metric-tile,
.hero-metric {
  min-width: 140px;
  flex: 1 1 140px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.metric-tile span,
.hero-metric span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.metric-tile strong,
.hero-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 22px;
}

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

.ordered-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
}

.ordered-index {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
}

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

#screen-dashboard .dashboard-layout {
  grid-template-columns: minmax(0, 1fr);
}

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

.panel {
  padding: 18px;
}

.panel-soft {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(246, 250, 248, 0.9) 100%);
}

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

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.project-card {
  display: grid;
  gap: 18px;
  min-height: 210px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid rgba(47, 143, 211, 0.16);
  background:
    radial-gradient(circle at top right, rgba(140, 200, 242, 0.16), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(234, 246, 255, 0.66) 100%);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  align-content: start;
}

.project-card:hover,
.project-card:focus-visible,
.project-card.active {
  border-color: rgba(47, 143, 211, 0.38);
  box-shadow: 0 22px 44px rgba(47, 143, 211, 0.12);
}

.project-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.2;
}

.project-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(238, 245, 250, 0.76);
}

.status-pill,
.status-mini {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.status-pill {
  padding: 8px 12px;
  font-size: 13px;
}

.status-mini {
  padding: 5px 9px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill.status-backlog,
.status-mini.status-backlog {
  background: #eef5fa;
  color: #53616f;
}

.status-pill.status-todo,
.status-mini.status-todo {
  background: #eaf6ff;
  color: #1f5f8f;
}

.status-pill.status-in_progress,
.status-mini.status-in_progress,
.status-pill.status-doing,
.status-mini.status-doing {
  background: #fff4cc;
  color: #a66a00;
}

.status-pill.status-user_review,
.status-mini.status-user_review {
  background: #e9efff;
  color: #3451a3;
}

.status-pill.status-done,
.status-mini.status-done {
  background: #e8f6ef;
  color: #2f855a;
}

.status-pill.status-outdated,
.status-mini.status-outdated {
  background: #fdecec;
  color: #c2410c;
}

.status-pill.status-cancelled,
.status-mini.status-cancelled {
  background: #fdecec;
  color: #c2410c;
}

.readiness-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-width: 0;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.readiness-ready {
  background: rgba(47, 133, 90, 0.12);
  color: #2f855a;
}

.readiness-conditionally-ready {
  background: rgba(194, 122, 0, 0.13);
  color: #8a5700;
}

.readiness-warning {
  background: rgba(166, 106, 0, 0.12);
  color: #a66a00;
}

.readiness-blocked {
  background: rgba(166, 106, 0, 0.12);
  color: #8a5a00;
}

.readiness-failed,
.readiness-error {
  background: rgba(194, 65, 12, 0.12);
  color: #c2410c;
}

.readiness-neutral {
  background: rgba(123, 139, 154, 0.12);
  color: var(--color-text-soft);
}

.project-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  color: var(--color-text-muted);
  font-size: 13px;
}

.project-card-foot strong {
  color: var(--color-primary-700);
}

.pill {
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--panel-soft);
  font-size: 13px;
}

.project-card-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.account-management-page,
.account-detail-page {
  display: grid;
  gap: 16px;
}

.account-primary-actions,
.feedback-primary-actions {
  display: flex;
  justify-content: flex-end;
}

.feedback-primary-actions {
  margin-bottom: 12px;
}

.account-page-header,
.account-detail-header,
.account-status-tabs,
.account-filter-bar,
.account-table-panel,
.account-detail-sections {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.account-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
}

.account-page-header h3,
.account-detail-header h3,
.account-section-heading h4 {
  margin: 0;
  letter-spacing: 0;
}

.account-page-header .muted {
  max-width: 680px;
  margin: 7px 0 0;
}

.account-status-tabs {
  display: flex;
  gap: 8px;
  padding: 10px;
  overflow-x: auto;
}

.account-status-tab {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--color-surface-soft);
  color: var(--color-text-main);
  cursor: pointer;
  white-space: nowrap;
}

.account-status-tab strong {
  display: inline-grid;
  min-width: 25px;
  min-height: 25px;
  place-items: center;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--color-surface);
  font-size: 12px;
}

.account-status-tab.active {
  border-color: var(--color-primary-300);
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  font-weight: 700;
}

.account-filter-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(180px, 240px);
  gap: 12px;
  padding: 14px;
}

.account-filter-bar input,
.account-filter-bar select,
.account-detail-section input:not([type="checkbox"]),
.account-detail-section select,
.account-create-panel input,
.account-create-panel select {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
}

.account-detail-section input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
}

.account-table-panel {
  min-width: 0;
  overflow: hidden;
}

.account-table-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border-soft);
}

.account-table-toolbar p {
  margin: 0;
}

.account-table-scroll {
  overflow-x: auto;
}

.account-table {
  min-width: 940px;
}

.account-table-head,
.account-table-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.6fr) minmax(130px, 0.7fr) minmax(210px, 1fr) minmax(150px, 0.7fr) minmax(155px, 0.8fr);
  gap: 14px;
  align-items: center;
}

.account-table-head {
  padding: 12px 16px;
  background: var(--color-surface-soft);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.account-table-row {
  min-height: 74px;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border-soft);
  color: var(--color-text-main);
  text-decoration: none;
}

.account-table-row:hover,
.account-table-row:focus-visible {
  background: var(--color-primary-50);
}

.account-table-row:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: -2px;
}

.account-table-row > span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.account-user-cell {
  display: flex;
  align-items: center;
  gap: 11px;
}

.account-user-cell > span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.account-user-cell small {
  color: var(--color-text-muted);
}

.account-list-avatar,
.account-detail-avatar {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e8f6ef;
  color: #236947;
  font-weight: 800;
}

.account-list-avatar {
  width: 40px;
  height: 40px;
  font-size: 12px;
}

.account-access-cell {
  color: var(--color-text-muted);
}

.account-state-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background: var(--color-surface-soft);
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 700;
}

.account-state-badge.active {
  border-color: #b9dfc9;
  background: var(--color-success-bg);
  color: var(--color-success);
}

.account-state-badge.disabled {
  border-color: #efc4c4;
  background: var(--color-danger-bg);
  color: #a43825;
}

.account-empty-row {
  display: grid;
  min-height: 160px;
  place-items: center;
  padding: 24px;
  color: var(--color-text-muted);
}

.management-pagination {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--color-border-soft);
}

.management-pagination-range {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 13px;
}

.management-pagination-range strong {
  color: var(--color-text-main);
}

.management-pagination-size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.management-pagination-size select {
  width: 68px;
  min-width: 0;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text-main);
}

.management-pagination-pages {
  display: inline-flex;
  gap: 7px;
}

.management-pagination button {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--color-text-main);
  cursor: pointer;
}

.management-pagination button.active {
  border-color: var(--color-primary-500);
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  font-weight: 800;
}

.management-pagination button:disabled {
  cursor: default;
  opacity: 0.42;
}

.account-back-link {
  width: fit-content;
  color: var(--color-primary-700);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.account-detail-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
}

.account-detail-avatar {
  width: 52px;
  height: 52px;
}

.account-detail-identity {
  min-width: 0;
}

.account-detail-identity .muted {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.account-detail-sections {
  overflow: hidden;
}

.account-detail-section {
  display: grid;
  gap: 14px;
  padding: 20px 22px;
}

.account-detail-section + .account-detail-section {
  border-top: 1px solid var(--color-border);
}

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

.account-section-heading h4 {
  font-size: 16px;
}

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

.account-detail-form-grid label,
.account-reset-password-row label {
  display: grid;
  gap: 7px;
  color: var(--color-text-main);
  font-size: 13px;
  font-weight: 700;
}

.account-detail-section input[readonly] {
  background: var(--color-surface-soft);
  color: var(--color-text-muted);
}

.account-membership-controls {
  grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(240px, 1.2fr);
}

.account-section-actions {
  display: flex;
  justify-content: flex-end;
}

.account-membership-list {
  display: grid;
  border-top: 1px solid var(--color-border-soft);
}

.account-membership-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.account-membership-row p {
  margin: 4px 0 0;
}

.account-membership-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-reset-password-row {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.account-create-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 92;
  width: min(720px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  transform: translate(-50%, -50%);
}

.account-create-panel {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(23, 33, 43, 0.2);
}

.account-create-panel h3 {
  margin: 0;
}

.account-checkbox {
  align-self: end;
  padding: 12px 0;
}

.membership-tag-fieldset {
  display: grid;
  gap: 8px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.membership-capability-fieldset {
  display: grid;
  gap: 10px;
  margin: 14px 0;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
}

.membership-capability-fieldset legend {
  padding: 0 5px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.membership-capability-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.membership-capability-group {
  display: grid;
  align-content: start;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--color-border-soft);
  border-radius: 6px;
  background: var(--color-surface-soft);
}

.membership-capability-group > strong {
  font-size: 11px;
  text-transform: uppercase;
}

.membership-capability-group > div {
  display: grid;
  gap: 6px;
}

.membership-capability-option {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
}

.membership-capability-option:has(input:disabled) {
  color: var(--color-text-muted);
}

.membership-capability-option:has(input:disabled:checked) {
  color: var(--color-text-main);
}

.role-group-description-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 700;
}

.role-group-description-field textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  padding: 11px 12px;
}

.role-group-avatar {
  background: #edf4ff;
  color: #245a93;
}

.membership-tag-fieldset legend {
  padding: 0 5px;
  color: var(--text);
  font-size: 13px;
  font-weight: 900;
}

.membership-tag-fieldset p {
  margin: 0;
}

.membership-tag-list,
.membership-tag-group {
  display: grid;
  gap: 7px;
}

.membership-tag-group + .membership-tag-group {
  padding-top: 8px;
  border-top: 1px solid var(--color-border-soft);
}

.membership-tag-group > strong {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.membership-tag-group > div,
.membership-row-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.membership-tag-option {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid color-mix(in srgb, var(--member-tag-color), transparent 65%);
  border-radius: 5px;
  background: color-mix(in srgb, var(--member-tag-color), white 92%);
  color: var(--member-tag-color);
  font-size: 11px;
  font-weight: 800;
}

.membership-tag-option input {
  width: 15px;
  height: 15px;
  margin: 0;
}

.membership-row-tags {
  margin-top: 7px;
}

.project-overview-panel {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.knowledge-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(227, 244, 237, 0.7) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid var(--line);
}

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

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

.knowledge-item {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.knowledge-item span {
  color: var(--muted);
  font-size: 12px;
  word-break: break-word;
}

.knowledge-item.active {
  border-color: rgba(47, 143, 211, 0.38);
  background: var(--accent-soft);
}

.knowledge-explorer-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 160px);
}

.knowledge-explorer-sidebar,
.knowledge-explorer-viewer {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 18px;
}

.knowledge-explorer-groups {
  display: grid;
  gap: 14px;
}

.knowledge-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, rgba(247, 251, 250, 0.94) 0%, rgba(255, 255, 255, 0.98) 100%);
  border: 1px solid var(--line);
}

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

.knowledge-viewer-head {
  display: grid;
  gap: 8px;
}

.knowledge-viewer-path {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  word-break: break-all;
}

.board-summary-panel,
.spec-summary-panel,
.bootstrap-summary-panel,
.cloudpack-summary-panel,
.board-filter-panel {
  padding: 18px;
}

.board-summary-panel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
}

.board-summary-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: min(720px, 58%);
}

.board-summary-side .primary-btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.board-summary-panel .section-head,
.board-summary-panel h3 {
  margin-bottom: 0;
}

.board-summary-panel .metrics-strip {
  flex-wrap: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.board-summary-panel .metric-tile {
  min-width: 120px;
  flex: 1 1 120px;
  padding: 10px 12px;
}

.board-summary-panel .metric-tile strong {
  margin-top: 4px;
  font-size: 20px;
}

.board-layout,
.split-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
  min-height: calc(100vh - 220px);
}

.board-layout {
  grid-template-columns: minmax(0, 1fr);
  min-height: auto;
}

.board-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.board-filter-panel {
  display: grid;
  grid-template-columns: 120px minmax(280px, 1fr);
  align-items: center;
  gap: 14px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(252, 254, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.board-filter-panel label {
  font-weight: 800;
  color: var(--color-text-muted);
}

#screen-board .scope-list {
  order: 1;
}

#screen-board .board-columns {
  order: 2;
}

#screen-board .review-queue-panel {
  order: 3;
}

.review-queue-panel,
.create-panel,
.board-column,
.detail-panel,
.cloudpack-panel,
.spec-list {
  padding: 16px;
}

.review-queue-panel {
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, var(--warning-soft) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.create-panel {
  display: grid;
  gap: 12px;
  background: linear-gradient(180deg, rgba(227, 244, 237, 0.82) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(23, 33, 43, 0.28);
  backdrop-filter: blur(4px);
}

.create-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(560px, 100vw);
  height: 100vh;
  padding: 18px;
  overflow: auto;
  background: rgba(244, 248, 251, 0.96);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 60px rgba(23, 33, 43, 0.16);
}

.create-drawer .create-panel {
  min-height: 100%;
  align-content: start;
  padding: 22px;
}

.drawer-head,
.drawer-actions,
.task-detail-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.drawer-actions {
  justify-content: flex-end;
}

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

.create-repo-impact-selector {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 232px;
  padding: 10px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--color-paper);
}

.create-repo-impact-selector.is-disabled {
  opacity: 0.55;
}

.create-panel .create-repo-impact-option {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  min-width: 0;
  padding: 9px;
  border: 1px solid var(--color-border-soft);
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
}

.create-repo-impact-option:has(input:checked) {
  border-color: #2b87b7;
  background: #eef8fc;
}

.create-panel .create-repo-impact-option input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.create-repo-impact-option span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.create-repo-impact-option strong,
.create-repo-impact-option small {
  overflow-wrap: anywhere;
}

.create-repo-impact-option small {
  color: var(--color-text-muted);
}

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

.knowledge-create-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-soft);
}

.create-checkbox {
  margin-top: 30px;
}

.create-panel .create-checkbox {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  margin-bottom: 0;
}

.create-panel .create-checkbox input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin: 0;
}

.review-queue-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.review-queue-list,
.token-list,
.section-stack {
  display: grid;
  gap: 10px;
}

.review-queue-item,
.token-row {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  text-align: left;
}

.review-queue-item-head,
.token-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.board-columns {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 360px);
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  align-items: stretch;
  padding: 4px 4px 16px;
  scroll-snap-type: x proximity;
}

.scope-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.scope-chip {
  min-width: 190px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  text-align: left;
}

.scope-chip.active {
  border-color: rgba(47, 143, 211, 0.38);
  background: var(--accent-soft);
}

.scope-chip strong,
.scope-chip span {
  display: block;
}

.scope-chip span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.board-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(31, 95, 143, 0.1);
  background: rgba(255, 255, 255, 0.96);
  margin-bottom: 14px;
  min-height: 150px;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(23, 33, 43, 0.06);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.board-card > * {
  min-width: 0;
}

.board-card.active {
  border-color: rgba(47, 143, 211, 0.42);
  background: var(--accent-soft);
}

.board-card:focus-visible {
  border-color: rgba(47, 143, 211, 0.48);
}

.board-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.board-card-summary {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  min-height: 42px;
  color: var(--color-text-muted);
  font-size: 13px;
  line-height: 1.48;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow-wrap: anywhere;
}

.board-card-footer,
.board-column-head,
.board-column-title {
  display: flex;
  align-items: center;
}

.board-card-footer,
.board-column-head {
  justify-content: space-between;
  gap: 12px;
}

.board-card-topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.board-card-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  color: var(--color-text-soft);
  font-size: 12px;
  column-gap: 10px;
  min-width: 0;
}

.board-card-footer span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-card-footer span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-chip {
  display: block;
  min-width: 0;
  max-width: 100%;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(47, 143, 211, 0.1);
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.board-card-menu,
.board-column-menu {
  color: var(--color-text-soft);
  letter-spacing: 0.16em;
  white-space: nowrap;
}

.board-card-menu {
  min-width: 18px;
}

.board-column {
  min-height: 620px;
  padding: 18px;
  border-top: 0;
  background: #edf4f8;
  color: var(--color-text-main);
  scroll-snap-align: start;
}

.load-more-btn {
  width: 100%;
  margin-top: 4px;
  border: 1px dashed rgba(31, 95, 143, 0.24);
  border-radius: 16px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--color-primary-700);
  cursor: pointer;
  font-weight: 800;
}

.board-column-head {
  margin-bottom: 18px;
}

.board-column-title {
  gap: 10px;
}

.board-column-title h3 {
  margin: 0;
  font-size: 19px;
}

.board-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 95, 143, 0.1);
  color: var(--color-text-muted);
  font-weight: 700;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
}

.board-column.status-backlog {
  background: #eef5fa;
}

.board-column.status-todo {
  background: #eaf6ff;
}

.board-column.status-in_progress,
.board-column.status-doing {
  background: #fff8df;
}

.board-column.status-user_review {
  background: #edf2ff;
}

.board-column.status-done {
  background: #e8f6ef;
}

.board-column.status-outdated {
  background: #fdecec;
}

.board-column.status-cancelled {
  background: #fdecec;
}

.board-column.status-backlog .status-dot {
  background: #7a8996;
}

.board-column.status-todo .status-dot {
  background: #2f8fd3;
}

.board-column.status-in_progress .status-dot,
.board-column.status-doing .status-dot {
  background: #f59e0b;
}

.board-column.status-user_review .status-dot {
  background: #526ed3;
}

.board-column.status-done .status-dot {
  background: #2f855a;
}

.board-column.status-outdated .status-dot {
  background: #c2410c;
}

.board-column.status-cancelled .status-dot {
  background: #c2410c;
}

.detail-panel {
  overflow: hidden;
}

.task-detail-shell {
  display: grid;
  gap: 18px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.detail-task-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 4px 0 12px;
}

.detail-task-id-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.detail-task-id-value {
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid #cbdde8;
  border-radius: 6px;
  background: #edf6fa;
  color: #164f70;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
  user-select: all;
}

.detail-copy-id-btn {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #b9d2e0;
  border-radius: 6px;
  background: #fff;
  color: #176b96;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.detail-copy-id-btn:hover:not(:disabled) {
  border-color: #2f8fc5;
  background: #f1f8fb;
}

.detail-copy-id-btn:disabled {
  cursor: default;
  opacity: 0.58;
}

.detail-task-id-copy-status {
  min-width: 100px;
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.detail-task-id-copy-status[data-state="success"] {
  color: #1e7048;
}

.detail-task-id-copy-status[data-state="error"] {
  color: #a34832;
}

.task-detail-tabs {
  display: inline-flex;
  justify-self: start;
  gap: 4px;
  max-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow-x: auto;
}

.task-detail-tabs button {
  min-width: 132px;
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--color-text-muted);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.task-detail-tabs button:hover {
  color: var(--color-text);
  background: rgba(39, 143, 197, 0.08);
}

.task-detail-tabs button.active {
  color: #176b96;
  background: rgba(39, 143, 197, 0.14);
}

.task-detail-tabs button:focus-visible {
  outline: 2px solid rgba(39, 143, 197, 0.55);
  outline-offset: 2px;
}

.task-detail-tab-panel,
#taskDetailOverviewQuestionsSlot,
#taskDetailTechnicalQuestionsSlot {
  display: grid;
  gap: 14px;
}

.detail-timeline-plan-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.detail-timeline-plan-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2f5;
  color: #526170;
  font-size: 12px;
  font-weight: 800;
}

.detail-timeline-plan-badge.is-planned {
  background: #dcf5e8;
  color: #17633f;
}

.detail-timeline-plan-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 240px));
  align-items: end;
  gap: 12px;
  margin-top: 14px;
}

.detail-timeline-plan-form label {
  display: grid;
  gap: 7px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-timeline-plan-form .detail-timeline-group-field {
  grid-column: 1 / -1;
  width: min(100%, 492px);
}

.detail-timeline-plan-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-text);
  padding: 8px 10px;
}

.detail-timeline-plan-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
}

.detail-timeline-plan-actions .primary-btn,
.detail-timeline-plan-actions .secondary-btn {
  min-height: 42px;
  white-space: nowrap;
}

.detail-timeline-estimate-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 240px));
  gap: 12px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}

.detail-timeline-estimate-form label {
  display: grid;
  gap: 7px;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 700;
}

.detail-timeline-estimate-form input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  color: var(--color-text);
  padding: 8px 10px;
}

#detailEstimateSource {
  margin: 8px 0 0;
}

.detail-timeline-plan-panel > .muted {
  min-height: 18px;
  margin: 10px 0 0;
}

@media (max-width: 760px) {
  .detail-timeline-plan-form {
    grid-template-columns: 1fr;
  }

  .detail-timeline-plan-actions .primary-btn {
    width: 100%;
  }

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

.detail-editor-panel,
.detail-reading-panel,
.detail-quick-panel,
.detail-overview-panel,
.detail-business-contract-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.detail-reading-panel .markdown-view {
  min-height: 240px;
}

.detail-content.hidden,
.hidden {
  display: none !important;
}

.detail-form {
  display: grid;
  gap: 10px;
  margin: 18px 0;
}

.detail-quick-grid,
.detail-row-list {
  display: grid;
  gap: 10px;
}

.repo-impact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.repo-impact-tag {
  display: grid;
  gap: 3px;
  min-width: min(240px, 100%);
  padding: 9px 11px;
  border: 1px solid #b9d9e8;
  border-radius: 6px;
  background: #f0f8fb;
  color: #174d68;
}

.repo-impact-tag strong,
.repo-impact-tag small {
  overflow-wrap: anywhere;
}

.repo-impact-tag small {
  color: #527284;
}

.detail-quick-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.detail-fact,
.detail-row-item {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--color-border-soft);
  border-radius: 8px;
  background: var(--color-paper);
}

.detail-fact span,
.detail-row-item span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.detail-readable-text {
  min-height: 90px;
  padding: 14px;
  overflow: auto;
  white-space: pre-wrap;
  border: 1px solid var(--color-border-soft);
  border-radius: 8px;
  background: var(--color-paper);
  color: var(--color-text-main);
  font-family: "Be Vietnam Pro", "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.business-contract-grid {
  display: grid;
  gap: 14px;
}

.task-analysis-summary,
.task-5w1h-details,
.task-analysis-source,
.task-analysis-missing,
.repo-business-inputs {
  grid-column: 1 / -1;
}

.task-analysis-summary {
  background: #fbfdfe;
}

.task-analysis-narrative {
  min-width: 0;
}

.task-analysis-source {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--color-border-soft);
}

.task-analysis-missing {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid #e6c66b;
  border-left: 4px solid #c78b1f;
  border-radius: 6px;
  background: #fffaf0;
  color: #634d1e;
}

.task-analysis-missing ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 20px;
}

.repo-business-input-list,
.task-technical-module-list {
  display: grid;
  gap: 10px;
}

.repo-business-input,
.task-technical-module {
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--color-border-soft);
  border-radius: 6px;
  background: var(--color-paper);
}

.repo-business-input {
  display: grid;
  gap: 7px;
}

.repo-business-input p {
  margin: 0;
}

.task-technical-module {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
}

.task-technical-module > div {
  display: grid;
  gap: 5px;
}

.task-technical-module strong,
.task-technical-module small,
.task-technical-module p {
  overflow-wrap: anywhere;
}

.task-technical-module small {
  color: var(--color-primary-700);
  font-size: 11px;
  font-weight: 700;
}

.task-technical-module p {
  margin: 0;
}

.task-technical-module-index {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 4px;
  background: #e7f1f6;
  color: #245f7d;
  font-size: 11px;
  font-weight: 800;
}

.business-contract-section {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-soft);
}

.business-contract-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.business-contract-section h4,
.business-contract-section p,
.business-contract-section ul,
.business-contract-section dl {
  margin: 0;
}

.business-contract-section h4 {
  color: var(--color-text-main);
  font-size: 15px;
}

.business-contract-section p,
.business-contract-section li,
.business-contract-section dd {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.business-contract-section ul {
  display: grid;
  gap: 7px;
  padding-left: 20px;
}

.business-contract-section dl {
  display: grid;
  gap: 9px;
}

.business-contract-section dl div {
  display: grid;
  gap: 3px;
}

.business-contract-section dt {
  color: var(--color-text-main);
  font-size: 13px;
  font-weight: 700;
}

.business-contract-section dd {
  margin: 0;
}

.detail-flow-group {
  grid-column: 1 / -1;
}

.detail-flow-list {
  display: grid;
  gap: 12px;
}

.detail-flow-case {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--color-border-soft);
  border-radius: 8px;
  background: var(--color-paper);
}

.detail-flow-case-head,
.detail-flow-branch-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.detail-flow-case-head span,
.detail-flow-branch-head span,
.detail-flow-step-index {
  flex: 0 0 auto;
  color: var(--color-primary-700);
  font-size: 12px;
  font-weight: 700;
}

.detail-flow-case-head strong,
.detail-flow-branch-head strong {
  color: var(--color-text-main);
  font-size: 14px;
}

.detail-flow-case p {
  margin: 0;
}

.detail-flow-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

.detail-flow-steps .detail-flow-steps {
  margin-top: 8px;
}

.detail-flow-steps li {
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.55;
}

.detail-flow-branch {
  display: grid;
  gap: 6px;
}

@media (min-width: 980px) {
  .business-contract-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .business-contract-section:first-child {
    grid-column: 1 / -1;
  }
}

.detail-task-link {
  color: #1f5f8f;
  font-weight: 700;
  text-decoration: none;
}

.detail-task-link:hover,
.detail-task-link:focus {
  text-decoration: underline;
}

.progress-question-card {
  gap: 12px;
}

.question-suggest,
.question-answer-current p {
  margin: 0;
}

.question-suggest {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.question-suggest > span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.question-suggest-chip {
  padding: 8px 10px;
  border: 1px solid rgba(31, 95, 143, 0.28);
  border-radius: 8px;
  background: rgba(229, 242, 251, 0.74);
  color: #1f5f8f;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
}

.question-suggest-chip:hover,
.question-suggest-chip:focus {
  border-color: rgba(31, 95, 143, 0.52);
  background: rgba(210, 235, 249, 0.86);
}

.question-suggest-card {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.question-suggest-reason {
  margin: 8px 0 0;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.45;
}

.question-suggest-tradeoffs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.question-suggest-points {
  padding: 8px;
  border-radius: 8px;
  background: var(--color-paper);
}

.question-suggest-points span {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
}

.question-suggest-points ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.question-suggest-points li {
  margin: 3px 0;
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.35;
}

.question-answer-current {
  padding: 10px;
  border-radius: 8px;
  background: var(--color-paper);
  border: 1px solid var(--color-border-soft);
}

.question-answer-submit {
  justify-self: start;
}

.readiness-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--color-border-soft);
  background: var(--color-paper);
}

.readiness-panel.readiness-blocked {
  border-color: rgba(166, 106, 0, 0.28);
  background: rgba(255, 244, 204, 0.62);
}

.readiness-panel.readiness-failed,
.readiness-panel.readiness-error {
  border-color: rgba(194, 65, 12, 0.24);
  background: rgba(253, 236, 236, 0.72);
}

.readiness-panel.readiness-warning {
  border-color: rgba(166, 106, 0, 0.24);
  background: rgba(255, 244, 204, 0.58);
}

.readiness-panel.readiness-ready {
  border-color: rgba(47, 133, 90, 0.24);
  background: rgba(232, 246, 239, 0.58);
}

.readiness-panel.readiness-conditionally-ready {
  border-color: rgba(194, 122, 0, 0.28);
  background: rgba(255, 246, 219, 0.68);
}

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

.readiness-head h4 {
  margin: 0;
  font-size: 17px;
}

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

.readiness-issues li {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.readiness-issues span {
  color: var(--color-text-muted);
  font-size: 12px;
  line-height: 1.45;
}

.readiness-checklist {
  color: var(--color-text-muted);
  font-size: 12px;
}

.readiness-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 6px 0;
}

.readiness-check p {
  margin: 0;
}

.readiness-check.passed span {
  color: #2f855a;
}

.readiness-check.failed span {
  color: #c2410c;
}

.readiness-check.pending span {
  color: #a66a00;
}

.readiness-check.advisory span {
  color: #2563a6;
  font-weight: 700;
}

.continuation-action,
.continuation-tracking {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(194, 122, 0, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.continuation-action p,
.continuation-tracking p {
  margin: 4px 0 0;
}

.continuation-reason {
  display: grid;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
}

.continuation-reason textarea {
  width: 100%;
  min-height: 82px;
  resize: vertical;
}

.continuation-action .primary-btn {
  justify-self: start;
}

.continuation-history {
  color: var(--color-text-muted);
  font-size: 12px;
}

.continuation-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--color-border-soft);
}

.continuation-entry div {
  display: grid;
  gap: 3px;
}

.continuation-queue-meta {
  margin: 0;
  color: #8a5700;
  font-size: 12px;
  font-weight: 800;
}

.workflow-chip {
  max-width: 180px;
}

.workflow-panel {
  background:
    linear-gradient(135deg, rgba(235, 247, 255, 0.78), rgba(255, 255, 255, 0.92));
}

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

.workflow-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--color-border-soft);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.workflow-grid span {
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.workflow-grid strong {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}

.workflow-gate-list {
  display: grid;
  border-top: 1px solid var(--color-border-soft);
}

.workflow-gate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.workflow-gate-row > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.workflow-gate-row strong {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.workflow-gate-row > div > span {
  color: var(--color-text-muted);
  font-size: 12px;
}

.markdown-view {
  white-space: pre-wrap;
  line-height: 1.68;
  font-family: var(--font-reading);
  background: var(--color-paper);
  color: var(--color-text-main);
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--color-border-soft);
  min-height: 320px;
  overflow: auto;
}

.markdown-preview {
  white-space: normal;
  overflow-wrap: anywhere;
}

.markdown-preview > *:first-child {
  margin-top: 0;
}

.markdown-preview > *:last-child {
  margin-bottom: 0;
}

.markdown-preview h1,
.markdown-preview h2,
.markdown-preview h3,
.markdown-preview h4,
.markdown-preview h5,
.markdown-preview h6 {
  margin: 1.15em 0 0.45em;
  color: var(--text);
  line-height: 1.25;
}

.markdown-preview h1 {
  font-size: 28px;
}

.markdown-preview h2 {
  font-size: 22px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.markdown-preview h3 {
  font-size: 18px;
}

.markdown-preview p,
.markdown-preview ul,
.markdown-preview ol,
.markdown-preview blockquote,
.markdown-preview .markdown-table-wrap,
.markdown-preview .markdown-code-block {
  margin: 0 0 14px;
}

.markdown-preview ul,
.markdown-preview ol {
  padding-left: 24px;
}

.markdown-preview li {
  margin: 6px 0;
}

.markdown-preview blockquote {
  padding: 10px 14px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  border-radius: 0 12px 12px 0;
}

.markdown-preview .markdown-frontmatter {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.markdown-preview .markdown-frontmatter summary {
  cursor: pointer;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 900;
}

.markdown-preview .markdown-frontmatter pre {
  margin: 0;
  padding: 12px;
  border-top: 1px solid var(--line);
  overflow: auto;
}

.markdown-preview code {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.markdown-preview .markdown-code-block {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 14px;
  background: #111827;
  color: #e5e7eb;
  overflow: auto;
}

.markdown-preview .markdown-code-block span {
  color: #93c5fd;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.markdown-preview .markdown-code-block code {
  padding: 0;
  background: transparent;
  color: inherit;
  white-space: pre;
}

.markdown-preview .markdown-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.markdown-preview table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

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

.markdown-preview th {
  background: var(--panel-soft);
  font-weight: 900;
}

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

.markdown-preview a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.markdown-preview img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.markdown-preview .markdown-task {
  /* Lists and paragraphs inside a checklist item keep their normal flow. */
  display: block;
  list-style: none;
}

.markdown-preview .markdown-task input[type="checkbox"] {
  display: inline-block;
  width: 1em;
  height: 1em;
  padding: 0;
  margin: 0 8px 0 0;
  vertical-align: middle;
}

/* Keep rich task content inside the existing detail grid and raw answer form. */
.task-detail-shell .task-detail-tab-panel,
.task-detail-shell #taskDetailOverviewQuestionsSlot,
.task-detail-shell #taskDetailTechnicalQuestionsSlot,
.task-detail-shell .detail-panel,
.task-detail-shell .progress-question-card,
.task-detail-shell .question-suggest,
.task-detail-shell .question-suggest-card,
.task-detail-shell .question-suggest-points,
.task-detail-shell .question-answer-current,
.task-markdown,
.task-markdown > * {
  min-width: 0;
}

.task-markdown {
  max-width: 100%;
  white-space: normal;
  line-height: 1.65;
}

.progress-question-text {
  font-weight: 400;
}

.progress-question-card .question-suggest-chip { text-align: left; white-space: normal; }
.progress-question-card .question-suggest-chip:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.progress-question-card .question-recommended-badge { font-size: 12px; font-weight: 600; color: var(--accent-strong); text-transform: none; letter-spacing: 0; }
.progress-question-card .question-context,
.progress-question-card .question-recommendation { min-width: 0; }
.progress-question-card h4 { margin: 0 0 8px; font-size: 14px; }
.progress-question-card .question-recommended-title { margin: 0 0 6px; font-weight: 600; }

.question-answer-current > .task-markdown {
  margin-top: 8px;
}

.task-markdown .markdown-code-block,
.task-markdown .markdown-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.task-markdown .markdown-code-block {
  display: block;
  white-space: normal;
}

.task-markdown th,
.task-markdown td {
  overflow-wrap: normal;
  word-break: normal;
}

.task-markdown .markdown-code-block > span {
  display: block;
  margin-bottom: 8px;
}

.task-markdown .markdown-code-block > code {
  display: block;
  width: max-content;
  min-width: 100%;
  overflow-wrap: normal;
}

.progress-question-card .question-suggest-chip,
.progress-question-card textarea {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.task-work-brief { min-width: 0; }
.task-work-brief h4 { margin: 14px 0 6px; font-size: 15px; }
.task-work-brief h5 { margin: 12px 0 6px; font-size: 14px; }
.task-work-brief p, .task-work-brief li, .task-work-brief dd,
.task-work-brief summary, .task-work-brief td, .task-work-brief th {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  letter-spacing: 0;
}
.work-brief-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0; }
.work-brief-facts dt { color: var(--muted); font-size: 12px; }
.work-brief-facts dd { margin: 4px 0 0; font-weight: 600; }
.work-brief-text { margin: 6px 0 10px; line-height: 1.6; }
.work-brief-review, .work-brief-result { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 4px; }
.work-brief-disclosure { border-top: 1px solid var(--line); padding: 12px 0; }
.work-brief-disclosure > summary { cursor: pointer; font-weight: 600; }
.work-brief-disclosure > summary:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 3px; }
.work-brief-disclosure > div { margin-top: 12px; min-width: 0; }
.work-brief-checkpoint { border-left: 2px solid var(--line); padding-left: 12px; margin-bottom: 16px; }
.work-brief-table-wrap { max-width: 100%; min-width: 0; overflow-x: auto; }
.work-brief-table-wrap table { table-layout: fixed; width: 100%; min-width: 0; border-collapse: collapse; font-size: 13px; }
.work-brief-table-wrap td, .work-brief-table-wrap th { padding: 8px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.question-answer-status:empty { display: none; }

@media (max-width: 600px) {
  .work-brief-facts { grid-template-columns: minmax(0, 1fr); }
  .work-brief-table-wrap table { min-width: 480px; }
}

.progress-question-card .question-suggest-chip code {
  white-space: normal;
}

@media (max-width: 600px) {
  .progress-question-card .question-suggest-tradeoffs {
    grid-template-columns: minmax(0, 1fr);
  }
}

.editor-panel {
  display: grid;
  grid-template-rows: auto minmax(320px, 1fr);
  gap: 12px;
  min-height: 100%;
}

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

.markdown-editor {
  min-height: 520px;
  resize: vertical;
  white-space: pre;
  overflow: auto;
  line-height: 1.55;
  font-family: var(--font-mono);
  font-size: 13px;
  border-radius: 18px;
  background: var(--color-paper);
  color: var(--color-text-main);
  border-color: var(--color-border-soft);
}

.markdown-editor:disabled {
  opacity: 0.72;
  cursor: not-allowed;
}

.mini-view {
  white-space: pre-wrap;
  line-height: 1.55;
  background: var(--panel-soft);
  color: var(--text);
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--line);
  min-height: 120px;
  overflow: auto;
}

.inline-task-link {
  color: var(--color-primary-700);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.feedback-hero,
.feedback-search-panel,
.feedback-list-panel,
.feedback-detail-route-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
}

.feedback-hero {
  padding: 24px;
  margin-bottom: 18px;
}

.feedback-hero h3,
.feedback-list-panel h3,
.feedback-detail-route-shell h3 {
  margin: 0;
}

.feedback-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.feedback-summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 104px;
  padding: 22px;
  border: 1px solid var(--color-border);
  border-radius: 22px;
  background: var(--color-surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.feedback-summary-card.active {
  border-color: var(--color-primary-300);
  background: var(--color-primary-50);
}

.feedback-summary-card span {
  color: var(--muted);
  font-size: 15px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.feedback-summary-card strong {
  font-size: 34px;
  line-height: 1;
}

.feedback-search-panel {
  padding: 18px 28px;
  margin-bottom: 28px;
}

.feedback-search-panel input,
.feedback-detail-route-shell textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  padding: 13px 14px;
}

.feedback-list-panel {
  padding: 28px;
}

.feedback-list-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.feedback-table {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.feedback-table-head,
.feedback-row {
  display: grid;
  grid-template-columns: 160px minmax(340px, 1fr) 170px minmax(180px, 0.7fr) 82px;
  gap: 18px;
  align-items: center;
}

.feedback-table-head {
  padding: 16px 24px;
  color: var(--color-primary-700);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: var(--color-primary-50);
}

.feedback-row {
  width: 100%;
  padding: 18px 24px;
  border: 1px solid var(--color-border-soft);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.feedback-row.active {
  border-color: var(--color-primary-300);
  background: var(--color-primary-50);
}

.feedback-row span,
.feedback-row strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-open-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 62px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  font-weight: 900;
}

.feedback-empty-row {
  padding: 24px;
  border: 1px dashed var(--color-border);
  border-radius: 18px;
  background: var(--color-surface-soft);
}

.feedback-detail-content,
.feedback-block {
  display: grid;
  gap: 12px;
}

.feedback-detail-content {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.58fr);
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.feedback-block {
  padding: 24px;
  border: 1px solid var(--color-border-soft);
  border-radius: 24px;
  background: rgba(244, 248, 251, 0.66);
}

.feedback-detail-route-shell {
  padding: 28px;
}

.feedback-back-link {
  border: 0;
  background: transparent;
  color: var(--color-primary-700);
  font-weight: 900;
  cursor: pointer;
  padding: 0;
  margin-bottom: 18px;
}

.feedback-detail-header {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.feedback-detail-header h3 {
  margin-top: 22px;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.04;
}

.feedback-detail-main {
  display: grid;
  gap: 22px;
}

.feedback-interpretation-block {
  background: var(--color-primary-50);
  border-color: var(--color-primary-200);
}

.feedback-question-block {
  background: var(--color-warning-bg);
  border-color: rgba(204, 132, 15, 0.28);
}

.feedback-supplement-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.feedback-timeline-panel {
  min-height: 320px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #fff;
}

.feedback-timeline-list {
  display: grid;
  gap: 28px;
  margin-top: 24px;
}

.feedback-timeline-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  opacity: 0.52;
}

.feedback-timeline-step.active {
  opacity: 1;
}

.feedback-timeline-dot {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  border-radius: 999px;
  background: var(--muted);
}

.feedback-timeline-primary {
  background: var(--color-primary-700);
}

.feedback-timeline-warning {
  background: var(--color-warning);
}

.feedback-timeline-success {
  background: var(--color-success);
}

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

.feedback-question-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 12px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--color-border-soft);
}

.feedback-question-card div {
  min-width: 0;
}

.feedback-question-card strong,
.feedback-question-card p {
  overflow-wrap: anywhere;
}

.feedback-question-asker {
  margin-top: 6px;
}

.feedback-question-answer-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 12px;
}

.feedback-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

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

.feedback-create-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 91;
  width: min(720px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  transform: translate(-50%, -50%);
}

.feedback-create-panel {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(23, 33, 43, 0.22);
}

.feedback-create-panel h3 {
  margin: 0;
}

.feedback-resolution-panel {
  width: min(620px, 100%);
  margin: 0 auto;
}

.feedback-resolution-description {
  margin: 0;
  color: var(--color-text-muted);
  line-height: 1.55;
}

.feedback-resolution-approval-summary {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid #c9dfd3;
  border-radius: 6px;
  background: #f1f8f4;
}

.feedback-resolution-approval-summary.hidden {
  display: none;
}

.feedback-resolution-approval-summary strong {
  color: #244f3c;
  font-size: 13px;
}

.feedback-resolution-approval-summary p {
  margin: 0;
  color: #577466;
  font-size: 12px;
  line-height: 1.55;
}

#feedbackResolutionReasonField {
  display: grid;
  gap: 7px;
}

#feedbackResolutionReasonField.hidden {
  display: none;
}

.feedback-resolution-technical-fields {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid #d8e3ea;
  border-radius: 6px;
  background: #f8fbfd;
}

.feedback-resolution-technical-fields.hidden {
  display: none;
}

.feedback-resolution-technical-fields > p {
  margin: 0 0 3px;
  color: #5d6b78;
  font-size: 12px;
  line-height: 1.45;
}

.feedback-resolution-panel > label,
.feedback-resolution-technical-fields > label,
#feedbackResolutionReasonField > label {
  color: #455767;
  font-size: 12px;
  font-weight: 800;
}

.feedback-resolution-panel select,
.feedback-resolution-panel textarea {
  width: 100%;
  min-width: 0;
}

.feedback-create-panel input,
.feedback-create-panel textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: #fff;
  color: var(--text);
  padding: 13px 14px;
}

.feedback-status-processing {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}

.feedback-status-needs_more_info {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.feedback-status-triage_ready {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
}

.feedback-status-converted {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.mono {
  font-family: var(--font-mono);
}

.policy-list {
  margin: 0;
  padding-left: 18px;
}

.policy-list code {
  display: block;
  margin-top: 4px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--panel-soft);
  font-size: 12px;
  word-break: break-all;
}

.spec-list,
.cloudpack-panel {
  display: grid;
  gap: 10px;
  align-content: start;
}

.project-docs-list-view {
  display: grid;
  gap: 12px;
}

.project-docs-detail-view {
  display: block;
}

.project-docs-detail-page {
  display: grid;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.policy-taxonomy-shell {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.skill-manager-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.skill-policy-panel {
  min-width: 0;
}

.skill-domain-panel,
.skill-library-panel,
.skill-detail-page,
.policy-category-panel,
.policy-results-panel,
.policy-detail-route,
.policy-detail-meta-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.skill-domain-panel,
.skill-library-panel,
.skill-detail-page,
.policy-category-panel,
.policy-results-panel,
.policy-detail-route {
  padding: 18px;
}

.skill-domain-panel,
.skill-library-panel,
.skill-detail-page {
  min-width: 0;
}

.policy-category-list,
.policy-result-list,
.policy-detail-meta-card {
  display: grid;
  gap: 12px;
}

.policy-category-item,
.policy-result-card {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  border-radius: 18px;
  text-align: left;
  color: var(--text);
  cursor: pointer;
}

.policy-category-item {
  display: grid;
  gap: 4px;
  padding: 12px;
}

.policy-category-item.active,
.policy-result-card.active {
  border-color: rgba(47, 143, 211, 0.46);
  background: var(--accent-soft);
}

.policy-category-item strong,
.policy-category-item span,
.policy-category-item small,
.policy-result-card strong,
.policy-result-card span,
.policy-result-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.policy-category-item span,
.policy-category-item small,
.policy-result-card span,
.policy-result-card small {
  color: var(--muted);
}

.policy-search-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-bottom: 16px;
}

.policy-search-bar input,
.policy-detail-meta-card input,
.policy-detail-meta-card select,
.policy-detail-meta-card textarea {
  width: 100%;
  min-width: 0;
}

.policy-result-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-result-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  overflow: hidden;
}

.skill-result-card {
  min-height: 132px;
  align-content: start;
}

.policy-result-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.policy-result-card span:not(.status-badge) {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.policy-detail-header > div {
  min-width: 0;
}

.policy-detail-header h3,
.policy-detail-header p {
  overflow-wrap: anywhere;
}

.policy-detail-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
}

.policy-detail-meta-card {
  padding: 16px;
  align-content: start;
}

.legacy-policy-drawer {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.legacy-policy-drawer summary {
  cursor: pointer;
  color: var(--muted);
  font-weight: 800;
}

.legacy-policy-body {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.compact-section-head {
  margin-top: 4px;
}

.skill-detail-route {
  display: block;
}

.skill-detail-page {
  display: grid;
  gap: 16px;
}

.skill-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.skill-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.skill-install-box {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
}

.skill-install-box label {
  font-weight: 800;
  color: var(--muted);
}

.skill-install-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.skill-install-row input {
  width: 100%;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.skill-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.skill-readme-preview {
  min-height: 420px;
  max-height: 620px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
  padding: 14px;
  line-height: 1.55;
}

.disabled-link {
  pointer-events: none;
  opacity: 0.48;
}

.bridge-download-shell {
  display: grid;
  gap: 16px;
  max-width: 980px;
}

.bridge-download-hero,
.bridge-download-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow-soft);
}

.bridge-download-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 22px;
}

.bridge-download-hero h3,
.bridge-download-panel h3 {
  margin: 4px 0 8px;
}

.bridge-download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px;
}

.bridge-download-link {
  white-space: nowrap;
}

.bridge-download-code {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 12px;
}

@media (min-width: 1680px) {
  .skill-manager-shell {
    grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  }

  .skill-detail-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  }

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

@media (max-width: 860px) {
  .bridge-download-hero,
  .bridge-download-panel {
    grid-template-columns: 1fr;
  }

  .bridge-download-hero {
    display: grid;
  }

  .bridge-download-link {
    width: 100%;
    justify-content: center;
  }
}

.policy-detail-meta-card label {
  font-weight: 800;
  color: var(--muted);
}

.policy-editor-panel {
  min-width: 0;
}

.empty-state {
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed var(--line);
  color: var(--muted);
  background: var(--panel-soft);
}

.spec-item {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  cursor: pointer;
}

.spec-item.active {
  border-color: rgba(47, 143, 211, 0.38);
  background: var(--accent-soft);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.status-badge.revoked {
  background: var(--color-danger-bg);
  color: var(--color-danger);
}

.danger-action {
  color: var(--color-danger);
  border-color: rgba(194, 65, 12, 0.22);
}

.latest-issued-panel {
  padding: 14px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(47, 143, 211, 0.2);
}

.token-row-meta {
  display: grid;
  gap: 4px;
  font-size: 13px;
  color: var(--muted);
}

.token-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.empty-state {
  padding: 32px 12px;
  text-align: center;
}

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

  .mission-hero,
  .dashboard-layout,
	  .knowledge-explorer-layout,
	  .board-layout,
	  .detail-content,
	  .feedback-detail-content,
	  .split-layout,
	  .account-layout {
	    grid-template-columns: 1fr;
	  }

  .skill-manager-shell,
  .skill-detail-grid {
    grid-template-columns: 1fr;
  }

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

  .project-overview-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .main,
  .sidebar {
    padding: 18px;
  }

  .create-drawer {
    width: 100dvw;
    max-width: none;
    padding: 8px;
    overflow-x: hidden;
    border-left: 0;
  }

  .create-drawer .create-panel {
    min-width: 0;
    padding: 18px;
  }

  .toolbar,
  .review-queue-head,
  .section-head,
  .skill-detail-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .create-grid,
  .create-repo-impact-selector,
  .detail-action-grid,
  .knowledge-grid,
  .project-card-overview,
  .feedback-create-grid,
  .feedback-supplement-row,
  .feedback-question-answer-row,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .task-detail-tabs {
    width: 100%;
  }

  .task-detail-tabs button {
    flex: 1 1 0;
    min-width: 0;
  }

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

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

	  .feedback-table {
	    overflow-x: auto;
	  }

	  .feedback-table-head,
	  .feedback-row {
	    min-width: 860px;
	  }

	  .board-columns {
	    grid-template-columns: repeat(6, minmax(230px, 1fr));
	  }

	  .board-summary-panel,
	  .board-summary-side,
	  .task-detail-toolbar,
	  .drawer-actions {
	    flex-direction: column;
	    align-items: stretch;
	  }

}

/* Keep board controls readable before the application reaches the mobile breakpoint. */
@media (max-width: 1400px) {
  .board-summary-panel,
  .board-summary-side {
    align-items: stretch;
    flex-direction: column;
  }

  .board-summary-side {
    width: 100%;
    min-width: 0;
  }

  .board-summary-panel .metrics-strip {
    flex-wrap: wrap;
    width: 100%;
  }

  .board-summary-side .primary-btn {
    align-self: flex-end;
  }
}

@media (max-width: 760px) {
  .board-summary-side .primary-btn {
    align-self: stretch;
  }

  .board-filter-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .board-filter-panel input {
    width: 100%;
    min-width: 0;
  }
}

/* Feedback to project-task handoff */
.feedback-table-head,
.feedback-row {
  grid-template-columns:
    minmax(240px, 1.15fr)
    minmax(120px, 0.38fr)
    minmax(120px, 0.38fr)
    minmax(190px, 0.7fr)
    minmax(150px, 0.48fr)
    minmax(120px, 0.34fr);
  min-width: 1020px;
}

.feedback-row-task {
  display: flex;
  min-width: 0;
  align-items: center;
}

.feedback-linked-task-summary {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.feedback-linked-task-summary .mono {
  overflow: hidden;
  color: #264f6e;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feedback-linked-project-task {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #b9cedd;
  border-left: 4px solid #2879a8;
  border-radius: 6px;
  background: #f5fafc;
  color: #18384d;
  text-decoration: none;
}

.feedback-linked-project-task > span:first-child,
.feedback-linked-project-task-meta {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.feedback-linked-project-task small {
  color: #5c7080;
}

.feedback-linked-project-task-meta {
  flex: 0 0 auto;
  justify-items: end;
}

.detail-feedback-source-list,
.detail-task-discussion-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--color-border);
}

.detail-feedback-source-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.detail-feedback-source-main,
.detail-feedback-source-main a,
.detail-feedback-source-meta {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.detail-feedback-source-main a {
  color: #18384d;
  text-decoration: none;
}

.detail-feedback-source-main p,
.detail-feedback-source-meta small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.detail-feedback-source-meta {
  justify-items: end;
}

.detail-handoff-mode,
.detail-task-discussion-status {
  width: fit-content;
  padding: 5px 8px;
  border-radius: 5px;
  background: #e5f3ed;
  color: #176242;
  font-size: 11px;
  font-weight: 700;
}

.detail-handoff-mode.mode-existing-task,
.detail-task-discussion-status.is-waiting {
  background: #fff2cf;
  color: #8a5700;
}

.detail-handoff-mode.mode-already-covered {
  background: #e7eef8;
  color: #28537d;
}

.detail-task-discussion-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.detail-task-discussion-message {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.detail-task-discussion-message > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail-task-discussion-message span,
.detail-task-discussion-message a {
  color: var(--muted);
  font-size: 11px;
}

.detail-task-discussion-message p {
  margin: 8px 0;
  line-height: 1.65;
  white-space: pre-wrap;
}

.detail-task-discussion-composer {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
}

.detail-task-response-label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
}

.detail-task-response-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-task-response-option {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid var(--color-border);
  border-radius: 5px;
  background: #fff;
  font-size: 12px;
}

.detail-task-response-option.is-disabled {
  opacity: 0.55;
}

.detail-task-response-option small {
  color: #8a5700;
}

.detail-task-discussion-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.detail-task-discussion-actions p {
  margin: 0;
}

@media (max-width: 760px) {
  .feedback-row-task {
    display: grid;
  }

  .feedback-linked-project-task,
  .detail-task-discussion-header,
  .detail-task-discussion-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .feedback-linked-project-task-meta,
  .detail-feedback-source-meta {
    justify-items: start;
  }

  .detail-feedback-source-item {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Project operations v2: dense human workspace for timeline and feedback. */
.timeline-commandbar,
.timeline-viewbar,
.timeline-filterbar,
.timeline-readable-view,
.timeline-focus-section,
.timeline-workspace,
.timeline-unplanned-section,
.feedback-hero,
.feedback-search-panel,
.feedback-list-panel,
.feedback-detail-route-shell,
.feedback-block,
.feedback-decision-panel,
.feedback-summary-card,
.timeline-plan-panel,
.feedback-create-panel {
  border-radius: 8px;
  box-shadow: none;
}

.timeline-commandbar,
.timeline-viewbar,
.timeline-focus-section,
.timeline-workspace,
.timeline-unplanned-section,
.timeline-readable-view {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}

.timeline-commandbar {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 14px 16px;
}

.timeline-commandbar h3,
.timeline-focus-section h3,
.timeline-unplanned-section h3 {
  margin: 2px 0 5px;
  font-size: 18px;
}

.timeline-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-border);
}

.timeline-metric {
  min-width: 92px;
  padding: 8px 10px;
  background: #fff;
}

.timeline-metric strong,
.timeline-metric span {
  display: block;
}

.timeline-metric strong {
  font-size: 20px;
}

.timeline-metric span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.metric-primary strong { color: var(--color-primary-700); }
.metric-warning strong { color: var(--color-warning); }
.metric-danger strong { color: var(--color-danger); }
.metric-neutral strong { color: #475569; }

.timeline-migration-audit {
  margin-top: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
}

.timeline-migration-audit:empty {
  display: none;
}

.timeline-migration-audit-disclosure > summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  min-height: 46px;
  padding: 8px 12px;
  cursor: pointer;
  list-style: none;
}

.timeline-migration-audit-disclosure > summary::-webkit-details-marker {
  display: none;
}

.timeline-migration-audit-title {
  display: flex;
  min-width: 0;
  gap: 9px;
  align-items: baseline;
}

.timeline-migration-audit-title strong {
  font-size: 13px;
}

.timeline-migration-audit-title small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-migration-audit-quick {
  display: flex;
  gap: 5px;
  align-items: baseline;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.timeline-migration-audit-quick b {
  color: #237357;
  font-size: 14px;
}

.timeline-migration-audit-quick b.has-mismatch {
  color: var(--color-danger);
}

.timeline-migration-audit-toggle {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: #245574;
  font-size: 11px;
  font-weight: 800;
}

.timeline-migration-audit-toggle b {
  font-size: 15px;
  transition: transform 160ms ease;
}

.timeline-migration-audit-disclosure[open] .timeline-migration-audit-toggle b {
  transform: rotate(180deg);
}

.timeline-migration-audit-body {
  padding: 0 12px 10px;
  border-top: 1px solid var(--color-border-soft);
}

.timeline-migration-audit-body nav {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  padding-top: 8px;
}

.timeline-migration-audit-body a {
  padding: 4px 8px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  color: #245574;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.timeline-migration-audit-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
  border-top: 1px solid var(--color-border-soft);
}

.migration-audit-fact {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 9px 10px 2px;
  border-right: 1px solid var(--color-border-soft);
}

.migration-audit-fact:last-child {
  border-right: 0;
}

.migration-audit-fact strong {
  color: #475569;
  font-size: 18px;
}

.migration-audit-fact span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.migration-audit-fact.tone-success strong { color: #237357; }
.migration-audit-fact.tone-primary strong { color: var(--color-primary-700); }
.migration-audit-fact.tone-warning strong { color: #9a6700; }
.migration-audit-fact.tone-danger strong { color: var(--color-danger); }

.timeline-viewbar {
  display: block;
  margin-top: 12px;
  padding: 7px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.timeline-view-group {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 4px;
  align-items: center;
}

.timeline-view-group + .timeline-view-group {
  padding-top: 4px;
  border-top: 1px solid var(--color-border-soft);
}

.timeline-view-group-label {
  padding: 0 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-view-tabs {
  display: grid;
  width: 100%;
  gap: 3px;
}

.timeline-view-tabs-primary {
  grid-template-columns: repeat(4, minmax(160px, 220px));
  justify-content: start;
}

.timeline-view-tabs button {
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.timeline-view-tabs button.active {
  background: var(--color-primary-50);
  color: var(--color-primary-700);
  box-shadow: inset 0 0 0 1px rgba(47, 143, 211, 0.2);
}

.timeline-filterbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.55fr) minmax(160px, 0.42fr);
  gap: 12px;
  align-items: end;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.timeline-filterbar.show-zoom {
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.55fr) minmax(160px, 0.42fr) auto;
}

.timeline-readable-view {
  display: grid;
  min-width: 0;
  gap: 10px;
  margin-bottom: 12px;
  padding: 10px;
}

.timeline-parallel-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.timeline-parallel-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: var(--color-border-soft);
}

.timeline-parallel-summary span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
}

.timeline-parallel-summary strong {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-parallel-scroll {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: #fff;
}

.timeline-parallel-canvas {
  display: grid;
  grid-template-columns: 92px minmax(var(--parallel-lanes-width), 1fr);
  grid-template-rows: 38px var(--parallel-map-height);
  min-width: calc(92px + var(--parallel-lanes-width));
}

.timeline-parallel-axis-head,
.timeline-parallel-lane-heads {
  border-bottom: 1px solid var(--color-border);
  background: #f4f7f9;
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-parallel-axis-head {
  position: sticky;
  z-index: 6;
  left: 0;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--color-border);
}

.timeline-parallel-lane-heads {
  display: grid;
  grid-template-columns: repeat(var(--parallel-lane-count), minmax(250px, 1fr));
}

.timeline-parallel-lane-heads span {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--color-border-soft);
}

.timeline-parallel-axis {
  position: sticky;
  z-index: 5;
  left: 0;
  height: var(--parallel-map-height);
  border-right: 1px solid var(--color-border);
  background: #f8fafb;
}

.timeline-parallel-tick {
  position: absolute;
  right: 10px;
  display: grid;
  width: 70px;
  justify-items: end;
  transform: translateY(-50%);
}

.timeline-parallel-tick::after {
  position: absolute;
  top: 50%;
  right: -15px;
  width: 9px;
  height: 1px;
  background: #9eb0bd;
  content: "";
}

.timeline-parallel-tick strong {
  color: #435363;
  font-size: 9px;
}

.timeline-parallel-tick small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.timeline-parallel-tick.is-today strong,
.timeline-parallel-tick.is-today small {
  color: #a43f3b;
}

.timeline-parallel-lanes {
  position: relative;
  height: var(--parallel-map-height);
  overflow: hidden;
  background-color: #fbfcfd;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--parallel-day-size) - 1px), #eef2f5 calc(var(--parallel-day-size) - 1px), #eef2f5 var(--parallel-day-size));
}

.timeline-parallel-lane-grid {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(var(--parallel-lane-count), minmax(250px, 1fr));
}

.timeline-parallel-lane-grid span {
  border-right: 1px solid var(--color-border-soft);
}

.timeline-parallel-today-line {
  position: absolute;
  z-index: 4;
  right: 0;
  left: 0;
  height: 2px;
  background: #c14945;
  pointer-events: none;
}

.timeline-parallel-today-line b {
  position: absolute;
  top: -18px;
  left: 8px;
  padding: 2px 5px;
  border: 1px solid #efc0bd;
  border-radius: 4px;
  background: #fff6f5;
  color: #9d3734;
  font-size: 8px;
  white-space: nowrap;
}

.timeline-parallel-objective {
  position: absolute;
  z-index: 2;
  left: calc((100% / var(--parallel-lane-count)) * var(--parallel-lane-index) + 9px);
  display: grid;
  width: calc((100% / var(--parallel-lane-count)) - 18px);
  min-height: 62px;
  align-content: start;
  gap: 6px;
  overflow: hidden;
  padding: 9px 10px;
  border: 1px solid #cfd9e0;
  border-top: 4px solid #7793a7;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(27, 55, 75, 0.08);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0;
  text-align: left;
}

.timeline-parallel-objective:hover {
  border-color: #78afd1;
  background: #fafdff;
  box-shadow: 0 5px 14px rgba(27, 74, 105, 0.14);
}

.timeline-parallel-objective.status-in_progress { border-top-color: #2f8fd3; }
.timeline-parallel-objective.status-user_review { border-top-color: #d59a24; }
.timeline-parallel-objective.status-todo,
.timeline-parallel-objective.status-backlog { border-top-color: #5f9bbd; }
.timeline-parallel-objective.status-done { border-top-color: #25855a; }
.timeline-parallel-objective.status-cancelled { border-top-color: #7b8794; }

.timeline-parallel-objective-topline,
.timeline-parallel-objective-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.timeline-parallel-objective-topline > small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-parallel-objective > strong {
  font-size: 13px;
  line-height: 1.35;
}

.timeline-parallel-objective-dates {
  color: #526574;
  font-size: 9px;
  font-weight: 800;
}

.timeline-parallel-objective-progress {
  overflow: hidden;
  height: 5px;
  border-radius: 3px;
  background: #e6ecf0;
}

.timeline-parallel-objective-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #4e9bca;
}

.timeline-parallel-objective.status-done .timeline-parallel-objective-progress i {
  background: #3d9a68;
}

.timeline-parallel-objective-footer {
  color: var(--muted);
}

.timeline-parallel-objective-footer small {
  overflow: hidden;
  max-width: 50%;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-parallel-detail-canvas {
  grid-template-columns: 92px minmax(var(--parallel-lanes-width), 1fr);
  min-width: calc(92px + var(--parallel-lanes-width));
}

.timeline-parallel-detail-canvas .timeline-parallel-lane-heads,
.timeline-parallel-detail-canvas .timeline-parallel-lane-grid {
  grid-template-columns: repeat(var(--parallel-lane-count), minmax(460px, 1fr));
}

.timeline-parallel-detail-canvas .timeline-parallel-lanes {
  background-image: none;
}

.timeline-parallel-detail-canvas .timeline-parallel-today-line {
  z-index: 1;
}

.timeline-parallel-detail-tick-lines {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
}

.timeline-parallel-detail-tick-lines i {
  position: absolute;
  right: 0;
  left: 0;
  border-top: 1px solid #e5ebef;
}

.timeline-parallel-detail-duration-rail {
  position: absolute;
  z-index: 1;
  left: calc((100% / var(--parallel-lane-count)) * (var(--parallel-lane-index) + 0.5));
  width: 3px;
  border-radius: 2px;
  background: #7793a7;
  transform: translateX(-50%);
}

.timeline-parallel-detail-duration-rail::after {
  position: absolute;
  right: -5px;
  bottom: 0;
  width: 13px;
  height: 3px;
  border-radius: 2px;
  background: inherit;
  content: "";
}

.timeline-parallel-detail-duration-rail.status-in_progress { background: #2f8fd3; }
.timeline-parallel-detail-duration-rail.status-user_review { background: #d59a24; }
.timeline-parallel-detail-duration-rail.status-todo,
.timeline-parallel-detail-duration-rail.status-backlog { background: #5f9bbd; }
.timeline-parallel-detail-duration-rail.status-done { background: #25855a; }
.timeline-parallel-detail-duration-rail.status-cancelled { background: #7b8794; }

.timeline-parallel-detail-objective {
  position: absolute;
  z-index: 2;
  left: calc((100% / var(--parallel-lane-count)) * var(--parallel-lane-index) + 9px);
  display: grid;
  width: calc((100% / var(--parallel-lane-count)) - 18px);
  min-height: 104px;
  align-content: start;
  overflow: hidden;
  border: 1px solid #cfd9e0;
  border-top: 4px solid #7793a7;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(27, 55, 75, 0.08);
}

.timeline-parallel-detail-objective.status-in_progress { border-top-color: #2f8fd3; }
.timeline-parallel-detail-objective.status-user_review { border-top-color: #d59a24; }
.timeline-parallel-detail-objective.status-todo,
.timeline-parallel-detail-objective.status-backlog { border-top-color: #5f9bbd; }
.timeline-parallel-detail-objective.status-done { border-top-color: #25855a; }
.timeline-parallel-detail-objective.status-cancelled { border-top-color: #7b8794; }

.timeline-parallel-detail-objective.is-expanded {
  grid-template-rows: auto minmax(0, 1fr);
  box-shadow: 0 7px 18px rgba(27, 74, 105, 0.13);
}

.timeline-parallel-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  align-items: center;
  min-height: 110px;
  padding: 10px 11px;
  background: #fff;
}

.timeline-parallel-detail-objective.is-expanded .timeline-parallel-detail-head {
  border-bottom: 1px solid var(--color-border);
  background: #f8fafb;
}

.timeline-parallel-detail-topline,
.timeline-parallel-detail-summary {
  display: flex;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.timeline-parallel-detail-topline > small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-parallel-detail-head h3 {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-parallel-detail-summary {
  color: #526574;
  font-size: 9px;
  font-weight: 800;
}

.timeline-parallel-detail-head > .timeline-parallel-objective-progress {
  grid-column: 1;
}

.timeline-parallel-detail-toggle {
  display: inline-flex;
  grid-column: 2;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  min-height: 26px;
  padding: 4px 7px;
  border: 1px solid #c9d9e4;
  border-radius: 5px;
  background: #fff;
  color: #245574;
  cursor: pointer;
  font-family: inherit;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0;
}

.timeline-parallel-detail-toggle:hover {
  border-color: #78afd1;
  background: #f1f8fc;
}

.timeline-parallel-detail-toggle b {
  display: grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border-radius: 50%;
  background: #e5f2fa;
  font-size: 13px;
  line-height: 1;
}

.timeline-parallel-detail-body {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.timeline-parallel-detail-body-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--muted);
  font-size: 9px;
}

.timeline-parallel-detail-body-head strong {
  color: #435363;
  text-transform: uppercase;
}

.timeline-parallel-detail-task-list {
  display: grid;
  min-height: 0;
}

.timeline-parallel-detail-task {
  display: grid;
  min-height: 0;
  align-content: center;
  gap: 4px;
  padding: 8px 11px;
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--text);
  text-decoration: none;
}

.timeline-parallel-detail-task:last-child {
  border-bottom: 0;
}

.timeline-parallel-detail-task:hover {
  background: #f7fbfe;
}

.timeline-parallel-detail-task-topline,
.timeline-parallel-detail-task-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.timeline-parallel-detail-task-topline > strong {
  overflow: hidden;
  color: #245574;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-parallel-detail-task-title {
  overflow: hidden;
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-parallel-detail-task-overview {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.timeline-parallel-detail-task-meta {
  padding-top: 3px;
  color: #526574;
  font-size: 8px;
  font-weight: 800;
}

.timeline-parallel-detail-task-meta span,
.timeline-parallel-detail-task-meta time {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-continuous-workspace {
  display: grid;
  gap: 8px;
  min-width: 0;
}

#timelineContinuousDisplayPanel {
  min-width: 0;
}

.timeline-continuous-displaybar {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
  min-height: 36px;
}

.timeline-continuous-displaybar > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-continuous-display-tabs {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  padding: 3px;
  border: 1px solid #d3dde4;
  border-radius: 7px;
  background: #eef3f6;
}

.timeline-continuous-display-tabs button {
  min-height: 28px;
  padding: 5px 12px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #526574;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.timeline-continuous-display-tabs button:hover {
  color: #1f5f88;
}

.timeline-continuous-display-tabs button.active {
  background: #fff;
  color: #1f6f9f;
  box-shadow: 0 1px 4px rgba(27, 55, 75, 0.14);
}

.timeline-surface-roadmap-variant {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.timeline-surface-roadmap-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 16px;
  align-items: end;
  padding: 14px 16px;
  border: 1px solid #d3dde4;
  border-radius: 7px;
  background: #f7fafb;
}

.timeline-surface-roadmap-toolbar > div,
.timeline-surface-roadmap-toolbar label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.timeline-surface-roadmap-toolbar > div > span,
.timeline-surface-roadmap-toolbar label > span {
  color: #667a88;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-surface-roadmap-toolbar h4,
.timeline-surface-roadmap-toolbar p {
  margin: 0;
}

.timeline-surface-roadmap-toolbar h4 {
  color: #203d50;
  font-size: 18px;
}

.timeline-surface-roadmap-toolbar p {
  color: #607482;
  font-size: 11px;
}

.timeline-surface-roadmap-toolbar select {
  width: 100%;
  min-height: 38px;
  padding: 7px 32px 7px 10px;
  border: 1px solid #bfcdd6;
  border-radius: 6px;
  background: #fff;
  color: #203d50;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.timeline-surface-roadmap-coverage {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.timeline-surface-roadmap-coverage span {
  padding: 5px 8px;
  border: 1px solid #d8e2e8;
  border-radius: 4px;
  background: #fff;
  color: #526574;
  font-size: 10px;
}

.timeline-surface-roadmap-coverage span:first-child {
  border-color: #b9d4e3;
  background: #eef7fb;
  color: #245f7d;
}

.timeline-surface-roadmap-coverage span.is-warning {
  border-color: #e2c98c;
  background: #fff9ec;
  color: #7a5a13;
}

.timeline-detail-surface-context {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
  margin-bottom: 10px;
  padding: 11px 14px;
  border: 1px solid #b9d4e3;
  border-left: 4px solid #2f8fd3;
  background: #eef7fb;
}

.timeline-detail-surface-context > div:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.timeline-detail-surface-context span,
.timeline-detail-surface-context small {
  color: #526f80;
  font-size: 10px;
}

.timeline-detail-surface-context strong {
  color: #183f57;
  font-size: 14px;
}

.timeline-detail-surface-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.timeline-detail-surface-actions button {
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid #9ebdce;
  border-radius: 5px;
  background: #fff;
  color: #245f7d;
  cursor: pointer;
  font: inherit;
  font-size: 10px;
  font-weight: 900;
}

.timeline-detail-surface-actions button:hover {
  border-color: #2f8fd3;
  background: #f7fcff;
}

.timeline-quarter-roadmap-title-static {
  cursor: default;
}

.timeline-quarter-roadmap-title-static:hover {
  background: #fff;
  color: inherit;
}

.timeline-quarter-roadmap {
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 18px 22px 28px;
  border-top: 1px solid #d7e0e6;
  border-bottom: 1px solid #d7e0e6;
  background: #f8fafb;
}

.timeline-quarter-roadmap::before {
  position: absolute;
  z-index: 0;
  top: 28px;
  bottom: 28px;
  left: 50%;
  width: 2px;
  background: #a9bac6;
  content: "";
  transform: translateX(-1px);
}

.timeline-quarter-roadmap-group {
  position: relative;
  z-index: 1;
}

.timeline-quarter-roadmap-group + .timeline-quarter-roadmap-group {
  margin-top: 20px;
}

.timeline-quarter-roadmap-label {
  display: grid;
  width: 84px;
  min-height: 50px;
  margin: 0 auto 8px;
  place-content: center;
  border: 1px solid #294c62;
  border-radius: 6px;
  background: #294c62;
  color: #fff;
  text-align: center;
  box-shadow: 0 0 0 5px #f8fafb;
}

.timeline-quarter-roadmap-label strong {
  font-size: 12px;
}

.timeline-quarter-roadmap-label span {
  color: #c9dbe6;
  font-size: 9px;
  font-weight: 800;
}

.timeline-quarter-roadmap-events {
  display: grid;
}

.timeline-quarter-roadmap-event {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr);
  align-items: center;
  min-height: 150px;
}

.timeline-quarter-roadmap-side {
  position: relative;
  width: min(100%, 410px);
}

.timeline-quarter-roadmap-side-left {
  justify-self: end;
}

.timeline-quarter-roadmap-side-right {
  justify-self: start;
}

.timeline-quarter-roadmap-title-shell {
  display: grid;
  gap: 7px;
}

.timeline-quarter-roadmap-month-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  justify-content: space-between;
  align-items: baseline;
  padding: 0 10px;
  color: #435363;
}

.timeline-quarter-roadmap-month-summary strong {
  font-size: 11px;
}

.timeline-quarter-roadmap-month-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.timeline-quarter-roadmap-title-group {
  display: grid;
  gap: 4px 8px;
}

.timeline-quarter-roadmap-title-group.is-dense {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.timeline-quarter-roadmap-title {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  width: 100%;
  min-height: 52px;
  padding: 9px 11px;
  border: 0;
  background: transparent;
  color: #1d2d39;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0;
}

.timeline-quarter-roadmap-event.is-left .timeline-quarter-roadmap-title {
  grid-template-columns: minmax(0, 1fr) 8px;
  border-right: 3px solid #7892a3;
  text-align: right;
}

.timeline-quarter-roadmap-event.is-left .timeline-quarter-roadmap-title-copy {
  grid-column: 1;
  grid-row: 1;
}

.timeline-quarter-roadmap-event.is-left .timeline-quarter-roadmap-status-dot {
  grid-column: 2;
  grid-row: 1;
}

.timeline-quarter-roadmap-event.is-right .timeline-quarter-roadmap-title {
  border-left: 3px solid #7892a3;
  text-align: left;
}

.timeline-quarter-roadmap-title.status-in_progress { border-color: #2f8fd3; }
.timeline-quarter-roadmap-title.status-user_review { border-color: #d59a24; }
.timeline-quarter-roadmap-title.status-done { border-color: #25855a; }
.timeline-quarter-roadmap-title.status-cancelled { border-color: #7b8794; }

.timeline-quarter-roadmap-title:hover {
  background: #eef5f8;
  color: #1f6f9f;
}

.timeline-quarter-roadmap-title strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.timeline-quarter-roadmap-title-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.timeline-quarter-roadmap-title-copy small {
  color: #6b7c89;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.timeline-quarter-roadmap-status-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #7892a3;
}

.timeline-quarter-roadmap-title.status-in_progress .timeline-quarter-roadmap-status-dot { background: #2f8fd3; }
.timeline-quarter-roadmap-title.status-user_review .timeline-quarter-roadmap-status-dot { background: #d59a24; }
.timeline-quarter-roadmap-title.status-done .timeline-quarter-roadmap-status-dot { background: #25855a; }
.timeline-quarter-roadmap-title.status-cancelled .timeline-quarter-roadmap-status-dot { background: #7b8794; }

.timeline-quarter-roadmap-event.is-left .timeline-quarter-roadmap-side-left::after,
.timeline-quarter-roadmap-event.is-right .timeline-quarter-roadmap-side-right::after {
  position: absolute;
  top: 50%;
  width: 42px;
  height: 1px;
  background: #879ca9;
  content: "";
}

.timeline-quarter-roadmap-event.is-left .timeline-quarter-roadmap-side-left::after {
  right: -42px;
}

.timeline-quarter-roadmap-event.is-right .timeline-quarter-roadmap-side-right::after {
  left: -42px;
}

.timeline-quarter-roadmap-node {
  position: relative;
  z-index: 2;
  display: grid;
  width: 88px;
  height: 88px;
  justify-self: center;
  place-items: center;
  border: 3px solid #7892a3;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 7px #f8fafb;
}

.timeline-quarter-roadmap-event.status-in_progress .timeline-quarter-roadmap-node { border-color: #2f8fd3; }
.timeline-quarter-roadmap-event.status-user_review .timeline-quarter-roadmap-node { border-color: #d59a24; }
.timeline-quarter-roadmap-event.status-done .timeline-quarter-roadmap-node { border-color: #25855a; }
.timeline-quarter-roadmap-event.status-cancelled .timeline-quarter-roadmap-node { border-color: #7b8794; }

.timeline-quarter-roadmap-node time {
  display: grid;
  place-items: center;
  color: #294c62;
}

.timeline-quarter-roadmap-node strong {
  font-size: 24px;
  line-height: 1;
}

.timeline-quarter-roadmap-node small {
  margin-bottom: 4px;
  color: #667a88;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-continuous-lane-navigator {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto 32px;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: #f6f9fb;
}

.timeline-continuous-lane-tabs {
  display: flex;
  min-width: 0;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.timeline-continuous-lane-tabs::-webkit-scrollbar {
  display: none;
}

.timeline-continuous-lane-tabs button,
.timeline-lane-step {
  min-height: 30px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #526574;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.timeline-continuous-lane-tabs button {
  padding: 6px 12px;
}

.timeline-continuous-lane-tabs button.active {
  background: #fff;
  color: #1f6f9f;
  box-shadow: inset 0 0 0 1px #bfd6e4, 0 1px 3px rgba(27, 55, 75, 0.1);
}

.timeline-lane-step {
  display: grid;
  place-items: center;
  font-size: 20px;
}

.timeline-lane-step:hover:not(:disabled) {
  background: #e8f2f8;
  color: #1f6f9f;
}

.timeline-lane-step:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.timeline-lane-position {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.timeline-continuous-mobile-lane {
  display: none;
}

.timeline-continuous-desktop {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.timeline-continuous-canvas {
  grid-template-columns: 92px minmax(var(--parallel-lanes-width), 1fr);
  min-width: calc(92px + var(--parallel-lanes-width));
}

.timeline-continuous-canvas .timeline-parallel-lane-heads,
.timeline-continuous-canvas .timeline-parallel-lane-grid {
  grid-template-columns: repeat(var(--parallel-lane-count), minmax(var(--continuous-lane-width, 800px), 1fr));
}

.timeline-continuous-canvas .timeline-parallel-lanes {
  background-image: none;
}

.timeline-continuous-canvas .timeline-parallel-today-line {
  z-index: 1;
}

.timeline-continuous-objective {
  position: absolute;
  z-index: 2;
  left: calc((100% / var(--parallel-lane-count)) * var(--parallel-lane-index) + 9px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: calc((100% / var(--parallel-lane-count)) - 18px);
  min-height: 126px;
  overflow: hidden;
  border: 1px solid #cfd9e0;
  border-top: 4px solid #7793a7;
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(27, 55, 75, 0.09);
}

.timeline-continuous-objective.status-in_progress { border-top-color: #2f8fd3; }
.timeline-continuous-objective.status-user_review { border-top-color: #d59a24; }
.timeline-continuous-objective.status-todo,
.timeline-continuous-objective.status-backlog { border-top-color: #5f9bbd; }
.timeline-continuous-objective.status-done { border-top-color: #25855a; }
.timeline-continuous-objective.status-cancelled { border-top-color: #7b8794; }

.timeline-continuous-objective.is-expanded {
  min-height: 218px;
}

.timeline-continuous-objective.is-collapsed {
  grid-template-rows: minmax(0, 1fr);
}

.timeline-continuous-objective.is-highlighted {
  outline: 3px solid rgba(47, 143, 211, 0.34);
  outline-offset: 2px;
}

.timeline-objective-head.timeline-continuous-objective-head {
  grid-template-columns: 38px minmax(260px, 1fr) auto auto;
  min-width: 760px;
  border-bottom: 1px solid var(--color-border);
}

.timeline-continuous-objective.is-collapsed .timeline-continuous-objective-head {
  height: 100%;
  border-bottom: 0;
}

.timeline-continuous-toggle {
  display: inline-flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  min-height: 28px;
  padding: 4px 8px;
  border: 1px solid #c9d9e4;
  border-radius: 5px;
  background: #fff;
  color: #245574;
  cursor: pointer;
  font-family: inherit;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

.timeline-continuous-toggle:hover {
  border-color: #78afd1;
  background: #f1f8fc;
}

.timeline-continuous-toggle b {
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 50%;
  background: #e5f2fa;
  font-size: 13px;
  line-height: 1;
}

.timeline-continuous-objective.phase-after .timeline-objective-time-summary span {
  color: #9a4f24;
}

.timeline-objective-period {
  display: block;
  margin-top: 3px;
  color: #5c7282;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.timeline-continuous-table {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  overflow-x: auto;
}

.timeline-continuous-task-list {
  display: grid;
  min-width: 760px;
  min-height: 0;
}

.timeline-continuous-empty-week {
  display: grid;
  min-height: 72px;
  margin: 0;
  padding: 18px;
  place-items: center;
  color: #667986;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.timeline-month-week-detail {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.timeline-month-week-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: #f6f9fb;
}

.timeline-month-week-summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.timeline-month-week-summary strong {
  color: #243b4b;
}

.timeline-month-frame-list {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.timeline-month-frame {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cad7df;
  border-radius: 8px;
  background: #f8fafb;
}

.timeline-month-frame-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  justify-content: space-between;
  align-items: center;
  min-height: 64px;
  padding: 11px 14px;
  border-bottom: 1px solid #cad7df;
  background: #eaf2f6;
}

.timeline-month-frame-title {
  display: grid;
  gap: 2px;
}

.timeline-month-frame-title span,
.timeline-week-frame-label {
  color: #597080;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-month-frame-title h2 {
  margin: 0;
  color: #1e3d52;
  font-size: 19px;
  line-height: 1.25;
}

.timeline-month-frame-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.timeline-month-frame-facts span {
  color: #5f7280;
  font-size: 11px;
  font-weight: 700;
}

.timeline-month-frame-facts strong {
  color: #1f435b;
}

.timeline-month-weeks {
  display: grid;
}

.timeline-week-frame {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  min-width: 0;
  border-bottom: 1px solid #d9e2e8;
}

.timeline-week-frame:last-child {
  border-bottom: 0;
}

.timeline-week-frame-head {
  position: relative;
  display: grid;
  gap: 4px;
  align-content: start;
  min-height: 136px;
  padding: 14px 12px 14px 18px;
  border-right: 1px solid #d9e2e8;
  background: #fbfcfd;
}

.timeline-week-frame-head::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 7px;
  width: 2px;
  background: #c7d3db;
  content: "";
}

.timeline-week-frame-head::after {
  position: absolute;
  top: 21px;
  left: 3px;
  width: 10px;
  height: 10px;
  border: 2px solid #7892a3;
  border-radius: 50%;
  background: #fff;
  content: "";
}

.timeline-week-frame-head > strong {
  color: #263f50;
  font-size: 13px;
  line-height: 1.35;
}

.timeline-week-frame-head > small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
}

.timeline-week-frame-head > b {
  width: fit-content;
  margin-top: 5px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #fff1ee;
  color: #bd3d2c;
  font-size: 9px;
  line-height: 1.2;
}

.timeline-week-frame.is-current .timeline-week-frame-head {
  background: #fff9f7;
}

.timeline-week-frame.is-current .timeline-week-frame-head::before {
  background: #df5f4e;
}

.timeline-week-frame.is-current .timeline-week-frame-head::after {
  border-color: #df5f4e;
}

.timeline-week-frame-content {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  align-content: start;
}

.timeline-week-objective {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #cfd9e0;
  border-left: 4px solid #7793a7;
  border-radius: 7px;
  background: #fff;
}

.timeline-week-objective.status-in_progress { border-left-color: #2f8fd3; }
.timeline-week-objective.status-user_review { border-left-color: #d59a24; }
.timeline-week-objective.status-todo,
.timeline-week-objective.status-backlog { border-left-color: #5f9bbd; }
.timeline-week-objective.status-done { border-left-color: #25855a; }
.timeline-week-objective.status-cancelled { border-left-color: #7b8794; }
.timeline-week-objective.status-empty { border-left-color: #aab8c1; }

.timeline-week-objective.is-highlighted {
  outline: 3px solid rgba(47, 143, 211, 0.34);
  outline-offset: 2px;
}

.timeline-week-objective-head {
  display: grid;
  grid-template-columns: 34px minmax(240px, 1fr) auto auto;
  gap: 8px 12px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  background: #f7f9fb;
}

.timeline-week-objective.is-empty .timeline-week-objective-head {
  background: #fbfcfd;
}

.timeline-week-objective-status {
  justify-self: end;
  white-space: nowrap;
}

.timeline-week-objective.status-empty .timeline-week-objective-status {
  background: #edf1f3;
  color: #657784;
}

.timeline-week-objective-facts {
  display: flex;
  grid-column: 2 / -1;
  flex-wrap: wrap;
  gap: 5px 16px;
  padding-top: 7px;
  border-top: 1px solid #dfe7ec;
}

.timeline-week-objective-facts span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.timeline-week-objective-facts strong {
  color: #3d5565;
}

.timeline-week-objective-body {
  min-width: 0;
  border-top: 1px solid #dfe7ec;
}

.timeline-week-task-list {
  display: grid;
}

.timeline-week-objective.is-collapsed .timeline-week-objective-head {
  background: #fbfcfd;
}

.timeline-continuous-task-list .timeline-readable-task {
  min-height: 0;
  align-content: center;
}

.timeline-continuous-table .timeline-objective-table-head,
.timeline-continuous-task-list .timeline-readable-task {
  grid-template-columns: 90px minmax(280px, 1fr) minmax(110px, 0.35fr) 120px 90px;
  min-width: 760px;
}

.timeline-continuous-mobile-lane > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 1px solid var(--color-border);
  border-radius: 7px 7px 0 0;
  background: #f4f7f9;
  color: #435363;
  font-size: 11px;
}

.timeline-continuous-mobile-objectives {
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.timeline-continuous-mobile-objective {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-top: 4px solid #7793a7;
  border-radius: 7px;
  background: #fff;
}

.timeline-continuous-mobile-objective.status-in_progress { border-top-color: #2f8fd3; }
.timeline-continuous-mobile-objective.status-user_review { border-top-color: #d59a24; }
.timeline-continuous-mobile-objective.status-todo,
.timeline-continuous-mobile-objective.status-backlog { border-top-color: #5f9bbd; }
.timeline-continuous-mobile-objective.status-done { border-top-color: #25855a; }
.timeline-continuous-mobile-objective.status-cancelled { border-top-color: #7b8794; }

.timeline-continuous-mobile-objective.is-highlighted {
  outline: 3px solid rgba(47, 143, 211, 0.34);
  outline-offset: 2px;
}

.timeline-continuous-mobile-objective-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 30px;
  gap: 8px;
  align-items: center;
  padding: 10px;
}

.timeline-continuous-mobile-objective-head > div {
  min-width: 0;
}

.timeline-continuous-mobile-objective-head > div > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-continuous-mobile-objective-head h3 {
  margin: 2px 0 0;
  font-size: 15px;
  line-height: 1.35;
}

.timeline-mobile-toggle {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid #c9d9e4;
  border-radius: 5px;
  background: #fff;
  color: #245574;
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.timeline-continuous-mobile-objective-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
  background: var(--color-border-soft);
}

.timeline-continuous-mobile-objective-meta span {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  background: #fbfcfd;
  color: var(--muted);
  font-size: 11px;
}

.timeline-continuous-mobile-objective-meta strong {
  color: #435363;
  font-size: 12px;
}

.timeline-continuous-mobile-task-list {
  display: grid;
}

.timeline-objective-roadmap-item.is-highlighted .timeline-objective-group {
  outline: 3px solid rgba(47, 143, 211, 0.34);
  outline-offset: 2px;
}

.timeline-objective-roadmap {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.timeline-objective-roadmap-item {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  min-width: 0;
}

.timeline-objective-vertical-time {
  position: relative;
  min-height: 100%;
  color: #34495a;
}

.timeline-objective-date {
  position: absolute;
  left: 0;
  display: grid;
  width: 92px;
  align-content: start;
  justify-items: end;
}

.timeline-objective-date-start {
  top: 9px;
}

.timeline-objective-date-end {
  bottom: 9px;
}

.timeline-objective-date small {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-objective-date strong {
  margin-top: 2px;
  font-size: 22px;
  line-height: 1;
}

.timeline-objective-date span,
.timeline-objective-date em {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
}

.timeline-objective-vertical-axis {
  position: absolute;
  top: 24px;
  right: 7px;
  bottom: 24px;
  width: 20px;
}

.timeline-objective-vertical-axis::before {
  position: absolute;
  left: 9px;
  width: 2px;
  background: #d8e0e6;
  content: "";
}

.timeline-objective-vertical-axis::before {
  inset-block: 0;
}

.timeline-objective-axis-progress {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 9px;
  width: 2px;
  background: #74b4dc;
}

.timeline-objective-axis-dot,
.timeline-objective-axis-today {
  position: absolute;
  z-index: 2;
  left: 4px;
  width: 12px;
  height: 12px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #7793a7;
  box-shadow: 0 0 0 2px #7793a7;
}

.timeline-objective-axis-dot.dot-start {
  top: -6px;
}

.timeline-objective-axis-dot.dot-end {
  bottom: -6px;
}

.timeline-objective-axis-today {
  border-width: 2px;
  background: #c14945;
  box-shadow: 0 0 0 2px #c14945;
  transform: translateY(-50%);
}

.timeline-objective-axis-today b,
.timeline-objective-axis-today small {
  position: absolute;
  right: 17px;
  width: 82px;
  color: #9d3734;
  font-style: normal;
  text-align: right;
  white-space: nowrap;
}

.timeline-objective-axis-today b {
  top: -8px;
  font-size: 8px;
}

.timeline-objective-axis-today small {
  top: 2px;
  font-size: 7px;
  font-weight: 800;
}

.timeline-objective-axis-today.align-start b {
  top: 36px;
}

.timeline-objective-axis-today.align-start small {
  top: 46px;
}

.timeline-objective-axis-today.align-end b {
  top: -72px;
}

.timeline-objective-axis-today.align-end small {
  top: -62px;
}

.timeline-objective-roadmap-item.phase-before .timeline-objective-axis-progress {
  background: #cbd5dc;
}

.timeline-objective-roadmap-item.phase-after .timeline-objective-axis-progress {
  background: #67ad84;
}

.timeline-objective-group,
.timeline-member-group {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: #fff;
}

.timeline-objective-head {
  display: grid;
  grid-template-columns: 38px minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  background: #f6f9fb;
}

.timeline-objective-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: #173b55;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.timeline-objective-title {
  min-width: 0;
}

.timeline-objective-title > span,
.timeline-objective-table-head,
.timeline-member-objective {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-objective-title h3,
.timeline-member-head h3 {
  margin: 3px 0 0;
  font-size: 16px;
}

.timeline-objective-facts {
  display: flex;
  gap: 16px;
  align-items: center;
}

.timeline-objective-facts span {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.timeline-objective-facts strong {
  color: var(--text);
}

.timeline-objective-time-summary {
  display: flex;
  grid-column: 2 / -1;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  padding-top: 8px;
  border-top: 1px solid var(--color-border-soft);
}

.timeline-objective-time-summary strong,
.timeline-objective-time-summary span {
  min-width: 0;
  font-size: 9px;
}

.timeline-objective-time-summary strong {
  color: #435363;
}

.timeline-objective-time-summary span {
  overflow: hidden;
  color: var(--muted);
  font-weight: 800;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-objective-roadmap-item.phase-after .timeline-objective-time-summary span {
  color: #9a4f24;
}

.timeline-objective-table {
  overflow-x: auto;
}

.timeline-objective-table-head,
.timeline-readable-task {
  display: grid;
  grid-template-columns: 112px minmax(330px, 1fr) minmax(145px, 0.42fr) 145px 108px;
  gap: 12px;
  align-items: center;
  min-width: 900px;
}

.timeline-objective-table-head {
  min-height: 32px;
  padding: 0 12px;
  border-bottom: 1px solid var(--color-border-soft);
  background: #fbfcfd;
}

.timeline-readable-task {
  min-height: 68px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--text);
  text-decoration: none;
}

.timeline-readable-task:last-child {
  border-bottom: 0;
}

.timeline-readable-task:hover,
.timeline-member-task:hover {
  background: #f7fbfe;
}

.timeline-readable-code {
  display: grid;
  gap: 4px;
  color: #245574;
  font-size: 11px;
  font-weight: 900;
}

.timeline-source-label {
  color: #6b7280;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.timeline-readable-copy,
.timeline-member-task-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.timeline-readable-copy strong,
.timeline-member-task-copy strong {
  font-size: 13px;
}

.timeline-readable-copy small,
.timeline-member-task-copy > span {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.timeline-readable-owner,
.timeline-readable-dates {
  color: #435363;
  font-size: 11px;
  font-weight: 700;
}

.timeline-readable-dates {
  display: grid;
  gap: 3px;
}

.timeline-readable-dates small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.3;
}

.timeline-member-group {
  display: grid;
  grid-template-columns: minmax(210px, 0.32fr) minmax(0, 1fr);
}

.timeline-member-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  padding: 14px;
  border-right: 1px solid var(--color-border);
  background: #f6f9fb;
}

.timeline-member-head > div:nth-child(2) {
  min-width: 0;
}

.timeline-member-head > div:nth-child(2) > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.timeline-member-load {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  align-items: baseline;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-soft);
}

.timeline-member-load strong {
  color: var(--color-primary-700);
  font-size: 22px;
}

.timeline-member-load span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.timeline-member-tasks {
  min-width: 0;
}

.timeline-member-task {
  display: grid;
  grid-template-columns: minmax(120px, 0.25fr) minmax(300px, 1fr) 145px;
  gap: 12px;
  align-items: center;
  min-height: 78px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--text);
  text-decoration: none;
}

.timeline-member-task:last-child {
  border-bottom: 0;
}

.timeline-member-objective {
  color: #245574;
  line-height: 1.35;
}

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

.timeline-member-task-meta {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.timeline-member-task-meta small {
  color: var(--muted);
  font-size: 10px;
}

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

.timeline-executive-row {
  display: grid;
  grid-template-columns: minmax(250px, 1fr) minmax(160px, 0.5fr) minmax(240px, 0.8fr) minmax(150px, 0.42fr);
  gap: 16px;
  align-items: center;
  min-height: 94px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: #fff;
}

.timeline-executive-objective {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-width: 0;
}

.timeline-executive-objective small,
.timeline-executive-focus small,
.timeline-executive-dates small {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-executive-objective h3 {
  margin: 2px 0 3px;
  font-size: 15px;
}

.timeline-executive-objective p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.timeline-executive-progress {
  display: grid;
  gap: 8px;
}

.timeline-executive-progress > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.timeline-executive-progress strong {
  color: var(--color-primary-700);
  font-size: 22px;
}

.timeline-executive-progress span,
.timeline-executive-dates span {
  color: var(--muted);
  font-size: 10px;
}

.timeline-progress-track {
  display: block;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #e5edf2;
}

.timeline-progress-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2f8fd3;
}

.timeline-executive-focus {
  display: grid;
  min-width: 0;
  gap: 3px;
  padding-left: 14px;
  border-left: 1px solid var(--color-border);
  color: var(--text);
  text-decoration: none;
}

.timeline-executive-focus strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-executive-focus > span {
  color: var(--muted);
  font-size: 10px;
}

.timeline-executive-focus:hover strong {
  color: var(--color-primary-700);
}

.timeline-executive-dates {
  display: grid;
  gap: 2px;
  justify-items: end;
  text-align: right;
}

.timeline-executive-dates strong {
  font-size: 13px;
}

.timeline-weekly-scroll {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: 7px;
}

.timeline-weekly-canvas {
  min-width: max-content;
  background: #fff;
}

.timeline-weekly-header,
.timeline-weekly-task-row {
  display: grid;
  grid-template-columns: 290px repeat(var(--timeline-week-count), 126px);
}

.timeline-weekly-header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 52px;
  border-bottom: 1px solid var(--color-border);
  background: #f6f9fb;
}

.timeline-weekly-header > strong,
.timeline-weekly-header > span {
  display: grid;
  align-content: center;
  padding: 7px 10px;
  border-right: 1px solid var(--color-border);
}

.timeline-weekly-header > span {
  justify-items: center;
}

.timeline-weekly-header > span strong {
  font-size: 10px;
}

.timeline-weekly-header > span small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.timeline-weekly-objective {
  position: sticky;
  left: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 290px;
  padding: 7px 10px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: #eaf2f8;
  color: #173b55;
  font-size: 11px;
  font-weight: 900;
}

.timeline-weekly-objective span {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.timeline-weekly-task-row {
  position: relative;
  min-height: 68px;
  border-bottom: 1px solid var(--color-border-soft);
  background: repeating-linear-gradient(90deg, transparent 0, transparent 125px, var(--color-border-soft) 125px, var(--color-border-soft) 126px);
  background-position-x: 290px;
}

.timeline-weekly-task-copy {
  position: sticky;
  left: 0;
  z-index: 1;
  display: grid;
  grid-column: 1;
  gap: 2px;
  align-content: center;
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid var(--color-border);
  background: #fff;
  color: var(--text);
  text-decoration: none;
}

.timeline-weekly-task-copy > span,
.timeline-weekly-task-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-weekly-task-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-weekly-bar {
  z-index: 0;
  display: grid;
  align-self: center;
  gap: 1px;
  min-width: 0;
  min-height: 38px;
  margin: 0 4px;
  padding: 6px 9px;
  overflow: hidden;
  border-radius: 5px;
  color: #173b55;
  text-decoration: none;
}

.timeline-weekly-bar span,
.timeline-weekly-bar small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-weekly-bar span {
  font-size: 10px;
  font-weight: 900;
}

.timeline-weekly-bar small {
  font-size: 9px;
}

.timeline-weekly-bar.status-in_progress { background: #dbeafe; color: #1d4ed8; }
.timeline-weekly-bar.status-user_review { background: #fef3c7; color: #92400e; }
.timeline-weekly-bar.status-todo,
.timeline-weekly-bar.status-backlog { background: #e0f2fe; color: #075985; }
.timeline-weekly-bar.status-done { background: #dcfce7; color: #166534; }
.timeline-weekly-bar.status-cancelled { background: #f1f5f9; color: #64748b; }

.timeline-activity-lanes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.timeline-activity-lane {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: #fff;
}

.timeline-activity-lane > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--color-border);
  background: #f6f9fb;
}

.timeline-activity-lane > header h3 {
  margin: 0;
  font-size: 14px;
}

.timeline-activity-lane > header strong {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 5px;
  background: #fff;
  font-size: 11px;
}

.timeline-activity-task {
  display: grid;
  gap: 5px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--color-border-soft);
  color: var(--text);
  text-decoration: none;
}

.timeline-activity-task:last-child {
  border-bottom: 0;
}

.timeline-activity-task:hover {
  background: #f7fbfe;
}

.timeline-activity-task-title {
  display: grid;
  grid-template-columns: 105px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.timeline-activity-task-title small {
  color: #245574;
  font-size: 10px;
  font-weight: 900;
}

.timeline-activity-task-title strong {
  font-size: 12px;
}

.timeline-activity-overview {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.timeline-activity-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
}

.timeline-activity-meta strong {
  color: #435363;
}

.timeline-sheet-view {
  overflow: hidden;
}

.timeline-sheet-table-scroll,
.timeline-sheet-daily-scroll,
.timeline-sheet-weekly-scroll {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: #fff;
}

.timeline-sheet-table {
  width: 100%;
  min-width: 1066px;
  border-spacing: 0;
  table-layout: fixed;
  color: var(--text);
}

.timeline-sheet-table th,
.timeline-sheet-table td {
  padding: 10px 11px;
  border-right: 1px solid #d9dde7;
  border-bottom: 1px solid #d9dde7;
  vertical-align: middle;
  text-align: left;
}

.timeline-sheet-table th:last-child,
.timeline-sheet-table td:last-child {
  border-right: 0;
}

.timeline-sheet-table tbody tr:last-child > * {
  border-bottom: 0;
}

.timeline-sheet-table thead th {
  position: sticky;
  top: 0;
  z-index: 3;
  height: 42px;
  background: #674ea7;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.timeline-sheet-table thead th:nth-child(1) { width: 48px; text-align: center; }
.timeline-sheet-table thead th:nth-child(2) { width: 210px; }
.timeline-sheet-table thead th:nth-child(3) { width: 122px; }
.timeline-sheet-table thead th:nth-child(5),
.timeline-sheet-table thead th:nth-child(6) { width: 112px; }
.timeline-sheet-table thead th:nth-child(7) { width: 132px; }

.timeline-sheet-group-index {
  background: #f7f5fb;
  color: #5b477c;
  font-size: 12px;
  font-weight: 900;
  text-align: center !important;
}

.timeline-sheet-main-task {
  background: #f7f5fb;
}

.timeline-sheet-main-task strong,
.timeline-sheet-main-task span {
  display: block;
}

.timeline-sheet-main-task strong {
  font-size: 12px;
  line-height: 1.4;
}

.timeline-sheet-main-task span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.timeline-sheet-task-id,
.timeline-sheet-task-title {
  color: #214f73;
  text-decoration: none;
}

.timeline-sheet-task-id {
  font-size: 10px;
  font-weight: 900;
}

.timeline-sheet-task-title,
.timeline-sheet-task-owner {
  display: block;
}

.timeline-sheet-task-title {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.timeline-sheet-task-title:hover,
.timeline-sheet-task-id:hover {
  color: var(--color-primary-700);
  text-decoration: underline;
}

.timeline-sheet-task-owner {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
}

.timeline-sheet-date {
  color: #425466;
  font-size: 10px;
  white-space: nowrap;
}

.timeline-sheet-status {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
}

.timeline-sheet-status.status-in_progress { background: #dbeafe; color: #1d4ed8; }
.timeline-sheet-status.status-user_review { background: #fef3c7; color: #92400e; }
.timeline-sheet-status.status-todo,
.timeline-sheet-status.status-backlog { background: #e0f2fe; color: #075985; }
.timeline-sheet-status.status-done { background: #dcfce7; color: #166534; }
.timeline-sheet-status.status-cancelled { background: #f1f5f9; color: #64748b; }

.timeline-sheet-daily-canvas {
  --sheet-fixed-width: 702px;
  --sheet-day-size: 31px;
  width: max-content;
  min-width: 100%;
  background: #fff;
}

.timeline-sheet-daily-week-row,
.timeline-sheet-daily-date-row,
.timeline-sheet-daily-task-row {
  display: grid;
  grid-template-columns: var(--sheet-fixed-width) repeat(var(--sheet-day-count), var(--sheet-day-size));
}

.timeline-sheet-daily-week-row {
  min-height: 34px;
  background: #351c75;
}

.timeline-sheet-daily-corner {
  position: sticky;
  left: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  padding: 6px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
  background: #351c75;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
}

.timeline-sheet-week-band {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 6px 3px;
  border-right: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  white-space: nowrap;
}

.timeline-sheet-daily-date-row {
  min-height: 54px;
  border-bottom: 1px solid #d8dce5;
  background: #f7f5fb;
}

.timeline-sheet-task-meta-grid {
  position: sticky;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 145px 90px 225px 76px 76px 90px;
  min-width: 0;
  border-right: 1px solid #cdd2de;
  background: #fff;
}

.timeline-sheet-task-meta-grid > * {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 7px 8px;
  overflow: hidden;
  border-right: 1px solid #d9dde7;
  color: #425466;
  font-size: 9px;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.timeline-sheet-task-meta-grid > *:last-child {
  border-right: 0;
}

.timeline-sheet-fixed-header {
  z-index: 4;
  background: #8064a2;
}

.timeline-sheet-fixed-header > span {
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.timeline-sheet-date-cell {
  display: grid;
  align-content: center;
  justify-items: center;
  min-width: 0;
  border-right: 1px solid #d9dde7;
  color: #655875;
  font-size: 8px;
}

.timeline-sheet-date-cell span {
  overflow: hidden;
  max-width: 100%;
  text-overflow: clip;
  white-space: nowrap;
}

.timeline-sheet-date-cell strong {
  margin-top: 2px;
  font-size: 10px;
}

.timeline-sheet-date-cell.is-weekend,
.timeline-sheet-active-cell.is-weekend:not(.is-active) {
  background: #f1f3f6;
}

.timeline-sheet-date-cell.is-today {
  box-shadow: inset 0 -3px 0 #ec4899;
}

.timeline-sheet-daily-task-row {
  min-height: 54px;
  border-bottom: 1px solid #d9dde7;
}

.timeline-sheet-daily-task-row:last-child {
  border-bottom: 0;
}

.timeline-sheet-daily-objective {
  background: #f7f5fb;
  color: #4d3f65;
  font-weight: 900;
}

.timeline-sheet-daily-objective.is-continuation {
  background: #fbfafc;
}

.timeline-sheet-task-meta-grid > a {
  color: #214f73;
  font-weight: 800;
  text-decoration: none;
}

.timeline-sheet-task-meta-grid > a:hover {
  color: var(--color-primary-700);
  text-decoration: underline;
}

.timeline-sheet-daily-title {
  align-items: flex-start;
  line-height: 1.35;
}

.timeline-sheet-task-meta-grid .timeline-sheet-status {
  align-self: center;
  justify-self: start;
  margin: 5px 6px;
  padding: 4px 6px;
}

.timeline-sheet-active-cell {
  display: block;
  min-width: 0;
  border-right: 1px solid #e0e3ea;
  color: inherit;
  text-decoration: none;
}

.timeline-sheet-active-cell.is-today {
  box-shadow: inset 2px 0 0 rgba(236, 72, 153, 0.55), inset -2px 0 0 rgba(236, 72, 153, 0.55);
}

.timeline-sheet-active-cell.is-active.status-in_progress { background: #60a5fa; }
.timeline-sheet-active-cell.is-active.status-user_review { background: #fbbf24; }
.timeline-sheet-active-cell.is-active.status-todo,
.timeline-sheet-active-cell.is-active.status-backlog { background: #7dd3fc; }
.timeline-sheet-active-cell.is-active.status-done { background: #4ade80; }
.timeline-sheet-active-cell.is-active.status-cancelled { background: #cbd5e1; }

.timeline-sheet-active-cell.is-active:hover {
  filter: brightness(0.92);
}

.timeline-sheet-weekly-canvas {
  width: max-content;
  min-width: 100%;
  background: #fff;
}

.timeline-sheet-weekly-header,
.timeline-sheet-weekly-row {
  display: grid;
  grid-template-columns: 300px repeat(var(--timeline-week-count), 190px);
}

.timeline-sheet-weekly-header {
  position: sticky;
  top: 0;
  z-index: 3;
  min-height: 50px;
  background: #674ea7;
  color: #fff;
}

.timeline-sheet-weekly-header > strong,
.timeline-sheet-weekly-header > span {
  display: grid;
  align-content: center;
  padding: 8px 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.timeline-sheet-weekly-header > strong {
  position: sticky;
  left: 0;
  z-index: 4;
  background: #674ea7;
  font-size: 10px;
}

.timeline-sheet-weekly-header > span {
  justify-items: center;
  text-align: center;
}

.timeline-sheet-weekly-header > span strong {
  font-size: 10px;
}

.timeline-sheet-weekly-header > span small {
  margin-top: 3px;
  color: #eee9fb;
  font-size: 8px;
}

.timeline-sheet-weekly-row {
  min-height: 118px;
  border-bottom: 1px solid #d9dde7;
}

.timeline-sheet-weekly-row:last-child {
  border-bottom: 0;
}

.timeline-sheet-weekly-objective {
  position: sticky;
  left: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 9px;
  align-content: center;
  padding: 10px;
  border-right: 1px solid #d9dde7;
  background: #f7f5fb;
}

.timeline-sheet-weekly-index {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 4px;
  background: #e9e1f6;
  color: #5a3b8d;
  font-size: 10px;
  font-weight: 900;
}

.timeline-sheet-weekly-objective > span:last-child {
  min-width: 0;
}

.timeline-sheet-weekly-objective strong,
.timeline-sheet-weekly-objective small {
  display: block;
}

.timeline-sheet-weekly-objective strong {
  font-size: 12px;
  line-height: 1.4;
}

.timeline-sheet-weekly-objective small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-sheet-week-cell {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
  padding: 7px;
  border-right: 1px solid #d9dde7;
  background: #fff;
}

.timeline-sheet-week-cell:last-child {
  border-right: 0;
}

.timeline-sheet-week-task {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 6px 7px;
  border-left: 3px solid currentColor;
  border-radius: 4px;
  color: #173b55;
  text-decoration: none;
}

.timeline-sheet-week-task > span,
.timeline-sheet-week-task > strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-sheet-week-task > span {
  font-size: 8px;
  opacity: 0.8;
}

.timeline-sheet-week-task > strong {
  font-size: 9px;
}

.timeline-sheet-week-task.status-in_progress { background: #dbeafe; color: #1d4ed8; }
.timeline-sheet-week-task.status-user_review { background: #fef3c7; color: #92400e; }
.timeline-sheet-week-task.status-todo,
.timeline-sheet-week-task.status-backlog { background: #e0f2fe; color: #075985; }
.timeline-sheet-week-task.status-done { background: #dcfce7; color: #166534; }
.timeline-sheet-week-task.status-cancelled { background: #f1f5f9; color: #64748b; }

.timeline-sheet-week-task:hover {
  filter: brightness(0.96);
}

.timeline-sheet-week-empty {
  align-self: center;
  justify-self: center;
  color: #c4c9d2;
  font-size: 12px;
}

.timeline-roadmap-view {
  overflow: hidden;
}

.roadmap-horizon-grid {
  display: grid;
  grid-template-columns: repeat(var(--roadmap-stage-count), minmax(240px, 1fr));
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: #f6f8fa;
}

.roadmap-horizon-lane {
  min-width: 0;
  border-right: 1px solid var(--color-border);
}

.roadmap-horizon-lane:last-child {
  border-right: 0;
}

.roadmap-horizon-lane > header {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 28px;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.roadmap-horizon-lane > header h3 {
  margin: 0;
  font-size: 12px;
}

.roadmap-horizon-lane > header > strong,
.roadmap-stage-index {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
}

.roadmap-horizon-lane > header > strong {
  background: #eef2f5;
  color: #455666;
}

.roadmap-stage-index {
  color: #fff;
}

.roadmap-stage-completed .roadmap-stage-index { background: #25855a; }
.roadmap-stage-current .roadmap-stage-index { background: #2f8fd3; }
.roadmap-stage-next .roadmap-stage-index { background: #c17a13; }
.roadmap-stage-cancelled .roadmap-stage-index { background: #7b8794; }

.roadmap-horizon-items {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 236px;
  padding: 9px;
}

.roadmap-horizon-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-left: 4px solid #8aa0b4;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}

.roadmap-horizon-card.status-in_progress { border-left-color: #2f8fd3; }
.roadmap-horizon-card.status-user_review { border-left-color: #d59a24; }
.roadmap-horizon-card.status-todo,
.roadmap-horizon-card.status-backlog { border-left-color: #5f9bbd; }
.roadmap-horizon-card.status-done { border-left-color: #25855a; }
.roadmap-horizon-card.status-cancelled { border-left-color: #7b8794; }

.roadmap-horizon-card:hover {
  border-color: #a8c9dd;
  background: #fbfdff;
}

.roadmap-card-objective {
  overflow: hidden;
  color: #527086;
  font-size: 9px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roadmap-card-heading {
  display: grid;
  gap: 3px;
}

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

.roadmap-card-heading strong {
  font-size: 12px;
  line-height: 1.4;
}

.roadmap-card-overview {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.roadmap-card-meta {
  display: grid;
  gap: 2px;
  padding-top: 6px;
  border-top: 1px solid var(--color-border-soft);
}

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

.roadmap-card-meta strong {
  overflow: hidden;
  color: #435363;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roadmap-stage-empty {
  display: grid;
  min-height: 72px;
  place-items: center;
  border: 1px dashed #cfd6dc;
  border-radius: 6px;
  color: var(--muted);
  font-size: 10px;
}

.roadmap-objective-list {
  display: grid;
  gap: 14px;
}

.roadmap-objective-road {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 7px;
  background: #fff;
}

.roadmap-objective-road-head {
  display: grid;
  grid-template-columns: 38px minmax(240px, 1fr) 150px 150px;
  gap: 10px;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--color-border);
  background: #f6f9fb;
}

.roadmap-objective-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 5px;
  background: #dceef7;
  color: #245574;
  font-size: 10px;
  font-weight: 900;
}

.roadmap-objective-road-title,
.roadmap-objective-progress {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.roadmap-objective-road-title small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.roadmap-objective-road-title strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roadmap-objective-progress > span:first-child {
  color: var(--muted);
  font-size: 9px;
}

.roadmap-objective-progress > span:first-child strong {
  color: #32475a;
  font-size: 12px;
}

.roadmap-progress-track {
  display: block;
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #dde5ea;
}

.roadmap-progress-track i {
  display: block;
  height: 100%;
  background: #25855a;
}

.roadmap-objective-range {
  display: grid;
  gap: 3px;
  justify-items: end;
  color: #536473;
  font-weight: 800;
}

.roadmap-objective-range > span {
  display: flex;
  gap: 6px;
  font-size: 10px;
  white-space: nowrap;
}

.roadmap-objective-range > span strong {
  color: #8aa0b4;
}

.roadmap-objective-range small {
  max-width: 220px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.3;
  text-align: right;
}

.roadmap-objective-range small.phase-after {
  color: #9a4f24;
}

.roadmap-objective-scroll {
  max-width: 100%;
  overflow-x: auto;
  padding: 12px;
}

.roadmap-objective-track {
  display: grid;
  grid-template-columns: repeat(var(--roadmap-step-count), minmax(245px, 320px));
  gap: 28px;
  justify-content: start;
  width: 100%;
  min-width: max(100%, var(--roadmap-track-min));
}

.roadmap-objective-step {
  position: relative;
  display: grid;
  gap: 5px;
  min-width: 245px;
  min-height: 178px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-top: 4px solid #8aa0b4;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}

.roadmap-objective-step:not(:last-child)::after {
  position: absolute;
  top: 72px;
  right: -22px;
  color: #8aa0b4;
  content: "→";
  font-size: 17px;
  font-weight: 900;
}

.roadmap-objective-step.status-in_progress { border-top-color: #2f8fd3; }
.roadmap-objective-step.status-user_review { border-top-color: #d59a24; }
.roadmap-objective-step.status-todo,
.roadmap-objective-step.status-backlog { border-top-color: #5f9bbd; }
.roadmap-objective-step.status-done { border-top-color: #25855a; }
.roadmap-objective-step.status-cancelled { border-top-color: #7b8794; }

.roadmap-objective-step:hover {
  border-color: #91bdd7;
  background: #fbfdff;
}

.roadmap-step-topline,
.roadmap-step-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.roadmap-step-topline small,
.roadmap-step-topline span {
  font-size: 9px;
  font-weight: 900;
}

.roadmap-step-topline small {
  color: #4d6678;
}

.roadmap-step-topline span {
  color: var(--muted);
}

.roadmap-objective-step > .mono {
  color: #245574;
  font-size: 9px;
  font-weight: 900;
}

.roadmap-objective-step > strong {
  font-size: 12px;
  line-height: 1.4;
}

.roadmap-step-overview {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.roadmap-step-footer {
  align-self: end;
  padding-top: 6px;
  border-top: 1px solid var(--color-border-soft);
  color: var(--muted);
}

.roadmap-step-footer small {
  overflow: hidden;
  max-width: 48%;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roadmap-milestone-list {
  max-width: 980px;
  margin: 0 auto;
  padding: 4px 0;
  list-style: none;
}

.roadmap-milestone-item {
  display: grid;
  grid-template-columns: 78px 30px minmax(0, 1fr) 34px;
  min-height: 142px;
}

.roadmap-milestone-date {
  display: grid;
  align-content: start;
  justify-items: end;
  padding: 15px 8px 0 0;
  color: #34495a;
}

.roadmap-milestone-date strong {
  font-size: 22px;
  line-height: 1;
}

.roadmap-milestone-date span,
.roadmap-milestone-date small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.roadmap-milestone-axis {
  position: relative;
  display: flex;
  justify-content: center;
}

.roadmap-milestone-axis::before {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #d8e0e6;
  content: "";
}

.roadmap-milestone-item:first-child .roadmap-milestone-axis::before {
  top: 24px;
}

.roadmap-milestone-item:last-child .roadmap-milestone-axis::before {
  bottom: calc(100% - 25px);
}

.roadmap-milestone-axis i {
  z-index: 1;
  width: 14px;
  height: 14px;
  margin-top: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #8aa0b4;
  box-shadow: 0 0 0 2px #8aa0b4;
}

.roadmap-milestone-item.status-in_progress .roadmap-milestone-axis i { background: #2f8fd3; box-shadow: 0 0 0 2px #2f8fd3; }
.roadmap-milestone-item.status-user_review .roadmap-milestone-axis i { background: #d59a24; box-shadow: 0 0 0 2px #d59a24; }
.roadmap-milestone-item.status-todo .roadmap-milestone-axis i,
.roadmap-milestone-item.status-backlog .roadmap-milestone-axis i { background: #5f9bbd; box-shadow: 0 0 0 2px #5f9bbd; }
.roadmap-milestone-item.status-done .roadmap-milestone-axis i { background: #25855a; box-shadow: 0 0 0 2px #25855a; }
.roadmap-milestone-item.status-cancelled .roadmap-milestone-axis i { background: #7b8794; box-shadow: 0 0 0 2px #7b8794; }

.roadmap-milestone-content {
  display: grid;
  gap: 7px;
  min-width: 0;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
}

.roadmap-milestone-content:hover {
  border-color: #91bdd7;
  background: #fbfdff;
}

.roadmap-milestone-topline,
.roadmap-milestone-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.roadmap-milestone-heading {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 9px;
  align-items: baseline;
}

.roadmap-milestone-heading small {
  color: #245574;
  font-size: 9px;
  font-weight: 900;
}

.roadmap-milestone-heading strong {
  font-size: 13px;
}

.roadmap-milestone-overview {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.roadmap-milestone-meta {
  padding-top: 6px;
  border-top: 1px solid var(--color-border-soft);
  color: var(--muted);
}

.roadmap-milestone-meta small,
.roadmap-milestone-meta strong {
  font-size: 9px;
}

.roadmap-milestone-meta strong {
  overflow: hidden;
  color: #435363;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roadmap-milestone-order {
  padding-top: 20px;
  color: #a0acb7;
  font-size: 9px;
  font-weight: 900;
  text-align: right;
}

.timeline-filterbar label,
.timeline-zoom-control {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.timeline-filterbar label > span,
.timeline-zoom-control > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-filterbar input,
.timeline-filterbar select,
.timeline-plan-panel input,
.timeline-plan-panel select,
.feedback-search-panel input,
.feedback-detail-route-shell textarea,
.feedback-create-panel input,
.feedback-create-panel textarea,
.feedback-create-panel select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

.timeline-zoom-control > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  min-height: 40px;
  padding: 3px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface-soft);
}

.timeline-zoom-control button {
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.timeline-zoom-control button.active {
  background: #fff;
  color: var(--color-primary-700);
  box-shadow: 0 1px 3px rgba(23, 33, 43, 0.12);
}

.timeline-focus-section,
.timeline-unplanned-section {
  margin-bottom: 12px;
  padding: 16px 18px;
}

.timeline-unplanned-head-actions {
  display: flex;
  gap: 12px;
  align-items: end;
}

.timeline-unplanned-head-actions label {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline-unplanned-head-actions select {
  min-width: 190px;
  min-height: 36px;
  padding: 7px 32px 7px 10px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  text-transform: none;
}

.timeline-team-focus {
  border-top: 1px solid var(--color-border-soft);
}

.timeline-focus-row {
  display: grid;
  grid-template-columns: 36px minmax(180px, 0.45fr) minmax(260px, 1fr) 32px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.member-avatar {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #dbeafe;
  color: #1e4f7a;
  font-size: 11px;
  font-weight: 900;
}

.timeline-focus-identity,
.timeline-task-meta,
.feedback-row-title {
  min-width: 0;
}

.timeline-focus-identity strong,
.timeline-focus-identity span,
.timeline-task-meta a,
.timeline-task-meta > span,
.feedback-row-title strong,
.feedback-row-title small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-focus-identity span,
.timeline-task-meta > span,
.feedback-row-title small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.timeline-focus-items {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
}

.focus-task-link {
  display: inline-flex;
  min-width: 0;
  max-width: 280px;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid var(--color-border-soft);
  border-radius: 5px;
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #94a3b8;
}

.status-dot.status-in_progress { background: var(--color-primary-500); }
.status-dot.status-user_review { background: var(--color-warning); }
.status-dot.status-done { background: var(--color-success); }

.timeline-focus-count {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-surface-soft);
  color: var(--muted);
  font-size: 12px;
}

.timeline-workspace {
  margin-bottom: 12px;
  overflow: hidden;
}

.timeline-scroll {
  width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.timeline-canvas {
  width: max-content;
  min-width: 100%;
  background: #fff;
}

.timeline-date-row,
.timeline-task-row {
  display: grid;
  grid-template-columns: 300px repeat(var(--timeline-day-count), var(--timeline-day-size));
  min-width: max-content;
}

.timeline-date-row {
  position: sticky;
  top: 0;
  z-index: 4;
  min-height: 52px;
  border-bottom: 1px solid var(--color-border);
  background: #f8fafc;
}

.timeline-label-cell {
  position: sticky;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-right: 1px solid var(--color-border);
  background: #f8fafc;
  font-size: 12px;
}

.timeline-day-cell {
  display: grid;
  place-content: center;
  border-right: 1px solid var(--color-border-soft);
  color: var(--muted);
  text-align: center;
}

.timeline-day-cell span {
  font-size: 9px;
  text-transform: uppercase;
}

.timeline-day-cell strong {
  margin-top: 2px;
  font-size: 12px;
}

.timeline-day-cell.today {
  background: #fff4cc;
  color: #7c5200;
}

.timeline-group-heading {
  position: sticky;
  left: 0;
  z-index: 3;
  display: flex;
  width: 300px;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 14px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border-soft);
  background: #eaf2f8;
  color: #1e405b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.timeline-group-heading span {
  color: var(--muted);
  font-weight: 700;
  text-transform: none;
}

.timeline-task-row {
  position: relative;
  min-height: 56px;
  align-items: center;
  border-bottom: 1px solid var(--color-border-soft);
  background-color: #fff;
  background-image: repeating-linear-gradient(to right, transparent 0, transparent calc(var(--timeline-day-size) - 1px), var(--color-border-soft) calc(var(--timeline-day-size) - 1px), var(--color-border-soft) var(--timeline-day-size));
  background-position-x: 300px;
}

.timeline-task-meta {
  position: sticky;
  left: 0;
  z-index: 2;
  grid-column: 1;
  align-self: stretch;
  padding: 10px 38px 8px 14px;
  border-right: 1px solid var(--color-border);
  background: #fff;
}

.timeline-task-meta a {
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.timeline-task-meta a:hover,
.timeline-unplanned-row a:hover,
.feedback-row:hover strong {
  color: var(--color-primary-700);
}

.timeline-task-bar {
  z-index: 1;
  display: flex;
  min-width: 18px;
  height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #dbeafe;
  color: #164e7a;
  font-size: 10px;
  font-weight: 900;
  text-decoration: none;
  overflow: hidden;
}

.timeline-task-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-task-bar.status-user_review {
  border-color: #e7bd56;
  background: #fff4cc;
  color: #755000;
}

.timeline-task-bar.status-done {
  border-color: #8fc9ac;
  background: #e8f6ef;
  color: #206846;
}

.timeline-task-bar.status-backlog,
.timeline-task-bar.status-todo {
  border-color: #cbd5e1;
  background: #f1f5f9;
  color: #475569;
}

.timeline-task-bar.priority-urgent {
  box-shadow: inset 3px 0 0 var(--color-danger);
}

.timeline-edit-plan {
  position: sticky;
  left: 266px;
  z-index: 3;
  grid-column: 1;
  justify-self: end;
  width: 28px;
  height: 28px;
  margin-right: 6px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
}

.timeline-empty {
  padding: 24px;
}

.timeline-unplanned-list {
  border-top: 1px solid var(--color-border-soft);
}

.timeline-unplanned-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 14px;
  align-items: center;
  min-height: 58px;
  padding: 9px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.timeline-unplanned-row a {
  color: var(--text);
  text-decoration: none;
}

.timeline-unplanned-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
  align-items: center;
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.timeline-unplanned-reason {
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef3f6;
  color: #526574;
  font-size: 10px;
  font-weight: 800;
}

.timeline-unplanned-summary {
  display: -webkit-box;
  max-width: 920px;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.timeline-plan-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 92;
  width: min(680px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  transform: translate(-50%, -50%);
}

.timeline-plan-panel {
  display: grid;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--color-border);
  background: #fff;
  box-shadow: 0 20px 50px rgba(23, 33, 43, 0.2);
}

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

.timeline-plan-panel label,
.timeline-responsible-fieldset legend {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.timeline-responsible-fieldset {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
}

.timeline-responsible-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 8px;
}

.timeline-responsible-option {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--color-border-soft);
  border-radius: 5px;
}

.timeline-responsible-option input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0;
  padding: 0;
  flex: 0 0 18px;
}

.timeline-responsible-option > span {
  min-width: 0;
  flex: 1;
}

.timeline-responsible-option span,
.timeline-responsible-option small {
  display: block;
}

.timeline-responsible-option small {
  margin-top: 2px;
  color: var(--muted);
}

.feedback-hero {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 12px;
}

.feedback-hero h3,
.feedback-list-panel h3 {
  margin: 2px 0 4px;
  font-size: 19px;
}

.feedback-hero p:last-child {
  max-width: 820px;
  margin-bottom: 0;
}

.feedback-summary-cards {
  gap: 8px;
  margin-bottom: 12px;
}

.feedback-summary-card {
  display: flex;
  min-height: 64px;
  justify-content: space-between;
  padding: 12px 14px;
}

.feedback-summary-card span {
  font-size: 13px;
}

.feedback-summary-card strong {
  font-size: 22px;
}

.feedback-search-panel {
  margin-bottom: 12px;
  padding: 10px;
}

.feedback-list-panel {
  min-width: 0;
  padding: 16px;
}

.feedback-table-scroll {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
}

.feedback-table {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 0;
  margin-top: 12px;
  overflow: visible;
}

.feedback-table-head,
.feedback-row {
  grid-template-columns: minmax(360px, 1fr) minmax(170px, 0.4fr) 150px 160px;
  gap: 12px;
  min-width: 880px;
  border-radius: 0;
}

.feedback-table-head {
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: #f8fafc;
  letter-spacing: 0;
}

.feedback-row {
  padding: 12px;
  border: 0;
  border-bottom: 1px solid var(--color-border-soft);
  text-decoration: none;
}

.feedback-row:hover,
.feedback-row.active {
  background: #f2f7fb;
}

.feedback-row-title small {
  font-weight: 500;
}

.feedback-detail-route-shell {
  padding: 18px;
}

.feedback-detail-header {
  margin-bottom: 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}

.feedback-detail-header h3 {
  margin: 10px 0 4px;
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: 0;
}

.feedback-detail-action-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid #cbd8e1;
  border-left: 3px solid #64748b;
  border-radius: 5px;
  background: #f8fafc;
  color: #34495a;
  font-size: 12px;
  font-weight: 700;
}

.feedback-detail-action-status[data-tone="pending"] {
  border-left-color: #2b7a9f;
  background: #f2f8fc;
  color: #245574;
}

.feedback-detail-action-status[data-tone="success"] {
  border-left-color: #31866a;
  background: #f1faf6;
  color: #21644f;
}

.feedback-detail-action-status[data-tone="error"] {
  border-left-color: #b64b4b;
  background: #fff6f5;
  color: #8f3131;
}

.feedback-detail-content {
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 16px;
  margin-top: 16px;
}

.feedback-detail-main {
  gap: 12px;
}

.feedback-block {
  gap: 12px;
  padding: 16px;
  background: #fff;
}

.feedback-interpretation-block {
  border-left: 3px solid var(--color-primary-500);
  background: #f7fbfe;
}

.feedback-question-block {
  border-left: 3px solid var(--color-warning);
  background: #fffdf5;
}

.feedback-block-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.feedback-block-heading h4 {
  margin: 2px 0 0;
  font-size: 16px;
}

.feedback-category-pill,
.skill-source-pill,
.member-tag,
.assistant-trace {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}

.feedback-category-pill {
  background: #eaf2f8;
  color: #245574;
}

.skill-source-pill {
  background: #dbeafe;
  color: #1e4f7a;
  font-family: var(--font-mono);
}

.member-tag {
  margin-left: 4px;
  border: 1px solid color-mix(in srgb, var(--member-tag-color), transparent 62%);
  background: color-mix(in srgb, var(--member-tag-color), white 90%);
  color: var(--member-tag-color);
  vertical-align: middle;
}

.assistant-trace {
  background: #f1f5f9;
  color: #64748b;
}

.feedback-original-content p {
  margin: 0 0 10px;
  line-height: 1.65;
}

.feedback-original-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 11px;
}

.feedback-source-panel {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--color-border-soft);
  border-radius: 6px;
  background: #fff;
}

.feedback-source-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.feedback-source-panel-head a,
.feedback-source-grid a {
  color: var(--color-primary-700);
  font-weight: 800;
}

.feedback-source-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
}

.feedback-source-grid div {
  min-width: 0;
}

.feedback-source-grid dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-source-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.feedback-source-note {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

@media (max-width: 760px) {
  .feedback-source-panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

/* Feedback workflow v2 */
.feedback-table-head,
.feedback-row {
  grid-template-columns:
    minmax(240px, 1.15fr)
    minmax(120px, 0.42fr)
    minmax(120px, 0.42fr)
    minmax(200px, 0.75fr)
    minmax(120px, 0.38fr);
  min-width: 850px;
}

.feedback-summary-cards {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.feedback-row-title small {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  align-items: center;
}

.feedback-row-cell,
.feedback-row-next {
  min-width: 0;
  overflow-wrap: anywhere;
}

.feedback-row-next {
  display: grid;
  gap: 3px;
}

.feedback-row-next strong {
  color: #26384a;
  font-size: 12px;
  line-height: 1.4;
}

.feedback-row-next small {
  color: #64748b;
  font-size: 10px;
}

.feedback-field-hint {
  min-height: 20px;
  margin: 6px 0 0;
  color: #526171;
  font-size: 12px;
  line-height: 1.5;
}

.feedback-next-action {
  border-left: 3px solid #64748b;
}

.feedback-next-action.tone-primary {
  border-left-color: #2b7a9f;
  background: #f7fbfd;
}

.feedback-next-action.tone-warning {
  border-left-color: #d08a1d;
  background: #fffdf6;
}

.feedback-next-action.tone-success {
  border-left-color: #31866a;
  background: #f5fbf8;
}

.feedback-next-action > p:not(.eyebrow) {
  margin: 0;
  color: #526171;
  font-size: 12px;
  line-height: 1.5;
}

.feedback-next-action-owner {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border-soft);
  font-size: 11px;
}

.feedback-next-action-owner span {
  color: #64748b;
}

.feedback-next-action-control {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.feedback-case-section:focus-within {
  border-color: #7fa9c2;
  box-shadow: 0 0 0 2px rgb(43 122 159 / 10%);
}

.feedback-assignment-panel {
  border-left: 3px solid #537b92;
}

.feedback-assignment-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.feedback-assignment-controls select,
.feedback-bug-context select {
  width: 100%;
  min-width: 0;
}

.feedback-bug-context {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #d8e3ea;
  background: #f8fbfd;
}

.feedback-bug-context label {
  display: grid;
  gap: 5px;
}

.feedback-bug-context p {
  margin: 0;
}

.feedback-activity-log {
  margin-top: 10px;
  border-top: 1px solid var(--color-border-soft);
}

.feedback-activity-log summary {
  padding: 12px 0;
  color: #526171;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.feedback-activity-log-list {
  padding: 0 10px;
  background: #f8fafc;
}

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

@media (max-width: 1040px) {
  .feedback-case-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-case-facts > div {
    border-right: 1px solid var(--color-border-soft);
    border-bottom: 1px solid var(--color-border-soft);
  }

  .feedback-case-facts > div:nth-child(even) {
    border-right: 0;
  }

  .feedback-case-facts > div:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .feedback-detail-header h3 {
    font-size: 24px;
  }

  .feedback-table-scroll {
    overflow-x: visible;
  }

  .feedback-table-head {
    display: none;
  }

  .feedback-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    min-width: 0;
    margin-bottom: 8px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    background: #fff;
  }

  .feedback-row-title,
  .feedback-row-next {
    grid-column: 1 / -1;
  }

  .feedback-row-cell,
  .feedback-row-next {
    display: grid;
    gap: 3px;
    align-content: start;
  }

  .feedback-row-cell::before,
  .feedback-row-next::before {
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .feedback-summary-cards {
    display: flex;
    padding-bottom: 4px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
  }

  .feedback-summary-card {
    min-width: 145px;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .feedback-case-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-case-facts > div,
  .feedback-case-facts > div:nth-child(even),
  .feedback-case-facts > div:last-child {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--color-border-soft);
  }

  .feedback-case-facts > div:last-child {
    border-bottom: 0;
  }

  .feedback-assignment-controls,
  .feedback-question-answer-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-assignment-controls .secondary-btn,
  .feedback-question-answer-row .primary-btn {
    width: 100%;
  }
}

.feedback-reference-links {
  display: grid;
  gap: 5px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-soft);
  font-size: 12px;
}

.feedback-reference-links a {
  color: var(--color-primary-700);
  overflow-wrap: anywhere;
}

.feedback-analysis-grid {
  display: grid;
  gap: 12px;
  margin: 0;
}

.feedback-analysis-grid div {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 12px;
}

.feedback-analysis-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-analysis-grid dd {
  margin: 0;
  line-height: 1.6;
}

.feedback-analysis-attribution {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-soft);
  font-size: 11px;
}

.feedback-question-list,
.feedback-suggestions {
  display: grid;
  gap: 8px;
}

.feedback-question-card {
  display: block;
  padding: 12px;
  border-radius: 6px;
}

.feedback-question-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.feedback-suggestion {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 0.8fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-left: 3px solid #7ea8c5;
  background: #f8fafc;
}

.feedback-suggestion p,
.feedback-suggestion-tradeoffs span {
  display: block;
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.45;
}

.feedback-answer-readonly {
  margin-top: 10px;
  padding: 10px;
  border-left: 3px solid var(--color-success);
  background: var(--color-success-bg);
}

.feedback-answer-readonly span {
  color: var(--color-success);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-answer-readonly p {
  margin: 4px 0 0;
}

.feedback-question-answer-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.feedback-discussion-list {
  border-top: 1px solid var(--color-border-soft);
}

.feedback-message {
  display: flex;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-soft);
}

.feedback-message-body {
  min-width: 0;
  flex: 1;
}

.feedback-message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.feedback-message-meta time {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}

.feedback-message-body p {
  margin: 6px 0 0;
  line-height: 1.55;
}

.feedback-message.message-system,
.feedback-message.message-decision {
  padding-left: 8px;
  border-left: 3px solid #9bbbd1;
}

.feedback-message-composer {
  display: grid;
  gap: 7px;
  padding-top: 4px;
}

.feedback-message-composer label,
.feedback-decision-panel label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-message-composer > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.feedback-decision-panel {
  position: sticky;
  top: 78px;
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  background: #fff;
}

.feedback-decision-panel h3 {
  margin: 0;
  font-size: 17px;
}

.feedback-timeline-list {
  gap: 16px;
  margin: 4px 0;
}

.feedback-timeline-step {
  gap: 9px;
}

.feedback-timeline-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
}

.feedback-timeline-step strong {
  font-size: 12px;
}

.feedback-timeline-step p {
  margin: 2px 0 0;
}

.feedback-linked-task {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--color-border-soft);
  border-radius: 6px;
  font-size: 12px;
}

.feedback-decision-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.feedback-status-new,
.feedback-status-processing {
  background: #eaf2f8;
  color: #245574;
}

.feedback-status-ready_for_dev_review {
  background: #e0f2fe;
  color: #075985;
}

.feedback-status-rejected,
.feedback-status-closed {
  background: #f1f5f9;
  color: #64748b;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(47, 143, 211, 0.35);
  outline-offset: 2px;
}

@media (max-width: 1100px) {
  .timeline-commandbar {
    align-items: stretch;
    flex-direction: column;
  }

  .timeline-view-group {
    grid-template-columns: 1fr;
  }

  .timeline-view-group-label {
    padding: 4px 8px 2px;
  }

  .timeline-filterbar,
  .timeline-filterbar.show-zoom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-objective-head {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .timeline-objective-facts {
    grid-column: 2;
  }

  .timeline-member-group {
    grid-template-columns: 190px minmax(0, 1fr);
  }

  .timeline-member-task {
    grid-template-columns: minmax(110px, 0.28fr) minmax(240px, 1fr) 132px;
  }

  .timeline-view-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .roadmap-horizon-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
  }

  .roadmap-horizon-lane:nth-child(2n) {
    border-right: 0;
  }

  .roadmap-horizon-lane:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }

  .roadmap-objective-road-head {
    grid-template-columns: 38px minmax(220px, 1fr) 140px;
  }

  .roadmap-objective-range {
    grid-column: 2 / -1;
    justify-items: start;
  }

  .timeline-executive-row {
    grid-template-columns: minmax(230px, 1fr) minmax(150px, 0.55fr);
  }

  .timeline-executive-focus {
    padding-left: 0;
    border-left: 0;
  }

  .timeline-executive-dates {
    justify-items: start;
    text-align: left;
  }

  .feedback-detail-content {
    grid-template-columns: 1fr;
  }

  .feedback-decision-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .timeline-commandbar,
  .timeline-focus-section,
  .timeline-unplanned-section,
  .feedback-hero,
  .feedback-list-panel,
  .feedback-detail-route-shell,
  .feedback-block,
  .feedback-decision-panel {
    padding: 12px;
  }

  .timeline-summary-metrics,
  .feedback-summary-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-filterbar,
  .timeline-filterbar.show-zoom,
  .timeline-plan-grid,
  .timeline-responsible-list {
    grid-template-columns: 1fr;
  }

  .timeline-view-tabs {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-view-tabs button {
    min-width: 0;
    padding-inline: 7px;
  }

  .timeline-view-group-label {
    font-size: 9px;
  }

  .timeline-continuous-displaybar {
    align-items: stretch;
    flex-direction: column;
    gap: 5px;
  }

  .timeline-continuous-display-tabs {
    width: 100%;
  }

  .timeline-surface-roadmap-toolbar {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

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

  .timeline-surface-roadmap-coverage span {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .timeline-detail-surface-context {
    align-items: stretch;
    flex-direction: column;
  }

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

  .timeline-detail-surface-actions button {
    min-width: 0;
    white-space: normal;
  }

  .timeline-continuous-lane-navigator {
    grid-template-columns: 32px minmax(0, 1fr) 32px;
  }

  .timeline-lane-position {
    display: none;
  }

  .timeline-continuous-desktop {
    display: none;
  }

  .timeline-continuous-mobile-lane {
    display: block;
  }

  .timeline-quarter-roadmap {
    padding: 14px 10px 20px;
  }

  .timeline-quarter-roadmap::before {
    top: 22px;
    bottom: 22px;
    left: 46px;
  }

  .timeline-quarter-roadmap-label {
    width: 72px;
    min-height: 44px;
    margin: 0 0 8px;
  }

  .timeline-quarter-roadmap-event {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .timeline-quarter-roadmap-event {
    min-height: 128px;
  }

  .timeline-quarter-roadmap-node {
    grid-column: 1;
    grid-row: 1;
    width: 64px;
    height: 64px;
  }

  .timeline-quarter-roadmap-node strong {
    font-size: 19px;
  }

  .timeline-quarter-roadmap-node small {
    font-size: 7px;
  }

  .timeline-quarter-roadmap-side-left,
  .timeline-quarter-roadmap-side-right {
    grid-column: 2;
    grid-row: 1;
    width: 100%;
    justify-self: stretch;
  }

  .timeline-quarter-roadmap-event.is-left .timeline-quarter-roadmap-side-right,
  .timeline-quarter-roadmap-event.is-right .timeline-quarter-roadmap-side-left {
    display: none;
  }

  .timeline-quarter-roadmap-event.is-left .timeline-quarter-roadmap-title,
  .timeline-quarter-roadmap-event.is-right .timeline-quarter-roadmap-title {
    grid-template-columns: 8px minmax(0, 1fr);
    border-right: 0;
    border-left: 3px solid #7892a3;
    text-align: left;
  }

  .timeline-quarter-roadmap-event.is-left .timeline-quarter-roadmap-title strong,
  .timeline-quarter-roadmap-event.is-left .timeline-quarter-roadmap-status-dot {
    grid-column: auto;
    grid-row: auto;
  }

  .timeline-quarter-roadmap-title-group.is-dense {
    grid-template-columns: 1fr;
  }

  .timeline-quarter-roadmap-month-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-quarter-roadmap-title.status-in_progress { border-left-color: #2f8fd3; }
  .timeline-quarter-roadmap-title.status-user_review { border-left-color: #d59a24; }
  .timeline-quarter-roadmap-title.status-done { border-left-color: #25855a; }
  .timeline-quarter-roadmap-title.status-cancelled { border-left-color: #7b8794; }

  .timeline-quarter-roadmap-event.is-left .timeline-quarter-roadmap-side-left::after,
  .timeline-quarter-roadmap-event.is-right .timeline-quarter-roadmap-side-right::after {
    right: auto;
    left: -12px;
    width: 12px;
  }

  .timeline-readable-view {
    padding: 7px;
  }

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

  .timeline-parallel-canvas {
    grid-template-columns: 74px minmax(var(--parallel-lanes-width), 1fr);
    min-width: calc(74px + var(--parallel-lanes-width));
  }

  .timeline-parallel-detail-canvas {
    grid-template-columns: 74px minmax(var(--parallel-lanes-width), 1fr);
    min-width: calc(74px + var(--parallel-lanes-width));
  }

  .timeline-continuous-canvas {
    grid-template-columns: 74px minmax(var(--parallel-lanes-width), 1fr);
    min-width: calc(74px + var(--parallel-lanes-width));
  }

  .timeline-parallel-tick {
    right: 8px;
    width: 54px;
  }

  .timeline-parallel-tick::after {
    right: -13px;
    width: 7px;
  }

  .timeline-parallel-tick strong {
    font-size: 8px;
  }

  .timeline-parallel-tick small {
    font-size: 7px;
  }

  .timeline-sheet-daily-canvas {
    --sheet-fixed-width: 620px;
    --sheet-day-size: 29px;
  }

  .timeline-sheet-task-meta-grid {
    position: static;
    grid-template-columns: 125px 82px 190px 70px 70px 83px;
  }

  .timeline-sheet-daily-corner,
  .timeline-sheet-weekly-header > strong,
  .timeline-sheet-weekly-objective {
    position: static;
  }

  .timeline-sheet-weekly-header,
  .timeline-sheet-weekly-row {
    grid-template-columns: 250px repeat(var(--timeline-week-count), 170px);
  }

  .timeline-sheet-table {
    min-width: 960px;
  }

  .roadmap-horizon-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-horizon-lane,
  .roadmap-horizon-lane:nth-child(2n) {
    border-right: 0;
  }

  .roadmap-horizon-lane + .roadmap-horizon-lane {
    border-top: 1px solid var(--color-border);
  }

  .roadmap-horizon-items {
    min-height: 0;
  }

  .roadmap-objective-road-head {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 8px;
  }

  .roadmap-objective-progress,
  .roadmap-objective-range {
    grid-column: 1 / -1;
  }

  .roadmap-objective-range {
    justify-items: start;
  }

  .roadmap-objective-range small {
    text-align: left;
  }

  .roadmap-objective-track {
    grid-template-columns: 1fr;
    gap: 28px;
    width: 100%;
    min-width: 100%;
  }

  .roadmap-objective-step {
    min-width: 0;
  }

  .roadmap-objective-step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -23px;
    content: "↓";
    transform: translateX(50%);
  }

  .roadmap-milestone-item {
    grid-template-columns: 54px 22px minmax(0, 1fr);
    min-height: 164px;
  }

  .roadmap-milestone-date {
    padding-right: 5px;
  }

  .roadmap-milestone-date strong {
    font-size: 18px;
  }

  .roadmap-milestone-heading {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .roadmap-milestone-topline,
  .roadmap-milestone-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .roadmap-milestone-order {
    display: none;
  }

  .timeline-objective-head {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 10px;
  }

  .timeline-objective-roadmap-item {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
  }

  .timeline-objective-date {
    width: 48px;
  }

  .timeline-objective-date strong {
    font-size: 18px;
  }

  .timeline-objective-vertical-axis {
    right: 0;
  }

  .timeline-objective-axis-today b,
  .timeline-objective-axis-today small {
    width: 48px;
  }

  .timeline-objective-time-summary {
    grid-column: 1 / -1;
    display: grid;
    gap: 4px;
  }

  .timeline-objective-time-summary span {
    text-align: left;
    white-space: normal;
  }

  .timeline-objective-facts {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .timeline-objective-facts span {
    white-space: normal;
  }

  .timeline-objective-table-head {
    display: none;
  }

  .timeline-readable-task {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px 10px;
    min-width: 0;
    padding: 11px;
  }

  .timeline-readable-code {
    grid-column: 1;
  }

  .timeline-readable-copy {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .timeline-readable-owner {
    grid-column: 1;
    grid-row: 3;
  }

  .timeline-readable-dates {
    grid-column: 2;
    grid-row: 3;
    text-align: right;
  }

  .timeline-readable-task > .status-mini {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-objective-head.timeline-continuous-objective-head {
    grid-template-columns: 38px minmax(260px, 1fr) auto auto;
  }

  .timeline-continuous-objective-head .timeline-objective-facts {
    grid-column: auto;
    display: flex;
    gap: 16px;
  }

  .timeline-continuous-objective-head .timeline-objective-facts span {
    white-space: nowrap;
  }

  .timeline-continuous-objective-head .timeline-objective-time-summary {
    grid-column: 2 / -1;
    display: flex;
    gap: 10px;
  }

  .timeline-continuous-objective-head .timeline-objective-time-summary span {
    text-align: right;
    white-space: nowrap;
  }

  .timeline-continuous-table .timeline-objective-table-head {
    display: grid;
  }

  .timeline-continuous-task-list .timeline-readable-task {
    grid-template-columns: 112px minmax(330px, 1fr) minmax(145px, 0.42fr) 145px 108px;
    gap: 12px;
    min-width: 900px;
    padding: 8px 12px;
  }

  .timeline-continuous-task-list .timeline-readable-code,
  .timeline-continuous-task-list .timeline-readable-copy,
  .timeline-continuous-task-list .timeline-readable-owner,
  .timeline-continuous-task-list .timeline-readable-dates,
  .timeline-continuous-task-list .timeline-readable-task > .status-mini {
    grid-column: auto;
    grid-row: auto;
  }

  .timeline-continuous-task-list .timeline-readable-dates {
    text-align: left;
  }

  .timeline-member-group {
    grid-template-columns: 1fr;
  }

  .timeline-member-head {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .timeline-member-load {
    grid-column: 2;
    grid-row: 2;
    padding-top: 6px;
    border-top: 0;
  }

  .timeline-member-task {
    grid-template-columns: 1fr;
    gap: 7px;
    min-height: 0;
    padding: 11px;
  }

  .timeline-member-task-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .timeline-executive-row,
  .timeline-activity-lanes {
    grid-template-columns: 1fr;
  }

  .timeline-executive-row {
    gap: 11px;
  }

  .timeline-executive-focus,
  .timeline-executive-dates {
    padding-top: 9px;
    border-top: 1px solid var(--color-border-soft);
  }

  .timeline-weekly-header,
  .timeline-weekly-task-row {
    grid-template-columns: 220px repeat(var(--timeline-week-count), 112px);
  }

  .timeline-weekly-objective {
    width: 220px;
  }

  .timeline-weekly-task-row {
    background-position-x: 220px;
  }

  .timeline-activity-task-title {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .timeline-activity-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .timeline-focus-row {
    grid-template-columns: 34px minmax(0, 1fr) 28px;
  }

  .timeline-focus-items {
    grid-column: 2 / -1;
    flex-wrap: wrap;
  }

  .timeline-date-row,
  .timeline-task-row {
    grid-template-columns: 230px repeat(var(--timeline-day-count), var(--timeline-day-size));
  }

  .timeline-label-cell,
  .timeline-task-meta,
  .timeline-group-heading {
    width: 230px;
  }

  .timeline-task-row {
    background-position-x: 230px;
  }

  .timeline-edit-plan {
    left: 196px;
  }

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

  .timeline-unplanned-row button {
    grid-column: 1 / -1;
  }

  .feedback-hero,
  .feedback-block-heading,
  .feedback-question-title-row,
  .feedback-message-composer > div {
    align-items: stretch;
    flex-direction: column;
  }

  .feedback-summary-card {
    min-width: 0;
  }

  .feedback-analysis-grid div,
  .feedback-suggestion,
  .feedback-question-answer-row,
  .feedback-decision-actions {
    grid-template-columns: 1fr;
  }

  .feedback-message-meta time {
    width: 100%;
    margin-left: 0;
  }
}

@media (min-width: 761px) and (max-width: 1240px) {
  .shell,
  .shell:has(.right-sidebar.collapsed),
  body.left-sidebar-collapsed .shell,
  body.left-sidebar-collapsed .shell:has(.right-sidebar.collapsed) {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .sidebar {
    grid-column: 1;
  }

  .main {
    grid-column: 2;
    min-width: 0;
  }

  .right-sidebar {
    display: none;
  }
}

/* Feedback case detail */
.feedback-case-detail {
  margin-top: 16px;
}

.feedback-case-record {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.feedback-case-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
}

.feedback-case-facts > div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--color-border-soft);
}

.feedback-case-facts > div:last-child {
  border-right: 0;
}

.feedback-case-facts dt,
.feedback-system-grid dt,
.feedback-case-analysis dt {
  margin-bottom: 4px;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-case-facts dd,
.feedback-system-grid dd,
.feedback-case-analysis dd {
  margin: 0;
  color: #1e293b;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.feedback-case-section {
  display: grid;
  gap: 12px;
  padding: 17px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
}

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

.feedback-case-section h4,
.feedback-case-section-heading h4 {
  margin: 3px 0 0;
  font-size: 16px;
  line-height: 1.4;
}

.feedback-case-copy {
  color: #26384a;
  line-height: 1.68;
}

.feedback-case-copy p {
  margin: 0 0 10px;
}

.feedback-case-copy p:last-child {
  margin-bottom: 0;
}

.feedback-case-request {
  border-top: 3px solid #537b92;
}

.feedback-case-resolution {
  border-left: 3px solid #2b7a9f;
  background: #f8fbfd;
}

.feedback-case-resolution.is-pending {
  border-left-color: #c58a25;
  background: #fffdf6;
}

.feedback-case-resolution.is-final {
  border-left-color: #31866a;
  background: #f4faf7;
}

.feedback-case-resolution.is-routing {
  border-left-color: #3f7f9f;
  background: #f5fafc;
}

.feedback-task-conversion-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 14px 0 0;
  padding: 0;
  border: 1px solid #d8e5ec;
  border-radius: 5px;
  background: #fff;
  list-style: none;
}

.feedback-task-conversion-steps li {
  display: flex;
  min-width: 0;
  gap: 8px;
  align-items: flex-start;
  padding: 11px 10px;
  color: #778692;
}

.feedback-task-conversion-steps li + li {
  border-left: 1px solid #d8e5ec;
}

.feedback-task-conversion-steps li > span {
  display: grid;
  width: 23px;
  height: 23px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #becbd5;
  border-radius: 50%;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
}

.feedback-task-conversion-steps li > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.feedback-task-conversion-steps strong,
.feedback-task-conversion-steps small {
  overflow-wrap: anywhere;
}

.feedback-task-conversion-steps strong {
  color: #435462;
  font-size: 11px;
}

.feedback-task-conversion-steps small {
  font-size: 10px;
  line-height: 1.35;
}

.feedback-task-conversion-steps li.complete > span {
  border-color: #75aa8b;
  background: #e5f4eb;
  color: #17643a;
}

.feedback-task-conversion-steps li.active {
  background: #eef7fb;
  color: #285a78;
}

.feedback-task-conversion-steps li.active > span {
  border-color: #2584b8;
  background: #e7f3fa;
  color: #17618a;
}

.feedback-case-resolution.result-not_converted {
  border-left-color: #b85d5d;
  background: #fff8f8;
}

.feedback-resolution-result-heading {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 3px 0 10px;
}

.feedback-resolution-result-heading > span {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #e5f4eb;
  color: #17643a;
  font-size: 12px;
  font-weight: 900;
}

.feedback-resolution-result-heading h4 {
  margin: 0;
}

.feedback-case-resolution.result-not_converted .feedback-resolution-result-heading > span {
  background: #f7e8e8;
  color: #963d3d;
}

@media (max-width: 760px) {
  .feedback-task-conversion-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-task-conversion-steps li + li {
    border-top: 1px solid #d8e5ec;
    border-left: 0;
  }
}

.feedback-case-clarification {
  border-left: 3px solid #7593a5;
  background: #f8fafc;
}

.feedback-case-questions {
  border-left: 3px solid #d08a1d;
  background: #fffdf6;
}

.feedback-case-decision {
  border-left: 3px solid #64748b;
}

.feedback-case-decision label {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-case-attachments {
  display: grid;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-soft);
  font-size: 12px;
}

.feedback-case-attachments a {
  color: #1e668d;
  overflow-wrap: anywhere;
}

.feedback-case-analysis {
  display: grid;
  gap: 10px;
  margin: 0;
}

.feedback-case-analysis > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
}

.feedback-analysis-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid #d9e2e8;
  border-bottom: 1px solid #d9e2e8;
}

.feedback-analysis-summary > div {
  min-width: 0;
  padding: 14px;
}

.feedback-analysis-summary > div:first-child {
  border-right: 1px solid #e3eaee;
}

.feedback-analysis-summary-overview {
  grid-column: 1 / -1;
  border-top: 1px solid #e3eaee;
  background: #f8fbfc;
}

.feedback-analysis-summary dt {
  margin-bottom: 7px;
  color: #496474;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-analysis-summary dd {
  margin: 0;
  color: #253b49;
  font-size: 12px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.feedback-analysis-completeness {
  align-self: start;
  padding: 5px 7px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 900;
}

.feedback-analysis-completeness.complete {
  background: #dff2e7;
  color: #246546;
}

.feedback-analysis-completeness.needs-clarification {
  background: #fff0c7;
  color: #7a570d;
}

.feedback-analysis-legacy-note {
  margin: 0;
  padding: 9px 10px;
  border-left: 3px solid #c58a25;
  background: #fffaf0;
  color: #6d5a32;
  font-size: 11px;
  line-height: 1.5;
}

.feedback-5w1h-details {
  border-top: 1px solid #d9e2e8;
  border-bottom: 1px solid #d9e2e8;
}

.feedback-5w1h-details > summary {
  position: relative;
  display: flex;
  min-height: 52px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 38px 11px 14px;
  color: #2b4556;
  cursor: pointer;
  list-style: none;
}

.feedback-5w1h-details > summary::-webkit-details-marker {
  display: none;
}

.feedback-5w1h-details > summary::after {
  position: absolute;
  top: 50%;
  right: 15px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #647b89;
  border-bottom: 2px solid #647b89;
  content: "";
  transform: translateY(-68%) rotate(45deg);
}

.feedback-5w1h-details[open] > summary::after {
  transform: translateY(-28%) rotate(225deg);
}

.feedback-5w1h-details > summary > span:first-child {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.feedback-5w1h-details > summary strong {
  font-size: 12px;
}

.feedback-5w1h-details > summary small {
  color: #6a7a86;
  font-size: 10px;
}

.feedback-5w1h-count {
  flex: 0 0 auto;
  color: #4e6d7f;
  font-size: 10px;
  font-weight: 800;
}

.feedback-5w1h-details-body {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.feedback-5w1h-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #e3eaee;
}

.feedback-5w1h-item {
  display: grid;
  min-width: 0;
  gap: 8px;
  padding: 13px 14px;
  border-bottom: 1px solid #e3eaee;
  border-left: 3px solid #7894a5;
}

.feedback-5w1h-item:nth-child(odd) {
  border-right: 1px solid #e3eaee;
}

.feedback-5w1h-item:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.feedback-5w1h-item.status-partial {
  border-left-color: #c58a25;
  background: #fffdf7;
}

.feedback-5w1h-item.status-missing {
  border-left-color: #b86565;
  background: #fff9f8;
}

.feedback-5w1h-item header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.feedback-5w1h-item header > span {
  color: #2e6f92;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
}

.feedback-5w1h-item header > strong {
  color: #243847;
  font-size: 12px;
}

.feedback-5w1h-item header > small {
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
}

.feedback-5w1h-item > p {
  margin: 0;
  color: #415363;
  font-size: 12px;
  line-height: 1.55;
}

.feedback-5w1h-questions,
.feedback-5w1h-clarifications {
  display: grid;
  gap: 5px;
  padding-top: 8px;
  border-top: 1px dashed #d4dee5;
  color: #6c5627;
  font-size: 10px;
  line-height: 1.45;
}

.feedback-5w1h-clarifications {
  color: #2d624c;
}

.feedback-case-question-list {
  display: grid;
  gap: 0;
  border-top: 1px solid #eadfbf;
}

.feedback-case-question.feedback-question-card {
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid #eadfbf;
  border-radius: 0;
  background: transparent;
}

.feedback-case-question.feedback-question-card:last-child {
  border-bottom: 0;
}

.feedback-question-suggestions {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.feedback-question-dimension-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}

.feedback-question-dimension-chips span {
  padding: 3px 6px;
  border: 1px solid #b9ccd8;
  border-radius: 4px;
  background: #eef6fa;
  color: #2d6684;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 900;
}

.feedback-question-suggestion {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0 10px 12px;
  border-left: 3px solid #7ea8c5;
}

.feedback-question-suggestion p,
.feedback-question-tradeoffs span {
  display: block;
  margin: 3px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.feedback-case-number {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #263d4e;
  color: #fff;
}

.feedback-status-summary {
  display: grid;
  min-width: 0;
  gap: 4px;
  justify-items: start;
}

.feedback-status-summary small {
  color: #5f6f7e;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.feedback-detail-status {
  justify-items: end;
  text-align: right;
}

.feedback-detail-status small {
  color: #e3edf3;
}

.feedback-row-status .status-mini {
  justify-self: start;
}

.feedback-case-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 14px;
  align-items: start;
}

.feedback-case-main,
.feedback-case-aside {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.feedback-case-aside {
  position: sticky;
  top: 78px;
}

.feedback-human-progress {
  display: grid;
  margin-top: 2px;
}

.feedback-human-progress-step {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  min-height: 58px;
}

.feedback-human-progress-step::before {
  position: absolute;
  top: 24px;
  bottom: 0;
  left: 11px;
  width: 2px;
  background: #dbe4ea;
  content: "";
}

.feedback-human-progress-step:last-child::before {
  display: none;
}

.feedback-human-progress-step > span {
  z-index: 1;
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1px solid #b8c8d3;
  border-radius: 50%;
  background: #fff;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
}

.feedback-human-progress-step.complete > span {
  border-color: #31866a;
  background: #e8f7f0;
  color: #21644f;
}

.feedback-human-progress-step strong {
  display: block;
  font-size: 12px;
}

.feedback-human-progress-step p {
  margin: 3px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.feedback-system-details {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #f8fafc;
}

.feedback-system-details summary {
  padding: 13px 15px;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.feedback-system-details-body {
  display: grid;
  gap: 12px;
  padding: 0 15px 15px;
  border-top: 1px solid var(--color-border-soft);
}

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

.feedback-system-details .feedback-source-panel {
  margin-top: 0;
}

.feedback-case-discussion {
  border-top: 3px solid #3c7b75;
}

.feedback-discussion-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin: 8px 0 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.feedback-discussion-summary strong {
  color: #26384a;
}

.feedback-discussion-state {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef2f6;
  color: #475569;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-discussion-state.state-open {
  background: #e7f5ef;
  color: #21644f;
}

.feedback-discussion-state.state-closed {
  background: #eef2f6;
  color: #526171;
}

.feedback-pending-response-list {
  display: grid;
  border-block: 1px solid #dbe5e8;
  background: #f6faf9;
}

.feedback-pending-response-list > div {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px 10px;
  border-bottom: 1px solid #dbe5e8;
}

.feedback-pending-response-list > div:last-child {
  border-bottom: 0;
}

.feedback-pending-response-list p,
.feedback-pending-response-list small {
  margin: 0;
}

.feedback-pending-response-list small {
  color: #64748b;
  font-size: 10px;
}

.feedback-response-request-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d08a1d;
}

.feedback-message-relations {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.feedback-message-relations span {
  padding: 3px 7px;
  border-radius: 4px;
  background: #fff3cd;
  color: #8a5a00;
  font-size: 10px;
  font-weight: 800;
}

.feedback-message-relations span.resolved {
  background: #e7f5ef;
  color: #21644f;
}

.feedback-message-composer > .feedback-composer-options {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: 8px 12px;
  align-items: end;
}

.feedback-composer-options label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.feedback-composer-options select {
  width: 100%;
}

.feedback-response-auto-note {
  align-self: center;
  margin: 0;
  color: #526171;
  font-size: 12px;
  line-height: 1.45;
}

.feedback-discussion-control {
  border-left: 3px solid #3c7b75;
}

.feedback-discussion-control-heading {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.feedback-discussion-control-heading h4 {
  margin: 0;
}

.feedback-discussion-control-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.feedback-discussion-control-facts > div {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--color-border-soft);
  background: #f8fafc;
}

.feedback-discussion-control-facts dt {
  margin-bottom: 4px;
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-discussion-control-facts dd {
  margin: 0;
  color: #26384a;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.feedback-discussion-control > label {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-discussion-control > button {
  justify-self: start;
}

@media (max-width: 1040px) {
  .feedback-case-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-case-aside {
    position: static;
  }

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

  .feedback-case-facts > div:nth-child(2) {
    border-right: 0;
  }

  .feedback-case-facts > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--color-border-soft);
  }
}

@media (max-width: 760px) {
  .feedback-case-section-heading {
    flex-direction: column;
  }

  .feedback-case-facts,
  .feedback-system-grid,
  .feedback-case-analysis > div,
  .feedback-question-suggestion {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-case-facts > div {
    border-right: 0;
    border-bottom: 1px solid var(--color-border-soft);
  }

  .feedback-case-facts > div:last-child {
    border-bottom: 0;
  }

  .feedback-case-section,
  .feedback-discussion-control {
    padding: 13px;
  }

  .feedback-question-suggestion {
    align-items: stretch;
  }

  .feedback-question-suggestion .secondary-btn {
    justify-self: start;
  }

  .feedback-composer-options,
  .feedback-discussion-control-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .shell,
  .shell:has(.right-sidebar.collapsed),
  body.left-sidebar-collapsed .shell,
  body.left-sidebar-collapsed .shell:has(.right-sidebar.collapsed) {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
    width: 100%;
  }

  .topbar {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
  }

  .topbar-brand strong {
    display: block;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar-brand span,
  .topbar .back-btn,
  #leftSidebarToggle,
  #rightSidebarToggle {
    display: none;
  }

  .domain-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    max-width: calc(100vw - 20px);
    padding-top: 4px;
    padding-right: 26px;
    -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
    mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 26px), transparent 100%);
  }

  .domain-nav button {
    min-width: max-content;
    padding: 9px 11px;
    font-size: 13px;
  }

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

  .sidebar,
  body.left-sidebar-collapsed .sidebar {
    display: block;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    padding: 8px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    overflow-x: auto;
  }

  .sidebar .brand-card,
  .sidebar .meta {
    display: none !important;
  }

  .sidebar .nav {
    display: flex;
    width: max-content;
    min-width: 100%;
    gap: 4px;
  }

  .sidebar .nav-btn {
    min-width: max-content;
    padding: 8px 10px;
    border-radius: 5px;
  }

  .timeline-migration-audit-disclosure > summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .timeline-migration-audit-title {
    display: grid;
    gap: 1px;
  }

  .timeline-migration-audit-quick {
    grid-column: 1;
    grid-row: 2;
  }

  .timeline-migration-audit-toggle {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .timeline-migration-audit-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .migration-audit-fact:nth-child(2n) {
    border-right: 0;
  }

  .timeline-unplanned-head-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .timeline-unplanned-head-actions select {
    width: 100%;
    min-width: 0;
  }

  .timeline-continuous-mobile-objective-head {
    grid-template-columns: 34px minmax(0, 1fr) 30px;
  }

  .timeline-continuous-mobile-objective-head > .status-mini {
    grid-column: 2;
    justify-self: start;
  }

  .timeline-continuous-mobile-objective-head .timeline-mobile-toggle {
    grid-column: 3;
    grid-row: 1;
  }

  .main {
    grid-column: 1;
    grid-row: 3;
    min-width: 0;
    width: 100%;
    padding: 12px;
  }

  .right-sidebar {
    display: none;
  }

  .toolbar {
    gap: 10px;
  }

  .toolbar h2 {
    font-size: 24px;
  }

  .account-page-header,
  .account-section-heading,
  .account-table-toolbar,
  .account-membership-row {
    align-items: stretch;
    flex-direction: column;
  }

  .account-page-header .primary-btn,
  .account-primary-actions .primary-btn,
  .account-section-heading .primary-btn,
  .account-membership-actions .secondary-btn {
    width: 100%;
  }

  .feedback-primary-actions .primary-btn {
    width: 100%;
  }

  .account-filter-bar,
  .account-detail-form-grid,
  .account-membership-controls,
  .account-reset-password-row {
    grid-template-columns: 1fr;
  }

  .account-detail-header {
    grid-template-columns: auto minmax(0, 1fr);
    padding: 16px;
  }

  .account-detail-header > .account-state-badge {
    grid-column: 1 / -1;
  }

  .account-detail-section {
    padding: 18px 16px;
  }

  .account-membership-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .management-pagination {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .management-pagination-size,
  .management-pagination-pages {
    justify-content: center;
  }

  .management-pagination-range {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .timeline-week-frame {
    grid-template-columns: 124px minmax(0, 1fr);
  }

  .timeline-week-frame-head {
    padding-right: 9px;
    padding-left: 17px;
  }

  .timeline-week-objective-head {
    grid-template-columns: 34px minmax(180px, 1fr) auto;
  }

  .timeline-week-objective-head .timeline-continuous-toggle {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .timeline-week-objective-status {
    grid-column: 2;
    justify-self: start;
  }

  .timeline-week-objective-facts {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .timeline-month-week-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .timeline-month-week-summary span:last-child {
    grid-column: 1 / -1;
  }

  .timeline-month-frame-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .timeline-month-frame-facts {
    width: 100%;
    justify-content: space-between;
  }

  .timeline-week-frame {
    grid-template-columns: minmax(0, 1fr);
  }

  .timeline-week-frame-head {
    min-height: 0;
    padding: 10px 10px 10px 22px;
    border-right: 0;
    border-bottom: 1px solid #d9e2e8;
  }

  .timeline-week-frame-head::before {
    left: 9px;
  }

  .timeline-week-frame-head::after {
    top: 16px;
    left: 5px;
  }

  .timeline-week-frame-head > b {
    position: absolute;
    top: 8px;
    right: 9px;
    margin-top: 0;
  }

  .timeline-week-frame-content {
    padding: 8px;
  }

  .timeline-week-objective-head {
    grid-template-columns: 32px minmax(0, 1fr) 30px;
    gap: 7px 9px;
    padding: 9px;
  }

  .timeline-week-objective-head .timeline-objective-index {
    width: 32px;
    height: 32px;
  }

  .timeline-week-objective-head .timeline-objective-title {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-week-objective-head .timeline-continuous-toggle {
    grid-column: 3;
    grid-row: 1;
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
    justify-content: center;
  }

  .timeline-week-objective-head .timeline-continuous-toggle span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  .timeline-week-objective-status {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .timeline-week-objective.is-empty .timeline-week-objective-status {
    grid-column: 2 / -1;
  }

  .timeline-week-objective-facts {
    grid-column: 1 / -1;
    grid-row: 3;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 8px;
  }

  .timeline-week-objective-facts span {
    white-space: normal;
  }

  .timeline-week-objective-body .timeline-objective-table-head {
    display: none;
  }

  .timeline-week-task-list .timeline-readable-task {
    min-width: 0;
  }
}

/* Keep feedback workflow overrides last because this experiment retains legacy CSS layers. */

/* Skill-first assurance surfaces */
.skill-first-audit-panel {
  margin: 12px 0 16px;
  padding: 16px 18px;
  border: 1px solid #cbd9e5;
  border-left: 4px solid #087f8c;
  border-radius: 6px;
  background: #ffffff;
}

.skill-first-audit-head,
.skill-first-assurance-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.skill-first-audit-head h3,
.skill-first-assurance-head h3 {
  margin: 2px 0 4px;
  font-size: 18px;
}

.skill-first-source-badge,
.skill-first-state,
.skill-first-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border: 1px solid #bfd3da;
  border-radius: 4px;
  background: #eef8f8;
  color: #155e68;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.skill-first-audit-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(110px, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.skill-first-audit-metrics > div {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #dce5ec;
  border-radius: 5px;
  background: #f8fafc;
}

.skill-first-audit-metrics strong,
.skill-first-audit-metrics span {
  display: block;
}

.skill-first-audit-metrics strong {
  color: #172737;
  font-size: 20px;
}

.skill-first-audit-metrics span {
  margin-top: 2px;
  color: #617184;
  font-size: 12px;
}

.skill-first-audit-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  color: #516172;
  font-size: 12px;
}

.skill-first-audit-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.audit-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #718096;
}

.audit-full { background: #16835f; }
.audit-partial { background: #d18b00; }
.audit-none { background: #7b8794; }
.audit-conflict { background: #c93e4f; }

.skill-first-chip.assurance-ready,
.skill-first-state.assurance-ready {
  border-color: #addbc9;
  background: #e9f7f0;
  color: #146447;
}

.skill-first-chip.assurance-blocked,
.skill-first-state.assurance-blocked {
  border-color: #edc36c;
  background: #fff6dc;
  color: #825500;
}

.skill-first-chip.assurance-historical-gap,
.skill-first-state.assurance-historical-gap {
  border-color: #ccd3da;
  background: #f2f4f6;
  color: #5c6670;
}

.skill-first-assurance-panel {
  border-left: 4px solid #087f8c;
}

.skill-first-assurance-panel.assurance-blocked {
  border-left-color: #d18b00;
}

.skill-first-assurance-panel.assurance-historical-gap {
  border-left-color: #7b8794;
}

.skill-first-state-note {
  margin: 12px 0 0;
  color: #425466;
  line-height: 1.55;
}

.skill-first-coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.skill-first-coverage-grid > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #dce5ec;
  border-radius: 5px;
  background: #f8fafc;
}

.skill-first-coverage-grid span,
.skill-first-coverage-grid strong,
.skill-first-coverage-grid small {
  display: block;
}

.skill-first-coverage-grid span,
.skill-first-coverage-grid small {
  color: #617184;
  font-size: 12px;
}

.skill-first-coverage-grid strong {
  margin: 3px 0 6px;
  color: #172737;
  font-size: 18px;
}

.skill-first-coverage-grid small {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.skill-first-meter {
  height: 5px;
  overflow: hidden;
  border-radius: 3px;
  background: #dce5ec;
}

.skill-first-meter i {
  display: block;
  height: 100%;
  background: #16835f;
}

.skill-first-meter.source i {
  background: #087f8c;
}

.skill-first-dimension-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.skill-first-dimension {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  min-height: 72px;
  padding: 10px;
  border: 1px solid #dce5ec;
  border-radius: 5px;
  background: #ffffff;
}

.dimension-marker {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: #e5e9ed;
  color: #53606d;
  font-size: 12px;
  font-weight: 800;
}

.dimension-known .dimension-marker {
  background: #dff3ea;
  color: #146447;
}

.dimension-unknown .dimension-marker {
  background: #fff0c4;
  color: #825500;
}

.dimension-conflict .dimension-marker {
  background: #fde8eb;
  color: #a22d3b;
}

.skill-first-dimension strong,
.skill-first-dimension span {
  display: block;
}

.skill-first-dimension strong {
  color: #263747;
  font-size: 13px;
}

.skill-first-dimension span,
.skill-first-dimension p {
  margin-top: 3px;
  color: #667585;
  font-size: 11px;
  line-height: 1.45;
}

.skill-first-cross-checks {
  margin-top: 14px;
  border-top: 1px solid #dce5ec;
  padding-top: 12px;
}

.skill-first-cross-checks summary {
  cursor: pointer;
  color: #263747;
  font-size: 13px;
  font-weight: 700;
}

.skill-first-cross-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  margin-top: 9px;
  color: #425466;
}

.skill-first-cross-check > span {
  font-weight: 800;
  color: #16835f;
}

.skill-first-cross-check.blocked > span {
  color: #b36a00;
}

.skill-first-cross-check p {
  margin: 2px 0 0;
  color: #667585;
  font-size: 12px;
}

.skill-first-debt-list {
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #edc36c;
  border-radius: 5px;
  background: #fff9e8;
  color: #694d12;
}

.skill-first-debt-list p {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .skill-first-audit-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skill-first-coverage-grid,
  .skill-first-dimension-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .skill-first-audit-head,
  .skill-first-assurance-head {
    align-items: stretch;
    flex-direction: column;
  }

  .skill-first-source-badge,
  .skill-first-state {
    align-self: flex-start;
  }

  .skill-first-audit-metrics {
    grid-template-columns: 1fr 1fr;
  }
}
.feedback-case-facts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1040px) {
  .feedback-case-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-case-facts > div:nth-child(even) {
    border-right: 0;
  }

  .feedback-case-facts > div:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .feedback-table-scroll {
    overflow-x: visible;
  }

  .feedback-table-head {
    display: none;
  }

  .feedback-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
    min-width: 0;
    margin-bottom: 8px;
    padding: 14px;
    border: 1px solid var(--color-border);
    border-radius: 6px;
  }

  .feedback-row-title,
  .feedback-row-next {
    grid-column: 1 / -1;
  }

  .feedback-row-cell,
  .feedback-row-next {
    display: grid;
    gap: 3px;
  }

  .feedback-row-cell::before,
  .feedback-row-next::before {
    color: #64748b;
    font-size: 9px;
    font-weight: 900;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .feedback-case-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-case-facts > div,
  .feedback-case-facts > div:nth-child(even),
  .feedback-case-facts > div:last-child {
    grid-column: auto;
    border-right: 0;
    border-bottom: 1px solid var(--color-border-soft);
  }

  .feedback-case-facts > div:last-child {
    border-bottom: 0;
  }
}

.feedback-search-panel {
  display: grid;
  grid-template-columns: minmax(190px, 240px) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
}

.feedback-search-panel label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.feedback-search-panel label > span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-search-panel input,
.feedback-search-panel select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 11px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}

@media (max-width: 760px) {
  .feedback-search-panel {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Feedback lifecycle v4: canonical dev-review handoff and parallel department responses. */
.feedback-status-new {
  background: #eaf2f8;
  color: #285a78;
}

.feedback-status-discussing {
  background: #fff1c7;
  color: #855800;
}

.feedback-status-pending_dev_review {
  background: #e4eefb;
  color: #28598a;
}

.feedback-status-converted_to_task {
  background: #dcf3e5;
  color: #17643a;
}

.feedback-status-not_converted {
  background: #f3e7e7;
  color: #8a3737;
}

.feedback-lifecycle-panel {
  display: grid;
  gap: 16px;
}

.feedback-lifecycle-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.feedback-lifecycle-heading h4 {
  margin: 3px 0 0;
}

.feedback-lifecycle-current {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
}

.feedback-lifecycle-track {
  display: grid;
  grid-template-columns:
    minmax(66px, 1fr)
    20px
    minmax(66px, 1fr)
    20px
    minmax(66px, 1fr)
    20px
    minmax(66px, 1fr);
  gap: 4px;
  align-items: center;
}

.feedback-lifecycle-track > i {
  height: 1px;
  background: #cbd6df;
}

.feedback-lifecycle-step {
  display: grid;
  gap: 6px;
  justify-items: center;
  color: #83909c;
  text-align: center;
}

.feedback-lifecycle-step > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid #bdc9d3;
  border-radius: 50%;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.feedback-lifecycle-step > strong {
  font-size: 10px;
  line-height: 1.3;
}

.feedback-lifecycle-step.active,
.feedback-lifecycle-step.complete {
  color: #213342;
}

.feedback-lifecycle-step.active > span {
  border-color: #2584b8;
  background: #e7f3fa;
  color: #17618a;
  box-shadow: 0 0 0 3px rgb(37 132 184 / 10%);
}

.feedback-lifecycle-step.complete > span {
  border-color: #75aa8b;
  background: #e5f4eb;
  color: #17643a;
}

.feedback-lifecycle-step.result-not_converted.active > span {
  border-color: #c96d6d;
  background: #f7e8e8;
  color: #963d3d;
}

.feedback-lifecycle-waiting {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px;
  border: 1px solid #ead79a;
  border-radius: 5px;
  background: #fff9e9;
}

.feedback-lifecycle-waiting > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #d79518;
}

.feedback-lifecycle-waiting div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.feedback-lifecycle-waiting small {
  color: #7a6840;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.feedback-lifecycle-waiting strong {
  overflow-wrap: anywhere;
  font-size: 12px;
}

.feedback-analysis-intake {
  display: grid;
  gap: 14px;
}

.feedback-analysis-completed-flow {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.feedback-analysis-route-summary {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 10px;
  border: 1px solid #cfe2d7;
  border-radius: 5px;
  background: #f1f8f4;
}

.feedback-analysis-route-summary > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: #dcefe4;
  color: #17643a;
  font-size: 11px;
  font-weight: 900;
}

.feedback-analysis-route-summary > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.feedback-analysis-route-summary strong {
  color: #244f3c;
  font-size: 11px;
}

.feedback-analysis-route-summary small {
  color: #577466;
  font-size: 10px;
  line-height: 1.35;
}

.feedback-analysis-complete-steps {
  background: #fff;
}

.feedback-analysis-intake > .muted {
  margin: 0;
  line-height: 1.5;
}

.feedback-analysis-intake-status {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 5px;
  background: #eaf2f8;
  color: #285a78;
  font-size: 10px;
  font-weight: 800;
}

.feedback-analysis-intake-status.status-research-complete {
  background: #fff1c7;
  color: #855800;
}

.feedback-analysis-intake-status.status-research-blocked {
  background: #f3e7e7;
  color: #8a3737;
}

.feedback-analysis-intake-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--color-border-soft);
  border-bottom: 1px solid var(--color-border-soft);
  list-style: none;
}

.feedback-analysis-intake-steps li {
  display: flex;
  min-width: 0;
  gap: 9px;
  align-items: flex-start;
  padding: 12px 10px;
  color: #7a8792;
}

.feedback-analysis-intake-steps li + li {
  border-left: 1px solid var(--color-border-soft);
}

.feedback-analysis-intake-steps li > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #becbd5;
  border-radius: 50%;
  background: #fff;
  font-size: 10px;
  font-weight: 900;
}

.feedback-analysis-intake-steps li > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.feedback-analysis-intake-steps strong,
.feedback-analysis-intake-steps small {
  overflow-wrap: anywhere;
}

.feedback-analysis-intake-steps strong {
  color: #445563;
  font-size: 11px;
}

.feedback-analysis-intake-steps small {
  font-size: 10px;
  line-height: 1.35;
}

.feedback-analysis-intake-steps li.active {
  background: #f0f7fb;
  color: #285a78;
}

.feedback-analysis-intake-steps li.active > span {
  border-color: #2584b8;
  background: #e7f3fa;
  color: #17618a;
}

.feedback-analysis-intake-steps li.complete > span {
  border-color: #75aa8b;
  background: #e5f4eb;
  color: #17643a;
}

.feedback-analysis-intake-steps li.blocked > span {
  border-color: #c96d6d;
  background: #f7e8e8;
  color: #963d3d;
}

.feedback-analysis-intake-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.feedback-analysis-intake-meta > div {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border-left: 2px solid #d79518;
  background: #fff9e9;
}

.feedback-analysis-intake-meta dt {
  color: #7a6840;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.feedback-analysis-intake-meta dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #4e4632;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .feedback-analysis-intake-steps,
  .feedback-analysis-intake-meta {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-analysis-intake-steps li + li {
    border-top: 1px solid var(--color-border-soft);
    border-left: 0;
  }
}

.feedback-resolution-controls,
.feedback-resolution-waiting {
  display: grid;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border-soft);
}

.feedback-resolution-controls > label {
  color: #566675;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.feedback-resolution-controls textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
}

.feedback-decision-actions .is-blocked-action,
.feedback-decision-actions .is-blocked-action:hover {
  border-color: #b8c5cf;
  background: #eef2f5;
  color: #526171;
  box-shadow: none;
  cursor: help;
}

.feedback-decision-blockers {
  padding: 10px 12px;
  border: 1px solid #ead79a;
  border-left: 3px solid #c58a25;
  border-radius: 5px;
  background: #fff9e9;
  color: #66552f;
}

.feedback-decision-blockers strong {
  font-size: 12px;
}

.feedback-decision-blockers ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.feedback-decision-blockers li {
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.45;
}

.feedback-resolution-waiting p {
  margin: 0;
  color: #5d6b78;
  line-height: 1.5;
}

.feedback-response-department-picker {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.feedback-response-department-picker legend {
  display: flex;
  width: 100%;
  gap: 6px;
  align-items: baseline;
  margin-bottom: 8px;
  color: #455767;
  font-size: 11px;
  font-weight: 800;
}

.feedback-response-department-picker legend span {
  color: #7d8994;
  font-size: 9px;
  font-weight: 600;
}

.feedback-response-department-picker > div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.feedback-response-department-picker label {
  display: inline-flex;
  min-height: 34px;
  gap: 7px;
  align-items: center;
  padding: 7px 9px;
  border: 1px solid #ccd7df;
  border-radius: 5px;
  background: #fff;
  color: #334957;
  cursor: pointer;
}

.feedback-response-department-picker label:has(input:checked) {
  border-color: #4f9fc6;
  background: #ebf6fb;
}

.feedback-response-department-picker label.already-waiting {
  border-color: #e5cf8d;
  background: #fff8e5;
  cursor: default;
}

.feedback-response-department-picker input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #2584b8;
}

.feedback-response-department-picker small {
  color: #8a671b;
  font-size: 9px;
  font-weight: 800;
}

.feedback-response-multiselect {
  position: relative;
  width: min(100%, 460px);
  min-width: 0;
}

.feedback-response-multiselect > summary {
  position: relative;
  display: grid;
  min-height: 42px;
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 9px 38px 9px 11px;
  border: 1px solid #c8d4dd;
  border-radius: 5px;
  background: #fff;
  color: #405361;
  cursor: pointer;
  list-style: none;
}

.feedback-response-multiselect > summary::-webkit-details-marker {
  display: none;
}

.feedback-response-multiselect > summary::after {
  position: absolute;
  top: 50%;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #657785;
  border-bottom: 2px solid #657785;
  content: "";
  transform: translateY(-68%) rotate(45deg);
}

.feedback-response-multiselect[open] > summary {
  border-color: #4f9fc6;
  box-shadow: 0 0 0 3px rgb(79 159 198 / 12%);
}

.feedback-response-multiselect[open] > summary::after {
  transform: translateY(-28%) rotate(225deg);
}

.feedback-response-multiselect > summary > span {
  font-size: 11px;
  font-weight: 800;
}

.feedback-response-multiselect > summary > strong {
  min-width: 0;
  color: #1f3b4d;
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.feedback-response-multiselect-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #c8d4dd;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 12px 28px rgb(29 53 68 / 16%);
}

.feedback-response-multiselect-menu > p {
  margin: 0;
  color: #73818c;
  font-size: 10px;
}

.feedback-response-multiselect-options {
  display: grid;
  gap: 5px;
}

.feedback-response-multiselect-options label {
  display: grid;
  min-height: 36px;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 4px;
  color: #334957;
  cursor: pointer;
}

.feedback-response-multiselect-options label:hover {
  background: #f1f7fa;
}

.feedback-response-multiselect-options label:has(input:checked) {
  background: #eaf5fa;
}

.feedback-response-multiselect-options label.already-waiting {
  background: #fff8e5;
  cursor: default;
}

.feedback-response-multiselect-options input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #2584b8;
}

.feedback-response-multiselect-options small {
  color: #8a671b;
  font-size: 9px;
  font-weight: 800;
}

@media (max-width: 760px) {
  .feedback-lifecycle-track {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 7px 9px;
  }

  .feedback-lifecycle-track > i {
    width: 1px;
    height: 12px;
    margin: -2px 0 -2px 13px;
  }

  .feedback-lifecycle-step {
    display: contents;
  }

  .feedback-lifecycle-step > strong {
    justify-self: start;
    text-align: left;
  }

  .feedback-response-department-picker > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-response-multiselect {
    width: 100%;
  }

  .feedback-response-multiselect > summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

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

  .feedback-analysis-summary {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-analysis-summary > div:first-child {
    border-right: 0;
  }

  .feedback-analysis-summary > div + div {
    border-top: 1px solid #e3eaee;
  }

  .feedback-analysis-summary-overview {
    grid-column: auto;
  }

  .feedback-5w1h-item,
  .feedback-5w1h-item:nth-child(odd),
  .feedback-5w1h-item:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid #e3eaee;
  }

  .feedback-5w1h-item:last-child {
    border-bottom: 0;
  }
}

/* Feedback canonical detail */
.feedback-detail-toolbar {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-soft);
}

.feedback-list-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.feedback-primary-actions {
  display: flex;
  align-items: center;
}

.feedback-priority {
  display: inline-flex;
  width: fit-content;
  min-height: 25px;
  align-items: center;
  padding: 4px 7px;
  border-radius: 4px;
  background: #edf2f6;
  color: #53616f;
  font-size: 10px;
  font-weight: 900;
}

.feedback-priority.priority-high,
.feedback-priority.priority-urgent {
  background: #fdecec;
  color: #a23f31;
}

.feedback-priority.priority-low {
  background: #eef5fa;
  color: #3f6c84;
}

.feedback-enhanced-record {
  display: grid;
  min-width: 0;
  gap: 14px;
}

.feedback-enhanced-summary {
  display: grid;
  min-width: 0;
  gap: 0;
  border: 1px solid var(--color-border);
  border-top: 3px solid #2f8fd3;
  border-radius: 7px;
  background: #ffffff;
  overflow: hidden;
}

.feedback-enhanced-summary-head {
  display: flex;
  min-width: 0;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-bottom: 1px solid var(--color-border-soft);
  background: #f8fbfd;
}

.feedback-enhanced-status {
  justify-items: end;
  text-align: right;
}

.feedback-enhanced-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.feedback-enhanced-facts > div {
  min-width: 0;
  padding: 12px 14px;
  border-right: 1px solid var(--color-border-soft);
}

.feedback-enhanced-facts > div:last-child {
  border-right: 0;
}

.feedback-enhanced-facts dt,
.feedback-recommendation-routing dt {
  margin: 0 0 5px;
  color: #64748b;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-enhanced-facts dd,
.feedback-recommendation-routing dd {
  margin: 0;
  color: #26384a;
  font-size: 12px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.feedback-next-action {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(220px, 0.7fr);
  border-top: 1px solid #cfe1eb;
  border-left: 0;
  background: #eef7fb;
}

.feedback-next-action > div {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 13px 14px;
}

.feedback-next-action > div + div {
  border-left: 1px solid #cfe1eb;
}

.feedback-next-action span {
  color: #557181;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-next-action strong {
  color: #1f4f69;
  font-size: 13px;
  line-height: 1.4;
}

.feedback-next-action small {
  color: #5c7280;
  font-size: 10px;
  line-height: 1.45;
}

.feedback-next-action.is-final {
  border-top-color: #cde5d7;
  background: #f1f9f5;
}

.feedback-next-owner.is-unassigned {
  background: #fff7ed;
}

.feedback-next-owner.is-unassigned strong,
.feedback-next-owner.is-unassigned small {
  color: #9a4a2f;
}

.feedback-enhanced-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
  gap: 14px;
  align-items: start;
}

.feedback-enhanced-main,
.feedback-enhanced-aside {
  display: grid;
  min-width: 0;
  gap: 12px;
}

.feedback-enhanced-aside {
  position: sticky;
  top: 78px;
}

.feedback-enhanced-main > .feedback-case-section {
  min-width: 0;
}

.feedback-answered-questions {
  border-top: 1px solid #eadfbf;
}

.feedback-answered-questions > summary {
  padding: 10px 0 0;
  color: #6c5b35;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.feedback-enhanced-source {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: baseline;
  margin: 0;
  padding: 8px 10px;
  border-left: 3px solid #6f9db6;
  background: #f4f8fa;
  color: #5b6b78;
  font-size: 10px;
  line-height: 1.45;
}

.feedback-enhanced-source strong {
  color: #2f5368;
}

.feedback-enhanced-resolution {
  border-left: 3px solid #6b7e8b;
  background: #f8fafc;
}

.feedback-enhanced-resolution.state-ready {
  border-left-color: #2f8fd3;
  background: #f4f9fc;
}

.feedback-enhanced-resolution.state-final.decision-convert {
  border-left-color: #31866a;
  background: #f2faf6;
}

.feedback-enhanced-resolution.state-final.decision-do_not_convert {
  border-left-color: #b85d5d;
  background: #fff8f8;
}

.feedback-recommendation-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 4px;
  background: #e6f3fa;
  color: #1f668d;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.feedback-recommendation-badge.decision-do_not_convert {
  background: #f7e8e8;
  color: #963d3d;
}

.feedback-recommendation-routing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-block: 1px solid #dbe5eb;
}

.feedback-recommendation-routing > div {
  min-width: 0;
  padding: 10px 12px;
}

.feedback-recommendation-routing > div + div {
  border-left: 1px solid #dbe5eb;
}

.feedback-enhanced-decision-controls {
  padding-top: 12px;
  border-top: 1px solid #dbe5eb;
}

.feedback-decision-blockers {
  padding: 10px 12px;
  border-left: 3px solid #d08a1d;
  background: #fffaf0;
}

.feedback-decision-blockers strong {
  color: #765615;
  font-size: 11px;
}

.feedback-decision-blockers ul {
  margin: 6px 0 0;
  padding-left: 18px;
  color: #6d5a32;
  font-size: 10px;
  line-height: 1.5;
}

.feedback-decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feedback-enhanced-response-state {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border-left: 3px solid #7b8b96;
  background: #f5f7f9;
}

.feedback-enhanced-response-state.is-waiting {
  border-left-color: #d08a1d;
  background: #fffaf0;
}

.feedback-enhanced-response-state strong {
  color: #34495a;
  font-size: 11px;
}

.feedback-enhanced-response-state small {
  color: #64748b;
  font-size: 10px;
  line-height: 1.45;
}

.feedback-enhanced-lifecycle {
  gap: 14px;
}

.feedback-enhanced-lifecycle .feedback-case-section-heading {
  display: grid;
  gap: 7px;
}

.feedback-lifecycle-current {
  justify-self: start;
}

.feedback-enhanced-lifecycle ol {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feedback-enhanced-lifecycle li {
  position: relative;
  display: grid;
  min-height: 46px;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  color: #7a8996;
}

.feedback-enhanced-lifecycle li::after {
  position: absolute;
  top: 25px;
  bottom: 0;
  left: 12px;
  width: 1px;
  background: #d6e0e7;
  content: "";
}

.feedback-enhanced-lifecycle li:last-child::after {
  display: none;
}

.feedback-enhanced-lifecycle li > span {
  z-index: 1;
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  border: 1px solid #bdcbd5;
  border-radius: 50%;
  background: #ffffff;
  font-size: 9px;
  font-weight: 900;
}

.feedback-enhanced-lifecycle li > strong {
  padding-top: 4px;
  font-size: 11px;
  line-height: 1.4;
}

.feedback-enhanced-lifecycle li.complete,
.feedback-enhanced-lifecycle li.active {
  color: #285a78;
}

.feedback-enhanced-lifecycle li.complete > span {
  border-color: #76a88a;
  background: #e5f4eb;
  color: #17643a;
}

.feedback-enhanced-lifecycle li.active > span {
  border-color: #2f8fd3;
  background: #e8f4fa;
  color: #1f5f8f;
}

.feedback-enhanced-lifecycle li.result-not-converted.active > span {
  border-color: #c17c7c;
  background: #f7e8e8;
  color: #963d3d;
}

@media (max-width: 1180px) {
  .feedback-enhanced-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-enhanced-aside {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feedback-enhanced-aside .feedback-system-details {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .feedback-list-toolbar .feedback-primary-actions,
  .feedback-list-toolbar .feedback-primary-actions .primary-btn {
    width: 100%;
  }

  .feedback-enhanced-summary-head,
  .feedback-case-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .feedback-enhanced-status {
    justify-items: start;
    text-align: left;
  }

  .feedback-enhanced-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-enhanced-facts > div,
  .feedback-enhanced-facts > div:last-child {
    border-right: 0;
    border-bottom: 1px solid var(--color-border-soft);
  }

  .feedback-enhanced-facts > div:last-child {
    border-bottom: 0;
  }

  .feedback-next-action,
  .feedback-recommendation-routing,
  .feedback-enhanced-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .feedback-next-action > div + div,
  .feedback-recommendation-routing > div + div {
    border-top: 1px solid #cfe1eb;
    border-left: 0;
  }

  .feedback-enhanced-aside .feedback-system-details {
    grid-column: auto;
  }
}

/* Final handoff table override: legacy feedback layers above retain older column counts. */
.feedback-table-head,
.feedback-row {
  grid-template-columns:
    minmax(240px, 1.15fr)
    minmax(120px, 0.38fr)
    minmax(120px, 0.38fr)
    minmax(190px, 0.7fr)
    minmax(150px, 0.48fr)
    minmax(120px, 0.34fr);
  min-width: 1020px;
}

@media (max-width: 760px) {
  .detail-task-identity {
    align-items: flex-start;
  }

  .detail-task-id-value {
    flex: 1 1 180px;
  }

  .detail-task-id-copy-status {
    flex-basis: 100%;
    min-width: 0;
  }

  .feedback-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-width: 0;
  }

  .feedback-row-title,
  .feedback-row-next,
  .feedback-row-task {
    grid-column: 1 / -1;
  }
}

/* Workflow learning stays inside the existing technical tab. */
#workflowLearningPanel summary { cursor: pointer; font-weight: 600; }
.workflow-learning-body { display: grid; gap: 12px; min-width: 0; margin-top: 12px; }
.workflow-learning-body label { display: grid; gap: 6px; }
.workflow-learning-body input, .workflow-learning-body textarea { width: 100%; min-width: 0; box-sizing: border-box; }
.workflow-learning-actions, .workflow-learning-records { display: flex; flex-wrap: wrap; gap: 8px; }
.workflow-learning-body button { max-width: 100%; overflow-wrap: anywhere; }
.workflow-learning-body pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; }
.workflow-learning-body article { padding: 12px; border: 1px solid var(--border, #ddd); margin: 8px 0; border-radius: 8px; }

.workflow-learning-body p { margin: 0; line-height: 1.5; }
.workflow-learning-body [role="status"]:empty { display: none; }
.workflow-learning-body section > button { margin: 8px 6px 0 0; }
.workflow-learning-body button:disabled { opacity: .6; cursor: wait; }
.workflow-learning-body article { display: grid; gap: 8px; }
