@font-face {
  font-family: Inter;
  src: url("/vendor/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --bg: #f6f7fb;
  --surface: #fff;
  --sidebar: #fbfbfd;
  --text: #202333;
  --muted: #677084;
  --subtle: #747d91;
  --line: #e7e9f0;
  --primary: #5953d9;
  --primary-hover: #4842bd;
  --primary-soft: #eeedfc;
  --blue: #426ac6;
  --blue-soft: #edf3ff;
  --green: #238260;
  --green-soft: #eaf6ef;
  --amber: #a46a18;
  --amber-soft: #fff5e4;
  --red: #b94f58;
  --red-soft: #fff0f1;
  --radius: 12px;
  --shadow: 0 2px 4px #1b254903, 0 6px 24px #1b254903;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    14px/1.55 Inter,
    "Microsoft YaHei UI",
    "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  touch-action: manipulation;
}
button,
a {
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #7972ef;
  outline-offset: 3px;
}
button {
  color: inherit;
}
a {
  color: var(--primary);
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 650;
  letter-spacing: -0.025em;
}
h1 {
  font-size: 28px;
  line-height: 1.4;
}
h2 {
  font-size: 16px;
  line-height: 1.5;
}
h3 {
  font-size: 14px;
}
svg.lucide {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke-width: 1.75;
}
button svg {
  pointer-events: none;
}
strong {
  font-weight: 600;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 300;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.app-shell {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  width: 226px;
  flex: 0 0 226px;
  background: var(--sidebar);
  border-right: 1px solid var(--line);
  padding: 27px 17px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
  overflow-y: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 9px 27px;
  color: var(--text);
  text-decoration: none;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 34px;
  height: 34px;
  background: var(--text);
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: white;
  box-shadow: 0 3px 6px #20233320;
}
.brand-mark svg {
  width: 22px;
  height: 22px;
}
.brand small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: var(--muted);
  margin-top: 3px;
}
.workspace-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  margin-bottom: 27px;
  font-size: 12px;
  font-weight: 600;
}
.workspace-label small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 2px;
}
.workspace-label > svg {
  margin-left: auto;
  width: 14px;
  color: var(--muted);
}
.workspace-avatar {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  background: var(--primary-soft);
  border-radius: 7px;
  color: var(--primary);
  font-size: 13px;
}
.nav-label {
  font-size: 11px;
  color: var(--muted);
  padding: 0 12px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.primary-nav {
  display: grid;
  gap: 4px;
}
.primary-nav button,
.sidebar-action,
.sidebar-bottom > a {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  padding: 9px 12px;
  font-size: 13px;
  text-align: left;
  text-decoration: none;
  color: #5e6579;
}
.primary-nav button:hover,
.sidebar-action:hover,
.sidebar-bottom > a:hover {
  background: #f0f0f7;
  color: var(--text);
}
.primary-nav button[aria-pressed="true"] {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.nav-project-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 29px 0 7px;
  padding-right: 6px;
}
.nav-project-label .icon-button {
  width: 26px;
  min-height: 26px;
}
.nav-project-label svg {
  width: 14px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  width: 100%;
  background: transparent;
  border-radius: 7px;
  padding: 10px 11px;
  color: #5f667b;
  font-size: 12px;
  text-align: left;
  min-height: 39px;
}
.nav-item:hover {
  background: #f0f0f7;
}
.nav-item[aria-pressed="true"] {
  color: var(--text);
  background: #eeeef5;
  font-weight: 550;
}
.nav-dot {
  width: 8px;
  height: 8px;
  background: #8d91a5;
  border-radius: 3px;
  flex-shrink: 0;
}
.nav-item:nth-child(2) .nav-dot {
  background: #7470dc;
}
.nav-item:nth-child(3) .nav-dot {
  background: #56a48c;
}
.nav-item:nth-child(4) .nav-dot {
  background: #c79a56;
}
.nav-item:nth-child(5) .nav-dot {
  background: #7295cf;
}
.nav-item:nth-child(6) .nav-dot {
  background: #ad82c6;
}
.nav-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 35px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sidebar-divider {
  border-top: 1px solid var(--line);
  margin-bottom: 12px;
}
.sidebar-bottom > a svg:last-child {
  width: 13px;
  margin-left: auto;
}
.member {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  padding: 16px 0 0;
  display: flex;
  align-items: center;
  gap: 9px;
}
.member-avatar {
  border-radius: 50%;
  background: #ececf5;
  color: #65627a;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.member #actor-name {
  font-size: 11px;
  line-height: 1.6;
  flex: 1;
}
.member .icon-button {
  width: 27px;
}
.member .icon-button svg {
  width: 15px;
}
.main-shell {
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.breadcrumb {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.breadcrumb > svg {
  width: 17px;
  margin-right: 6px;
}
.breadcrumb strong {
  color: #3e4558;
  font-weight: 500;
}
.crumb-divider {
  color: #c3c7d3;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.global-search {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
.global-search > svg {
  width: 16px;
}
.global-search input {
  border: 0;
  background: transparent;
  min-width: 0;
  width: 205px;
  padding: 8px 0;
  color: var(--text);
  font-size: 12px;
  outline-offset: 0;
}
.global-search input::placeholder {
  color: #81889a;
}
.global-search kbd {
  display: grid;
  place-items: center;
  font: 11px inherit;
  color: #8990a3;
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 20px;
  height: 21px;
}
.icon-button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  width: 34px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  padding: 7px;
}
.icon-button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.preview-banner {
  height: 31px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #6c658c;
  background: #eeedf8;
  border-bottom: 1px solid #e5e2f5;
}
.preview-banner strong {
  font-size: 11px;
  font-weight: 600;
}
.preview-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8c80ba;
}
.main-shell main {
  max-width: 1680px;
  margin: 0 auto;
  padding: 28px 34px 20px;
  outline: none;
}
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 25px;
}
.page-kicker {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 8px;
}
.live-dot {
  width: 5px;
  height: 5px;
  background: #7d80ab;
  display: inline-block;
  border-radius: 50%;
}
.kicker-line {
  height: 10px;
  border-left: 1px solid #ccd0db;
  margin: 0 4px;
}
.page-kicker time {
  font-variant-numeric: tabular-nums;
}
.page-header h1 {
  margin-bottom: 7px;
}
.page-header p {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.01em;
}
.header-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.save-button,
.secondary-button,
.danger-button {
  border: 1px solid transparent;
  border-radius: 7px;
  min-height: 36px;
  padding: 8px 14px;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 550;
}
.save-button {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 3px #5853d91c;
}
.save-button:hover {
  background: var(--primary-hover);
  box-shadow: 0 3px 8px #5853d92b;
}
.save-button svg {
  width: 16px;
}
.secondary-button {
  background: white;
  border-color: #dce0e9;
  color: #525a6f;
}
.secondary-button:hover {
  background: #f6f7fb;
  border-color: #bfc4d6;
}
.danger-button {
  background: var(--red-soft);
  color: var(--red);
  border-color: #f2d9dd;
}
.text-button {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  background: none;
  border: 0;
  padding: 4px 0;
  color: var(--primary);
  font-size: 11px;
  min-height: 28px;
}
.text-button:hover {
  color: var(--primary-hover);
}
.text-button svg {
  width: 14px;
}
.overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.metric {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 19px 15px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.metric-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #586076;
  gap: 8px;
}
.metric-icon {
  background: #f1f0fa;
  color: #817aa2;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}
.metric-icon svg {
  width: 16px;
  height: 16px;
}
.metric-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.metric-icon.green {
  background: var(--green-soft);
  color: var(--green);
}
.metric-icon.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.metric-value {
  display: flex;
  gap: 7px;
  align-items: baseline;
  margin-top: 6px;
}
.metric-value strong {
  font-size: 32px;
  line-height: 1.45;
  font-weight: 600;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.metric-value > span {
  color: var(--muted);
  font-size: 11px;
}
.metric-caption {
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
}
.metric-accent {
  height: 3px;
  width: 28px;
  position: absolute;
  bottom: 0;
  left: 20px;
  border-radius: 5px 5px 0 0;
  background: #afaadf;
}
.metric-accent.blue {
  background: #9bb6ed;
}
.metric-accent.green {
  background: #85bea5;
}
.metric-accent.amber {
  background: #e6bb7c;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  min-height: 81px;
}
.panel-heading > div > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.panel-heading > svg {
  color: #9298ad;
  width: 18px;
}
.panel-heading h2 {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.section-dot {
  width: 6px;
  height: 6px;
  display: inline-block;
  border-radius: 50%;
  background: var(--primary);
}
.section-dot.amber {
  background: #cf9d50;
}
.section-dot.blue {
  background: #758bd0;
}
.project-table-head,
.project-row {
  display: grid;
  grid-template-columns: minmax(160px, 1.2fr) minmax(100px, 0.85fr) minmax(
      170px,
      1.35fr
    ) minmax(105px, 0.85fr) 85px;
  align-items: center;
  gap: 18px;
  padding: 17px 22px;
}
.project-table-head {
  background: #fcfcfe;
  font-size: 10px;
  color: var(--muted);
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
}
.project-row {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eff0f6;
  text-align: left;
  background: white;
  min-height: 87px;
  transition: background 0.2s;
}
.project-row:last-child {
  border-bottom: 0;
}
.project-row:hover {
  background: #fafaff;
}
.project-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}
.project-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  background: #eeecfc;
  border: 1px solid #e2def7;
  color: #6f64b1;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
}
.project-row:nth-child(3) .project-avatar {
  background: #e9f5f0;
  border-color: #d8ece2;
  color: #368362;
}
.project-row:nth-child(4) .project-avatar {
  background: #fcf2e3;
  border-color: #f3e5ca;
  color: #ae843f;
}
.project-row:nth-child(5) .project-avatar {
  background: #edf2fd;
  border-color: #dfe8fb;
  color: #597fc0;
}
.project-row:nth-child(6) .project-avatar {
  background: #f3ecfb;
  border-color: #e9dcf6;
  color: #9571b7;
}
.project-copy {
  min-width: 0;
}
.project-copy strong,
.project-copy b {
  font-size: 12px;
  font-weight: 600;
  display: block;
}
.project-copy small,
.project-copy > span {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.project-role {
  font-size: 11px;
  color: #697086;
  line-height: 1.65;
}
.project-delivery {
  font-size: 11px;
  line-height: 1.65;
  min-width: 0;
}
.project-delivery strong {
  font-size: 11px;
  font-weight: 450;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-delivery small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.project-completion {
  font-size: 10px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.project-completion strong {
  font-weight: 600;
  color: #626881;
}
.progress-track {
  height: 4px;
  background: #ececf5;
  border-radius: 8px;
  margin: 8px 0 0;
  overflow: hidden;
  width: 100%;
  max-width: 100px;
}
.progress-track > span {
  display: block;
  height: 100%;
  background: #9991d8;
  border-radius: 8px;
  transition: width 0.4s var(--ease);
}
.project-risk {
  font-size: 10px;
  color: var(--green);
}
.project-risk .status-pill {
  font-size: 10px;
}
.dashboard-lower {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 20px;
  margin-top: 22px;
}
.insight-list {
  padding: 2px 20px 10px;
}
.insight-item {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-bottom: 1px solid #eff0f6;
  padding: 15px 0;
  min-height: 68px;
}
.insight-item:last-child {
  border-bottom: 0;
}
.insight-item:hover .insight-copy strong {
  color: var(--primary);
}
.insight-icon {
  width: 27px;
  height: 27px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafbfe;
  color: #7c80a6;
  display: grid;
  place-items: center;
  font-size: 10px;
}
.insight-copy {
  flex: 1;
  min-width: 0;
}
.insight-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  transition: color 0.18s;
}
.insight-copy small,
.insight-copy > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.insight-meta {
  text-align: right;
  font-size: 10px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
  flex-shrink: 0;
}
.insight-meta .status-pill {
  font-size: 10px;
}
.workspace-heading {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 22px 22px 17px;
}
.workspace-heading > div {
  display: flex;
  gap: 11px;
  align-items: center;
}
.workspace-heading h2 {
  font-size: 15px;
}
.workspace-heading #visible-count {
  font-size: 11px;
  background: #f2f3f8;
  color: #70788b;
  padding: 3px 8px;
  border-radius: 5px;
}
.save-status {
  color: var(--muted);
  font-size: 10px;
}
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 0 22px 16px;
  border-bottom: 1px solid var(--line);
}
.view-switch {
  display: flex;
  background: #f3f4f8;
  border: 1px solid #eaecf3;
  border-radius: 7px;
  padding: 3px;
  gap: 2px;
}
.view-switch button {
  display: flex;
  gap: 6px;
  align-items: center;
  border: 0;
  padding: 5px 10px;
  min-height: 28px;
  border-radius: 4px;
  color: var(--muted);
  background: transparent;
  font-size: 11px;
  white-space: nowrap;
}
.view-switch button svg {
  width: 14px;
  height: 14px;
}
.view-switch button[aria-pressed="true"] {
  background: white;
  color: var(--text);
  box-shadow: 0 1px 4px #272d4014;
}
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.filters label {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
  background: white;
  gap: 4px;
}
.filters svg {
  width: 13px;
  color: #717a91;
}
.filters select {
  border: 0;
  color: #697286;
  background: white;
  max-width: 190px;
  font-size: 11px;
  min-height: 25px;
}
.board-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: 13px 22px;
  color: var(--muted);
  font-size: 10px;
}
.feature-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
.feature-table th {
  padding: 11px 16px;
  background: #fbfbfd;
  font-size: 10px;
  font-weight: 450;
  color: var(--muted);
  white-space: nowrap;
}
.feature-table td {
  padding: 15px 16px;
  border-top: 1px solid #eff0f6;
  vertical-align: middle;
}
.feature-table th:first-child,
.feature-table td:first-child {
  padding-left: 22px;
  min-width: 220px;
}
.feature-table tr:hover td {
  background: #fdfdff;
}
.feature-name-button {
  display: block;
  border: 0;
  padding: 0;
  background: none;
  text-align: left;
  font-size: 12px;
  font-weight: 550;
  color: #34394e;
  max-width: 360px;
  line-height: 1.6;
}
.feature-name-button:hover {
  color: var(--primary);
}
.feature-id {
  font-family: Inter, monospace;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  display: block;
  margin-bottom: 3px;
}
.feature-subline {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}
.status-pill,
.priority-pill,
.plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 5px;
  font-size: 10px;
  line-height: 1.7;
  padding: 2px 6px;
  white-space: nowrap;
  font-weight: 450;
}
.status-pill:before {
  content: "";
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
.status-backlog {
  background: #f0f1f5;
  color: #72778b;
}
.status-in_progress {
  background: var(--blue-soft);
  color: var(--blue);
}
.status-blocked {
  background: var(--amber-soft);
  color: var(--amber);
}
.status-in_review {
  background: var(--primary-soft);
  color: #7970b6;
}
.status-done {
  background: var(--green-soft);
  color: var(--green);
}
.priority-high {
  background: var(--red-soft);
  color: var(--red);
}
.priority-medium {
  color: var(--muted);
  background: #f4f5f8;
}
.priority-low {
  color: #798297;
  background: #f7f8fb;
}
.plan-pill {
  border: 1px solid var(--line);
  background: white;
  color: var(--muted);
  padding: 0 5px;
}
.plan-pill.is-confirmed {
  color: #388669;
  border-color: #dbeae2;
  background: #f8fcfa;
}
.is-overdue {
  color: var(--red) !important;
}
.batch-board {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(245px, 1fr));
  gap: 16px;
  padding: 20px;
  overflow-x: auto;
  background: #fafbfe;
  align-items: start;
}
.batch-column {
  background: #f3f4f9;
  border: 1px solid #eceef4;
  border-radius: 9px;
  padding: 10px;
  min-width: 245px;
}
.batch-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 3px 12px;
  font-size: 12px;
  font-weight: 550;
}
.batch-heading > span {
  font-size: 10px;
  color: var(--muted);
  border-radius: 4px;
  background: #e7e9f2;
  padding: 0 5px;
}
.feature-card {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #e4e7ef;
  border-radius: 8px;
  background: white;
  margin-bottom: 9px;
  padding: 13px;
  box-shadow: 0 2px 3px #2f334705;
}
.feature-card:hover {
  border-color: #c5c1ee;
  box-shadow: 0 3px 12px #5a53d910;
  transform: translateY(-1px);
}
.feature-meta {
  display: flex;
  gap: 6px;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 9px;
  color: var(--muted);
  margin-bottom: 8px;
}
.feature-title {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
  margin-bottom: 12px;
}
.feature-bottom {
  display: flex;
  justify-content: space-between;
  gap: 7px;
  align-items: center;
}
.state-tag {
  font-size: 10px;
  display: inline-block;
  border-radius: 5px;
  padding: 2px 6px;
  background: #f3f4f8;
  color: #717a90;
}
.state-integrate {
  background: var(--blue-soft);
  color: var(--blue);
}
.state-blocked {
  background: var(--amber-soft);
  color: var(--amber);
}
.state-verify {
  background: var(--primary-soft);
  color: var(--primary);
}
.state-done {
  background: var(--green-soft);
  color: var(--green);
}
.feature-date,
.feature-owner,
.plan-badge {
  font-size: 10px;
  color: var(--muted);
}
.feature-owner,
.plan-badge {
  margin-top: 9px;
}
.feature-confirmed {
  color: var(--green);
}
.empty-state,
.empty-results,
.empty-cell,
.project-empty {
  padding: 35px 20px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
}
.empty-state p,
.empty-results p {
  font-size: 11px;
  margin-top: 5px;
}
.calendar-controls {
  display: flex;
  gap: 7px;
  align-items: center;
}
.calendar-controls .secondary-button {
  min-height: 31px;
  padding: 4px 12px;
}
.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.calendar-weekdays {
  background: #fbfbfd;
  border-bottom: 1px solid var(--line);
}
.calendar-weekdays > div,
.calendar-weekdays > span {
  padding: 12px 15px;
  font-size: 11px;
  color: var(--muted);
}
.calendar-day {
  min-height: 118px;
  border-right: 1px solid #eceef4;
  border-bottom: 1px solid #eceef4;
  padding: 8px;
  min-width: 0;
}
.calendar-day:nth-child(7n) {
  border-right: 0;
}
.calendar-day.is-outside {
  background: #fafbfe;
  color: #b0b5c4;
}
.calendar-day-number {
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  margin-bottom: 5px;
}
.is-today .calendar-day-number {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 5px #5853d92f;
}
.calendar-day.is-today {
  background: #fdfcff;
}
.calendar-event {
  display: block;
  text-align: left;
  width: 100%;
  border: 0;
  background: var(--primary-soft);
  border-left: 2px solid #938ae0;
  border-radius: 4px;
  padding: 5px 6px;
  margin: 4px 0;
  color: #62579a;
  font-size: 10px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.calendar-event:hover {
  background: #e1ddf8;
}
.calendar-event small {
  font-size: 9px;
  display: block;
  opacity: 0.8;
}
.calendar-event.is-confirmed {
  background: var(--blue-soft);
  color: #5173a8;
  border-color: #82a0d6;
}
.unscheduled-section {
  padding: 20px 22px;
}
.unscheduled-section h3 {
  font-size: 12px;
  margin-bottom: 12px;
}
.unscheduled-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.unscheduled-item {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 9px 11px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fbfcfe;
  text-align: left;
  font-size: 11px;
}
.unscheduled-item:hover {
  border-color: #beb8e6;
  background: #f5f3fe;
}
.graph-direction {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
}
.graph-direction svg {
  width: 17px;
}
.dependency-summary {
  padding: 14px 22px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
}
.dependency-summary button {
  border: 1px solid var(--line);
  background: white;
  color: var(--primary);
  border-radius: 6px;
  font-size: 11px;
  padding: 5px 9px;
}
.dependency-legend {
  display: flex;
  gap: 16px;
  font-size: 10px;
  color: var(--muted);
  padding: 12px 22px;
}
.dependency-scroll {
  overflow: auto;
  background-color: #fafbfe;
  background-image: radial-gradient(#dfe3ef 0.75px, transparent 0.75px);
  background-size: 16px 16px;
  padding: 25px 22px 35px;
  max-height: 700px;
}
.dependency-canvas {
  position: relative;
  min-width: 100%;
  isolation: isolate;
}
.dependency-edges {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: -1;
}
.dependency-edge {
  fill: none;
  stroke: #d0d5e3;
  stroke-width: 1.5;
  transition:
    stroke 0.25s,
    opacity 0.25s;
  stroke-linecap: round;
}
.dependency-edge.is-highlighted {
  stroke: #8c7bdd;
  stroke-width: 2.5;
  stroke-dasharray: 7 4;
  animation: trace-path 650ms ease-out 1;
}
.dependency-node {
  position: absolute;
  width: 244px;
  min-height: 126px;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  background: white;
  box-shadow: 0 3px 9px #202b4410;
  transition:
    border-color 0.25s,
    box-shadow 0.25s,
    opacity 0.25s;
  overflow: hidden;
}
.dependency-node.is-selected {
  border-color: #8875d5;
  box-shadow:
    0 0 0 3px #8c7bdd20,
    0 4px 12px #48446f15;
}
.dependency-node.is-upstream {
  border-color: #deae69;
  box-shadow: 0 0 0 2px #deae6920;
}
.dependency-node.is-downstream {
  border-color: #7da5d5;
  box-shadow: 0 0 0 2px #7da5d520;
}
.dependency-node.is-dimmed {
  opacity: 0.35;
}
.dependency-select {
  display: block;
  text-align: left;
  border: 0;
  background: none;
  width: 100%;
  padding: 14px 15px 9px;
  min-height: 89px;
}
.dependency-select strong {
  display: block;
  font-size: 12px;
  margin: 6px 0;
  font-weight: 550;
  line-height: 1.5;
}
.dependency-select small,
.dependency-select > span {
  font-size: 10px;
  color: var(--muted);
}
.dependency-node .status-pill {
  font-size: 9px;
}
.dependency-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #fcfcff;
  color: var(--primary);
  border: 0;
  border-top: 1px solid #f0f1f6;
  font-size: 10px;
  min-height: 31px;
  padding: 7px 15px;
}
.dependency-open:hover {
  background: #f3f0ff;
}
.project-plan {
  padding: 26px;
}
.project-plan-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.project-plan-head h2 {
  font-size: 24px;
  margin: 7px 0;
}
.project-plan-head p {
  color: var(--muted);
  font-size: 13px;
  max-width: 750px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.project-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fafafe;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 25px 0;
}
.project-progress > div {
  padding: 18px;
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}
.project-progress span {
  width: 100%;
  font-size: 11px;
  color: var(--muted);
}
.project-progress strong {
  font-size: 25px;
}
.project-progress small {
  color: var(--muted);
  font-size: 11px;
}
.project-section-title {
  margin: 25px 0 15px;
}
.project-journey {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.journey-step {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 13px;
  font-size: 12px;
}
.journey-step > span {
  color: var(--primary);
  font-size: 10px;
}
.project-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.project-fact {
  background: #fafbfe;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
}
.project-fact > span {
  font-size: 11px;
  color: var(--muted);
}
.project-fact p {
  font-size: 12px;
  margin-top: 7px;
  line-height: 1.8;
  white-space: pre-wrap;
}
.project-schedule-head,
.project-document-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 25px 0 10px;
}
.project-schedule-head span,
.project-document-head span {
  color: var(--muted);
  font-size: 11px;
}
.project-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  gap: 15px;
  font-size: 12px;
}
.project-stage span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
}
.project-stage strong {
  font-size: 11px;
  font-weight: 450;
  color: var(--muted);
}
.page-footer {
  padding: 21px 1px 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font-size: 9px;
  color: #7c8498;
}
.page-footer > span {
  display: flex;
  align-items: center;
  gap: 7px;
  letter-spacing: 0.02em;
}
.footer-mark {
  width: 6px;
  height: 6px;
  background: #a4a5b9;
  border-radius: 2px;
}
.footer-divider {
  color: #c2c5d2;
  margin: 0 3px;
}
.login-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(ellipse at 50% 30%, #efedff, transparent 60%), var(--bg);
  padding: 24px;
}
.login-card {
  max-width: 430px;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  padding: 38px;
  border-radius: 18px;
  box-shadow: 0 20px 65px #34395c0d;
}
.login-logo {
  height: 43px;
  width: 43px;
  border-radius: 12px;
  background: var(--text);
  color: white;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
}
.login-card h1 {
  font-size: 29px;
  line-height: 1.55;
  margin: 10px 0 14px;
}
.login-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
}
.login-card label {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 26px;
  font-size: 12px;
}
.login-card input {
  border: 1px solid #dce0ea;
  padding: 12px;
  border-radius: 7px;
  min-width: 0;
}
.login-card .save-button {
  width: 100%;
  margin-top: 18px;
  min-height: 42px;
}
.login-card small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 24px;
  text-align: center;
}
.error-message {
  font-size: 12px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid #f3d9dc;
  border-radius: 7px;
  padding: 12px 15px;
  margin: 12px 0;
  white-space: pre-wrap;
}
.error-message:empty {
  display: none;
}
.warning-box {
  font-size: 11px;
  line-height: 1.8;
  color: #94651e;
  background: #fff7e9;
  border: 1px solid #f4e2bc;
  padding: 12px 15px;
  border-radius: 8px;
  margin-bottom: 18px;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #292c43;
  color: white;
  box-shadow: 0 8px 26px #1b254933;
  border-radius: 9px;
  font-size: 12px;
  padding: 13px 22px;
  z-index: 200;
  max-width: 90vw;
  animation: toast-in 0.2s var(--ease);
}
dialog {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  border: 0;
  border-left: 1px solid var(--line);
  height: 100dvh;
  max-height: 100dvh;
  width: min(570px, 100vw);
  max-width: 100vw;
  background: white;
  padding: 0;
  box-shadow: -10px 0 60px #11162b1a;
  color: var(--text);
}
dialog[open] {
  animation: drawer-in 0.28s var(--ease);
}
dialog::backdrop {
  background: #25284345;
  backdrop-filter: blur(2px);
}
.drawer-top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 17px 27px;
  border-bottom: 1px solid var(--line);
  background: #fffffff5;
  font-size: 12px;
  color: var(--muted);
}
.drawer-top button {
  font-size: 24px;
  line-height: 1;
  background: none;
  border: 0;
  color: #838b9e;
  width: 32px;
  height: 32px;
  border-radius: 6px;
}
.drawer-top button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.drawer-body {
  padding: 25px 28px 45px;
}
.drawer-body h2 {
  font-size: 23px;
  line-height: 1.5;
  margin: 8px 0 18px;
}
.detail-kicker {
  font-size: 11px;
  color: var(--muted);
}
.section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-top: 26px;
  margin-bottom: 16px;
  font-size: 12px;
  font-weight: 600;
}
.section-label span {
  font-size: 10px;
  font-weight: 450;
  color: var(--muted);
}
.wide-field,
.form-grid > label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #677085;
  margin: 16px 0;
}
.wide-field input,
.wide-field textarea,
.wide-field select,
.form-grid input,
.form-grid select,
.form-grid textarea {
  min-width: 0;
  width: 100%;
  border: 1px solid #dde1eb;
  border-radius: 6px;
  background: white;
  color: var(--text);
  padding: 9px 11px;
  line-height: 1.7;
  font-size: 12px;
  transition: border-color 0.18s;
}
.wide-field textarea,
.form-grid textarea {
  resize: vertical;
}
.wide-field input:hover,
.wide-field textarea:hover,
.form-grid input:hover {
  border-color: #b7bfd5;
}
.wide-field :disabled,
.form-grid :disabled {
  background: #f6f7fa;
  color: #868d9e;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.form-grid > label {
  margin: 7px 0;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
}
.form-actions span {
  color: var(--muted);
  font-size: 11px;
}
.fact-section {
  margin-top: 24px;
}
.fact-section > p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
  white-space: pre-wrap;
}
.detail-dep {
  display: block;
  text-align: left;
  width: 100%;
  background: #f7f6fc;
  border: 1px solid #ebe8f6;
  color: #797099;
  border-radius: 6px;
  padding: 11px 13px;
  font-size: 11px;
  margin-top: 7px;
}
.detail-dep:hover {
  border-color: #bcb3df;
}
.form-hint,
.detail-scope {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.action-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.source-details {
  margin: 22px 0 0;
  font-size: 12px;
}
.source-details summary {
  cursor: pointer;
  padding: 12px 0;
  color: #535d73;
}
.source-entry {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.source-entry p {
  color: var(--muted);
  line-height: 1.8;
}
.muted-inline {
  font-size: 11px;
  color: var(--muted);
}
.history-item {
  border-left: 2px solid #dcd8f5;
  padding-left: 13px;
  margin: 18px 0;
  font-size: 12px;
}
.history-item span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 4px;
}
.history-item p {
  margin-top: 7px;
  color: #697185;
  font-size: 11px;
}
.key-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.key-row b {
  font-size: 12px;
}
.key-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.secret-box {
  background: var(--amber-soft);
  border: 1px solid #eddfc2;
  padding: 15px;
  border-radius: 7px;
  margin-top: 20px;
}
.secret-box label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
}
.secret-box input {
  padding: 8px;
  border: 1px solid #ded4bf;
  border-radius: 5px;
}
.markdown-editor-head {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  font-size: 12px;
}
.markdown-import {
  color: var(--primary);
  font-size: 11px;
  cursor: pointer;
}
.markdown-import input {
  width: 155px;
  font-size: 10px;
}
.markdown-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin-top: 10px;
  padding: 12px;
  font-size: 12px;
}
.markdown-editor-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0;
  font-size: 11px;
  color: var(--muted);
}
.markdown-body {
  font-size: 13px;
  line-height: 1.9;
  overflow-wrap: anywhere;
  max-width: 900px;
}
.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  margin: 20px 0 10px;
}
.markdown-body h1 {
  font-size: 23px;
}
.markdown-body h2 {
  font-size: 18px;
}
.markdown-body p {
  margin: 10px 0;
}
.markdown-body pre {
  overflow: auto;
  background: #f5f6fa;
  padding: 15px;
  border-radius: 7px;
  font-size: 11px;
}
.markdown-body table {
  border-collapse: collapse;
  display: block;
  overflow: auto;
}
.markdown-body th,
.markdown-body td {
  padding: 9px 13px;
  border: 1px solid var(--line);
  font-size: 12px;
}
.markdown-preview {
  margin: 20px 0;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.archive-notice {
  color: var(--amber);
  font-size: 12px;
}
.loading-state {
  padding: 50px;
  text-align: center;
  color: var(--muted);
}
@keyframes drawer-in {
  from {
    transform: translateX(45px);
    opacity: 0.3;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    translate: 0 10px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes trace-path {
  from {
    stroke-dashoffset: 44;
    opacity: 0.3;
  }
  to {
    stroke-dashoffset: 0;
    opacity: 1;
  }
}
@keyframes view-in {
  from {
    opacity: 0.65;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
#dashboard:not([hidden]),
#workspace:not([hidden]),
#calendar-panel:not([hidden]),
#dependencies-panel:not([hidden]),
#project-plan:not([hidden]) {
  animation: view-in 0.24s var(--ease);
}
@media (min-width: 1600px) {
  .main-shell main {
    padding: 34px 44px;
  }
  .topbar {
    padding: 0 44px;
  }
  .project-row {
    min-height: 96px;
  }
  .project-copy strong {
    font-size: 14px;
  }
  .project-role,
  .project-delivery strong {
    font-size: 12px;
  }
  .insight-copy strong {
    font-size: 13px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 205px;
    flex-basis: 205px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-shell main {
    padding: 26px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .project-table-head,
  .project-row {
    grid-template-columns: minmax(140px, 1.2fr) minmax(120px, 1.15fr) minmax(
        85px,
        0.8fr
      ) 74px;
    gap: 14px;
    padding-left: 18px;
    padding-right: 18px;
  }
  .project-role {
    display: none;
  }
  .metric {
    padding: 14px;
  }
  .metric-caption {
    font-size: 9px;
  }
  .metric-value strong {
    font-size: 28px;
  }
  .feature-table th,
  .feature-table td {
    padding: 12px 10px;
  }
  .feature-table th:first-child,
  .feature-table td:first-child {
    min-width: 200px;
  }
  .dashboard-lower {
    gap: 16px;
  }
  .insight-list {
    padding-left: 16px;
    padding-right: 16px;
  }
  .panel-heading {
    padding: 18px;
  }
  .calendar-day {
    min-height: 105px;
  }
}
@media (max-width: 1000px) {
  .overview {
    gap: 10px;
  }
  .dashboard-lower {
    grid-template-columns: 1fr;
  }
  .feature-table th:nth-child(6),
  .feature-table td:nth-child(6) {
    display: none;
  }
  .feature-table th:nth-child(2),
  .feature-table td:nth-child(2) {
    display: none;
  }
  .toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .global-search input {
    width: 165px;
  }
  .topbar-actions {
    gap: 10px;
  }
  .project-table-head,
  .project-row {
    grid-template-columns: minmax(140px, 1fr) minmax(150px, 1.2fr) 82px;
  }
  .project-risk {
    display: none;
  }
  .project-table-head > *:nth-child(2),
  .project-table-head > *:nth-child(5) {
    display: none;
  }
  .metric-heading {
    font-size: 11px;
  }
  .metric-icon {
    width: 24px;
    height: 24px;
  }
  .metric-caption {
    line-height: 1.6;
    min-height: 29px;
  }
  .page-header p {
    max-width: 380px;
  }
  .calendar-day {
    padding: 5px;
    min-height: 100px;
  }
  .calendar-event {
    font-size: 9px;
  }
  .project-progress {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 15px 20px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    margin: 0 0 17px;
    font-size: 16px;
  }
  .brand small {
    font-size: 7px;
  }
  .brand-mark {
    width: 31px;
    height: 31px;
  }
  .workspace-label,
  .sidebar > .nav-label,
  .sidebar-bottom,
  #project-nav {
    display: none;
  }
  .primary-nav {
    display: flex;
    gap: 4px;
    overflow-x: auto;
  }
  .primary-nav button {
    min-height: 40px;
    flex: 1;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    padding: 8px 6px;
    white-space: nowrap;
  }
  .primary-nav button svg {
    width: 16px;
  }
  .topbar {
    height: 53px;
    padding: 0 20px;
  }
  .breadcrumb {
    font-size: 11px;
    gap: 9px;
  }
  .breadcrumb > svg,
  .breadcrumb > span:first-of-type,
  .crumb-divider {
    display: none;
  }
  .global-search input {
    font-size: 11px;
    width: 165px;
  }
  .global-search kbd {
    display: none;
  }
  .preview-banner {
    padding: 0 20px;
    font-size: 9px;
    height: 30px;
    gap: 7px;
  }
  .preview-banner strong {
    font-size: 9px;
  }
  .main-shell main {
    padding: 24px 20px 20px;
  }
  .page-header {
    align-items: flex-start;
    margin-bottom: 22px;
    gap: 12px;
  }
  .page-header h1 {
    font-size: 25px;
  }
  .page-header p {
    font-size: 11px;
    max-width: 280px;
    line-height: 1.8;
  }
  .page-kicker {
    font-size: 9px;
  }
  .page-kicker time,
  .kicker-line {
    display: none;
  }
  .header-actions {
    margin-top: 24px;
  }
  .save-button {
    padding: 8px 10px;
    font-size: 11px;
    min-height: 35px;
  }
  .overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 20px;
  }
  .metric-caption {
    font-size: 10px;
    min-height: 0;
  }
  .metric-value strong {
    font-size: 29px;
  }
  .metric-heading {
    font-size: 12px;
  }
  .metric-icon {
    width: 28px;
    height: 28px;
  }
  .metric {
    padding: 14px 16px;
  }
  .panel-heading {
    padding: 16px;
  }
  .panel-heading > div > span {
    font-size: 10px;
  }
  .project-table-head {
    display: none;
  }
  .project-row {
    grid-template-columns: 1fr 90px;
    gap: 10px;
    padding: 16px;
  }
  .project-cell {
    grid-column: 1;
    grid-row: 1;
    gap: 9px;
  }
  .project-copy strong {
    font-size: 12px;
  }
  .project-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
  }
  .project-delivery {
    grid-column: 1;
    grid-row: 2;
    padding-left: 41px;
    font-size: 10px;
  }
  .project-delivery strong {
    font-size: 10px;
    white-space: normal;
  }
  .project-completion {
    grid-column: 2;
    grid-row: 1/3;
    text-align: right;
    font-size: 10px;
  }
  .project-completion .progress-track {
    margin-left: auto;
    max-width: 70px;
  }
  .project-risk {
    display: none;
  }
  .dashboard-lower {
    margin-top: 18px;
    gap: 18px;
  }
  .insight-item {
    gap: 9px;
    padding: 14px 0;
  }
  .insight-copy strong {
    font-size: 11px;
  }
  .insight-copy small {
    font-size: 9px;
  }
  .insight-meta {
    font-size: 9px;
  }
  .insight-icon {
    width: 24px;
    height: 24px;
  }
  .workspace-heading {
    padding: 16px;
  }
  .workspace-heading h2 {
    font-size: 13px;
  }
  .save-status {
    font-size: 9px;
  }
  .toolbar {
    padding: 0 16px 14px;
    gap: 12px;
  }
  .filters {
    gap: 5px;
  }
  .filters select {
    max-width: 140px;
  }
  .view-switch {
    width: 100%;
  }
  .view-switch button {
    flex: 1;
    justify-content: center;
    min-height: 30px;
  }
  .feature-table th:nth-child(4),
  .feature-table td:nth-child(4) {
    display: none;
  }
  .feature-table th:first-child,
  .feature-table td:first-child {
    padding-left: 16px;
    min-width: 0;
  }
  .feature-table th,
  .feature-table td {
    padding: 12px 8px;
  }
  .feature-table .feature-name-button {
    font-size: 11px;
  }
  .feature-table td:nth-child(5) {
    font-size: 9px;
    white-space: nowrap;
  }
  .feature-subline {
    gap: 4px;
    font-size: 9px;
  }
  .feature-id {
    font-size: 9px;
  }
  .status-pill,
  .priority-pill,
  .plan-pill {
    font-size: 9px;
    padding: 1px 4px;
    gap: 3px;
  }
  .board-footer {
    font-size: 9px;
    padding: 12px 16px;
    flex-wrap: wrap;
    gap: 5px;
  }
  .calendar-weekdays > div,
  .calendar-weekdays > span {
    padding: 8px 4px;
    text-align: center;
    font-size: 9px;
  }
  .calendar-day {
    min-height: 89px;
    padding: 4px 2px;
  }
  .calendar-day-number {
    font-size: 10px;
    width: 21px;
    height: 21px;
    margin: 0 auto 4px;
  }
  .calendar-event {
    font-size: 8px;
    padding: 3px 2px;
    border-left-width: 1px;
    line-height: 1.55;
  }
  .calendar-event small {
    display: none;
  }
  .calendar-controls {
    gap: 2px;
  }
  .calendar-controls .icon-button {
    width: 28px;
  }
  .calendar-controls .secondary-button {
    font-size: 10px;
    padding: 3px 7px;
  }
  .graph-direction {
    display: none;
  }
  .dependency-scroll {
    max-height: 570px;
    padding: 20px 16px;
  }
  .dependency-summary {
    font-size: 10px;
    padding: 12px 16px;
  }
  .dependency-legend {
    flex-wrap: wrap;
    font-size: 9px;
    padding: 10px 16px;
    gap: 8px;
  }
  .page-footer {
    font-size: 8px;
  }
  .page-footer > span:last-child {
    display: none;
  }
  .project-plan {
    padding: 18px;
  }
  .project-plan-head h2 {
    font-size: 20px;
  }
  .project-facts {
    grid-template-columns: 1fr;
  }
  .project-schedule-head,
  .project-document-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .project-plan-head p {
    font-size: 12px;
  }
  .drawer-body {
    padding: 20px;
  }
  .drawer-top {
    padding: 13px 20px;
  }
  .drawer-body h2 {
    font-size: 21px;
  }
  .wide-field input,
  .wide-field textarea,
  .wide-field select,
  .form-grid input,
  .form-grid select,
  .form-grid textarea {
    font-size: 16px;
  }
  .form-grid {
    gap: 0 12px;
  }
  .drawer-body .save-button,
  .drawer-body .secondary-button,
  .drawer-body .danger-button {
    min-height: 42px;
  }
  .login-card {
    padding: 28px;
  }
  .login-card input {
    font-size: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.primary-nav button[aria-current="page"] {
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 600;
}
.scope-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  margin: -8px 0 15px;
}
.scope-label {
  font-size: 10px;
  color: var(--muted);
}
.scope-bar .filters label {
  background: transparent;
  border-color: transparent;
  padding: 0 2px;
}
.scope-bar .filters select {
  background: transparent;
  font-size: 10px;
  color: var(--muted);
  min-height: 26px;
}
.project-risk.has-risk {
  color: var(--amber);
  font-size: 10px;
}
.project-risk.has-risk::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #d5a04e;
  border-radius: 50%;
  margin-right: 6px;
}
.project-completion > span:first-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.project-completion small {
  font-size: 10px;
  color: var(--muted);
}
.project-role {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dependency-node {
  height: 152px;
}
.dependency-select {
  height: 120px;
}
.dependency-open {
  height: 31px;
}
.dependency-notice {
  padding: 0 22px 14px;
  color: var(--muted);
  font-size: 11px;
}
.legend-upstream:before,
.legend-downstream:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #deae69;
  margin-right: 5px;
}
.legend-downstream:before {
  background: #7da5d5;
}
.feature-table-wrap {
  overflow: auto;
}
.table-date {
  display: block;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  white-space: nowrap;
  margin-bottom: 5px;
}
.owner-cell {
  font-size: 11px;
  white-space: nowrap;
}
.is-unassigned {
  color: var(--muted);
}
.dependency-count {
  color: var(--amber);
}
.calendar-caption {
  color: var(--muted);
  font-size: 10px;
  margin-bottom: 12px;
}
.unscheduled-notice {
  color: var(--muted);
  font-size: 11px;
}
.nav-project-name {
  flex: 1;
}
.insight-meta small {
  font-size: 9px;
}
.context-label {
  display: block;
  font-size: 9px !important;
  color: var(--muted);
}
@media (max-width: 1200px) and (min-width: 1001px) {
  .project-role,
  .project-table-head > *:nth-child(2) {
    display: none;
  }
}
@media (max-width: 1000px) {
  .project-role {
    display: none;
  }
}
@media (max-width: 760px) {
  .scope-bar {
    justify-content: flex-start;
    margin: 0 0 14px;
    gap: 7px;
    flex-wrap: wrap;
  }
  .scope-label {
    display: none;
  }
  .scope-bar .filters select {
    max-width: 170px;
    font-size: 10px;
  }
  .project-completion > span:first-child {
    justify-content: flex-end;
  }
  .feature-table .table-date {
    font-size: 9px;
  }
}
.mobile-menu {
  display: none;
}
.project-copy strong {
  font-size: 14px;
}
.project-copy small {
  font-size: 11px;
}
.project-role {
  font-size: 12px;
}
.project-delivery strong {
  font-size: 12px;
}
.project-delivery small {
  font-size: 11px;
}
.project-table-head {
  font-size: 11px;
}
.project-completion {
  font-size: 11px;
}
.project-completion small {
  font-size: 11px;
}
.project-risk,
.project-risk.has-risk {
  font-size: 11px;
}
.project-row {
  min-height: 91px;
}
.project-table-head {
  padding-top: 12px;
  padding-bottom: 12px;
}
.insight-copy strong {
  font-size: 13px;
}
.insight-copy small {
  font-size: 11px;
}
.insight-meta {
  font-size: 11px;
}
.insight-meta small {
  font-size: 10px;
}
.insight-item {
  min-height: 74px;
}
.panel-heading h2 {
  font-size: 15px;
}
.panel-heading > div > span {
  font-size: 12px;
}
.page-header p {
  font-size: 13px;
}
.metric-caption {
  font-size: 11px;
}
.metric-heading {
  font-size: 13px;
}
.metric-value strong {
  font-size: 34px;
}
.nav-item {
  font-size: 13px;
}
.nav-label {
  font-size: 12px;
}
.primary-nav button {
  font-size: 14px;
}
.scope-label,
.scope-bar .filters select {
  font-size: 11px;
}
.feature-name-button {
  font-size: 14px;
}
.feature-table th {
  font-size: 11px;
}
.feature-id {
  font-size: 11px;
}
.feature-subline {
  font-size: 11px;
}
.feature-table td {
  font-size: 12px;
}
.table-date,
.owner-cell {
  font-size: 12px;
}
.status-pill,
.priority-pill,
.plan-pill {
  font-size: 11px;
}
.feature-table th:first-child,
.feature-table td:first-child {
  max-width: 400px;
}
.insight-icon {
  font-family: Inter, sans-serif;
}
.nav-count {
  font-size: 11px;
}
.project-avatar {
  width: 38px;
  height: 38px;
}
.project-copy small {
  overflow-wrap: anywhere;
}
.feature-name-button strong {
  font-weight: 550;
}
.workspace-heading h2 {
  font-size: 16px;
}
.dependency-select strong {
  font-size: 13px;
}
.dependency-select small,
.dependency-select > span {
  font-size: 11px;
}
.dependency-open {
  font-size: 11px;
}
.calendar-event {
  font-size: 11px;
}
.project-risk.has-risk {
  background: var(--amber-soft);
  padding: 4px 6px;
  border-radius: 5px;
  width: max-content;
}
.insight-icon.status-blocked {
  border-color: #f0e2c9;
}
.insight-icon.status-in_review {
  border-color: #e5e0f5;
}
@media (max-width: 1200px) {
  .project-copy strong {
    font-size: 13px;
  }
  .project-delivery strong {
    font-size: 11px;
  }
  .project-copy small,
  .project-delivery small {
    font-size: 10px;
  }
}
@media (max-width: 760px) {
  .mobile-menu {
    display: block;
    position: absolute;
    right: 21px;
    top: 16px;
    z-index: 15;
  }
  .mobile-menu summary {
    cursor: pointer;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: white;
    list-style: none;
    color: var(--muted);
  }
  .mobile-menu-content {
    position: absolute;
    right: 0;
    top: 41px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
    box-shadow: 0 10px 30px #252b4720;
    padding: 6px;
    min-width: 140px;
  }
  .mobile-menu-content button {
    display: block;
    width: 100%;
    padding: 12px;
    border: 0;
    border-radius: 5px;
    background: white;
    text-align: left;
    font-size: 13px;
  }
  .mobile-menu-content button:hover {
    background: var(--primary-soft);
  }
  .primary-nav button {
    font-size: 11px;
  }
  .metric-caption {
    font-size: 10px;
  }
  .metric-heading {
    font-size: 12px;
  }
  .metric-value strong {
    font-size: 30px;
  }
  .scope-bar .filters select {
    font-size: 11px;
    max-width: 145px;
  }
  .project-copy strong {
    font-size: 13px;
  }
  .project-copy small {
    font-size: 10px;
  }
  .project-delivery {
    padding-left: 41px;
  }
  .project-avatar {
    width: 32px;
    height: 32px;
  }
  .project-delivery strong {
    font-size: 11px;
  }
  .project-delivery small {
    font-size: 10px;
  }
  .insight-copy strong {
    font-size: 12px;
  }
  .insight-copy small {
    font-size: 10px;
  }
  .insight-meta {
    font-size: 10px;
  }
  .insight-meta small {
    font-size: 9px;
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .panel-heading > div > span {
    font-size: 11px;
  }
  .page-header p {
    font-size: 12px;
  }
  .feature-name-button {
    font-size: 12px;
  }
  .feature-id {
    font-size: 10px;
  }
  .status-pill,
  .priority-pill,
  .plan-pill {
    font-size: 9px;
  }
  .calendar-event {
    font-size: 8px;
  }
  .feature-table td {
    font-size: 10px;
  }
  .feature-table th:first-child,
  .feature-table td:first-child {
    width: 55%;
  }
  .project-completion small {
    font-size: 9px;
  }
}

.graph-tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.graph-tools button {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  color: var(--muted);
  min-height: 30px;
  min-width: 30px;
  padding: 4px 9px;
  font-size: 11px;
}
.graph-tools button:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.graph-tools [data-graph-zoom="reset"] {
  min-width: 48px;
  font-variant-numeric: tabular-nums;
}
.graph-direction {
  display: none;
}

/* Shared filters and delivery checks retain the existing workspace tokens. */
.scope-bar { align-items: flex-start; }
.filters { flex-wrap: wrap; }
.more-filters { position: relative; }
.more-filters > summary {
  display: flex; align-items: center; gap: 5px; min-height: 34px; padding: 7px 11px;
  border: 1px solid var(--line); border-radius: 7px; background: white;
  color: var(--muted); cursor: pointer; font-size: 12px; list-style: none;
}
.more-filters > summary::after { content: '⌄'; }
.more-filters[open] > summary { color: var(--primary); border-color: var(--primary); }
.more-filters[open] { z-index: 8; }
.filter-fields {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(560px, 85vw);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  padding: 18px; background: white; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 12px 36px rgb(20 40 75 / 12%);
}
.filters .filter-fields label { display: grid; gap: 6px; padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; }
.filters .filter-fields select,.filter-fields input:not([type='checkbox']) { width: 100%; min-width: 0; min-height: 36px; padding: 7px 9px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.filters .filter-fields .filter-checkbox { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.filter-checkbox input { width: 16px; height: 16px; accent-color: var(--primary); }
.scope-feedback { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin: -2px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
#load-status { margin-left: auto; }
.item-type,.module-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; border-radius: 5px; padding: 3px 7px; font-size: 11px; line-height: 1.5; background: var(--primary-soft); color: var(--primary); white-space: normal; overflow-wrap: anywhere; }
.item-type-requirement { background: #f0eafa; color: #6b42a8; }
.item-type-bug { background: #fff0ed; color: #ac382e; }
.item-type-task { background: #eaf3f2; color: #28675e; }
.module-chip { background: #f0f2f6; color: #566174; }
.module-chip small { color: var(--muted); }
.detail-classification,.module-list { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 8px 0 18px; }
.plan-pill.needs-review { background: #fff1d9; color: #88570b; }
.project-modules { margin: 22px 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.module-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
.module-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.module-form input { min-width: 0; width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; }
.schedule-impact { margin: 16px 0; padding: 16px; background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px; }
#impact-result { font-size: 12px; line-height: 1.7; }
.impact-summary { margin: 14px 0; }
.impact-summary p,.impact-item p { margin: 5px 0; color: var(--muted); }
.impact-summary.has-conflicts strong,.impact-conflict,.impact-conflicts,.impact-error { color: #aa3c2c; }
.impact-items { display: grid; gap: 8px; }
.impact-item { padding: 12px; border: 1px solid var(--line); background: white; border-radius: 7px; }
.impact-item .text-button { white-space: normal; text-align: left; line-height: 1.6; }
.impact-item p.impact-conflict { color: #aa3c2c; }

/* Delivery, staffing and assisted planning. */
.planning-panel { margin-bottom: 22px; }
.planning-panel .panel-heading { gap: 16px; }
.planning-actions,.planning-panel-toolbar,.selection-toolbar,.gantt-controls,.capacity-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.planning-panel-toolbar { padding: 0 24px 18px; justify-content: space-between; color: var(--muted); font-size: 12px; }
.inline-checkbox { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.inline-checkbox input,.feature-select { accent-color: var(--primary); }
.inline-checkbox input { width: 16px; height: 16px; }
.planning-hint { margin: 12px 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
#delivery-list { display: grid; grid-template-columns: repeat(auto-fit,minmax(310px,1fr)); align-items: start; gap: 18px; padding: 0 24px 24px; }
.release-card { border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.release-card-head { display: flex; gap: 12px; align-items: start; justify-content: space-between; padding: 20px 20px 0; }
.release-card-head small { color: var(--muted); font-size: 11px; }
.release-card h3 { margin: 8px 0 0; font-size: 18px; line-height: 1.5; }
.release-card > p { padding: 0 20px; color: var(--muted); font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.delivery-status { display: inline-flex; flex-shrink: 0; align-items: center; padding: 4px 8px; border-radius: 6px; background: #edf0f6; color: #55647b; font-size: 11px; line-height: 1.5; }
.delivery-active { background: var(--primary-soft); color: var(--primary); }
.delivery-released,.delivery-achieved { background: #e9f5ee; color: #217749; }
.release-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 8px 20px 18px; font-size: 12px; }
.release-meta > span { margin-right: auto; color: var(--muted); }
.release-meta strong { display: block; color: var(--text); margin-top: 5px; font-variant-numeric: tabular-nums; }
.release-milestones { border-top: 1px solid var(--line); background: #fafbfd; padding: 4px 20px; }
.milestone-row { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.milestone-row + .milestone-row { border-top: 1px solid var(--line); }
.milestone-row > div { flex: 1; min-width: 0; }
.milestone-row strong { display: block; font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.milestone-row small { display: block; color: var(--muted); margin-top: 4px; font-size: 11px; }
.milestone-marker { width: 9px; height: 9px; flex-shrink: 0; background: #9caac3; transform: rotate(45deg); margin-right: 4px; }
.independent-milestones { grid-column: 1 / -1; padding: 12px 20px; border: 1px solid var(--line); border-radius: 10px; }
.independent-milestones h3 { font-size: 14px; margin: 6px 0; }
.is-archived { opacity: .72; }
.bug-fields { background: #fffbfa; border: 1px solid #f0ded9; border-radius: 10px; padding: 16px; margin: 18px 0; }
.bug-fields .section-label { margin-top: 0; color: #974139; }
.bug-fields > label { display: grid; gap: 7px; font-size: 12px; }
.bug-fields select { min-height: 38px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: white; }
.detail-planning-summary { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 0 15px; color: var(--muted); font-size: 12px; }
.detail-planning-summary > span { padding: 5px 8px; background: #f2f5f9; border-radius: 5px; }
.severity-critical,.severity-high { color: #b02e2e; background: #ffefed !important; }
.severity-medium { color: #91600c; }
.selection-toolbar { border-bottom: 1px solid var(--line); padding: 12px 24px; background: #fafbfd; color: var(--muted); font-size: 12px; }
.selection-toolbar > span { margin-right: auto; }
.selection-toolbar strong { color: var(--primary); }
.selection-toolbar small { padding-left: 8px; }
.feature-title-line { display: flex; align-items: center; gap: 5px; }
.feature-title-line .feature-name-button { min-width: 0; flex: 1; }
.feature-select-label { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 36px; min-height: 36px; cursor: pointer; }
.feature-select { width: 17px; height: 17px; margin: 0; }
.feature-select:disabled { cursor: not-allowed; }
.gantt-controls { padding: 16px 24px; border-bottom: 1px solid var(--line); font-size: 12px; }
.gantt-controls label,.capacity-controls label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; }
.gantt-controls input,.gantt-controls select,.capacity-controls input { min-height: 36px; padding: 7px 10px; background: white; border: 1px solid var(--line); border-radius: 6px; }
.gantt-controls > span { color: var(--muted); margin-left: auto; }
.gantt-caption { padding: 0 24px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.gantt-scroll { overflow: auto; max-height: 600px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gantt-table { min-width: 100%; }
.gantt-header,.gantt-row { display: flex; }
.gantt-header { position: sticky; top: 0; z-index: 4; height: 54px; background: #f9fafc; }
.gantt-label { position: sticky; left: 0; flex: 0 0 280px; width: 280px; display: flex; align-items: center; padding: 10px 14px; background: white; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); z-index: 2; }
.gantt-header .gantt-label { background: #f9fafc; color: var(--muted); font-size: 12px; }
.gantt-label button { min-width: 0; flex: 1; text-align: left; border: 0; background: transparent; padding: 0; color: var(--text); }
.gantt-label strong { display: block; font-size: 12px; line-height: 1.6; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-label small { display: block; color: var(--muted); font-size: 11px; margin-top: 4px; }
.gantt-days { display: grid; grid-auto-flow: column; grid-auto-columns: var(--day-width); }
.gantt-days > span { text-align: center; font-size: 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 8px; color: var(--muted); }
.gantt-days small { display: block; height: 16px; font-size: 9px; }
.gantt-days .is-weekend { background: #edf0f5; }
.gantt-days .is-today { color: var(--primary); background: var(--primary-soft); font-weight: 700; }
.gantt-track { position: relative; height: 64px; flex-shrink: 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to right,transparent 0,transparent 29px,#edf0f5 29px,#edf0f5 30px); }
.gantt-bar { position: absolute; top: 17px; height: 30px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 5px 9px; border: 1px solid #b6c9f0; border-radius: 6px; background: #e9f0fd; color: #254b8d; font-size: 11px; text-align: left; }
.gantt-bar.status-done { background: #e4f3ea; color: #286647; border-color: #acd0b9; }
.gantt-bar.status-blocked { background: #fff0e9; color: #98462a; border-color: #e7b9a6; }
.gantt-bar.status-in_review { background: #efeafb; color: #694b9c; border-color: #c9bde2; }
.gantt-bar.is-draft { border-style: dashed; }
.gantt-bar.needs-review { border: 2px solid #b78324; }
.gantt-point { position: absolute; top: 11px; width: 20px; height: 42px; padding: 0; border: 0; background: transparent; }
.gantt-point span { display: block; width: 13px; height: 13px; margin: auto; background: #6484c8; transform: rotate(45deg); border: 2px solid white; box-shadow: 0 0 0 1px #6484c8; }
.gantt-point.status-done span { background: #408e65; box-shadow: 0 0 0 1px #408e65; }
.gantt-point.status-blocked span { background: #b36843; box-shadow: 0 0 0 1px #b36843; }
.gantt-empty { padding: 32px 24px; font-size: 12px; color: var(--muted); }
.gantt-unscheduled { padding: 20px 24px; }
.gantt-unscheduled h3 { font-size: 14px; margin: 0; }.gantt-unscheduled h3 small { color: var(--muted); font-weight: 400; padding-left: 8px; }
.gantt-unscheduled > p { color: var(--muted); font-size: 12px; }
.gantt-pending { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.gantt-pending button { flex: 1; border: 0; text-align: left; background: transparent; font-size: 12px; line-height: 1.7; }
.gantt-pending small { display: block; color: var(--muted); }
.capacity-controls { padding: 0 24px 18px; align-items: end; }
#capacity-scope,#capacity-error { margin-left: 24px; margin-right: 24px; }
.capacity-summary { display: grid; grid-template-columns: repeat(3,1fr) 1.6fr; gap: 12px; padding: 8px 24px 20px; }
.capacity-summary > div { background: #f7f9fc; border: 1px solid var(--line); border-radius: 8px; padding: 13px; }
.capacity-summary span { color: var(--muted); display: block; font-size: 11px; }
.capacity-summary strong { display: block; font-size: 20px; font-variant-numeric: tabular-nums; margin-top: 8px; }
.capacity-summary > div:last-child strong { font-size: 12px; line-height: 1.8; }
#capacity-board { padding: 0 24px 22px; }
.capacity-member { padding: 19px 0; border-top: 1px solid var(--line); }
.capacity-member-head { display: flex; justify-content: space-between; gap: 16px; }
.capacity-member-head h3 { font-size: 14px; margin: 0 0 7px; }
.capacity-member-head span { color: var(--muted); font-size: 11px; }
.capacity-load { text-align: right; }.capacity-load strong { display: block; font-size: 19px; margin-bottom: 5px; }
.capacity-meter { height: 6px; background: #edf0f5; border-radius: 3px; margin: 14px 0; overflow: hidden; }
.capacity-meter > span { display: block; height: 100%; background: #7390c9; border-radius: inherit; }
.capacity-meter > span.is-overloaded { background: #ce7753; }
.capacity-load.is-overloaded strong,.capacity-day.is-overloaded strong { color: #b45030; }
.capacity-details > summary { color: var(--primary); cursor: pointer; font-size: 12px; padding: 4px 0; }
.capacity-days { display: grid; grid-auto-flow: column; grid-auto-columns: 73px; gap: 6px; overflow-x: auto; padding: 16px 0; }
.capacity-day { border: 1px solid var(--line); border-radius: 6px; text-align: center; padding: 10px 4px; background: #fafbfd; }
.capacity-day time,.capacity-day small { display: block; color: var(--muted); font-size: 10px; }
.capacity-day strong { display: block; font-size: 11px; margin: 8px 0 5px; }
.capacity-day.is-overloaded { background: #fff6ef; border-color: #edceb9; }
.capacity-items > button { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 15px; padding: 11px 0; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: transparent; font-size: 12px; }
.capacity-items strong,.capacity-items small { display: block; line-height: 1.7; }.capacity-items small { color: var(--muted); font-size: 11px; }
.member-table { padding: 0 24px 20px; }
.member-table-head,.member-table-row { display: grid; grid-template-columns: minmax(90px,1fr) 100px minmax(120px,2fr) 55px; gap: 18px; align-items: center; padding: 14px 0; font-size: 12px; }
.member-table-head { color: var(--muted); font-size: 11px; background: #fafbfd; padding: 10px; }
.member-table-row { border-bottom: 1px solid var(--line); }.member-table-row small { display: block; color: var(--muted); font-size: 10px; font-weight: 400; margin-top: 5px; }
.member-table-row > span:nth-child(3) { color: var(--muted); line-height: 1.8; }
.schedule-dialog { width: min(850px,96vw); max-width: 96vw; }
.schedule-selection { margin: 18px 0; background: #f7f9fc; padding: 15px; border-radius: 8px; font-size: 12px; }
.schedule-selection > div { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; max-height: 160px; overflow-y: auto; }
.schedule-selection span { border: 1px solid var(--line); border-radius: 5px; padding: 5px 7px; background: white; color: var(--muted); }
#schedule-result { margin: 22px 0; font-size: 12px; line-height: 1.8; }
.suggestion-table { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.suggestion-head,.suggestion-row { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 15px; padding: 14px; align-items: center; }
.suggestion-head { background: #f7f9fc; color: var(--muted); font-size: 11px; }
.suggestion-row + .suggestion-row { border-top: 1px solid var(--line); }
.suggestion-row strong,.suggestion-row small { display: block; }.suggestion-row small { color: var(--muted); font-size: 11px; }
.suggestion-after { color: var(--primary); font-weight: 600; }
#schedule-apply-form { border-top: 1px solid var(--line); padding-top: 16px; }
.filter-fields { max-height: min(70vh,620px); overflow-y: auto; }
@media (max-width: 1000px) {
  .capacity-summary { grid-template-columns: repeat(2,1fr); }
  .planning-actions { gap: 8px; }
  .planning-panel .panel-heading { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .primary-nav [data-page='releases'],.primary-nav [data-page='capacity'] { display: none; }
  #delivery-list { grid-template-columns: 1fr; padding: 0 16px 16px; }
  .planning-panel-toolbar,.capacity-controls { padding-left: 16px; padding-right: 16px; }
  .planning-actions > button { min-height: 44px; }
  .selection-toolbar,.gantt-controls { padding: 12px 16px; }
  .selection-toolbar { gap: 9px; }.selection-toolbar > span { flex-basis: 100%; }
  .feature-select-label { width: 44px; min-height: 44px; }
  .feature-select { width: 19px; height: 19px; }
  .gantt-controls input,.gantt-controls select,.capacity-controls input { min-height: 44px; }
  .gantt-controls > span { flex-basis: 100%; margin-left: 0; }
  .gantt-caption { padding: 0 16px; }.gantt-label { flex-basis: 200px; width: 200px; }
  .gantt-table { padding-right: 80px; }
  .gantt-label strong { font-size: 11px; }.gantt-label { padding: 8px; }
  .gantt-scroll { max-height: 480px; }
  .capacity-summary { padding: 8px 16px 16px; gap: 8px; }
  #capacity-board { padding: 0 16px 16px; }
  .member-table { overflow-x: auto; padding: 0 16px 16px; }
  .member-table-head,.member-table-row { min-width: 490px; gap: 12px; }
  .milestone-row { flex-wrap: wrap; }.milestone-row > div { min-width: 110px; }
  .suggestion-head,.suggestion-row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .suggestion-head > span:first-child,.suggestion-row > span:first-child { grid-column: 1 / -1; }
  .schedule-dialog { width: 100vw; max-width: 100vw; }
}
@media (max-width: 760px) {
  .more-filters { position: static; }
  .more-filters > summary { min-height: 40px; }
  .scope-bar { position: relative; }
  .filter-fields { left: 0; right: 0; width: 100%; top: calc(100% + 6px); }
  .filter-fields input:not([type='checkbox']),.filters .filter-fields select { min-height: 44px; }
  .filters .filter-fields .filter-checkbox { min-height: 44px; }
  #load-status { margin-left: 0; }
  .module-form { grid-template-columns: 1fr; }
  .item-type,.module-chip { font-size: 11px; }
}
@media (max-width: 760px) {
  #dependencies-panel > .panel-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
  .graph-tools {
    margin-left: 0;
  }
  .graph-tools button {
    min-height: 36px;
  }
}
