
:root {
  --ink: #17394d;
  --muted: #6c818d;
  --line: #dbe7eb;
  --line-strong: #c6d9df;
  --bg: #f4f8fa;
  --surface: #ffffff;
  --panel: #f7fafb;
  --content-canvas: #f8fbfc;
  --nav-canvas: #dceff1;
  --nav-border: #a8d4d7;
  --nav: #075b86;
  --nav-soft: #07869a;
  --teal: #07a78c;
  --teal-soft: #e5f8f2;
  --blue: #086cf0;
  --amber: #a86b24;
  --amber-soft: #fff6e7;
  --red: #c25f5a;
  --red-soft: #fff1ef;
  --green: #1aaa68;
  --green-soft: #e7f8ef;
  --coral: #df7770;
  --coral-soft: #fff1ef;
  --blue-soft: #edf5fd;
  --radius: 8px;
  --shadow: 0 5px 18px rgba(48, 86, 75, 0.07);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; overflow-anchor: none; background: var(--bg); }
body { padding-bottom: 31px; }

.icp-footer { position: fixed; z-index: 80; right: 0; bottom: 0; left: 0; padding: 6px 12px; background: rgba(24, 57, 49, .92); color: #dfeae6; font-size: 12px; line-height: 1.6; text-align: center; backdrop-filter: blur(4px); }
.icp-footer a { color: inherit; text-decoration: none; }
.icp-footer a:hover { color: #fff; text-decoration: underline; }

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

button { border: 0; cursor: pointer; }

button:disabled { cursor: not-allowed; opacity: 0.45; }

.boot { display: grid; min-height: 100vh; place-items: center; color: var(--muted); }

.shell { min-height: 100vh; }

.login-screen {
  display: grid;
  grid-template-columns: minmax(320px, 460px) minmax(280px, 560px);
  gap: 22px;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: clamp(18px, 4vw, 54px);
  background:
    linear-gradient(145deg, rgba(231, 246, 240, .72), rgba(245, 249, 255, .76)),
    #f5faf8;
}

.login-panel, .login-side {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 50px rgba(49, 88, 76, .11);
  padding: 28px;
}

.login-brand { margin-bottom: 22px; }
.login-panel h1 { margin: 0; font-size: 26px; line-height: 1.2; }
.login-panel p { margin: 8px 0 18px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.login-form { display: grid; gap: 12px; }
.login-form label { display: grid; gap: 6px; }
.login-form .primary { min-height: 40px; }
.login-error { border: 1px solid #efc4c4; border-radius: 6px; background: var(--red-soft); color: var(--red); padding: 10px 12px; font-size: 12px; font-weight: 850; }
.login-hint, .login-flow { display: grid; gap: 4px; margin-top: 16px; border: 1px solid #d7e5e2; border-radius: 7px; background: #f7fbfa; padding: 12px; }
.login-hint strong, .login-flow strong { font-size: 12px; }
.login-hint span, .login-flow span { color: var(--muted); font-size: 11px; line-height: 1.55; }
.login-side { display: grid; gap: 10px; }
.service-alert { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin: 12px 16px 0; border: 1px solid #efc4c4; border-radius: 8px; background: #fff7f6; padding: 11px 13px; color: var(--red); }
.login-panel .service-alert { margin: 14px 0 0; }
.service-alert div { display: grid; gap: 3px; min-width: 0; }
.service-alert strong { font-size: 12px; }
.service-alert span { color: #744b47; font-size: 11px; line-height: 1.5; }
.service-alert small { color: #9b7772; font-size: 9px; }
.service-alert button { flex: 0 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(210px, 240px) max-content minmax(150px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 68px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 4px 18px rgba(49, 88, 76, .06);
  padding: 9px 16px;
}

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

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #2a9a82, #237564);
  box-shadow: 0 6px 14px rgba(39, 142, 122, .2);
  color: #fff;
  font-weight: 950;
}

.brand-logo-icon {
  display: block;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(7, 95, 242, .16));
}

.brand strong, .brand span { display: block; }
.brand strong { font-size: 15px; }
.brand span { margin-top: 2px; color: var(--muted); font-size: 11px; }

.portal-identity, .top-context { display: grid; min-width: 0; gap: 2px; }
.portal-identity { border-left: 3px solid var(--teal); padding: 4px 10px; }
.portal-identity span, .top-context span { color: var(--muted); font-size: 9px; font-weight: 850; }
.portal-identity strong, .top-context strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.top-control { display: grid; gap: 3px; }
.top-control span { color: var(--muted); font-size: 10px; font-weight: 800; }
.top-control select { min-width: 180px; }

.top-actions { display: flex; min-width: 0; gap: 7px; align-items: center; justify-content: flex-end; white-space: nowrap; }
.account-chip { border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--muted); padding: 6px 9px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.sync-status { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; font-weight: 850; white-space: nowrap; }
.sync-status::before { width: 7px; height: 7px; border-radius: 50%; background: var(--green); content: ""; }
.sync-status[data-state="pending"]::before { background: var(--amber); }
.sync-status[data-state="error"] { color: var(--red); }
.sync-status[data-state="error"]::before { background: var(--red); }

.app-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 14px 16px 18px;
}

.sidebar {
  position: sticky;
  top: 82px;
  height: calc(100vh - 98px);
  overflow-y: auto;
  border-radius: 9px;
  border: 1px solid var(--nav-border);
  background: var(--nav-canvas);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(45, 91, 77, .12);
  padding: 14px 10px 24px;
}

.scope-card { border: 1px solid #afcec3; border-radius: 8px; background: rgba(255,255,255,.8); padding: 12px; }
.scope-card strong { display: block; font-size: 12px; }
.scope-card span { display: block; margin-top: 5px; color: #687c75; font-size: 11px; line-height: 1.45; }

.nav-group { margin-top: 17px; }
.nav-group h3 { margin: 0 0 7px; padding: 0 9px; color: #4d7367; font-size: 10px; letter-spacing: .08em; }
.nav-item { position: relative; display: grid; width: 100%; gap: 2px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #36554d; padding: 10px 11px 10px 14px; text-align: left; }
.nav-item span { font-size: 13px; font-weight: 850; }
.nav-item em { color: #7d978f; font-size: 10px; font-style: normal; }
.nav-item:hover { background: rgba(255,255,255,.72); }
.nav-item.active { border-color: #a9cec0; background: #fff; color: #1f6f60; box-shadow: 0 6px 16px rgba(41, 92, 75, .12); }
.nav-item.active::before { position: absolute; top: 9px; bottom: 9px; left: 0; width: 3px; border-radius: 0 3px 3px 0; background: var(--teal); content: ""; }
.nav-item.active em { color: var(--muted); }

.main {
  min-width: 0;
  border: 1px solid #e2ebe7;
  border-radius: 10px;
  background: var(--content-canvas);
  padding: 14px 14px 20px;
}

.subnav {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  margin-bottom: 13px;
  padding: 14px;
}
.subnav > div:first-child { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.subnav strong, .subnav span { display: block; }
.subnav > div:first-child strong { font-size: 14px; }
.subnav > div:first-child span { color: var(--muted); font-size: 11px; }
.subnav-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.subnav-tabs button { border: 1px solid var(--line); border-radius: 7px; background: #fbfdfc; color: var(--ink); padding: 9px 11px; text-align: left; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.subnav-tabs button:hover { border-color: #b7d7cc; background: #fff; transform: translateY(-1px); }
.subnav-tabs button strong { font-size: 12px; }
.subnav-tabs button em { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; font-style: normal; }
.subnav-tabs button.active { border-color: #83c5b6; background: var(--teal-soft); color: #1e7766; box-shadow: inset 0 0 0 1px rgba(39, 142, 122, .04); }
.subnav-tabs button.active em { color: #4b8f88; }

.page-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.page-head h1 { margin: 0; font-size: 23px; line-height: 1.2; }
.page-head p { max-width: 820px; margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.head-actions, .action-bar, .row-actions, .detail-actions, .modal-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.primary, .ghost, .danger, .mini, .link-button {
  border-radius: 6px;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 850;
}
.primary { background: linear-gradient(135deg, #0768ee, #00a9c2 52%, #08a875); color: #fff; box-shadow: 0 5px 13px rgba(7, 104, 238, .18); }
.primary:hover { background: linear-gradient(135deg, #0558cb, #008fa7 52%, #078d63); }
.status-action { box-shadow: 0 2px 7px rgba(8, 124, 112, .2); }
.ghost { border: 1px solid var(--line-strong); background: #fff; color: var(--ink); }
.ghost:hover { background: var(--panel); }
.danger { border: 1px solid #efc4c4; background: #fff; color: var(--red); }
.mini { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 5px 7px; font-size: 11px; }
.mini.status-mini { border-color: #9dd7d0; background: var(--teal-soft); color: var(--teal); white-space: nowrap; }
.mini.status-mini:hover { border-color: var(--teal); background: #d9f1ed; }
.mini.invoice-mini { border-color: #b9cfea; background: #eef5fb; color: var(--blue); white-space: nowrap; }
.mini.invoice-mini:hover { border-color: var(--blue); background: #e3eff9; }
.invoice-action { border-color: #b9cfea; color: var(--blue); }
.quick-status-column { min-width: 172px; background: #f5fbfa; }
th.quick-status-column { color: var(--teal); }
.quick-state-readonly { display: inline-flex; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--muted); padding: 5px 7px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.quick-action-stack { display: grid; gap: 6px; }
.quick-action-stack > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 5px; align-items: center; }
.quick-action-stack em { color: var(--muted); font-size: 9px; font-style: normal; font-weight: 900; }
.mini.danger-mini { color: var(--red); }
.link-button { background: transparent; color: var(--teal); padding: 5px; }

input, select, textarea {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  padding: 8px 9px;
  font-size: 12px;
}
input[type="checkbox"] { width: 16px; height: 16px; min-height: 16px; border-radius: 4px; padding: 0; accent-color: var(--teal); }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(39,142,122,.11); }
textarea { min-height: 88px; resize: vertical; }
::placeholder { color: rgba(104, 118, 132, .54); opacity: 1; }

.field-label { color: var(--muted); font-size: 11px; font-weight: 850; }
.required-mark { margin-left: 4px; color: #c65d57; font-size: 10px; font-weight: 900; }

.multi-select { display: flex; flex-wrap: wrap; gap: 6px; align-items: stretch; }
.multi-select-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; color: var(--text); cursor: pointer; user-select: none; transition: border-color .15s, color .15s, background .15s; }
.multi-select-chip input { width: 14px; height: 14px; min-height: 14px; margin: 0; accent-color: var(--teal); }
.multi-select-chip:hover { border-color: var(--teal); }
.multi-select-chip.is-checked { border-color: var(--teal); background: var(--teal-soft); color: var(--teal); }
.multi-select + .field-hint { margin-top: 6px; }

.metrics { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.metric { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 4px 14px rgba(48, 86, 75, .045); padding: 15px; }
.metric:nth-child(2n) { background: linear-gradient(145deg, #fff 70%, var(--blue-soft)); }
.metric:nth-child(3n) { background: linear-gradient(145deg, #fff 70%, var(--coral-soft)); }
.metric span, .metric em { display: block; color: var(--muted); font-size: 11px; font-style: normal; }
.metric strong { display: block; margin: 6px 0 3px; font-size: 22px; }

.pipeline { display: grid; grid-template-columns: repeat(7, minmax(100px, 1fr)); margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow-x: auto; }
.pipeline button { position: relative; min-width: 112px; border-right: 1px solid var(--line); background: #fff; padding: 12px; text-align: left; }
.pipeline button:last-child { border-right: 0; }
.pipeline button:hover { background: var(--panel); }
.pipeline span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 950; }
.pipeline strong, .pipeline em { display: block; }
.pipeline strong { margin-top: 7px; font-size: 12px; }
.pipeline em { margin-top: 3px; color: var(--muted); font-size: 10px; font-style: normal; }

.overview-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr); gap: 12px; }
.panel, .board, .detail, .modal, .role-summary { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 14px; }
.panel-head h2 { margin: 0; font-size: 15px; }
.panel-head span { color: var(--muted); font-size: 11px; }
.panel-body { padding: 13px; }

.task-list, .risk-list, .relation-list, .timeline, .check-list { display: grid; gap: 8px; }
.task-item, .risk-item, .relation-item, .timeline-item, .check-item { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 10px; }
.task-item { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: center; }
.task-item strong, .risk-item strong { display: block; font-size: 12px; }
.task-item span, .risk-item span { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.risk-item { border-left: 3px solid var(--amber); }

.workspace { display: grid; grid-template-columns: minmax(0, 1fr) clamp(320px, 28vw, 370px); gap: 12px; align-items: start; }
.board { min-width: 0; overflow: hidden; }
.detail { position: sticky; top: 86px; overflow: hidden; }

.filter-panel { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(140px, .8fr) minmax(170px, 1fr) auto; gap: 9px; align-items: end; border-bottom: 1px solid var(--line); background: var(--panel); padding: 12px; }
.filter-panel label, .form-grid label { display: grid; gap: 5px; }
.action-bar { border-bottom: 1px solid var(--line); padding: 11px 12px; }
.action-bar .record-count { margin-left: auto; color: var(--muted); font-size: 11px; }
.batch-count { border-radius: 999px; background: var(--teal-soft); color: var(--teal); padding: 6px 9px; font-size: 11px; font-weight: 900; }

.table-wrap { overflow-x: auto; }
table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: 12px; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 11px; text-align: left; vertical-align: middle; }
th { background: #f5faf8; color: #60766e; font-size: 10px; font-weight: 900; white-space: nowrap; }
tbody tr { transition: background .14s ease; }
tbody tr:hover { background: #f5fbf8; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #f8fbfb; }
tbody tr.selected { background: #edf8f6; }
tbody tr.multi-selected { box-shadow: inset 3px 0 0 var(--teal); background: #f2faf8; }
.select-column { width: 42px; min-width: 42px; max-width: 42px; padding-right: 6px; padding-left: 12px; text-align: center; }
.select-column input { display: block; margin: 0 auto; }
td { max-width: 260px; }
td .cell-main { display: block; font-weight: 800; }
td .cell-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 10px; }

.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 4px 7px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.good { background: var(--green-soft); color: var(--green); }
.warn { background: var(--amber-soft); color: var(--amber); }
.risk { background: var(--red-soft); color: var(--red); }
.info { background: #eaf3fa; color: var(--blue); }
.neutral { background: #edf1f3; color: #5f6b75; }

.detail-head { padding: 14px; }
.detail-head h2 { margin: 8px 0 5px; font-size: 18px; line-height: 1.35; }
.detail-head p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.detail-actions { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); padding: 10px 12px; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; border-bottom: 1px solid var(--line); padding: 7px; }
.tabs button { border-radius: 5px; background: transparent; color: var(--muted); padding: 7px 4px; font-size: 11px; font-weight: 850; }
.tabs button.active { background: var(--teal-soft); color: var(--teal); }
.detail-body { max-height: calc(100vh - 290px); overflow-y: auto; padding: 12px; }
.field-grid { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 9px; border-bottom: 1px dashed var(--line); padding: 7px 2px; }
.field-row span { color: var(--muted); font-size: 11px; }
.field-row strong { font-size: 12px; overflow-wrap: anywhere; }
.relation-item { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.relation-item > span { color: var(--muted); font-size: 10px; }
.relation-item strong, .relation-item em { display: block; }
.relation-item strong { font-size: 12px; }
.relation-item em { margin-top: 2px; color: var(--muted); font-size: 10px; font-style: normal; }
.timeline-item { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 9px; }
.timeline-item > span { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: #edf1f3; color: var(--muted); font-size: 10px; font-weight: 900; }
.timeline-item.done > span { background: var(--green-soft); color: var(--green); }
.timeline-item strong, .timeline-item em { display: block; }
.timeline-item strong { font-size: 12px; }
.timeline-item em { margin-top: 3px; color: var(--muted); font-size: 10px; font-style: normal; }
.field-hint { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.next-step-card { border-color: #bcd9d4; background: #f4fbfa; }
.project-operations-hub { display: grid; gap: 10px; grid-column: 1 / -1; border: 1px solid #cfe2df; border-radius: 7px; background: #f7fbfa; padding: 11px; }
.project-hub-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.project-hub-head strong, .project-hub-head span { display: block; }
.project-hub-head strong { font-size: 12px; }
.project-hub-head span { max-width: 620px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.project-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.project-hub-card { display: grid; gap: 6px; align-content: start; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 9px; }
.project-hub-card strong { font-size: 12px; }
.project-hub-card span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.project-hub-card > div:last-child { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.project-result-application { display: grid; gap: 9px; margin-top: 2px; padding-top: 10px; border-top: 1px solid #d9e8e5; }
.consistency-check-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: #fff; }
.consistency-check-list > span { display: grid; gap: 5px; align-content: start; min-width: 0; padding: 9px; border-right: 1px solid var(--line); }
.consistency-check-list > span:last-child { border-right: 0; }
.consistency-check-list strong { font-size: 11px; }
.consistency-check-list small, .project-result-application .project-hub-card small { color: var(--muted); font-size: 9px; line-height: 1.5; }
.product-profile-card { display: grid; grid-template-columns: minmax(120px, .35fr) minmax(0, 1fr); gap: 10px; align-items: stretch; border: 1px solid #d7e5e2; border-radius: 7px; background: #f7fbfa; padding: 10px; }
.product-image-slot { display: grid; place-items: center; min-height: 92px; border: 1px dashed #9bbdc0; border-radius: 6px; background: #fff; color: var(--muted); text-align: center; }
.product-image-slot img { width: 100%; max-height: 180px; object-fit: contain; border-radius: 5px 5px 0 0; }
.product-image-slot strong, .product-profile-fields strong { display: block; color: var(--ink); font-size: 12px; }
.product-image-slot span, .product-profile-fields span { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.product-profile-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
.product-profile-fields div { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 8px; }
.product-recognition { display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 12px; align-items: stretch; margin: 12px 0; border: 1px solid #b9d8d2; border-radius: 7px; background: #f4fbf9; padding: 10px; }
.product-recognition > img { width: 124px; height: 112px; border-radius: 6px; background: #fff; object-fit: contain; }
.product-recognition.empty-recognition { grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-style: dashed; }
.product-recognition.empty-recognition strong, .recognition-heading strong { display: block; color: var(--ink); font-size: 12px; }
.product-recognition.empty-recognition span, .recognition-heading span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.product-recognition em { align-self: start; border-radius: 999px; background: #dcefe9; color: #176e61; padding: 4px 7px; font-size: 10px; font-style: normal; font-weight: 800; }
.recognition-content { min-width: 0; }
.recognition-heading { display: flex; justify-content: space-between; gap: 10px; }
.recognition-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.recognition-tags span { border: 1px solid #d4e6e2; border-radius: 5px; background: #fff; padding: 5px 7px; color: var(--ink); font-size: 10px; }
.recognition-tags b { margin-right: 5px; color: var(--muted); font-weight: 650; }
.recognition-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; }
.recognition-actions small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.product-entry-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; grid-column: 1 / -1; border: 1px solid #c9e1dc; border-radius: 7px; background: #f5fbf9; padding: 10px; }
.product-entry-rules > div { min-width: 0; border-right: 1px solid #d9e9e6; padding-right: 8px; }
.product-entry-rules > div:last-child { border-right: 0; }
.product-entry-rules strong, .product-entry-rules span { display: block; }
.product-entry-rules strong { color: var(--ink); font-size: 11px; }
.product-entry-rules span { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.quote-summary { display: grid; gap: 10px; grid-column: 1 / -1; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 12px; }
.quote-summary-head { display: flex; justify-content: space-between; gap: 10px; align-items: start; }
.quote-summary-head strong, .quote-summary-head span { display: block; }
.quote-summary-head strong { font-size: 12px; }
.quote-summary-head span { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.mini-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; }
.mini-table-wrap table { min-width: 760px; }
.mini-table-wrap th, .mini-table-wrap td { padding: 8px 9px; font-size: 10px; }
.quote-totals { display: flex; flex-wrap: wrap; gap: 7px; }
.quote-totals span { border: 1px solid #d7e5e2; border-radius: 5px; background: #f7fbfa; padding: 6px 8px; color: var(--ink); font-size: 10px; font-weight: 900; }

.role-summary { display: grid; grid-template-columns: 230px minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-bottom: 12px; padding: 14px; }
.role-identity strong, .role-identity span { display: block; }
.role-identity strong { font-size: 16px; }
.role-identity span { margin-top: 4px; color: var(--muted); font-size: 11px; }
.role-boundary { display: flex; flex-wrap: wrap; gap: 6px; }
.boundary-item { border: 1px solid var(--line); border-radius: 5px; background: var(--panel); padding: 6px 8px; color: var(--muted); font-size: 10px; font-weight: 800; }

.permission-panel {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.permission-panel article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 12px;
}
.permission-panel strong, .permission-panel span, .permission-panel p { display: block; }
.permission-panel strong { font-size: 13px; }
.permission-panel span { margin-top: 5px; color: var(--teal); font-size: 10px; font-weight: 900; }
.permission-panel p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.evaluation-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.account-setup-panel {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 12px;
}
.account-setup-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 12px;
  align-items: start;
}
.account-setup-head strong, .account-setup-head span, .admin-account-card strong, .admin-account-card span { display: block; }
.account-setup-head > div:first-child > strong { font-size: 14px; }
.account-setup-head > div:first-child > span, .admin-account-card span { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.admin-account-card {
  display: grid;
  gap: 6px;
  border: 1px solid #cfe2df;
  border-radius: 7px;
  background: #f7fbfa;
  padding: 10px;
}
.admin-account-card .ghost { width: max-content; }
.account-setup-list { display: grid; gap: 8px; }
.account-setup-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, .42fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  padding: 10px;
}
.account-setup-main strong, .account-setup-main p, .account-setup-meta span { display: block; }
.account-setup-main strong { font-size: 13px; }
.account-setup-main > span { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.account-setup-main p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.account-setup-meta { display: grid; gap: 5px; color: var(--teal); font-size: 10px; font-weight: 900; }
.account-setup-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.account-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.account-section-title strong { font-size: 13px; }
.account-section-title span, .readonly-note { color: var(--muted); font-size: 10px; line-height: 1.5; }
.subadmin-role-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.subadmin-role-card { display: grid; align-content: start; gap: 9px; border: 1px solid var(--line); border-radius: 7px; background: #fbfdfc; padding: 12px; }
.subadmin-role-head { display: flex; align-items: center; gap: 9px; }
.subadmin-role-head > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: #e4f3ef; color: var(--teal); font-size: 10px; font-weight: 900; }
.subadmin-role-head div { min-width: 0; }
.subadmin-role-head strong, .subadmin-role-head em { display: block; }
.subadmin-role-head strong { font-size: 13px; }
.subadmin-role-head em { margin-top: 2px; color: var(--muted); font-size: 10px; font-style: normal; }
.subadmin-role-card > p { min-height: 34px; margin: 0; color: var(--ink); font-size: 11px; line-height: 1.55; }
.subadmin-role-scope { display: grid; gap: 3px; border-left: 2px solid #8dcbbd; padding-left: 8px; }
.subadmin-role-scope span { color: var(--muted); font-size: 9px; font-weight: 800; }
.subadmin-role-scope strong { font-size: 10px; line-height: 1.45; }
.subadmin-role-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.subadmin-role-tags span { border: 1px solid #d8e9e5; border-radius: 4px; background: #fff; padding: 3px 5px; color: #46635d; font-size: 9px; font-weight: 800; }
.subadmin-role-meta { display: grid; gap: 2px; color: var(--muted); font-size: 9px; }
.subadmin-role-card > button { justify-self: start; }
.internal-account-row { border-left: 3px solid #8dcbbd; }
.score-breakdown { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.score-breakdown em { border: 1px solid #d7e5e2; border-radius: 999px; background: #f7fbfa; color: var(--teal); padding: 4px 7px; font-size: 10px; font-style: normal; font-weight: 900; }

.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.member-card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 13px; }
.member-card h3 { margin: 8px 0 5px; font-size: 14px; }
.member-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.member-card .card-actions { display: flex; gap: 7px; margin-top: 12px; }

.empty { padding: 32px 20px; color: var(--muted); text-align: center; font-size: 12px; }

.modal-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(35, 55, 49, .34); backdrop-filter: blur(2px); }
.modal { position: fixed; top: 50%; left: 50%; z-index: 61; width: min(760px, calc(100vw - 28px)); max-height: calc(100vh - 40px); overflow-y: auto; transform: translate(-50%, -50%); padding: 18px; }
.modal-close { position: absolute; top: 12px; right: 12px; background: transparent; color: var(--muted); font-size: 12px; }
.modal h2 { margin: 0; font-size: 20px; }
.modal > p { margin: 7px 0 15px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid .full { grid-column: 1 / -1; }
.modal-actions { justify-content: flex-end; border-top: 1px solid var(--line); margin-top: 17px; padding-top: 13px; }
@media (max-width: 720px) { .product-entry-rules { grid-template-columns: 1fr; } .product-entry-rules > div { border-right: 0; border-bottom: 1px solid #d9e9e6; padding: 0 0 8px; } .product-entry-rules > div:last-child { border-bottom: 0; padding-bottom: 0; } }
.batch-delete-summary { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 11px 12px; }
.batch-delete-summary strong { font-size: 12px; }
.batch-delete-summary span { color: var(--muted); font-size: 11px; line-height: 1.55; }
.delete-resolution { display: grid; gap: 10px; border: 1px solid #bcd9d4; border-radius: 7px; background: #f4fbfa; padding: 12px; }
.delete-resolution > div:first-child { display: grid; gap: 4px; }
.delete-resolution strong { font-size: 12px; }
.delete-resolution span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.delete-resolution-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.delete-resolution-actions .ghost { border-color: #9bc8c0; background: #fff; color: var(--teal); }
.delete-resolution.compact { width: min(440px, 100%); padding: 9px 10px; }
.delete-protected-list { display: grid; gap: 8px; margin-top: 12px; }
.delete-protected-list h3 { margin: 0; font-size: 13px; }
.delete-protected-list > p { margin: 0; color: var(--muted); font-size: 11px; }
.delete-protected-item { display: grid; grid-template-columns: minmax(160px, .75fr) minmax(280px, 1.25fr); gap: 10px; align-items: start; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 10px; }
.delete-protected-item > div:first-child { display: grid; gap: 4px; }
.delete-protected-item > div:first-child span { color: var(--muted); font-size: 10px; line-height: 1.5; }

.roster-import-modal, .member-project-modal, .product-config-modal, .evidence-modal { width: min(980px, calc(100vw - 28px)); }
.solution-import-modal { width: min(1380px, calc(100vw - 28px)); max-height: calc(100vh - 28px); overflow: auto; }
.solution-import-source { display: grid; gap: 14px; }
.solution-import-source textarea { min-height: 150px; }
.import-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; }
.import-or::before, .import-or::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.source-actions, .solution-import-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.source-actions { justify-content: flex-end; }
.solution-import-meta { margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: #fbfdfd; }
.solution-import-summary { margin-top: 16px; }
.solution-import-summary strong { font-size: 14px; }
.solution-import-summary span { color: var(--muted); font-size: 11px; flex: 1; min-width: 240px; }
.solution-import-table { margin-top: 10px; border: 1px solid var(--line); border-radius: 7px; }
.solution-import-table table { min-width: 1500px; }
.solution-import-table th { white-space: nowrap; }
.solution-import-table td { vertical-align: top; }
.solution-import-table input, .solution-import-table select { min-width: 118px; padding: 8px; font-size: 11px; }
.solution-import-table td:nth-child(1) select { min-width: 180px; }
.solution-import-table td:nth-child(2) input, .solution-import-table td:nth-child(8) input { min-width: 190px; }
@media (max-width: 760px) {
  .solution-import-modal { width: calc(100vw - 16px); max-height: calc(100vh - 16px); }
  .solution-import-meta { grid-template-columns: 1fr; }
}
.product-picker table { min-width: 920px; }
.product-picker input[type="number"] { min-width: 92px; }
.file-drop { display: grid; gap: 7px; margin-top: 14px; border: 1px dashed #9bbdc0; border-radius: 7px; background: #f4fbfa; padding: 20px; text-align: center; }
.file-drop strong { font-size: 14px; }
.file-drop span, .import-file span, .import-note { color: var(--muted); font-size: 11px; }
.file-drop input[type="file"] { margin: 3px auto 0; max-width: 480px; background: #fff; }
.import-error { margin-top: 12px; border: 1px solid #efc4c4; border-radius: 6px; background: var(--red-soft); color: var(--red); padding: 10px 12px; font-size: 12px; font-weight: 800; }
.import-file { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 10px 12px; }
.import-file strong, .import-file span { display: block; }
.import-file span { margin-top: 3px; }
.import-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; }
.import-preview { margin-top: 12px; border: 1px solid var(--line); border-radius: 6px; }
.import-preview table { min-width: 680px; }
.import-note { margin-top: 7px; }
.consent-row { display: flex; gap: 9px; align-items: flex-start; margin-top: 14px; color: var(--ink); font-size: 12px; line-height: 1.5; }
.consent-row input { width: 16px; min-height: 16px; margin: 1px 0 0; accent-color: var(--teal); }

.toast { position: fixed; right: 18px; bottom: 18px; z-index: 80; max-width: 420px; border: 1px solid #b9d9cf; border-radius: var(--radius); background: #fff; box-shadow: 0 14px 34px rgba(49, 88, 76, .16); padding: 12px 14px; font-size: 12px; font-weight: 800; }

.audit-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 10px; margin-bottom: 12px; }
.check-item { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 8px; align-items: start; }
.check-item strong, .check-item span { display: block; }
.check-item strong { font-size: 12px; }
.check-item span { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.5; }

.automation-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.automation-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr); gap: 12px; margin-bottom: 12px; }
.automation-runner { overflow: hidden; }
.automation-action-list { display: grid; }
.automation-action-list button { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; width: 100%; border-top: 1px solid var(--line); background: #fff; padding: 10px 12px; text-align: left; }
.automation-action-list button:first-child { border-top: 0; }
.automation-action-list button:hover { background: var(--panel); }
.automation-action-list button > span, .automation-flow span { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 5px; background: var(--teal-soft); color: var(--teal); font-size: 11px; font-weight: 900; }
.automation-action-list strong, .automation-action-list em { display: block; }
.automation-action-list strong { color: var(--ink); font-size: 12px; }
.automation-action-list em { margin-top: 3px; color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.4; }
.automation-action-list b { color: var(--teal); font-size: 11px; }
.automation-flow { display: grid; padding: 7px 14px 12px; }
.automation-flow > div { display: grid; grid-template-columns: 30px 90px minmax(0, 1fr); gap: 8px; align-items: center; border-top: 1px solid var(--line); padding: 10px 0; }
.automation-flow > div:first-child { border-top: 0; }
.automation-flow strong { font-size: 12px; }
.automation-flow em { color: var(--muted); font-size: 10px; font-style: normal; }
.automation-bottom { align-items: start; }

.approval-matrix { margin-bottom: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.approval-flow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px; }
.approval-flow-grid article { min-width: 0; border: 1px solid var(--line); border-radius: 6px; padding: 11px; }
.approval-flow-grid article > strong { display: block; margin-bottom: 8px; font-size: 13px; }
.approval-flow-grid article > div { display: flex; flex-wrap: wrap; gap: 6px; }
.approval-flow-grid span { display: grid; grid-template-columns: 20px minmax(0, 1fr); min-width: 180px; flex: 1 1 210px; gap: 2px 6px; border: 1px solid #d7e5e2; border-radius: 5px; background: #f7fbfa; padding: 7px; }
.approval-flow-grid b { grid-row: 1 / 3; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-size: 10px; }
.approval-flow-grid em { color: var(--ink); font-size: 11px; font-style: normal; font-weight: 850; }
.approval-flow-grid small { color: var(--muted); font-size: 10px; }
.approval-flow-grid article > p { margin: 8px 0 0; color: var(--muted); font-size: 10px; line-height: 1.55; }

.project-workspace { display: grid; grid-template-columns: 220px minmax(620px, 1fr) 260px; gap: 10px; align-items: start; }
.project-list-rail, .project-command-center, .project-action-rail > section, .project-empty-state { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.project-list-rail { position: sticky; top: 86px; max-height: calc(100vh - 105px); overflow-y: auto; padding: 10px; }
.project-list-rail label { display: grid; gap: 5px; margin-bottom: 8px; }
.project-list-rail label span { color: var(--muted); font-size: 12px; font-weight: 850; }
.project-list-rail > div { display: grid; gap: 5px; }
.project-list-rail > div > button { display: grid; gap: 4px; width: 100%; border: 1px solid transparent; border-radius: 6px; background: transparent; padding: 9px; text-align: left; }
.project-list-rail > div > button:hover { background: var(--panel); }
.project-list-rail > div > button.active { border-color: #9dd7d0; background: var(--teal-soft); }
.project-list-rail button strong { color: var(--ink); font-size: 13px; line-height: 1.4; }
.project-list-rail button > span:not(.badge) { color: var(--muted); font-size: 11px; }
.project-list-rail .badge { width: max-content; }
.project-command-center { min-width: 0; overflow: hidden; }
.project-titlebar { display: flex; justify-content: space-between; gap: 16px; align-items: start; padding: 15px 16px 12px; }
.project-titlebar span, .project-titlebar h2, .project-titlebar p { display: block; }
.project-titlebar > div > span { color: var(--muted); font-size: 12px; }
.project-titlebar h2 { margin: 5px 0 0; font-size: 20px; line-height: 1.3; }
.project-titlebar p { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.project-stepper { display: grid; grid-template-columns: repeat(7, minmax(90px, 1fr)); overflow-x: auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 12px; }
.project-stepper > div { position: relative; display: flex; gap: 6px; align-items: center; min-width: 96px; color: var(--muted); }
.project-stepper > div::after { position: absolute; right: 5px; left: 27px; top: 11px; height: 1px; background: var(--line); content: ""; z-index: 0; }
.project-stepper > div:last-child::after { display: none; }
.project-stepper span { position: relative; z-index: 1; display: grid; width: 23px; height: 23px; flex: 0 0 auto; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: #fff; font-size: 10px; font-weight: 900; }
.project-stepper strong { position: relative; z-index: 1; background: #fff; padding-right: 6px; font-size: 11px; white-space: nowrap; }
.project-stepper .done, .project-stepper .current { color: var(--green); }
.project-stepper .done span, .project-stepper .current span { border-color: var(--green); background: var(--green); color: #fff; }
.project-stepper .done::after { background: var(--green); }
.project-gates { display: grid; grid-template-columns: repeat(5, minmax(135px, 1fr)); gap: 0; border-bottom: 1px solid var(--line); background: #fbfcfc; }
.project-gate-heading { grid-column: 1 / -1; display: flex; justify-content: space-between; padding: 9px 12px 5px; }
.project-gate-heading strong { font-size: 13px; }
.project-gate-heading span { color: var(--muted); font-size: 11px; }
.project-gates article { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; align-items: start; min-width: 0; padding: 8px 10px 11px; }
.project-gates article > span { display: grid; width: 19px; height: 19px; place-items: center; border-radius: 50%; background: var(--red-soft); color: var(--red); font-size: 10px; font-weight: 900; }
.project-gates article.passed > span { background: var(--green-soft); color: var(--green); }
.project-gates article strong, .project-gates article em { display: block; }
.project-gates article strong { font-size: 12px; }
.project-gates article em { margin-top: 3px; color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.5; }
.project-gates article .link-button { grid-column: 2; justify-self: start; padding: 3px 0; font-size: 11px; }
.project-tabs { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); padding: 7px 9px 0; }
.project-tabs button { flex: 0 0 auto; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 9px 11px 10px; font-size: 12px; font-weight: 850; white-space: nowrap; }
.project-tabs button.active { border-bottom-color: var(--teal); color: var(--teal); }
.project-content { min-height: 420px; padding: 12px; }
.project-overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.project-panel { min-width: 0; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.project-panel.project-wide { grid-column: 1 / -1; }
.contracting-workspace { display: grid; gap: 10px; }
.contracting-policy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 8px; align-items: stretch; }
.contracting-policy > div { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 10px; }
.contracting-policy span, .contracting-policy em { color: var(--muted); font-size: 10px; font-style: normal; line-height: 1.45; }
.contracting-policy strong { font-size: 12px; }
.contracting-flow { display: grid; grid-template-columns: minmax(48px, .55fr) 10px minmax(48px, .55fr) 10px minmax(130px, 1.4fr) 10px minmax(48px, .55fr) 10px minmax(52px, .6fr) 10px minmax(52px, .6fr) 10px minmax(52px, .6fr); align-items: center; gap: 3px; overflow: hidden; border: 1px solid #bcded8; border-radius: 7px; background: linear-gradient(180deg, #f8fcfb, #f1f9f7); padding: 16px 12px; }
.contracting-flow > b { flex: 0 0 auto; color: var(--primary); font-size: 18px; }
.flow-node { display: grid; min-width: 0; justify-items: center; gap: 3px; text-align: center; }
.flow-node > span { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #91c9bf; border-radius: 50%; background: #fff; color: var(--primary); font-size: 10px; font-weight: 900; box-shadow: 0 3px 10px rgba(13, 101, 86, .1); }
.flow-node strong { font-size: 12px; }
.flow-node em, .flow-branch em, .flow-branch span { color: var(--muted); font-size: 9px; font-style: normal; line-height: 1.4; }
.flow-branch { display: grid; min-width: 0; gap: 6px; }
.flow-branch article { display: grid; gap: 2px; border: 1px dashed var(--line-strong); border-radius: 6px; background: rgba(255,255,255,.7); padding: 7px 9px; }
.flow-branch article.active { border-style: solid; border-color: var(--primary); background: #eaf7f4; box-shadow: inset 3px 0 0 var(--primary); }
.contracting-responsibility { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 7px; background: #fff; overflow: hidden; }
.contracting-responsibility article { display: grid; gap: 5px; border-right: 1px solid var(--line); padding: 10px; }
.contracting-responsibility article:last-child { border-right: 0; }
.contracting-responsibility span { color: var(--muted); font-size: 10px; }
.contracting-responsibility strong { font-size: 11px; line-height: 1.45; }
.contracting-responsibility .blocked { background: var(--red-soft); color: var(--red); }
.contracting-responsibility .passed { background: #eef8f3; color: var(--primary); }
.project-panel-head, .project-related-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); padding: 9px 10px; }
.project-panel-head strong, .project-related-head strong { font-size: 13px; }
.project-panel-head span, .project-related-head span { color: var(--muted); font-size: 11px; }
.project-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; padding: 5px 10px 9px; }
.project-facts span { padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--ink); font-size: 12px; }
.project-facts em { display: block; margin-bottom: 3px; color: var(--muted); font-size: 11px; font-style: normal; }
.mini-progress-list, .work-package-progress { display: grid; padding: 6px 10px 10px; }
.mini-progress-list > div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); padding: 7px 0; }
.mini-progress-list > div:last-child { border-bottom: 0; }
.mini-progress-list span, .mini-progress-list em { font-size: 12px; }
.mini-progress-list em { color: var(--muted); font-style: normal; }
.work-package-progress { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.work-package-progress > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; border: 1px solid var(--line); border-radius: 5px; padding: 8px; }
.work-package-progress strong { font-size: 12px; }
.work-package-progress > div > span { color: var(--muted); font-size: 11px; }
.work-package-progress progress { grid-column: 1; width: 100%; height: 5px; accent-color: var(--teal); }
.project-inline-empty { padding: 25px 12px; color: var(--muted); text-align: center; font-size: 12px; }
.project-related-grid { display: grid; gap: 10px; }
.project-related-section { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.project-related-list { display: grid; }
.project-related-list article { display: grid; grid-template-columns: minmax(140px, .7fr) minmax(260px, 1.3fr) auto; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding: 9px 10px; }
.project-related-list article:first-child { border-top: 0; }
.project-related-title { display: grid; gap: 4px; }
.project-related-title strong { font-size: 12px; }
.project-related-title .badge { width: max-content; }
.project-related-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
.project-related-fields span { color: var(--ink); font-size: 11px; overflow-wrap: anywhere; }
.project-related-fields em { display: block; margin-bottom: 2px; color: var(--muted); font-style: normal; }
.project-related-actions { display: flex; gap: 5px; align-items: center; }
.project-empty { display: grid; justify-items: center; gap: 6px; padding: 24px; color: var(--muted); text-align: center; }
.project-empty strong { color: var(--ink); font-size: 13px; }
.project-empty span { max-width: 520px; font-size: 12px; line-height: 1.5; }
.project-timeline { display: grid; padding: 8px 12px 14px; }
.project-timeline > div { display: grid; grid-template-columns: 135px minmax(0, 1fr) 90px; gap: 12px; border-bottom: 1px solid var(--line); padding: 9px 0; }
.project-timeline time, .project-timeline span { color: var(--muted); font-size: 11px; }
.project-timeline strong { font-size: 12px; }
.project-action-rail { position: sticky; top: 86px; display: grid; gap: 9px; }
.project-action-rail > section { display: grid; gap: 7px; padding: 11px; }
.project-action-rail > section > strong { font-size: 13px; }
.project-action-rail button { width: 100%; }
.project-blockers > div { display: grid; gap: 3px; border-top: 1px solid var(--line); padding: 8px 0 2px; }
.project-blockers span, .project-links span { font-size: 12px; }
.project-blockers em { color: var(--muted); font-size: 11px; font-style: normal; line-height: 1.5; }
.project-blockers .link-button { width: max-content; padding: 2px 0; }
.project-blockers .all-clear span { color: var(--green); font-weight: 850; }
.project-links span { border-top: 1px solid var(--line); padding-top: 7px; color: var(--muted); }
.project-empty-state { display: grid; justify-items: center; gap: 8px; padding: 64px 24px; text-align: center; }
.project-empty-state strong { font-size: 17px; }
.project-empty-state span { max-width: 620px; color: var(--muted); font-size: 11px; line-height: 1.6; }

.overview-chart-section { margin-bottom: 14px; }
.overview-chart-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin: 0 2px 10px; }
.overview-chart-heading h2 { margin: 0; font-size: 16px; }
.overview-chart-heading p { margin: 5px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.overview-chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.overview-chart-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 14px; }
.chart-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 13px; }
.chart-card-head h3 { margin: 0; font-size: 14px; }
.chart-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.chart-card-head > span { border-radius: 999px; background: var(--teal-soft); color: var(--teal); padding: 4px 7px; font-size: 9px; font-weight: 900; }
.donut-layout { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; align-items: center; }
.donut-chart { display: grid; width: 124px; aspect-ratio: 1; place-items: center; border-radius: 50%; background: var(--chart-fill); box-shadow: inset 0 0 0 1px rgba(62, 105, 91, .05); }
.donut-chart::before { grid-area: 1 / 1; width: 70%; aspect-ratio: 1; border: 1px solid #edf3f1; border-radius: 50%; background: #fff; box-shadow: 0 3px 14px rgba(48, 86, 75, .08); content: ""; }
.donut-chart > div { z-index: 1; grid-area: 1 / 1; text-align: center; }
.donut-chart strong, .donut-chart span { display: block; }
.donut-chart strong { color: var(--ink); font-size: 23px; }
.donut-chart span { margin-top: 2px; color: var(--muted); font-size: 10px; }
.chart-legend { display: grid; gap: 3px; }
.chart-legend button { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 8px; align-items: center; width: 100%; border-radius: 6px; background: transparent; color: var(--ink); padding: 7px 8px; text-align: left; }
.chart-legend button:hover { background: #f4faf7; }
.chart-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--legend-color); }
.chart-legend span { color: var(--muted); font-size: 11px; }
.chart-legend strong { font-size: 12px; }
.chart-bars { display: grid; gap: 7px; }
.chart-bars button { display: grid; gap: 5px; width: 100%; border-radius: 6px; background: transparent; padding: 5px 6px 7px; text-align: left; }
.chart-bars button:hover { background: #f4faf7; }
.chart-bar-label { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.chart-bar-label b { color: var(--ink); font-size: 11px; }
.chart-bar-label em { color: var(--muted); font-size: 11px; font-style: normal; font-weight: 800; }
.chart-bar-track { display: block; height: 8px; overflow: hidden; border-radius: 999px; background: #edf3f1; }
.chart-bar-track i { display: block; width: var(--bar-width); height: 100%; border-radius: inherit; background: var(--bar-color); box-shadow: 0 2px 6px rgba(56, 112, 95, .16); }

.business-analysis-metrics { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.business-analysis-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 10px; }
.business-analysis-bottom { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 10px; }
.business-trend-panel { min-width: 0; padding: 0 14px 12px; }
.business-trend-panel .panel-head { margin: 0 -14px 8px; }
.business-trend-panel .trend-grid line { stroke: #dce9e5; }
.business-trend-panel .tech-trend text, .business-trend-panel .tech-trend > div { color: var(--muted); fill: var(--muted); }
.business-signal-panel { min-width: 0; }
.business-signal-panel > div:last-child { display: grid; padding: 5px 12px 12px; }
.analysis-signal { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); background: transparent; padding: 11px 8px; text-align: left; }
.analysis-signal:last-child { border-bottom: 0; }
.analysis-signal:hover { background: #f5faf8; }
.analysis-signal span, .analysis-signal strong, .analysis-signal em { display: block; }
.analysis-signal strong { font-size: 12px; }
.analysis-signal em { margin-top: 3px; color: var(--muted); font-size: 9px; font-style: normal; line-height: 1.45; }
.analysis-signal b { border-radius: 999px; background: #edf5f2; color: var(--teal); padding: 5px 8px; font-size: 10px; white-space: nowrap; }
.analysis-signal.warn b { background: #fff5df; color: #94651f; }
.analysis-signal.risk b { background: #fff0ee; color: #a94e48; }

.cockpit-hero { display: grid; grid-template-columns: minmax(0, 1fr) 150px minmax(240px, auto); gap: 18px; align-items: center; margin-bottom: 10px; border: 1px solid #9fcbd5; border-radius: var(--radius); background: linear-gradient(110deg, #064f83 0%, #078899 55%, #08a875 100%); box-shadow: 0 10px 26px rgba(6, 79, 131, .18); padding: 20px 22px; color: #fff; }
.cockpit-hero > div:first-child > span { color: #bce5d8; font-size: 10px; font-weight: 900; }
.cockpit-hero h1 { margin: 4px 0 5px; color: #fff; font-size: 24px; }
.cockpit-hero p { margin: 0; color: rgba(255,255,255,.72); font-size: 11px; line-height: 1.6; }
.cockpit-health { display: grid; justify-items: center; border-right: 1px solid rgba(255,255,255,.17); border-left: 1px solid rgba(255,255,255,.17); padding: 1px 18px; text-align: center; }
.cockpit-health span { color: #cde9e0; font-size: 10px; }
.cockpit-health strong { font-size: 34px; line-height: 1.1; }
.cockpit-health em { color: #fff3d9; font-size: 10px; font-style: normal; font-weight: 800; }
.cockpit-hero-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.cockpit-hero-actions > span { width: 100%; color: rgba(255,255,255,.68); font-size: 9px; text-align: right; }
.cockpit-hero-actions .ghost { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); color: #fff; }
.cockpit-hero-actions .primary { background: #fff; color: #175448; }

.cockpit-metrics { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
.cockpit-metric { position: relative; display: grid; min-width: 0; min-height: 106px; align-content: start; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 13px 13px 11px; text-align: left; }
.cockpit-metric::before { position: absolute; top: 0; left: 0; width: 100%; height: 3px; background: var(--metric-tone); content: ""; }
.cockpit-metric span { color: var(--muted); font-size: 10px; }
.cockpit-metric strong { overflow: hidden; margin: 5px 0 3px; color: var(--ink); font-size: 20px; text-overflow: ellipsis; white-space: nowrap; }
.cockpit-metric em { overflow: hidden; color: var(--muted); font-size: 9px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.cockpit-metric b { align-self: end; margin-top: 9px; color: var(--metric-tone); font-size: 9px; }
.cockpit-metric:hover { border-color: var(--metric-tone); transform: translateY(-1px); }
.cockpit-metric.tone-green { --metric-tone: #3f987f; }
.cockpit-metric.tone-blue { --metric-tone: #5d91c7; }
.cockpit-metric.tone-coral { --metric-tone: #d1756d; }
.cockpit-metric.tone-violet { --metric-tone: #8178b6; }
.cockpit-metric.tone-amber { --metric-tone: #c9954e; }

.cockpit-alert-strip { display: flex; gap: 7px; align-items: stretch; overflow-x: auto; margin-bottom: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 8px; }
.cockpit-alert-strip > div { display: grid; min-width: 170px; align-content: center; padding: 3px 9px; }
.cockpit-alert-strip > div strong { font-size: 12px; }
.cockpit-alert-strip > div span { margin-top: 2px; color: var(--muted); font-size: 9px; }
.cockpit-alert-strip > button { display: grid; min-width: 145px; align-content: center; border: 1px solid var(--line); border-radius: 6px; background: #f8fbfa; padding: 8px 10px; text-align: left; }
.cockpit-alert-strip > button span { color: var(--muted); font-size: 9px; }
.cockpit-alert-strip > button strong { margin-top: 3px; font-size: 11px; }
.cockpit-alert-strip > button.risk { border-color: #f0c5c0; background: #fff7f6; color: #aa4d48; }
.cockpit-alert-strip > button.warn { border-color: #ecd5aa; background: #fffbf2; color: #9a6b24; }
.cockpit-alert-strip > button.good { border-color: #c4e3d5; background: #f3fbf7; color: #34775e; }

.cockpit-main-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, .9fr) minmax(300px, 1.15fr); gap: 10px; margin-bottom: 12px; }
.cockpit-main-grid > .overview-chart-card, .cockpit-finance-grid > .overview-chart-card { height: 100%; }
.cockpit-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 14px; }
.cockpit-card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.cockpit-card-head h2 { margin: 0; font-size: 14px; }
.cockpit-card-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.cockpit-card-head > span { border-radius: 999px; background: var(--teal-soft); color: var(--teal); padding: 4px 7px; font-size: 9px; font-weight: 900; }
.cockpit-customer-ranking > div:last-child { display: grid; }
.cockpit-customer-ranking > div:last-child > button { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; border-bottom: 1px solid var(--line); background: transparent; padding: 9px 6px; text-align: left; }
.cockpit-customer-ranking > div:last-child > button:last-child { border-bottom: 0; }
.cockpit-customer-ranking > div:last-child > button:hover { background: #f4faf7; }
.cockpit-customer-ranking button span strong, .cockpit-customer-ranking button span em { display: block; }
.cockpit-customer-ranking button span strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.cockpit-customer-ranking button span em { margin-top: 3px; color: var(--muted); font-size: 9px; font-style: normal; }
.cockpit-customer-ranking button > b { color: var(--teal); font-size: 11px; }
.cockpit-empty { display: grid; min-height: 150px; place-items: center; color: var(--muted); font-size: 11px; }

.cockpit-section-head { display: flex; justify-content: space-between; gap: 14px; align-items: end; margin: 17px 2px 9px; }
.cockpit-section-head h2 { margin: 0; font-size: 16px; }
.cockpit-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.cockpit-finance-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(320px, 1.1fr) minmax(0, .95fr); gap: 10px; }
.cockpit-progress-card > div:last-child { display: grid; gap: 7px; }
.cockpit-progress-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; border-radius: 6px; background: transparent; padding: 5px 6px 7px; text-align: left; }
.cockpit-progress-row:hover { background: #f4faf7; }
.cockpit-progress-row span strong, .cockpit-progress-row span em { display: block; }
.cockpit-progress-row span strong { font-size: 11px; }
.cockpit-progress-row span em { margin-top: 2px; color: var(--muted); font-size: 9px; font-style: normal; }
.cockpit-progress-row > b { align-self: center; color: var(--ink); font-size: 11px; }
.cockpit-progress-row > i { grid-column: 1 / -1; display: block; height: 7px; overflow: hidden; border-radius: 999px; background: #edf3f1; }
.cockpit-progress-row > i > u { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--progress-color); text-decoration: none; }

.cockpit-employee-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 10px; }
.employee-funnel { display: grid; grid-template-columns: repeat(7, auto); gap: 8px; align-items: center; justify-content: space-between; min-height: 120px; }
.employee-funnel button { display: grid; min-width: 86px; place-items: center; border-radius: 7px; background: #f4faf7; padding: 15px 10px; }
.employee-funnel button:hover { background: var(--teal-soft); }
.employee-funnel strong { color: var(--teal); font-size: 23px; }
.employee-funnel span { margin-top: 4px; color: var(--muted); font-size: 9px; }
.employee-funnel i { width: 20px; height: 1px; background: #b9d2c9; }
.ecosystem-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ecosystem-summary button { display: grid; gap: 5px; border: 1px solid var(--line); border-radius: 6px; background: #f9fbfa; padding: 12px; text-align: left; }
.ecosystem-summary button:hover { border-color: var(--teal); background: var(--teal-soft); }
.ecosystem-summary span { color: var(--muted); font-size: 9px; }
.ecosystem-summary strong { color: var(--teal); font-size: 21px; }

.tech-cockpit {
  position: relative;
  overflow: hidden;
  border: 1px solid #1f5148;
  border-radius: 8px;
  background: #071b18;
  box-shadow: 0 16px 34px rgba(10, 42, 36, .2);
  color: #dff8f1;
  padding: 14px;
}
.tech-cockpit::before, .tech-cockpit::after { position: absolute; z-index: 0; pointer-events: none; content: ""; }
.tech-cockpit::before { inset: 0; opacity: .18; background-size: 28px 28px; background-image: linear-gradient(rgba(92, 202, 173, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(92, 202, 173, .15) 1px, transparent 1px); }
.tech-cockpit::after { top: 0; right: 8%; left: 8%; height: 1px; background: #66dfbe; box-shadow: 0 0 18px #66dfbe; }
.tech-cockpit > * { position: relative; z-index: 1; }
.tech-cockpit button { color: inherit; }

.tech-commandbar { display: grid; grid-template-columns: minmax(0, 1fr) 210px minmax(220px, auto); gap: 18px; align-items: center; min-height: 126px; border: 1px solid #285d54; background: #0d2824; padding: 18px 22px; }
.tech-title > span { display: flex; gap: 8px; align-items: center; color: #62dcb9; font-size: 9px; font-weight: 900; letter-spacing: .12em; }
.tech-title > span i { width: 7px; height: 7px; border-radius: 50%; background: #6ef0c7; box-shadow: 0 0 0 5px rgba(110, 240, 199, .1), 0 0 14px #6ef0c7; animation: tech-pulse 2s ease-in-out infinite; }
.tech-title h1 { margin: 7px 0 4px; color: #fff; font-size: 25px; }
.tech-title p { margin: 0; color: #83aaa1; font-size: 11px; }
.tech-health { position: relative; display: grid; width: 126px; height: 126px; place-items: center; justify-self: center; }
.tech-health svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tech-health circle { fill: none; stroke: #1e4841; stroke-width: 8; }
.tech-health .health-value { stroke: #5de1bd; stroke-linecap: round; stroke-dasharray: var(--health) 100; filter: drop-shadow(0 0 5px rgba(93,225,189,.55)); }
.tech-health > div { position: relative; display: grid; place-items: center; text-align: center; }
.tech-health strong { color: #fff; font-size: 28px; line-height: 1; }
.tech-health span { margin-top: 3px; color: #8db8ad; font-size: 9px; }
.tech-health em { margin-top: 3px; color: #f2c875; font-size: 8px; font-style: normal; }
.tech-command-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; justify-self: end; }
.tech-command-actions > span { grid-column: 1 / -1; color: #77a49a; font-size: 9px; text-align: right; }
.tech-command-actions button, .tech-panel header button { border: 1px solid #37776c; border-radius: 4px; background: #12352f; color: #aee9d9; padding: 8px 10px; font-size: 9px; font-weight: 850; }
.tech-command-actions button:hover, .tech-panel header button:hover { border-color: #65d9b9; background: #19483f; color: #fff; }

.tech-ticker { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-right: 1px solid #214d46; border-bottom: 1px solid #214d46; border-left: 1px solid #214d46; background: #0a211e; }
.tech-ticker button { position: relative; display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; border-right: 1px solid #214d46; background: transparent; padding: 12px 14px; text-align: left; }
.tech-ticker button:last-child { border-right: 0; }
.tech-ticker button::after { position: absolute; bottom: -1px; left: 20%; width: 60%; height: 1px; background: #53d6b3; opacity: 0; box-shadow: 0 0 8px #53d6b3; content: ""; }
.tech-ticker button:hover::after { opacity: 1; }
.tech-ticker span { color: #7da69c; font-size: 9px; }
.tech-ticker strong { grid-row: span 2; align-self: center; overflow: hidden; color: #f2fffb; font-size: 18px; text-overflow: ellipsis; white-space: nowrap; }
.tech-ticker em { color: #5ecfb0; font-size: 8px; font-style: normal; }

.tech-dashboard-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.tech-panel { position: relative; min-width: 0; overflow: hidden; border: 1px solid #224f47; background: #0c2421; box-shadow: inset 0 0 24px rgba(41, 114, 96, .06); padding: 14px; }
.tech-panel::before, .tech-panel::after { position: absolute; width: 13px; height: 13px; pointer-events: none; content: ""; }
.tech-panel::before { top: -1px; left: -1px; border-top: 2px solid #5cdab8; border-left: 2px solid #5cdab8; }
.tech-panel::after { right: -1px; bottom: -1px; border-right: 2px solid #5cdab8; border-bottom: 2px solid #5cdab8; }
.tech-panel > header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.tech-panel > header span { display: block; margin-bottom: 4px; color: #4cc8a7; font-size: 8px; font-weight: 900; letter-spacing: .12em; }
.tech-panel > header h2 { margin: 0; color: #edfdf8; font-size: 14px; }
.tech-panel > header > b { border: 1px solid #2d675d; border-radius: 999px; background: #12332e; color: #78ddc2; padding: 4px 8px; font-size: 8px; }

.tech-flow-panel { grid-column: span 8; min-height: 286px; }
.tech-radar-panel { grid-column: span 4; min-height: 286px; }
.tech-trend-panel { grid-column: span 7; min-height: 272px; }
.tech-project-panel { grid-column: span 5; min-height: 272px; }
.tech-finance-panel, .tech-risk-panel, .tech-employee-panel { grid-column: span 4; min-height: 288px; }
.tech-ecosystem-panel { grid-column: span 7; min-height: 318px; }
.tech-customer-panel { grid-column: span 5; min-height: 318px; }

.tech-flow-map { display: grid; grid-template-columns: repeat(13, auto); gap: 2px; align-items: center; justify-content: space-between; min-height: 170px; overflow-x: auto; padding: 12px 2px; }
.tech-flow-map > button { position: relative; display: grid; min-width: 52px; min-height: 82px; place-items: center; border: 1px solid #2c6a5e; border-radius: 3px; background: #102f2a; padding: 8px 5px; }
.tech-flow-map > button:hover { border-color: #63e0be; background: #153d35; box-shadow: 0 0 16px rgba(99,224,190,.16); }
.tech-flow-map button i { position: absolute; top: 5px; left: 6px; color: #467f73; font-size: 7px; font-style: normal; }
.tech-flow-map button strong { color: #f6fffc; font-size: 20px; }
.tech-flow-map button span { color: #76afa1; font-size: 9px; }
.tech-flow-map > em { position: relative; display: block; width: 20px; height: 1px; background: #2d6d61; }
.tech-flow-map > em::after { position: absolute; top: -3px; right: -1px; width: 6px; height: 6px; border-top: 1px solid #5cdab8; border-right: 1px solid #5cdab8; transform: rotate(45deg); content: ""; }
.tech-flow-map > em u { position: absolute; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: #6be9c5; box-shadow: 0 0 8px #6be9c5; animation: data-travel 2.4s linear infinite; }
.tech-flow-status { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid #1e4841; padding-top: 11px; color: #729a91; font-size: 9px; }
.tech-flow-status span:first-child { display: flex; gap: 7px; align-items: center; }
.tech-flow-status i { width: 6px; height: 6px; border-radius: 50%; background: #60dfbc; box-shadow: 0 0 8px #60dfbc; }
.tech-source-ports { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.tech-source-ports button { border: 1px solid #285b52; border-radius: 3px; background: #102e29; color: #75aa9d; padding: 4px 6px; font-size: 8px; }
.tech-source-ports button:hover { border-color: #55d4b3; color: #dff8f1; }

.tech-radar { height: 192px; }
.tech-radar svg { display: block; width: 100%; height: 100%; overflow: visible; }
.radar-grid polygon, .radar-grid line { fill: none; stroke: #2b5b53; stroke-width: 1; }
.radar-value { fill: rgba(87, 216, 181, .18); stroke: #5be0bd; stroke-width: 2; filter: drop-shadow(0 0 5px rgba(91,224,189,.28)); }
.tech-radar text { fill: #8bb4aa; font-size: 9px; }
.radar-values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; border-top: 1px solid #1f4942; padding-top: 8px; }
.radar-values span { display: grid; place-items: center; }
.radar-values i { color: #6f9d92; font-size: 8px; font-style: normal; }
.radar-values strong { margin-top: 2px; color: #dff8f1; font-size: 9px; }

.tech-trend { display: grid; height: 210px; grid-template-rows: 1fr auto; }
.tech-trend svg { width: 100%; height: 172px; }
.trend-grid line { stroke: #234b44; stroke-width: 1; stroke-dasharray: 4 5; }
.tech-trend text { fill: #729a91; font-size: 9px; }
.tech-trend > div { display: flex; gap: 16px; justify-content: flex-end; color: #83aaa1; font-size: 9px; }
.tech-trend > div span { display: flex; gap: 6px; align-items: center; }
.tech-trend > div i { width: 12px; height: 2px; background: var(--series-color); box-shadow: 0 0 6px var(--series-color); }

.project-visual { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 18px; align-items: center; min-height: 194px; }
.tech-donut { position: relative; display: grid; width: 166px; height: 166px; place-items: center; }
.tech-donut svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tech-donut > div { display: grid; place-items: center; }
.tech-donut strong { color: #fff; font-size: 27px; }
.tech-donut span { margin-top: 2px; color: #79a89d; font-size: 9px; }
.tech-legend { display: grid; gap: 5px; }
.tech-legend button { display: grid; grid-template-columns: 7px minmax(0,1fr) auto; gap: 8px; align-items: center; border-bottom: 1px solid #1d433d; background: transparent; padding: 7px 3px; text-align: left; }
.tech-legend button i { width: 7px; height: 7px; border-radius: 50%; background: var(--legend); box-shadow: 0 0 5px var(--legend); }
.tech-legend button span { color: #83aaa1; font-size: 9px; }
.tech-legend button strong { color: #e9faf5; font-size: 10px; }

.tech-waterfall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; height: 175px; align-items: end; border-bottom: 1px solid #2b5b52; padding: 8px 4px 0; }
.tech-waterfall button { display: grid; height: 100%; grid-template-rows: auto 1fr auto; place-items: center; background: transparent; }
.tech-waterfall button > span { color: #a1c9bf; font-size: 8px; }
.tech-waterfall button > i { position: relative; display: block; width: 72%; height: 118px; margin: 5px 0; background: #102d28; }
.tech-waterfall button > i > u { position: absolute; right: 0; bottom: 0; left: 0; height: var(--column-height); background: var(--column-color); box-shadow: 0 0 12px color-mix(in srgb, var(--column-color) 55%, transparent); text-decoration: none; }
.tech-waterfall button > strong { color: #789f96; font-size: 8px; }
.finance-rates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 11px; }
.finance-rates span { display: grid; gap: 3px; border-left: 2px solid #35766a; padding-left: 7px; color: #759d94; font-size: 8px; }
.finance-rates strong { color: #dff8f1; font-size: 10px; }

.risk-orbit { position: relative; min-height: 215px; }
.risk-orbit::before { position: absolute; top: 16px; left: 50%; width: 172px; height: 172px; border: 1px dashed #2b6258; border-radius: 50%; transform: translateX(-50%); content: ""; }
.risk-orbit > div { position: absolute; top: 59px; left: 50%; display: grid; width: 86px; height: 86px; place-items: center; border: 1px solid #397d6f; border-radius: 50%; background: #11332d; transform: translateX(-50%); }
.risk-orbit > div i { position: absolute; inset: 8px; border: 1px solid #25574e; border-radius: 50%; }
.risk-orbit > div strong { z-index: 1; color: #fff; font-size: 25px; }
.risk-orbit > div span { z-index: 1; margin-top: -20px; color: #78a49a; font-size: 8px; }
.risk-orbit > button { position: absolute; display: grid; min-width: 94px; gap: 2px; border: 1px solid #315f57; border-radius: 3px; background: #0e2a26; padding: 7px 8px 7px 15px; text-align: left; }
.risk-orbit > button:nth-of-type(1) { top: 4px; left: 0; }
.risk-orbit > button:nth-of-type(2) { top: 4px; right: 0; }
.risk-orbit > button:nth-of-type(3) { bottom: 2px; left: 0; }
.risk-orbit > button:nth-of-type(4) { right: 0; bottom: 2px; }
.risk-orbit > button:nth-of-type(n+5) { right: 50%; bottom: -2px; transform: translateX(50%); }
.risk-orbit > button > i { position: absolute; top: 12px; left: 6px; width: 5px; height: 5px; border-radius: 50%; background: #f3b966; box-shadow: 0 0 7px #f3b966; }
.risk-orbit > button.risk > i { background: #ef7f79; box-shadow: 0 0 7px #ef7f79; }
.risk-orbit > button.good > i { background: #64deb9; box-shadow: 0 0 7px #64deb9; }
.risk-orbit > button span { color: #779e95; font-size: 8px; }
.risk-orbit > button strong { color: #f2faf8; font-size: 9px; }

.tech-employee-funnel { display: grid; gap: 7px; min-height: 218px; align-content: center; }
.tech-employee-funnel button { display: grid; width: var(--funnel-width); grid-template-columns: 62px minmax(0, 1fr) 30px; gap: 8px; align-items: center; justify-self: center; background: transparent; }
.tech-employee-funnel button span { color: #7da69c; font-size: 8px; text-align: right; }
.tech-employee-funnel button i { display: block; height: 18px; overflow: hidden; clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); background: #153a33; }
.tech-employee-funnel button u { display: block; width: var(--funnel-fill); height: 100%; background: #4ccaa8; box-shadow: 0 0 10px rgba(76,202,168,.3); text-decoration: none; }
.tech-employee-funnel button strong { color: #effcf8; font-size: 11px; }

.ecosystem-orbit { position: relative; min-height: 162px; }
.ecosystem-orbit::before, .ecosystem-orbit::after { position: absolute; top: 50%; left: 50%; border: 1px solid #285a51; border-radius: 50%; transform: translate(-50%,-50%); content: ""; }
.ecosystem-orbit::before { width: 270px; height: 118px; }
.ecosystem-orbit::after { width: 370px; height: 150px; border-style: dashed; }
.ecosystem-core, .ecosystem-orbit > button { position: absolute; display: grid; place-items: center; border: 1px solid #397b6e; border-radius: 50%; background: #11332d; text-align: center; }
.ecosystem-core { top: 50%; left: 50%; width: 92px; height: 92px; transform: translate(-50%,-50%); box-shadow: 0 0 20px rgba(82,213,178,.12); }
.ecosystem-orbit > button { width: 70px; height: 70px; }
.ecosystem-orbit .orbit-a { top: 4px; left: 9%; }
.ecosystem-orbit .orbit-b { top: 4px; right: 9%; }
.ecosystem-orbit .orbit-c { right: 4%; bottom: 2px; }
.ecosystem-orbit strong { color: #fff; font-size: 17px; }
.ecosystem-orbit span { color: #7ea79d; font-size: 8px; }
.service-heatmap { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; border-top: 1px solid #214a43; padding-top: 10px; }
.service-heatmap button { display: grid; min-width: 0; min-height: 56px; align-content: center; border: 1px solid #214d45; background: #0e2a26; padding: 6px; text-align: left; }
.service-heatmap button.active { border-color: #49c5a5; background: #12382f; box-shadow: inset 0 -2px #4fd2ae; }
.service-heatmap i { color: #447b70; font-size: 7px; font-style: normal; }
.service-heatmap span { overflow: hidden; margin: 3px 0; color: #84aca2; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.service-heatmap strong { color: #e9faf5; font-size: 10px; }

.tech-customer-bars { display: grid; gap: 7px; }
.tech-customer-bars > button { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 9px; align-items: center; background: transparent; padding: 4px; text-align: left; }
.tech-customer-bars > button > i { color: #4fc9a8; font-size: 8px; font-style: normal; }
.tech-customer-bars > button span { display: grid; min-width: 0; grid-template-columns: minmax(0,1fr) auto; gap: 4px 8px; }
.tech-customer-bars > button span strong { overflow: hidden; color: #dff8f1; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.tech-customer-bars > button span em { color: #739c93; font-size: 8px; font-style: normal; }
.tech-customer-bars > button span u { grid-column: 1 / -1; display: block; width: var(--customer-width); height: 4px; background: #4fc9a8; box-shadow: 0 0 6px rgba(79,201,168,.45); text-decoration: none; }
.tech-customer-bars > button > b { color: #9ed5c7; font-size: 9px; }
.tech-empty { display: grid; min-height: 210px; place-items: center; align-content: center; gap: 14px; color: #729a91; font-size: 9px; }
.tech-empty i { width: 70px; height: 70px; border: 1px dashed #32675d; border-radius: 50%; box-shadow: inset 0 0 18px rgba(76,202,168,.06); }

@keyframes tech-pulse { 50% { opacity: .45; transform: scale(.75); } }
@keyframes data-travel { from { left: 0; } to { left: calc(100% - 5px); } }
@keyframes data-travel-mobile { from { top: 0; } to { top: calc(100% - 5px); } }

/* Decision cockpit: one analysis canvas instead of a grid of metric cards. */
.cockpit-focus .app-body { display: block; padding: 0; }
.cockpit-focus .main { overflow: hidden; border: 0; border-radius: 0; background: #071a18; padding: 0; }
.cockpit-focus .topbar { border-color: #cfe0da; box-shadow: 0 3px 18px rgba(5, 26, 23, .12); }

.decision-cockpit {
  --dc-bg: #071a18;
  --dc-bg-raised: #0b2622;
  --dc-line: rgba(125, 181, 166, .18);
  --dc-text: #ecfaf6;
  --dc-muted: #789c93;
  --dc-teal: #45e0bd;
  --dc-blue: #67a7ff;
  --dc-amber: #f2bc61;
  --dc-coral: #f07c73;
  position: relative;
  min-height: calc(100vh - 68px);
  overflow: hidden;
  background:
    linear-gradient(rgba(75, 159, 139, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 159, 139, .045) 1px, transparent 1px),
    radial-gradient(circle at 51% 24%, rgba(35, 107, 93, .16), transparent 38%),
    var(--dc-bg);
  background-size: 32px 32px, 32px 32px, auto, auto;
  color: var(--dc-text);
}
.decision-cockpit::before { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 0 40%, rgba(69,224,189,.025) 40% 41%, transparent 41% 100%); content: ""; }
.decision-cockpit button { color: inherit; }
.dc-commandbar { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(340px, 1fr) auto minmax(240px, 1fr); gap: 24px; align-items: center; min-height: 94px; border-bottom: 1px solid var(--dc-line); padding: 13px 24px; }
.dc-title span { display: flex; gap: 8px; align-items: center; color: var(--dc-muted); font-size: 9px; font-weight: 800; }
.dc-title span i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--dc-teal); box-shadow: 0 0 11px var(--dc-teal); animation: tech-pulse 2.2s ease-in-out infinite; }
.dc-title h1 { margin: 6px 0 3px; color: #fff; font-size: 22px; line-height: 1.2; white-space: nowrap; }
.dc-title p { margin: 0; color: var(--dc-muted); font-size: 11px; }
.dc-scenes { display: flex; align-self: stretch; align-items: center; }
.dc-scenes button { position: relative; height: 100%; background: transparent; color: #789c93; padding: 0 13px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.dc-scenes button::after { position: absolute; right: 13px; bottom: -14px; left: 13px; height: 2px; background: var(--dc-teal); opacity: 0; box-shadow: 0 0 9px rgba(69,224,189,.7); content: ""; }
.dc-scenes button:hover, .dc-scenes button.active { color: #fff; }
.dc-scenes button.active::after { opacity: 1; }
.dc-command-actions { display: flex; gap: 7px; align-items: center; justify-content: flex-end; }
.dc-command-actions button { border: 1px solid #285d54; border-radius: 4px; background: transparent; color: #a5cbc1; padding: 8px 10px; font-size: 10px; font-weight: 800; }
.dc-command-actions button:hover { border-color: var(--dc-teal); color: #fff; }
.dc-command-actions .return-system { background: #123731; color: #dff8f1; }

.dc-canvas { position: relative; z-index: 1; display: grid; grid-template-columns: 238px minmax(600px, 1fr) 304px; grid-template-areas: "insights river forecast" "health health actions"; }
.dc-insights, .dc-river-zone, .dc-forecast, .dc-health-zone, .dc-action-desk { min-width: 0; border-color: var(--dc-line); }
.dc-insights { grid-area: insights; border-right: 1px solid var(--dc-line); border-bottom: 1px solid var(--dc-line); padding: 24px 20px; }
.dc-river-zone { grid-area: river; border-right: 1px solid var(--dc-line); border-bottom: 1px solid var(--dc-line); padding: 22px 24px 17px; }
.dc-forecast { grid-area: forecast; border-bottom: 1px solid var(--dc-line); padding: 24px 20px; }
.dc-health-zone { grid-area: health; border-right: 1px solid var(--dc-line); padding: 22px 24px 16px; }
.dc-action-desk { grid-area: actions; padding: 22px 20px 16px; }
.dc-insights > header > span, .dc-forecast > header > span, .dc-action-desk > header > span, .dc-section-title span { color: var(--dc-teal); font-size: 9px; font-weight: 900; letter-spacing: 0; }
.dc-insights h2, .dc-forecast h2, .dc-action-desk h2, .dc-section-title h2 { margin: 5px 0 0; color: var(--dc-text); font-size: 17px; }
.dc-insights header p, .dc-forecast header p, .dc-action-desk header p { margin: 6px 0 0; color: var(--dc-muted); font-size: 10px; line-height: 1.6; }
.dc-section-title { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.dc-section-title p { margin: 3px 0 0; color: var(--dc-muted); font-size: 10px; }

.dc-insight-list { display: grid; margin-top: 18px; }
.dc-insight-list article, .dc-insight-list article.good { display: grid; grid-template-columns: 23px minmax(0,1fr); gap: 10px; border-top: 1px solid var(--dc-line); background: transparent; color: inherit; padding: 15px 0; }
.dc-insight-list article > i { color: #527a70; font-size: 8px; font-style: normal; }
.dc-insight-list strong { display: block; color: #e8f8f3; font-size: 12px; line-height: 1.45; }
.dc-insight-list p { margin: 5px 0 0; color: var(--dc-muted); font-size: 10px; line-height: 1.6; }
.dc-insight-list article.critical strong { color: #ffb5ae; }
.dc-insight-list article.warning strong { color: #f4d08d; }
.dc-insight-list article.good strong { color: #bfeee1; }
.dc-health-summary { display: grid; width: 100%; gap: 7px; border-top: 1px solid var(--dc-line); background: transparent; padding: 15px 0 0; text-align: left; }
.dc-health-summary > span, .dc-health-summary > em { color: var(--dc-muted); font-size: 8px; font-style: normal; }
.dc-health-summary > strong { display: grid; grid-template-columns: repeat(4, 7px auto); gap: 5px; align-items: center; color: #fff; font-size: 13px; }
.dc-health-summary strong i { width: 6px; height: 6px; border-radius: 50%; }
.dc-health-summary i.normal { background: var(--dc-teal); }.dc-health-summary i.attention { background: var(--dc-blue); }.dc-health-summary i.warning { background: var(--dc-amber); }.dc-health-summary i.blocked { background: var(--dc-coral); }

.dc-business-river { position: relative; height: 255px; margin-top: 9px; }
.dc-business-river > svg { position: absolute; inset: 4px 0 24px; width: 100%; height: calc(100% - 28px); overflow: visible; }
.dc-river-base { fill: none; stroke: #133b35; stroke-linecap: round; opacity: .9; }
.dc-river-segment { fill: none; stroke: var(--dc-teal); stroke-linecap: round; opacity: .58; filter: url(#riverGlow); }
.dc-river-segment.warning { stroke: var(--dc-amber); opacity: .72; }
.dc-river-segment.blocked { stroke: var(--dc-coral); opacity: .76; }
.dc-river-trace { fill: none; stroke: rgba(195,255,240,.33); stroke-width: 1; stroke-dasharray: 4 8; }
.dc-river-pulse { fill: #fff; filter: drop-shadow(0 0 5px var(--dc-teal)); }
.dc-flow-node { position: absolute; display: grid; min-width: 52px; justify-items: center; background: transparent; transform: translate(-50%,-50%); text-align: center; }
.dc-flow-node:nth-of-type(1) { top: 58%; left: 6%; }
.dc-flow-node:nth-of-type(2) { top: 44%; left: 15%; }
.dc-flow-node:nth-of-type(3) { top: 49%; left: 25%; }
.dc-flow-node:nth-of-type(4) { top: 36%; left: 36%; }
.dc-flow-node:nth-of-type(5) { top: 54%; left: 48%; }
.dc-flow-node:nth-of-type(6) { top: 45%; left: 59%; }
.dc-flow-node:nth-of-type(7) { top: 58%; left: 69%; }
.dc-flow-node:nth-of-type(8) { top: 40%; left: 79%; }
.dc-flow-node:nth-of-type(9) { top: 52%; left: 89%; }
.dc-flow-node:nth-of-type(10) { top: 42%; left: 95%; }
.dc-flow-node > i { width: 9px; height: 9px; border: 2px solid #8df1d5; border-radius: 50%; background: #0b2622; box-shadow: 0 0 0 5px rgba(69,224,189,.08), 0 0 12px rgba(69,224,189,.55); }
.dc-flow-node strong { margin-top: 7px; color: #fff; font-size: 14px; line-height: 1; }
.dc-flow-node span { margin-top: 4px; color: #8eb3aa; font-size: 10px; }
.dc-flow-node:hover strong, .dc-flow-node:hover span { color: var(--dc-teal); }
.dc-flow-node.warning > i { border-color: var(--dc-amber); box-shadow: 0 0 0 5px rgba(242,188,97,.08), 0 0 12px rgba(242,188,97,.5); }
.dc-flow-node.blocked > i { border-color: var(--dc-coral); box-shadow: 0 0 0 5px rgba(240,124,115,.1), 0 0 12px rgba(240,124,115,.62); animation: dc-risk-pulse 1.7s ease-in-out infinite; }
.dc-flow-legend { position: absolute; right: 0; bottom: 0; display: flex; gap: 12px; color: var(--dc-muted); font-size: 8px; }
.dc-flow-legend span { display: flex; gap: 5px; align-items: center; }.dc-flow-legend i { width: 13px; height: 2px; }.dc-flow-legend i.normal { background: var(--dc-teal); }.dc-flow-legend i.warning { background: var(--dc-amber); }.dc-flow-legend i.blocked { background: var(--dc-coral); }
.dc-river-foot { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); border-top: 1px solid var(--dc-line); }
.dc-river-foot button { display: grid; gap: 4px; border-right: 1px solid var(--dc-line); background: transparent; padding: 11px 10px 2px; text-align: left; }
.dc-river-foot button:last-child { border-right: 0; }.dc-river-foot span { color: var(--dc-muted); font-size: 9px; }.dc-river-foot strong { overflow: hidden; color: #eaf9f5; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.dc-forecast-list { display: grid; margin-top: 16px; }
.dc-forecast-list button { display: grid; gap: 7px; border-top: 1px solid var(--dc-line); background: transparent; padding: 14px 0; text-align: left; }
.dc-forecast-list button > div { display: flex; justify-content: space-between; gap: 8px; }.dc-forecast-list strong { color: #e8f8f3; font-size: 11px; }.dc-forecast-list em, .dc-forecast-list small { color: var(--dc-muted); font-size: 9px; font-style: normal; }
.dc-bullet { display: block; height: 7px; }
.dc-bullet svg { display: block; width: 100%; height: 7px; overflow: visible; }
.dc-bullet .bullet-track { fill: #15352f; }
.dc-bullet .bullet-actual { fill: var(--dc-teal); filter: drop-shadow(0 0 3px rgba(69,224,189,.45)); }
.dc-bullet .bullet-forecast { fill: rgba(103,167,255,.26); stroke: var(--dc-blue); stroke-width: .5; }
.dc-bullet line { stroke: #dcece7; stroke-width: 1; }
.dc-forecast-gap { display: grid; gap: 4px; border-top: 1px solid var(--dc-line); padding-top: 15px; }.dc-forecast-gap span, .dc-forecast-gap em { color: var(--dc-muted); font-size: 8px; font-style: normal; }.dc-forecast-gap strong { color: #ffd092; font-size: 20px; }.dc-forecast-link { margin-top: 13px; background: transparent; color: var(--dc-teal) !important; font-size: 9px; font-weight: 800; }

.dc-health-matrix { margin-top: 8px; }
.dc-health-matrix > svg { display: block; width: 100%; height: 232px; overflow: visible; }
.matrix-zones rect { stroke: none; }.zone-stable { fill: rgba(69,224,189,.025); }.zone-watch { fill: rgba(242,188,97,.035); }.zone-risk { fill: rgba(240,124,115,.05); }
.matrix-grid line { stroke: #173b35; stroke-width: 1; stroke-dasharray: 3 6; }.matrix-caption { fill: #527d72; font-size: 9px; }.matrix-caption.risk { fill: #a67570; }.matrix-axis { fill: #668e84; font-size: 9px; }.matrix-empty { fill: #668e84; font-size: 10px; }
.dc-project-bubble { cursor: pointer; outline: none; }.dc-project-bubble circle:first-child { fill: rgba(69,224,189,.28); stroke: var(--dc-teal); stroke-width: 1.5; filter: drop-shadow(0 0 7px rgba(69,224,189,.3)); }.dc-project-bubble .bubble-ring { fill: none; stroke: rgba(69,224,189,.22); stroke-width: 1; stroke-dasharray: 2 4; }.dc-project-bubble text { fill: #a9cec4; font-size: 8px; }.dc-project-bubble:hover text, .dc-project-bubble:focus text { fill: #fff; }.dc-project-bubble.level-关注 circle:first-child { fill: rgba(103,167,255,.28); stroke: var(--dc-blue); }.dc-project-bubble.level-预警 circle:first-child { fill: rgba(242,188,97,.3); stroke: var(--dc-amber); }.dc-project-bubble.level-阻断 circle:first-child { fill: rgba(240,124,115,.34); stroke: var(--dc-coral); animation: dc-bubble-pulse 1.8s ease-in-out infinite; }
.dc-matrix-legend { display: flex; gap: 12px; align-items: center; color: var(--dc-muted); font-size: 8px; }.dc-matrix-legend span { display: flex; gap: 5px; align-items: center; }.dc-matrix-legend i { width: 6px; height: 6px; border-radius: 50%; }.dc-matrix-legend i.level-正常 { background: var(--dc-teal); }.dc-matrix-legend i.level-关注 { background: var(--dc-blue); }.dc-matrix-legend i.level-预警 { background: var(--dc-amber); }.dc-matrix-legend i.level-阻断 { background: var(--dc-coral); }.dc-matrix-legend em { margin-left: auto; font-style: normal; }
.dc-trend-ribbon { display: grid; grid-template-columns: 148px minmax(0,1fr); gap: 14px; align-items: center; margin-top: 10px; border-top: 1px solid var(--dc-line); padding-top: 10px; }.dc-trend-ribbon > div { display: grid; gap: 6px; }.dc-trend-ribbon strong { color: #dff5ef; font-size: 9px; }.dc-trend-ribbon span { display: flex; gap: 6px; align-items: center; color: var(--dc-muted); font-size: 8px; }.dc-trend-ribbon span i { width: 10px; height: 2px; background: var(--dc-teal); }.dc-trend-ribbon span:last-child i { background: var(--dc-blue); }.dc-trend-ribbon svg { width: 100%; height: 74px; }.dc-trend-ribbon polyline { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }.dc-trend-ribbon .business-line { stroke: var(--dc-teal); }.dc-trend-ribbon .employee-line { stroke: var(--dc-blue); }.dc-trend-ribbon text { fill: #668e84; font-size: 8px; }

.dc-action-list { display: grid; margin-top: 14px; }.dc-action-list > button { position: relative; display: grid; grid-template-columns: 8px minmax(0,1fr) auto; gap: 9px; align-items: start; border-top: 1px solid var(--dc-line); background: transparent; padding: 13px 0; text-align: left; }.dc-action-list > button > i { width: 6px; height: 6px; margin-top: 4px; border-radius: 50%; background: var(--dc-blue); box-shadow: 0 0 7px var(--dc-blue); }.dc-action-list > button.level-预警 > i { background: var(--dc-amber); box-shadow: 0 0 7px var(--dc-amber); }.dc-action-list > button.level-阻断 > i { background: var(--dc-coral); box-shadow: 0 0 7px var(--dc-coral); }.dc-action-list span { color: #8fb8ad; font-size: 9px; }.dc-action-list strong { display: block; margin-top: 5px; color: #edf9f6; font-size: 11px; line-height: 1.45; }.dc-action-list dl { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 3px 6px; margin: 8px 0 0; }.dc-action-list dt, .dc-action-list dd { margin: 0; color: var(--dc-muted); font-size: 9px; line-height: 1.45; }.dc-action-list dd { color: #9fc4ba; }.dc-action-list button > em { align-self: center; color: var(--dc-teal); font-size: 9px; font-style: normal; white-space: nowrap; }
.dc-action-empty { display: grid; min-height: 220px; place-items: center; align-content: center; gap: 8px; text-align: center; }.dc-action-empty > i { width: 44px; height: 44px; border: 1px solid #2f685d; border-radius: 50%; box-shadow: inset 0 0 18px rgba(69,224,189,.08); }.dc-action-empty strong { color: #dff6ef; font-size: 10px; }.dc-action-empty span { max-width: 200px; color: var(--dc-muted); font-size: 8px; line-height: 1.5; }.dc-action-desk > footer { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--dc-line); padding-top: 12px; color: var(--dc-muted); font-size: 8px; }.dc-action-desk > footer button { background: transparent; color: var(--dc-teal); font-size: 8px; }

@keyframes dc-risk-pulse { 50% { box-shadow: 0 0 0 9px rgba(240,124,115,.03), 0 0 18px rgba(240,124,115,.8); } }
@keyframes dc-bubble-pulse { 50% { stroke-width: 3; filter: drop-shadow(0 0 11px rgba(240,124,115,.65)); } }

@media (max-width: 1180px) {
  .dc-commandbar { grid-template-columns: minmax(300px, 1fr) auto; }.dc-scenes { grid-column: 1 / -1; grid-row: 2; min-height: 34px; border-top: 1px solid var(--dc-line); }.dc-scenes button::after { bottom: -1px; }.dc-command-actions { grid-column: 2; grid-row: 1; }
  .dc-canvas { grid-template-columns: 210px minmax(520px,1fr); grid-template-areas: "insights river" "forecast river" "health health" "actions actions"; }.dc-insights, .dc-forecast { border-right: 1px solid var(--dc-line); }.dc-river-zone { border-right: 0; }.dc-action-desk { border-top: 1px solid var(--dc-line); }.dc-action-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }.dc-action-list > button { border-bottom: 1px solid var(--dc-line); }
}
@media (max-width: 1280px) and (min-width: 1181px) { .dc-title h1 { font-size: 20px; } }
@media (max-width: 780px) {
  .cockpit-focus .topbar { position: static; }.decision-cockpit { min-height: auto; }.dc-commandbar { display: grid; grid-template-columns: 1fr; gap: 12px; padding: 16px; }.dc-command-actions { grid-column: auto; grid-row: auto; justify-content: flex-start; overflow-x: auto; }.dc-scenes { grid-column: auto; grid-row: auto; overflow-x: auto; }.dc-scenes button { min-height: 40px; padding: 0 10px; }.dc-title h1 { font-size: 18px; white-space: normal; }.dc-canvas { display: block; }.dc-insights, .dc-river-zone, .dc-forecast, .dc-health-zone, .dc-action-desk { border-right: 0; border-bottom: 1px solid var(--dc-line); padding: 18px 15px; }.dc-business-river { height: 360px; overflow-x: auto; }.dc-business-river > svg { width: 820px; min-width: 820px; }.dc-flow-node { margin-left: 0; }.dc-river-foot { grid-template-columns: repeat(2,minmax(0,1fr)); }.dc-health-matrix { overflow-x: auto; }.dc-health-matrix > svg { width: 720px; min-width: 720px; }.dc-trend-ribbon { grid-template-columns: 1fr; }.dc-action-list { grid-template-columns: 1fr; }
}

/* Employee mall operations workspace */
.mall-metrics { grid-template-columns: repeat(4,minmax(0,1fr)); }
.mall-flow { display: grid; grid-template-columns: repeat(4,minmax(12px,1fr) 34px) minmax(12px,1fr); align-items: center; margin: 0 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: #f8fbfa; padding: 12px 14px; }
.mall-flow > div { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 1px 8px; align-items: center; min-width: 0; }
.mall-flow > div > span { grid-row: 1 / 3; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: var(--teal); color: #fff; font-size: 11px; font-weight: 900; }
.mall-flow strong { color: var(--ink); font-size: 12px; }.mall-flow em { color: var(--muted); font-size: 9px; font-style: normal; }
.mall-flow > i { height: 1px; background: #a9d0c6; }.mall-flow > i::after { display: block; width: 6px; height: 6px; margin: -3px 0 0 auto; border-top: 1px solid var(--teal); border-right: 1px solid var(--teal); transform: rotate(45deg); content: ""; }
.mall-workbench { overflow: hidden; }.mall-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); background: #f7faf9; padding: 8px 11px 0; }
.mall-tabs button { display: flex; gap: 8px; align-items: center; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 10px 13px; font-size: 12px; font-weight: 850; }
.mall-tabs button.active { border-color: var(--teal); color: var(--teal); }.mall-tabs em { border-radius: 999px; background: #e8f2ef; padding: 2px 6px; font-size: 9px; font-style: normal; }
.mall-toolbar { display: flex; justify-content: space-between; gap: 14px; align-items: center; border-bottom: 1px solid var(--line); padding: 13px 14px; }
.mall-toolbar > div { display: grid; gap: 3px; }.mall-toolbar strong { font-size: 14px; }.mall-toolbar span { color: var(--muted); font-size: 10px; }
.mall-product-list { display: grid; }.mall-product-row { display: grid; grid-template-columns: 24px 64px minmax(250px,1fr) 150px 130px 170px; gap: 12px; align-items: center; border-bottom: 1px solid var(--line); padding: 12px 14px; }
.mall-product-row:last-child { border-bottom: 0; }.mall-product-row.low-stock { background: #fffaf2; }
.mall-product-thumb { width: 64px; height: 58px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #f2f7f5; }.mall-product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mall-product-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--teal); font-size: 22px; font-weight: 900; }
.mall-product-main, .mall-price, .mall-stock { display: grid; min-width: 0; gap: 4px; }.mall-product-main > div { display: flex; gap: 8px; align-items: center; }.mall-product-main strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.mall-product-main span, .mall-product-main em, .mall-price span, .mall-price em, .mall-stock span, .mall-stock em { color: var(--muted); font-size: 9px; font-style: normal; }.mall-price strong, .mall-stock strong { color: var(--ink); font-size: 16px; }.low-stock .mall-stock strong, .low-stock .mall-stock em { color: #a56b22; }
.mall-row-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }.mall-empty { display: grid; place-items: center; gap: 5px; min-height: 210px; padding: 30px; color: var(--muted); text-align: center; }.mall-empty strong { color: var(--ink); font-size: 15px; }
.mall-orders-table { min-width: 1160px; }.mall-orders-table td { vertical-align: top; }.mall-cell-note { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.45; }

@media (max-width: 1180px) {
  .mall-product-row { grid-template-columns: 24px 58px minmax(210px,1fr) 125px 110px; }.mall-product-row .mall-row-actions { grid-column: 3 / -1; justify-content: flex-start; }
  .mall-flow { overflow-x: auto; grid-template-columns: repeat(4,120px 26px) 120px; }
}
@media (max-width: 700px) {
  .mall-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }.mall-product-row { grid-template-columns: 22px 58px minmax(0,1fr); }.mall-price, .mall-stock, .mall-product-row .mall-row-actions { grid-column: 3; }.mall-row-actions { justify-content: flex-start; }.mall-toolbar { align-items: flex-start; flex-direction: column; }.mall-tabs { overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { .dc-title span i, .dc-flow-node.blocked > i, .dc-project-bubble.level-阻断 circle:first-child { animation: none; }.dc-river-pulse { display: none; } }

.service-strategy-band { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr); gap: 18px; align-items: center; margin-bottom: 12px; border: 1px solid #cfe5df; border-radius: var(--radius); background: linear-gradient(112deg, #f2fbf7 0%, #fffaf6 100%); box-shadow: var(--shadow); padding: 20px 22px; }
.service-strategy-band > div > span { display: block; margin-bottom: 6px; color: var(--teal); font-size: 10px; font-weight: 900; }
.service-strategy-band h2 { margin: 0; color: var(--ink); font-size: 21px; }
.service-strategy-band p { margin: 8px 0 0; max-width: 760px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.service-strategy-band aside { justify-self: end; max-width: 340px; text-align: right; }
.service-strategy-band aside strong, .service-strategy-band aside span { display: block; }
.service-strategy-band aside strong { color: var(--teal); font-size: 17px; }
.service-strategy-band aside span { margin-top: 5px; color: #355f54; font-size: 12px; line-height: 1.65; }
.service-catalog-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px; margin-bottom: 14px; }
.service-catalog-metrics article { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 12px 14px; }
.service-catalog-metrics strong { color: var(--teal); font-size: 22px; }
.service-catalog-metrics span { color: var(--muted); font-size: 11px; }
.catalog-section-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; margin: 18px 2px 9px; }
.catalog-section-head h2 { margin: 0; color: var(--ink); font-size: 16px; }
.catalog-section-head p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.service-system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.service-system-card { display: grid; grid-template-rows: auto auto 1fr auto; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 15px; }
.service-system-card header { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.service-system-card header > span { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 50%; background: var(--teal-soft); color: var(--teal); font-size: 18px; }
.service-system-card header small { color: var(--teal); font-size: 9px; font-weight: 900; }
.service-system-card header h3 { margin: 2px 0 0; font-size: 15px; }
.service-system-card header > strong { color: var(--muted); font-size: 10px; }
.service-system-card > p { margin: 0 0 11px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.service-module-tags { display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; margin-bottom: 12px; }
.service-module-tags span { border: 1px solid #dceae6; border-radius: 999px; background: #f8fbfa; color: #4b6b63; padding: 5px 8px; font-size: 10px; }
.service-system-card footer { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 11px; }
.service-system-card footer em { color: var(--muted); font-size: 10px; font-style: normal; }
.service-system-card footer > div { display: flex; gap: 6px; }
.primary-mini { border-radius: 5px; background: var(--teal); color: #fff; padding: 6px 9px; font-size: 10px; font-weight: 850; }
.service-keyword-rail { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); overflow: hidden; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.service-keyword-rail > div { display: grid; min-height: 58px; place-items: center; border-right: 1px solid var(--line); padding: 8px; text-align: center; }
.service-keyword-rail > div:last-child { border-right: 0; }
.service-keyword-rail span { color: #86a39b; font-size: 9px; }
.service-keyword-rail strong { color: #42675d; font-size: 11px; }
.standard-package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.standard-package-grid article { display: grid; grid-template-rows: auto auto 1fr auto; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); padding: 13px; }
.standard-package-grid header span, .standard-package-grid header strong { display: block; }
.standard-package-grid header span { color: var(--teal); font-size: 9px; font-weight: 900; }
.standard-package-grid header strong { margin-top: 5px; font-size: 13px; }
.standard-package-grid p { margin: 0 0 10px; color: var(--muted); font-size: 10px; line-height: 1.55; }
.standard-package-grid dl { display: grid; gap: 4px; margin: 0 0 11px; }
.standard-package-grid dl > div { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: 6px; font-size: 10px; }
.standard-package-grid dt { color: var(--muted); }
.standard-package-grid dd { margin: 0; color: var(--ink); }
.standard-package-grid button { justify-self: start; }
.boundary-heading { margin-top: 20px; }
.delivery-boundary-table td:first-child { color: var(--ink); font-weight: 850; }
.delivery-boundary-table td:last-child { color: var(--muted); }

@media (max-width: 1280px) {
  .topbar { grid-template-columns: 190px max-content minmax(140px, 170px) minmax(0, 1fr); gap: 9px; padding-right: 12px; padding-left: 12px; }
  .brand strong { font-size: 14px; }
  .brand span { font-size: 10px; }
  .portal-identity { padding-right: 7px; padding-left: 8px; }
  .top-actions { gap: 5px; justify-content: flex-end; }
  .top-actions .primary, .top-actions .ghost { padding: 7px 8px; font-size: 10px; }
  .account-chip, .sync-status { padding-right: 6px; padding-left: 6px; font-size: 9px; }
  .top-control select, .top-control input { min-width: 0; }
  .workspace { grid-template-columns: minmax(0,1fr); }
  .detail { position: static; }
  .metrics { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .automation-layout { grid-template-columns: 1fr; }
  .permission-panel, .evaluation-panel { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .account-setup-row { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .account-setup-actions { justify-content: flex-start; }
  .subadmin-role-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-workspace { grid-template-columns: 200px minmax(0, 1fr); }
  .project-action-rail { position: static; grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cockpit-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cockpit-main-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cockpit-customer-ranking { grid-column: 1 / -1; }
  .cockpit-finance-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cockpit-finance-grid > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 1100px) {
  .topbar { grid-template-columns: 190px minmax(220px, 1fr) minmax(150px, 190px); }
  .top-actions { grid-column: 1 / -1; justify-content: flex-end; }
  .app-body { grid-template-columns: 210px minmax(0, 1fr); }
  .cockpit-hero { grid-template-columns: minmax(0, 1fr) 130px; }
  .cockpit-hero-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .cockpit-hero-actions > span { width: auto; margin-right: auto; text-align: left; }
  .cockpit-employee-grid { grid-template-columns: 1fr; }
  .tech-commandbar { grid-template-columns: minmax(0, 1fr) 160px; }
  .tech-command-actions { grid-column: 1 / -1; grid-template-columns: repeat(2, max-content); justify-self: stretch; justify-content: end; }
  .tech-command-actions > span { grid-column: auto; grid-row: 1; align-self: center; }
}

@media (max-width: 920px) {
  .login-screen { grid-template-columns: 1fr; align-items: start; }
  .topbar { position: static; grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .top-actions { grid-column: auto; justify-content: flex-start; overflow-x: auto; padding-bottom: 2px; }
  .portal-identity { width: 100%; }
  .top-control select { min-width: 0; }
  .app-body { display: block; padding: 10px; }
  .sidebar { position: static; display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 8px; height: auto; overflow: hidden; margin-bottom: 10px; padding: 9px; }
  .sidebar .scope-card { display: grid; align-content: center; min-height: 74px; }
  .sidebar .nav-group { display: flex; gap: 6px; overflow-x: auto; margin-top: 0; padding-bottom: 2px; scrollbar-width: thin; }
  .sidebar .nav-group h3 { display: none; }
  .sidebar .nav-item { width: 148px; min-width: 148px; min-height: 74px; align-content: center; padding: 9px 10px 9px 13px; }
  .main { border-radius: 8px; padding: 11px; }
  .overview-grid, .role-summary, .permission-panel, .evaluation-panel { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .audit-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-profile-card { grid-template-columns: 1fr; }
  .product-recognition { grid-template-columns: 92px minmax(0, 1fr); }
  .product-recognition > img { width: 92px; height: 92px; }
  .account-setup-head { grid-template-columns: 1fr; }
  .subadmin-role-grid { grid-template-columns: 1fr; }
  .account-section-title { align-items: flex-start; flex-direction: column; gap: 4px; }
  .project-workspace { grid-template-columns: 1fr; }
  .project-list-rail { position: static; max-height: none; }
  .project-list-rail > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-action-rail { grid-column: auto; grid-template-columns: 1fr; }
  .project-gates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-related-list article { grid-template-columns: 1fr; }
  .contracting-policy, .contracting-responsibility { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approval-flow-grid { grid-template-columns: 1fr; }
  .overview-chart-grid { grid-template-columns: 1fr; }
  .business-analysis-grid, .business-analysis-bottom { grid-template-columns: 1fr; }
  .service-strategy-band { grid-template-columns: 1fr; }
  .service-strategy-band aside { justify-self: start; text-align: left; }
  .service-catalog-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-keyword-rail { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .service-keyword-rail > div:nth-child(4) { border-right: 0; }
  .service-keyword-rail > div:nth-child(-n + 4) { border-bottom: 1px solid var(--line); }
  .standard-package-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cockpit-main-grid, .cockpit-finance-grid { grid-template-columns: 1fr; }
  .cockpit-customer-ranking, .cockpit-finance-grid > :last-child { grid-column: auto; }
  .tech-dashboard-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .tech-flow-panel, .tech-radar-panel, .tech-trend-panel, .tech-project-panel, .tech-ecosystem-panel, .tech-customer-panel { grid-column: span 6; }
  .tech-finance-panel, .tech-risk-panel, .tech-employee-panel { grid-column: span 3; }
  .tech-ticker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tech-ticker button:nth-child(3) { border-right: 0; }
  .tech-ticker button:nth-child(-n+3) { border-bottom: 1px solid #214d46; }
}

@media (max-width: 620px) {
  .top-actions { flex-wrap: wrap; overflow-x: visible; white-space: normal; }
  .page-head { display: grid; }
  .metrics, .business-analysis-metrics, .member-grid, .filter-panel, .form-grid, .audit-grid { grid-template-columns: 1fr; }
  .subnav > div:first-child { display: grid; }
  .delete-protected-item { grid-template-columns: 1fr; }
  .delete-resolution-actions .ghost { width: 100%; }
  .quote-summary-head { display: grid; }
  .quote-summary-head .ghost { width: 100%; }
  .role-summary { padding: 12px; }
  .app-body { padding: 8px; }
  .main { padding: 9px; }
  .product-profile-fields { grid-template-columns: 1fr; }
  .product-recognition, .product-recognition.empty-recognition { grid-template-columns: 1fr; }
  .product-recognition > img { width: 100%; height: 160px; }
  .recognition-actions { align-items: stretch; flex-direction: column; }
  .project-hub-grid, .consistency-check-list { grid-template-columns: 1fr; }
  .consistency-check-list > span { border-right: 0; border-bottom: 1px solid var(--line); }
  .consistency-check-list > span:last-child { border-bottom: 0; }
  .project-list-rail > div, .project-overview-grid, .work-package-progress, .project-facts, .project-related-fields, .project-gates { grid-template-columns: 1fr; }
  .project-panel.project-wide { grid-column: auto; }
  .contracting-policy, .contracting-responsibility { grid-template-columns: 1fr; }
  .contracting-policy > button { width: 100%; }
  .contracting-flow { display: flex; gap: 8px; overflow-x: auto; }
  .contracting-flow .flow-node { flex: 0 0 88px; }
  .contracting-flow .flow-branch { flex: 0 0 190px; }
  .project-timeline > div { grid-template-columns: 1fr; gap: 3px; }
  .overview-chart-heading { display: grid; align-items: start; }
  .donut-layout { grid-template-columns: 108px minmax(0, 1fr); gap: 10px; }
  .donut-chart { width: 104px; }
  .service-strategy-band { padding: 16px; }
  .service-catalog-metrics, .service-system-grid, .standard-package-grid { grid-template-columns: 1fr; }
  .service-keyword-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-keyword-rail > div:nth-child(2n) { border-right: 0; }
  .service-keyword-rail > div:nth-child(-n + 6) { border-bottom: 1px solid var(--line); }
  .sidebar { grid-template-columns: 1fr; }
  .sidebar .scope-card { display: none; }
  .sidebar .nav-item { width: 135px; min-width: 135px; }
  .cockpit-hero { grid-template-columns: 1fr; padding: 17px; }
  .cockpit-health { justify-items: start; border: 0; border-top: 1px solid rgba(255,255,255,.17); border-bottom: 1px solid rgba(255,255,255,.17); padding: 12px 0; text-align: left; }
  .cockpit-health strong { font-size: 30px; }
  .cockpit-hero-actions { display: grid; grid-template-columns: 1fr; }
  .cockpit-hero-actions > span { margin: 0 0 3px; }
  .cockpit-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cockpit-section-head { display: grid; align-items: start; }
  .employee-funnel { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .employee-funnel i { display: none; }
  .employee-funnel button { min-width: 0; }
  .ecosystem-summary { grid-template-columns: 1fr; }
  .tech-cockpit { padding: 8px; }
  .tech-commandbar { grid-template-columns: 1fr; padding: 16px; }
  .tech-title h1 { font-size: 21px; }
  .tech-health { justify-self: start; width: 108px; height: 108px; }
  .tech-command-actions { grid-column: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-content: stretch; }
  .tech-command-actions > span { grid-column: 1 / -1; text-align: left; }
  .tech-ticker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech-ticker button, .tech-ticker button:nth-child(3) { border-right: 1px solid #214d46; border-bottom: 1px solid #214d46; }
  .tech-ticker button:nth-child(2n) { border-right: 0; }
  .tech-ticker button:last-child { grid-column: 1 / -1; border-right: 0; }
  .tech-dashboard-grid { grid-template-columns: 1fr; }
  .tech-flow-panel, .tech-radar-panel, .tech-trend-panel, .tech-project-panel, .tech-finance-panel, .tech-risk-panel, .tech-employee-panel, .tech-ecosystem-panel, .tech-customer-panel { grid-column: 1; }
  .tech-flow-map { grid-template-columns: 1fr; justify-content: stretch; overflow-x: visible; }
  .tech-flow-map > button { width: 100%; min-height: 58px; }
  .tech-flow-map > em { width: 1px; height: 18px; justify-self: center; }
  .tech-flow-map > em::after { top: 12px; right: -3px; transform: rotate(135deg); }
  .tech-flow-map > em u { top: 0; left: -2px; animation: data-travel-mobile 1.8s linear infinite; }
  .tech-flow-status { align-items: flex-start; flex-direction: column; }
  .tech-source-ports { justify-content: flex-start; }
  .project-visual { grid-template-columns: 1fr; justify-items: center; }
  .tech-legend { width: 100%; }
  .risk-orbit > button { min-width: 86px; }
  .ecosystem-orbit::after { width: 290px; }
  .ecosystem-orbit .orbit-a { left: 0; }
  .ecosystem-orbit .orbit-b { right: 0; }
  .service-heatmap { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Readability and empty-state corrections for the full-screen decision cockpit. */
.dc-health-empty { display: grid; grid-template-columns: minmax(300px,1fr) auto auto; gap: 30px; align-items: center; min-height: 150px; margin-top: 18px; border-top: 1px solid var(--dc-line); border-bottom: 1px solid var(--dc-line); padding: 20px 0; }
.dc-health-empty > div > span { color: var(--dc-teal); font-size: 10px; font-weight: 850; }
.dc-health-empty > div > strong { display: block; margin-top: 7px; color: #effcf8; font-size: 22px; }
.dc-health-empty p { max-width: 620px; margin: 7px 0 0; color: var(--dc-muted); font-size: 12px; line-height: 1.65; }
.dc-health-empty dl { display: grid; grid-template-columns: repeat(3,90px); margin: 0; }
.dc-health-empty dl > div { display: grid; gap: 5px; border-left: 1px solid var(--dc-line); padding-left: 18px; }
.dc-health-empty dt { color: var(--dc-muted); font-size: 10px; }
.dc-health-empty dd { margin: 0; color: #fff; font-size: 23px; font-weight: 800; }
.dc-health-empty button { border: 1px solid #285d54; background: #10312c; color: #bde9dd; padding: 10px 13px; font-size: 11px; font-weight: 800; }

@media (min-width: 781px) {
  .dc-commandbar { grid-template-columns: minmax(380px,1fr) auto minmax(260px,1fr); min-height: 98px; padding: 15px 28px; }
  .dc-title span { font-size: 11px; }.dc-title h1 { font-size: 25px; }.dc-title p { font-size: 13px; }
  .dc-scenes button { padding-right: 14px; padding-left: 14px; font-size: 13px; }
  .dc-command-actions button { padding: 9px 11px; font-size: 11px; }
  .dc-canvas { grid-template-columns: 260px minmax(640px,1fr) 330px; }
  .dc-insights { padding: 27px 23px; }.dc-river-zone { padding: 25px 28px 19px; }.dc-forecast { padding: 27px 23px; }.dc-health-zone { padding: 25px 28px 18px; }.dc-action-desk { padding: 25px 23px 18px; }
  .dc-insights > header > span, .dc-forecast > header > span, .dc-action-desk > header > span, .dc-section-title span { font-size: 10px; }
  .dc-insights h2, .dc-forecast h2, .dc-action-desk h2, .dc-section-title h2 { font-size: 20px; }
  .dc-insights header p, .dc-forecast header p, .dc-action-desk header p, .dc-section-title p { font-size: 12px; }
  .dc-insight-list strong { font-size: 13px; }.dc-insight-list p { font-size: 11px; }.dc-health-summary > span, .dc-health-summary > em { font-size: 10px; }
  .dc-business-river { height: 275px; }.dc-flow-node strong { font-size: 16px; }.dc-flow-node span { font-size: 11px; }.dc-flow-legend { font-size: 10px; }
  .dc-river-foot span { font-size: 10px; }.dc-river-foot strong { font-size: 13px; }
  .dc-forecast-list strong { font-size: 13px; }.dc-forecast-list em, .dc-forecast-list small { font-size: 10px; }
  .dc-forecast-gap span, .dc-forecast-gap em { font-size: 10px; }.dc-forecast-gap strong { font-size: 22px; }.dc-forecast-link { font-size: 11px; }
  .matrix-caption, .matrix-axis { font-size: 10px; }.dc-matrix-legend { font-size: 10px; }
  .dc-trend-ribbon strong { font-size: 11px; }.dc-trend-ribbon span { font-size: 10px; }.dc-trend-ribbon text { font-size: 9px; }
  .dc-action-list span { font-size: 10px; }.dc-action-list strong { font-size: 12px; }.dc-action-list dt, .dc-action-list dd, .dc-action-list button > em { font-size: 10px; }
  .dc-action-empty strong { font-size: 12px; }.dc-action-empty span, .dc-action-desk > footer, .dc-action-desk > footer button { font-size: 10px; }
}

@media (min-width: 1600px) {
  .dc-canvas { grid-template-columns: 280px minmax(760px,1fr) 360px; }
  .dc-commandbar { padding-right: 34px; padding-left: 34px; }
}

@media (min-width: 781px) and (max-width: 1180px) {
  .dc-commandbar { grid-template-columns: minmax(300px,1fr) auto; }
  .dc-scenes { grid-column: 1 / -1; grid-row: 2; min-height: 40px; border-top: 1px solid var(--dc-line); }
  .dc-scenes button::after { bottom: -1px; }
  .dc-command-actions { grid-column: 2; grid-row: 1; }
  .dc-canvas { grid-template-columns: 230px minmax(520px,1fr); grid-template-areas: "insights river" "forecast river" "health health" "actions actions"; }
  .dc-insights, .dc-forecast { border-right: 1px solid var(--dc-line); }
  .dc-river-zone { border-right: 0; }
  .dc-action-desk { border-top: 1px solid var(--dc-line); }
}

@media (max-width: 780px) {
  .dc-health-empty { grid-template-columns: 1fr; gap: 16px; }
  .dc-health-empty dl { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .dc-health-empty button { justify-self: start; }
}

/* Supplier product master and employee-mall channel share one product ID. */
.mall-config-modal { width: min(980px, calc(100vw - 32px)); }
.mall-master-select { display: grid; gap: 7px; margin: 18px 0 14px; }
.mall-master-select > span { color: var(--muted); font-size: 12px; font-weight: 800; }
.mall-master-summary { display: grid; grid-template-columns: minmax(220px, 1.8fr) repeat(3, minmax(120px, .7fr)); gap: 1px; overflow: hidden; margin-bottom: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--line); }
.mall-master-summary > div { display: grid; align-content: center; gap: 5px; min-height: 78px; padding: 13px 15px; background: #f8fbfa; }
.mall-master-summary span, .product-channel-summary span { color: var(--muted); font-size: 11px; font-weight: 750; }
.mall-master-summary strong { font-size: 15px; }
.mall-master-summary em { color: var(--muted); font-size: 11px; font-style: normal; }
.mall-config-rule { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin-top: 15px; border: 1px solid #b9ddd5; border-radius: 8px; background: #f0faf7; padding: 12px 14px; }
.mall-config-rule strong { color: #126856; font-size: 12px; }
.mall-config-rule span { color: #52706a; font-size: 12px; line-height: 1.6; }
.product-channel-summary { display: grid; grid-template-columns: repeat(3, minmax(130px, 1fr)) auto; gap: 12px; align-items: center; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.product-channel-summary > div { display: grid; gap: 5px; }
.product-channel-summary > button { white-space: nowrap; }

@media (max-width: 780px) {
  .mall-config-modal { width: calc(100vw - 20px); }
  .mall-master-summary, .product-channel-summary { grid-template-columns: 1fr; }
  .mall-config-rule { grid-template-columns: 1fr; }
}

/* Member portals expose each role's real operating chain instead of a generic data list. */
.member-role-flow { margin: 0 0 12px; overflow: hidden; border: 1px solid #cfe3de; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.member-role-flow-head { display: flex; justify-content: space-between; gap: 20px; align-items: end; border-bottom: 1px solid var(--line); background: #f7fbfa; padding: 14px 16px; }
.member-role-flow-head span { color: var(--teal); font-size: 9px; font-weight: 900; }
.member-role-flow-head h2 { margin: 3px 0 0; font-size: 16px; }
.member-role-flow-head p { margin: 0; color: var(--muted); font-size: 10px; }
.member-flow-track { display: grid; grid-template-columns: repeat(6, minmax(125px, 1fr)); overflow-x: auto; }
.member-flow-step { position: relative; display: grid; min-height: 108px; align-content: start; gap: 4px; border-right: 1px solid var(--line); background: #fff; padding: 14px 16px; text-align: left; }
.member-flow-step:last-child { border-right: 0; }
.member-flow-step::after { position: absolute; top: 32px; right: -5px; z-index: 1; width: 9px; height: 9px; border-top: 1px solid #9cc9bf; border-right: 1px solid #9cc9bf; background: #fff; transform: rotate(45deg); content: ""; }
.member-flow-step:last-child::after { display: none; }
.member-flow-step > span { color: #87a8a0; font-size: 9px; font-weight: 900; }
.member-flow-step > strong { color: var(--ink); font-size: 13px; }
.member-flow-step > em { color: var(--muted); font-size: 10px; font-style: normal; }
.member-flow-step > b { align-self: end; margin-top: 8px; color: #5c7770; font-size: 10px; }
.member-flow-step.pending { background: #f0faf7; }
.member-flow-step.pending > b { color: var(--teal); }
.member-flow-step:hover { background: #e9f7f3; }
.member-impact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.member-impact-grid .project-wide { grid-column: 1 / -1; }
.impact-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--line); }
.impact-metrics article { display: grid; gap: 4px; background: #f8fbfa; padding: 13px; }
.impact-metrics strong { color: var(--teal); font-size: 20px; }
.impact-metrics span { color: var(--muted); font-size: 10px; }
.member-service-tags { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.member-service-tags > span { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 6px; background: #f8fbfa; padding: 11px; }
.member-service-tags strong { font-size: 12px; }.member-service-tags em { color: var(--muted); font-size: 10px; font-style: normal; }
.member-participation { display: grid; gap: 14px; }
.participation-bars { display: grid; gap: 10px; }
.participation-bars > div { display: grid; grid-template-columns: 110px minmax(0, 1fr) 60px; gap: 10px; align-items: center; }
.participation-bars span, .participation-bars strong { font-size: 10px; }.participation-bars strong { text-align: right; }
.participation-bars progress { width: 100%; accent-color: var(--teal); }

@media (max-width: 900px) {
  .member-role-flow-head { align-items: start; flex-direction: column; }
  .member-flow-track { grid-template-columns: repeat(6, minmax(145px, 1fr)); }
  .member-impact-grid { grid-template-columns: 1fr; }
  .member-impact-grid .project-wide { grid-column: auto; }
}
@media (max-width: 620px) {
  .impact-metrics, .member-service-tags { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .participation-bars > div { grid-template-columns: 82px minmax(0, 1fr) 48px; }
}

/* 乐职康 V2：后台使用同一套低饱和品牌令牌，状态色仅表达业务语义。 */
:root {
  --ink: #173b45;
  --muted: #627780;
  --line: #d7e2de;
  --line-strong: #bdcfca;
  --bg: #f4f7f6;
  --surface: #fff;
  --panel: #f7f9f8;
  --content-canvas: #f4f7f6;
  --nav-canvas: #fff;
  --nav-border: #d7e2de;
  --nav: #173b45;
  --nav-soft: #35535c;
  --teal: #216b65;
  --teal-soft: #e5efeb;
  --blue: #4d7485;
  --blue-soft: #eef3f4;
  --green: #668e5a;
  --green-soft: #edf3e9;
  --coral: #b46d66;
  --coral-soft: #f8efed;
  --radius: 10px;
  --shadow: 0 4px 16px rgba(23, 59, 69, .055);
}

.login-screen { background: #f4f7f6; }
.login-panel,
.login-side { box-shadow: 0 16px 38px rgba(23, 59, 69, .08); }
.topbar { box-shadow: 0 3px 14px rgba(23, 59, 69, .045); }
.brand-logo-icon { filter: saturate(.66) contrast(.94); }
.sidebar { border-color: var(--line); background: #fff; box-shadow: none; }
.scope-card { border-color: var(--line); background: #f7f9f8; }
.scope-card span,
.nav-item,
.nav-group h3 { color: #4d666d; }
.nav-item em { color: #7b8b90; }
.nav-item:hover { background: #f4f7f6; }
.nav-item.active {
  border-color: #c4d7d1;
  background: #edf4f1;
  color: var(--teal);
  box-shadow: none;
}
.main { border-color: var(--line); background: var(--content-canvas); }
.subnav-tabs button { background: #fff; }
.subnav-tabs button:hover { border-color: #a9c5be; }
.subnav-tabs button.active { border-color: #9fc0b7; background: var(--teal-soft); color: var(--teal); box-shadow: none; }
.primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 11px rgba(33, 107, 101, .14);
}
.primary:hover { background: #195852; }
.status-action { box-shadow: none; }
.metric,
.metric:nth-child(2n),
.metric:nth-child(3n) { background: #fff; box-shadow: none; }
.pipeline span { background: var(--teal-soft); color: var(--teal); }
.icp-footer { background: rgba(23, 59, 69, .95); }

/* 默认经营驾驶舱同步为确认稿中的白底、深青线条体系。 */
.cockpit-focus .main { background: #f4f7f6; }
.decision-cockpit {
  --dc-bg: #f4f7f6;
  --dc-bg-raised: #fff;
  --dc-line: #d7e2de;
  --dc-text: #173b45;
  --dc-muted: #627780;
  --dc-teal: #216b65;
  --dc-blue: #4d7485;
  --dc-amber: #a47b39;
  --dc-coral: #b46d66;
  background: #f4f7f6;
  color: var(--dc-text);
}
.decision-cockpit::before { display: none; }
.dc-commandbar,
.dc-insights,
.dc-river-zone,
.dc-forecast,
.dc-health-zone,
.dc-action-desk { background: #fff; }
.dc-title span i { box-shadow: none; }
.dc-title h1,
.dc-scenes button:hover,
.dc-scenes button.active,
.dc-insight-list strong,
.dc-health-summary > strong,
.dc-flow-node strong,
.dc-river-foot strong,
.dc-forecast-list strong,
.dc-trend-ribbon strong,
.dc-action-list strong,
.dc-action-empty strong { color: var(--dc-text); }
.dc-scenes button { color: var(--dc-muted); }
.dc-scenes button::after { box-shadow: none; }
.dc-command-actions button {
  border-color: #bdcfca;
  border-radius: 7px;
  background: #fff;
  color: #35535c;
}
.dc-command-actions button:hover { border-color: var(--dc-teal); background: #edf4f1; color: var(--dc-teal); }
.dc-command-actions .return-system { border-color: var(--dc-teal); background: var(--dc-teal); color: #fff; }
.dc-insight-list article.critical strong { color: #9e524d; }
.dc-insight-list article.warning strong { color: #8b672f; }
.dc-insight-list article.good strong { color: var(--dc-teal); }
.dc-river-base { stroke: #dce6e2; }
.dc-river-segment,
.dc-river-pulse { filter: none; }
.dc-river-trace { stroke: rgba(33,107,101,.28); }
.dc-river-pulse { fill: var(--dc-teal); }
.dc-flow-node > i {
  border-color: var(--dc-teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(33,107,101,.08);
}
.dc-flow-node.warning > i { box-shadow: 0 0 0 4px rgba(164,123,57,.08); }
.dc-flow-node.blocked > i { box-shadow: 0 0 0 4px rgba(180,109,102,.09); }
.dc-flow-node span,
.dc-action-list span,
.dc-action-list dd { color: var(--dc-muted); }
.dc-bullet .bullet-track { fill: #e6eeeb; }
.dc-bullet .bullet-actual { filter: none; }
.dc-bullet .bullet-forecast { fill: rgba(77,116,133,.16); }
.dc-bullet line { stroke: #7f918d; }
.matrix-grid line { stroke: #dce6e2; }
.matrix-caption,
.matrix-axis,
.matrix-empty,
.dc-trend-ribbon text { fill: #7a8d90; }
.dc-project-bubble text { fill: #49656d; }
.dc-project-bubble:hover text,
.dc-project-bubble:focus text { fill: var(--dc-text); }
.dc-action-list > button > i { box-shadow: none; }
.dc-action-empty > i { border-color: #afc8c1; box-shadow: none; }
.dc-forecast-gap strong { color: #8b672f; }
