:root {
  --ink: #142335;
  --ink-2: #405267;
  --muted: #6b7c8f;
  --line: #d7e0e7;
  --line-strong: #bdcad4;
  --paper: #f4f7f8;
  --panel: #ffffff;
  --navy: #102c46;
  --navy-2: #173b5c;
  --teal: #008b84;
  --teal-soft: #dff4f1;
  --blue: #2877a8;
  --blue-soft: #e4f0f8;
  --amber: #bb7314;
  --amber-soft: #fff0d6;
  --coral: #c24e3d;
  --coral-soft: #fbe8e4;
  --shadow: 0 14px 36px rgba(24, 48, 68, .09);
  --radius: 14px;
  --font-scale: 1;
}

/* Sprint 18 · certification planning baseline */
.planning-heading h1 { letter-spacing: -.035em; }
.planning-command-band {
  display: grid;
  grid-template-columns: 210px minmax(320px, 1fr) minmax(520px, 1.5fr);
  gap: 0;
  margin: 20px 0 16px;
  min-height: 170px;
  overflow: hidden;
  border: 1px solid #173a56;
  border-radius: 22px;
  color: #effaff;
  background: linear-gradient(115deg, #092334 0%, #0d344b 58%, #102a3f 100%);
  box-shadow: 0 18px 42px rgba(8, 35, 52, .16);
}
.planning-score { display: flex; flex-direction: column; justify-content: center; padding: 24px 26px; border-right: 1px solid rgba(255,255,255,.12); background: rgba(4, 19, 31, .26); }
.planning-score span { color: #83def2; font-size: calc(12px * var(--font-scale)); font-weight: 800; letter-spacing: .12em; }
.planning-score strong { margin: 8px 0 3px; color: #fff; font-size: 3rem; font-weight: 800; line-height: 1; }
.planning-score small { color: #bcd0dc; font-size: calc(13px * var(--font-scale)); line-height: 1.45; }
.planning-command-copy { display: flex; flex-direction: column; justify-content: center; padding: 24px 28px; }
.planning-command-copy p { margin: 0 0 8px; color: #71d3e8; font-size: calc(12px * var(--font-scale)); font-weight: 800; letter-spacing: .12em; }
.planning-command-copy h2 { margin: 0 0 8px; max-width: 720px; color: #fff; font-size: 1.42rem; line-height: 1.28; }
.planning-command-copy > span { color: #c0d5df; font-size: calc(14px * var(--font-scale)); line-height: 1.55; }
.planning-command-copy > div { height: 5px; margin-top: 18px; overflow: hidden; border-radius: 9px; background: rgba(255,255,255,.12); }
.planning-command-copy > div i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #39d3cf, #e5bc5d); transition: width .3s ease; }
.planning-gate-strip { display: grid; grid-template-columns: repeat(4, minmax(108px, 1fr)); align-content: center; gap: 8px; padding: 18px; background: rgba(255,255,255,.035); }
.planning-gate-strip > span { min-width: 0; padding: 11px 12px; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.055); }
.planning-gate-strip > span i { display: inline-grid; width: 24px; height: 24px; margin-right: 7px; place-items: center; border-radius: 50%; color: #102f43; background: #f2c76c; font-size: .68rem; font-style: normal; font-weight: 900; }
.planning-gate-strip > span b { color: #effaff; font-size: calc(13px * var(--font-scale)); }
.planning-gate-strip > span small { display: block; overflow: hidden; margin-top: 6px; color: #acc3cf; font-size: calc(12px * var(--font-scale)); text-overflow: ellipsis; white-space: nowrap; }
.planning-gate-strip > span.is-ready i { background: #66dfcb; }
.planning-summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.planning-summary article { position: relative; min-height: 104px; padding: 17px 18px; overflow: hidden; border: 1px solid #d8e3e9; border-radius: 15px; background: #fff; }
.planning-summary article::after { position: absolute; inset: auto 0 0; height: 3px; content: ''; background: #28a7b7; }
.planning-summary article.planning-attention::after { background: #d09b39; }
.planning-summary span, .planning-summary small { display: block; color: #677984; font-size: calc(13px * var(--font-scale)); }
.planning-summary strong { display: block; margin: 5px 0 2px; color: #153a50; font-size: 1.65rem; }
.planning-top-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(320px, .75fr); gap: 16px; margin-bottom: 16px; }
.planning-plan-panel, .planning-gate-panel, .compliance-matrix-panel, .planning-milestone-panel { padding: 20px; }
.planning-plan-panel > header, .compliance-matrix-panel > header, .planning-milestone-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 16px; }
.planning-plan-panel header h2, .compliance-matrix-panel header h2, .planning-milestone-panel header h2 { margin: 2px 0 5px; font-size: 1.18rem; }
.planning-plan-panel header p:last-child, .compliance-matrix-panel header p:last-child, .planning-milestone-panel header p:last-child { margin: 0; color: #677985; font-size: calc(13px * var(--font-scale)); line-height: 1.55; }
.certification-plan-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.certification-plan-card { position: relative; padding: 16px; text-align: left; border: 1px solid #d4e2e9; border-radius: 14px; background: linear-gradient(145deg, #fff, #f7fbfc); cursor: pointer; transition: transform .16s ease, border-color .16s ease; }
.certification-plan-card:hover { transform: translateY(-2px); border-color: #52aabc; }
.certification-plan-card.is-blocked { border-left: 4px solid #d5a044; }
.certification-plan-card.is-ready { border-left: 4px solid #35b3a4; }
.certification-plan-card header { display: flex; justify-content: space-between; gap: 12px; }
.certification-plan-card header span { color: #18778d; font-size: calc(12px * var(--font-scale)); font-weight: 850; letter-spacing: .07em; }
.certification-plan-card header i { padding: 3px 8px; border-radius: 99px; color: #6c531e; background: #fff0c8; font-size: calc(11px * var(--font-scale)); font-style: normal; font-weight: 800; }
.certification-plan-card.is-ready header i { color: #0c625b; background: #d9f5ee; }
.certification-plan-card h3 { margin: 11px 0 5px; color: #173c51; font-size: 1.03rem; }
.certification-plan-card > p { min-height: 42px; margin: 0 0 13px; color: #667985; font-size: calc(13px * var(--font-scale)); line-height: 1.5; }
.certification-plan-card footer { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px; padding-top: 11px; border-top: 1px solid #e5edf1; }
.certification-plan-card footer span { color: #70808a; font-size: calc(11px * var(--font-scale)); }
.certification-plan-card footer b { display: block; overflow: hidden; margin-top: 2px; color: #284b5e; font-size: calc(12px * var(--font-scale)); text-overflow: ellipsis; white-space: nowrap; }
.planning-gate-panel { background: #fbfcf9; }
.planning-gate-title { padding-bottom: 13px; border-bottom: 1px solid #dce6e7; }
.planning-gate-title span { color: #2a8394; font-size: .7rem; font-weight: 850; letter-spacing: .1em; }
.planning-gate-title h2 { margin: 6px 0 0; color: #173c50; font-size: 1.16rem; }
.planning-gate-item { padding: 11px 0; border-bottom: 1px solid #e2e9eb; }
.planning-gate-item > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.planning-gate-item b { color: #314f5e; font-size: calc(13px * var(--font-scale)); }
.planning-gate-item i { padding: 3px 8px; border-radius: 99px; color: #745520; background: #fff0ca; font-size: .67rem; font-style: normal; }
.planning-gate-item.is-ready i { color: #14665e; background: #daf3ed; }
.planning-gate-item ul { margin: 8px 0 0; padding-left: 17px; color: #7d6540; font-size: calc(12px * var(--font-scale)); line-height: 1.45; }
.planning-gate-rule { margin-top: 14px; padding: 11px; border-radius: 10px; color: #546b76; background: #eef5f6; font-size: calc(12px * var(--font-scale)); line-height: 1.5; }
.matrix-legend { display: flex; gap: 6px; }
.matrix-legend i { padding: 5px 9px; border-radius: 99px; color: #496572; background: #e8f2f4; font-size: .68rem; font-style: normal; }
.matrix-legend .confirmed { color: #12635b; background: #d9f3ec; }
.matrix-legend .gap { color: #775a20; background: #fff0c9; }
.compliance-matrix-head, .compliance-matrix-row { display: grid; grid-template-columns: 1.35fr 1.1fr 1.15fr 1.2fr 1.45fr .65fr; gap: 12px; align-items: center; }
.compliance-matrix-head { padding: 10px 14px; border-radius: 9px; color: #758792; background: #f0f5f7; font-size: calc(12px * var(--font-scale)); font-weight: 800; }
.compliance-matrix-row { width: 100%; min-height: 118px; padding: 14px; text-align: left; border: 0; border-bottom: 1px solid #e3eaee; background: transparent; cursor: pointer; }
.compliance-matrix-row:hover { background: #f8fbfc; }
.compliance-matrix-row.is-gap { background: linear-gradient(90deg, rgba(255,245,218,.52), transparent 28%); }
.compliance-matrix-row span { min-width: 0; color: #516975; font-size: calc(13px * var(--font-scale)); line-height: 1.45; }
.compliance-matrix-row b, .compliance-matrix-row small { display: block; }
.compliance-matrix-row b { overflow: hidden; color: #213f50; font-size: calc(14px * var(--font-scale)); text-overflow: ellipsis; }
.compliance-matrix-row small { margin-top: 4px; color: #72838d; font-size: calc(12px * var(--font-scale)); }
.moc-pair { display: flex; flex-wrap: wrap; gap: 5px; margin: 3px 0; }
.moc-pair i { padding: 3px 6px; border-radius: 5px; color: #286a79; background: #e5f2f5; font-size: .67rem; font-style: normal; font-weight: 800; }
.moc-pair.confirmed i { color: #12655c; background: #dbf4ed; }
.moc-pair.empty i { color: #76581f; background: #fff0c9; }
.matrix-status { display: inline-flex; justify-content: center; padding: 6px 9px; border-radius: 99px; color: #11645b; background: #daf3ed; font-size: .68rem; font-weight: 800; }
.matrix-status.is-gap { color: #79591c; background: #ffefc6; }
.planning-milestone-head, .planning-milestone-row { display: grid; grid-template-columns: .55fr 1.5fr .85fr .85fr 1.25fr .6fr; gap: 12px; align-items: center; }
.planning-milestone-head { padding: 10px 14px; border-radius: 9px; color: #758792; background: #f0f5f7; font-size: calc(12px * var(--font-scale)); font-weight: 800; }
.planning-milestone-row { width: 100%; min-height: 84px; padding: 13px 14px; text-align: left; border: 0; border-bottom: 1px solid #e3eaee; background: transparent; cursor: pointer; }
.planning-milestone-row:hover { background: #f8fbfc; }
.planning-milestone-row > span { min-width: 0; color: #5c707b; font-size: calc(12px * var(--font-scale)); line-height: 1.45; }
.planning-milestone-row b, .planning-milestone-row small { display: block; }
.planning-milestone-row b { color: #234557; font-size: calc(13px * var(--font-scale)); }
.planning-milestone-row small { overflow: hidden; margin-top: 3px; color: #75858e; font-size: calc(11px * var(--font-scale)); text-overflow: ellipsis; }
.planning-milestone-code { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid #91c2cc; border-radius: 50%; color: #176e7f; background: #eff8fa; font-weight: 900; }
.planning-moc-source { margin: 0 24px 18px; padding: 14px 16px; border-left: 4px solid #26a5b5; border-radius: 8px; color: #41616f; background: #ecf7f8; }
.planning-moc-source b, .planning-moc-source span { display: block; }
.planning-moc-source b { margin-bottom: 5px; color: #155a69; }
.planning-moc-source span { font-size: .78rem; line-height: 1.5; }
.identity-banner.planning { background: linear-gradient(90deg, #e5f5f7, #f7fbfc); }

@media (max-width: 1440px) {
  .planning-command-band { grid-template-columns: 185px 1fr; }
  .planning-gate-strip { grid-column: 1 / -1; grid-template-columns: repeat(7, minmax(105px, 1fr)); }
  .planning-summary { grid-template-columns: repeat(3, 1fr); }
  .compliance-matrix-head, .compliance-matrix-row { grid-template-columns: 1.3fr 1fr 1fr 1.15fr 1.25fr .6fr; gap: 8px; }
}
@media (max-width: 1050px) {
  .planning-command-band, .planning-top-grid { grid-template-columns: 1fr; }
  .planning-score { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .planning-gate-strip { grid-template-columns: repeat(2, 1fr); }
  .planning-summary { grid-template-columns: repeat(2, 1fr); }
  .certification-plan-cards { grid-template-columns: 1fr; }
  .compliance-matrix-head { display: none; }
  .compliance-matrix-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planning-milestone-head { display: none; }
  .planning-milestone-row { grid-template-columns: .45fr 1.55fr 1fr; }
}

/* Sprint 09 · certification deliverable framework and tenant template center */
.deliverable-heading h1 { letter-spacing: -.025em; }
.framework-chip {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(50, 158, 152, .42);
  border-radius: 8px;
  background: rgba(44, 151, 145, .09);
  color: var(--teal-700, #177b78);
  font-size: calc(13px * var(--font-scale));
  font-weight: 800;
  letter-spacing: .035em;
}

.deliverable-policy-band {
  display: grid;
  grid-template-columns: auto minmax(260px, 1fr) minmax(420px, .9fr);
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
  padding: 18px 22px;
  border: 1px solid #b8d6d4;
  border-left: 5px solid #168981;
  border-radius: 10px;
  background: linear-gradient(98deg, #edf8f7 0%, #f8fbfb 55%, #f4f7f9 100%);
  box-shadow: 0 7px 22px rgba(18, 51, 73, .06);
}
.deliverable-policy-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: #153b58;
  color: #fff;
  font-size: calc(13px * var(--font-scale));
  font-weight: 900;
  letter-spacing: .08em;
}
.deliverable-policy-band > div b { display: block; color: #17354d; font-size: calc(16px * var(--font-scale)); }
.deliverable-policy-band > div p { margin: 6px 0 0; color: #536877; font-size: calc(13px * var(--font-scale)); line-height: 1.65; }
.deliverable-policy-band dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.deliverable-policy-band dl div { padding: 10px 12px; border-left: 2px solid #7ab7b3; background: rgba(255,255,255,.72); }
.deliverable-policy-band dt { color: #607282; font-size: calc(11px * var(--font-scale)); font-weight: 800; }
.deliverable-policy-band dd { margin: 4px 0 0; color: #183a55; font-size: calc(13px * var(--font-scale)); font-weight: 800; }

.deliverable-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(126px, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.deliverable-summary article {
  position: relative;
  min-height: 110px;
  padding: 16px 17px;
  overflow: hidden;
  border: 1px solid #d8e1e7;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(18, 44, 64, .045);
}
.deliverable-summary article::after { position: absolute; right: 0; bottom: 0; left: 0; height: 3px; content: ''; background: #b8c7d1; }
.deliverable-summary article:nth-child(2)::after, .deliverable-summary article:nth-child(5)::after { background: #1b938b; }
.deliverable-summary article:nth-child(3)::after { background: #e3a22d; }
.deliverable-summary article:nth-child(4)::after { background: #8797a3; }
.deliverable-summary article.deliverable-alert::after { background: #d34c45; }
.deliverable-summary span { display: block; color: #607181; font-size: calc(12px * var(--font-scale)); font-weight: 800; }
.deliverable-summary strong { display: block; margin: 7px 0 4px; color: #153a57; font-family: "Bahnschrift", "DIN Alternate", sans-serif; font-size: calc(31px * var(--font-scale)); line-height: 1; }
.deliverable-summary small { color: #74838e; font-size: calc(11px * var(--font-scale)); line-height: 1.4; }
.deliverable-summary .deliverable-alert { border-color: #e5c8c6; background: #fffafa; }
.deliverable-summary .deliverable-alert strong { color: #b83d37; }

.deliverable-phase-rail {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  overflow-x: auto;
  scrollbar-width: thin;
}
.deliverable-phase-rail button {
  min-width: 144px;
  min-height: 61px;
  padding: 10px 13px;
  text-align: left;
  border: 1px solid #d2dce3;
  border-radius: 8px;
  background: #f7f9fa;
  color: #536978;
  cursor: pointer;
}
.deliverable-phase-rail button b, .deliverable-phase-rail button span, .deliverable-phase-rail button small { display: block; }
.deliverable-phase-rail button b { color: #244760; font-size: calc(12px * var(--font-scale)); }
.deliverable-phase-rail button span { margin-top: 2px; color: #203c50; font-size: calc(13px * var(--font-scale)); font-weight: 800; }
.deliverable-phase-rail button small { margin-top: 3px; font-size: calc(10px * var(--font-scale)); }
.deliverable-phase-rail button.is-active { border-color: #177f7a; background: #153b58; box-shadow: inset 0 -3px 0 #5bd1c8; }
.deliverable-phase-rail button.is-active b, .deliverable-phase-rail button.is-active span { color: #fff; }
.deliverable-phase-rail button.is-active small { color: #bcd6df; }

.deliverable-toolbar {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 170px 180px;
  gap: 10px;
  margin-bottom: 12px;
}
.deliverable-toolbar select { min-height: 44px; border: 1px solid #ccd7df; border-radius: 7px; background: #fff; color: #304e63; padding: 0 12px; font-size: calc(13px * var(--font-scale)); }
.deliverable-workspace { display: grid; grid-template-columns: minmax(710px, 1.42fr) minmax(360px, .72fr); gap: 14px; align-items: start; }
.deliverable-register { overflow: hidden; }
.deliverable-table-head, .deliverable-row {
  display: grid;
  grid-template-columns: minmax(112px, .72fr) minmax(250px, 1.55fr) minmax(150px, .95fr) minmax(150px, .95fr) minmax(105px, .66fr);
  gap: 12px;
  align-items: center;
}
.deliverable-table-head { min-height: 43px; padding: 0 16px; border-bottom: 1px solid #d8e1e6; background: #eff3f5; color: #5a6e7d; font-size: calc(11px * var(--font-scale)); font-weight: 800; letter-spacing: .03em; }
.deliverable-row {
  width: 100%;
  min-height: 92px;
  padding: 14px 16px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #e3e9ed;
  background: #fff;
  color: #314e62;
  cursor: pointer;
}
.deliverable-row:hover { background: #f6fafb; }
.deliverable-row.is-selected { background: #eef8f7; box-shadow: inset 4px 0 0 #1b918a; }
.deliverable-row > span { min-width: 0; }
.deliverable-row b, .deliverable-row strong, .deliverable-row small { display: block; }
.deliverable-row > span > b { color: #23465f; font-size: calc(12px * var(--font-scale)); line-height: 1.42; }
.deliverable-row > span > small { margin-top: 5px; overflow: hidden; color: #758591; font-size: calc(10.5px * var(--font-scale)); line-height: 1.42; text-overflow: ellipsis; }
.deliverable-phase-cell > i { display: inline-flex; margin-bottom: 4px; padding: 3px 6px; border-radius: 4px; background: #173f5b; color: #fff; font-size: calc(10px * var(--font-scale)); font-style: normal; font-weight: 900; }
.deliverable-phase-cell .recommendation { display: inline-flex; width: max-content; margin-top: 5px; padding: 3px 6px; border-radius: 4px; font-weight: 800; }
.recommendation.required { background: #e9f5f3; color: #187b75; }
.recommendation.recommended { background: #eaf1f7; color: #356884; }
.recommendation.optional { background: #f4f0e8; color: #8b6b2d; }
.deliverable-name-cell > b { color: #183d58 !important; font-size: calc(14px * var(--font-scale)) !important; }
.deliverable-name-cell > strong { margin-top: 6px; color: #16827c; font-family: "Bahnschrift", sans-serif; font-size: calc(12px * var(--font-scale)); }
.deliverable-linked-cell small { white-space: nowrap; }
.deliverable-state-cell > i { display: inline-flex; min-width: 74px; justify-content: center; padding: 6px 8px; border-radius: 5px; font-size: calc(11px * var(--font-scale)); font-style: normal; font-weight: 900; }
.deliverable-state-cell > i.ready { background: #e2f4ec; color: #267454; }
.deliverable-state-cell > i.active { background: #e6f0f8; color: #356b8f; }
.deliverable-state-cell > i.pending { background: #fff3d8; color: #9a6816; }
.deliverable-state-cell > i.blocked { background: #fce8e6; color: #ad3d36; }
.deliverable-state-cell > i.muted { background: #edf0f2; color: #66747d; }

.deliverable-detail { position: sticky; top: 80px; overflow: hidden; }
.deliverable-detail-band { display: flex; justify-content: space-between; gap: 14px; padding: 21px; border-bottom: 1px solid #dbe4e9; background: linear-gradient(125deg, #153b58, #1e5570); color: #fff; }
.deliverable-detail-band > div { min-width: 0; }
.deliverable-detail-band span { color: #a8c9d6; font-size: calc(10px * var(--font-scale)); font-weight: 800; letter-spacing: .05em; }
.deliverable-detail-band h2 { margin: 6px 0 7px; font-size: calc(19px * var(--font-scale)); line-height: 1.3; }
.deliverable-detail-band p { margin: 0; color: #d3e1e7; font-size: calc(12px * var(--font-scale)); line-height: 1.55; }
.deliverable-detail-band > i { height: max-content; flex: 0 0 auto; padding: 6px 8px; border-radius: 5px; background: rgba(255,255,255,.13); color: #fff; font-size: calc(10px * var(--font-scale)); font-style: normal; font-weight: 900; }
.deliverable-detail-body { padding: 18px; }
.deliverable-decision-strip { display: grid; grid-template-columns: .7fr 1.25fr auto; gap: 8px; align-items: end; margin-bottom: 14px; }
.deliverable-decision-strip span { min-width: 0; }
.deliverable-decision-strip small, .deliverable-decision-strip b { display: block; }
.deliverable-decision-strip small { color: #778690; font-size: calc(10px * var(--font-scale)); }
.deliverable-decision-strip b { margin-top: 4px; overflow: hidden; color: #25485f; font-size: calc(12px * var(--font-scale)); text-overflow: ellipsis; white-space: nowrap; }
.deliverable-guidance { margin-bottom: 13px; padding: 11px 12px; border-left: 3px solid #d59b2e; background: #fff8e8; }
.deliverable-guidance b { color: #8a611d; font-size: calc(11px * var(--font-scale)); }
.deliverable-guidance p { margin: 4px 0 0; color: #6d624e; font-size: calc(11px * var(--font-scale)); line-height: 1.5; }
.deliverable-facts { display: grid; gap: 1px; margin: 0 0 14px; background: #e2e8ec; border: 1px solid #e2e8ec; }
.deliverable-facts div { padding: 9px 11px; background: #fff; }
.deliverable-facts dt { color: #71818c; font-size: calc(10px * var(--font-scale)); }
.deliverable-facts dd { margin: 4px 0 0; color: #28495f; font-size: calc(11px * var(--font-scale)); line-height: 1.5; }
.deliverable-io-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-bottom: 13px; }
.deliverable-io-grid section, .deliverable-object-block, .deliverable-linked-block, .deliverable-na-proof, .deliverable-gap-block { border: 1px solid #dce5e9; border-radius: 7px; background: #fafcfc; }
.deliverable-io-grid header, .deliverable-object-block header, .deliverable-linked-block header, .deliverable-na-proof header { display: flex; justify-content: space-between; padding: 9px 10px; border-bottom: 1px solid #e0e7eb; }
.deliverable-io-grid header b, .deliverable-object-block header b, .deliverable-linked-block header b, .deliverable-na-proof header b { color: #284b62; font-size: calc(11px * var(--font-scale)); }
.deliverable-io-grid header span, .deliverable-object-block header span, .deliverable-linked-block header span, .deliverable-na-proof header span { color: #758792; font-size: calc(10px * var(--font-scale)); }
.deliverable-io-grid p { margin: 0; padding: 7px 10px; color: #526c7d; font-size: calc(10.5px * var(--font-scale)); border-bottom: 1px dotted #dce4e8; }
.deliverable-object-block { margin-bottom: 13px; }
.deliverable-object-block > div { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px; }
.deliverable-object-block i { padding: 4px 7px; border-radius: 4px; background: #e8f3f2; color: #277a76; font-size: calc(10px * var(--font-scale)); font-style: normal; font-weight: 800; }
.deliverable-linked-block article { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px; border-bottom: 1px solid #e2e9ec; }
.deliverable-linked-block article b, .deliverable-linked-block article small { display: block; }
.deliverable-linked-block article b { color: #244960; font-size: calc(11px * var(--font-scale)); }
.deliverable-linked-block article small { margin-top: 3px; color: #6f808b; font-size: calc(10px * var(--font-scale)); }
.deliverable-linked-block article > i { padding: 4px 6px; border-radius: 4px; font-size: calc(10px * var(--font-scale)); font-style: normal; font-weight: 800; }
.deliverable-linked-block article > i.ready { background: #e2f4ec; color: #267454; }
.deliverable-linked-block article > i.pending { background: #fff3d8; color: #966719; }
.deliverable-empty-link { padding: 13px; }
.deliverable-empty-link b { color: #4e6574; font-size: calc(11px * var(--font-scale)); }
.deliverable-empty-link p { margin: 4px 0 0; color: #7a8891; font-size: calc(10px * var(--font-scale)); line-height: 1.5; }
.deliverable-gap-block { margin-top: 12px; padding: 11px 12px; border-color: #efd4d1; background: #fffafa; }
.deliverable-gap-block > b { color: #a33f3a; font-size: calc(11px * var(--font-scale)); }
.deliverable-gap-block ul { margin: 7px 0 0; padding-left: 18px; color: #745a57; font-size: calc(10.5px * var(--font-scale)); line-height: 1.6; }
.deliverable-na-proof { margin-bottom: 13px; border-color: #d8dee2; background: #f7f8f9; }
.deliverable-na-proof dl { margin: 0; padding: 10px; }
.deliverable-na-proof dl div + div { margin-top: 9px; }
.deliverable-na-proof dt { color: #737f86; font-size: calc(10px * var(--font-scale)); }
.deliverable-na-proof dd { margin: 3px 0 0; color: #425867; font-size: calc(11px * var(--font-scale)); line-height: 1.5; }

.deliverable-drawer { width: min(720px, 96vw); }
.deliverable-na-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 13px; border: 1px solid #e0c48f; border-radius: 8px; background: #fff9ec; }
.deliverable-na-fields[hidden] { display: none; }
.deliverable-na-fields .na-field-heading, .deliverable-na-fields > label:last-child { grid-column: 1 / -1; }
.na-field-heading { display: flex; justify-content: space-between; align-items: center; }
.na-field-heading b { color: #815a1d; font-size: calc(12px * var(--font-scale)); }
.na-field-heading span { color: #a27a39; font-size: calc(10px * var(--font-scale)); font-weight: 700; }
.deliverable-drawer select[multiple] { min-height: 138px; padding: 7px; }
.deliverable-drawer select[multiple] option { padding: 7px 8px; border-radius: 4px; }
.deliverable-drawer-actions { grid-template-columns: auto 1fr auto auto; }

.deliverable-mode-tabs { display: flex; gap: 0; width: fit-content; margin: 0 0 18px; padding: 4px; border: 1px solid #cdd9e0; border-radius: 9px; background: #eaf0f3; }
.deliverable-mode-tabs button { min-width: 235px; padding: 10px 18px; text-align: left; border: 0; border-radius: 6px; background: transparent; color: #627482; cursor: pointer; }
.deliverable-mode-tabs button b, .deliverable-mode-tabs button small { display: block; }
.deliverable-mode-tabs button b { font-size: calc(13px * var(--font-scale)); }
.deliverable-mode-tabs button small { margin-top: 2px; font-size: calc(10px * var(--font-scale)); }
.deliverable-mode-tabs button.is-active { background: #153b58; color: #fff; box-shadow: 0 4px 10px rgba(19, 54, 80, .18); }
.deliverable-mode-tabs button.is-active small { color: #c5dae3; }
.deliverable-project-surface[hidden], .deliverable-template-view[hidden] { display: none !important; }

.template-policy-band { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-bottom: 14px; padding: 15px 17px; border: 1px solid #bcd5d4; border-radius: 9px; background: linear-gradient(100deg, #eaf7f6, #f8fbfb 62%, #eef3f6); }
.template-policy-band > span { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 7px; background: #177f7a; color: white; font-family: Bahnschrift, sans-serif; font-weight: 900; letter-spacing: .08em; }
.template-policy-band b { color: #173d56; font-size: calc(15px * var(--font-scale)); }
.template-policy-band p { margin: 4px 0 0; color: #586e7b; font-size: calc(12px * var(--font-scale)); }
.template-summary { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.template-summary article { min-height: 98px; padding: 14px 16px; border: 1px solid #d6e0e6; border-bottom: 3px solid #8199a8; border-radius: 8px; background: #fff; }
.template-summary article:nth-child(2), .template-summary article:nth-child(3) { border-bottom-color: #1a9189; }
.template-summary article.template-attention { border-color: #ead8ad; border-bottom-color: #d79b27; background: #fffdf7; }
.template-summary span, .template-summary small { display: block; color: #697b87; font-size: calc(11px * var(--font-scale)); }
.template-summary strong { display: block; margin: 6px 0 3px; color: #163b57; font-family: Bahnschrift, sans-serif; font-size: calc(29px * var(--font-scale)); line-height: 1; }
.template-toolbar { display: grid; grid-template-columns: minmax(360px, 1fr) 150px 170px; gap: 10px; margin-bottom: 12px; }
.template-toolbar select { min-height: 44px; padding: 0 12px; border: 1px solid #cad7df; border-radius: 7px; background: #fff; color: #304f64; font-size: calc(13px * var(--font-scale)); }
.template-workspace { display: grid; grid-template-columns: minmax(720px, 1.45fr) minmax(370px, .72fr); gap: 14px; align-items: start; }
.template-register { overflow: hidden; }
.template-table-head, .template-row { display: grid; grid-template-columns: minmax(150px, .8fr) minmax(300px, 1.55fr) minmax(130px, .7fr) minmax(120px, .62fr); gap: 12px; align-items: center; }
.template-table-head { min-height: 43px; padding: 0 16px; border-bottom: 1px solid #d8e1e6; background: #eff3f5; color: #5a6e7d; font-size: calc(11px * var(--font-scale)); font-weight: 800; }
.template-row { width: 100%; min-height: 94px; padding: 14px 16px; text-align: left; border: 0; border-bottom: 1px solid #e3e9ed; background: #fff; color: #314e62; cursor: pointer; }
.template-row:hover { background: #f6fafb; }
.template-row.is-selected { background: #edf8f7; box-shadow: inset 4px 0 0 #16867f; }
.template-row > span, .template-row b, .template-row small { min-width: 0; }
.template-row b, .template-row small { display: block; }
.template-row b { color: #183d57; font-size: calc(12px * var(--font-scale)); }
.template-row small { margin-top: 4px; overflow: hidden; color: #6d7e89; font-size: calc(10.5px * var(--font-scale)); line-height: 1.45; text-overflow: ellipsis; }
.template-code { color: #167c77 !important; font-family: Bahnschrift, Consolas, sans-serif; font-size: calc(11px * var(--font-scale)) !important; letter-spacing: .035em; }
.template-origin, .template-state { display: inline-flex !important; width: fit-content; margin-top: 7px !important; padding: 3px 7px; border-radius: 4px; background: #e6f2f1; color: #177b75 !important; font-weight: 800; }
.template-origin.platform { background: #e9eef2; color: #526b7c !important; }
.template-state.inactive { background: #eceeef; color: #69767e !important; }
.template-revision { font-family: Bahnschrift, sans-serif; font-size: calc(17px * var(--font-scale)) !important; }
.template-detail { position: sticky; top: 82px; overflow: hidden; }
.template-detail-band { padding: 18px; border-bottom: 1px solid #dce5ea; background: linear-gradient(115deg, #153b58, #1b5368); color: white; }
.template-detail-band span { color: #a9d7d4; font-size: calc(10px * var(--font-scale)); font-weight: 800; letter-spacing: .06em; }
.template-detail-band h2 { margin: 6px 0; font-size: calc(19px * var(--font-scale)); line-height: 1.28; }
.template-detail-band p { margin: 0; color: #d7e4e9; font-size: calc(11px * var(--font-scale)); line-height: 1.55; }
.template-detail-body { padding: 15px; }
.template-detail-actions { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; margin-bottom: 13px; }
.template-detail-actions > span { color: #687b87; font-size: calc(10px * var(--font-scale)); }
.template-impact-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin-bottom: 13px; border: 1px solid #d8e2e7; border-radius: 7px; background: #f6f9fa; }
.template-impact-strip span { padding: 9px 10px; }
.template-impact-strip span + span { border-left: 1px solid #d8e2e7; }
.template-impact-strip small, .template-impact-strip b { display: block; }
.template-impact-strip small { color: #71818b; font-size: calc(9.5px * var(--font-scale)); }
.template-impact-strip b { margin-top: 3px; color: #23465d; font-size: calc(12px * var(--font-scale)); }
.template-history { margin-top: 12px; border-top: 1px solid #dce4e9; }
.template-history > header { display: flex; justify-content: space-between; padding: 12px 0 7px; color: #274a60; font-size: calc(11px * var(--font-scale)); }
.template-history article { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 8px 0; border-top: 1px dashed #dde5e9; }
.template-history article > b { color: #17837c; font-family: Bahnschrift, sans-serif; font-size: calc(11px * var(--font-scale)); }
.template-history article p { margin: 0; color: #4e6473; font-size: calc(10px * var(--font-scale)); line-height: 1.45; }
.template-history article small { display: block; margin-top: 3px; color: #81909a; font-size: calc(9px * var(--font-scale)); }
.document-template-drawer { width: min(780px, 96vw); }
.document-template-drawer textarea { resize: vertical; }
.template-change-note { padding: 11px; border: 1px solid #dfc17d; border-radius: 7px; background: #fff9eb; }
.deliverable-template-update { display: inline-flex !important; width: fit-content; margin-top: 5px !important; padding: 3px 6px; border-radius: 4px; background: #fff0cb; color: #8c6012 !important; font-weight: 900; }
.deliverable-template-retired { background: #eceeef; color: #65737c !important; }

/* Sprint 10 · explainable project initialization */
.initialization-shell { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 18px; align-items: start; }
.initialization-main { display: grid; gap: 18px; min-width: 0; }
.initialization-step { overflow: hidden; border-color: #cbd8df; box-shadow: 0 8px 24px rgba(25, 55, 73, .055); }
.initialization-step > .panel-head { min-height: 58px; padding: 13px 16px; border-bottom: 1px solid #d9e2e7; background: linear-gradient(90deg, #f7fafb 0%, #fff 72%); }
.initialization-step > .panel-head > div:first-child { display: flex; align-items: center; gap: 10px; }
.initialization-step > .panel-head h2 { margin: 0; color: #173749; font-size: calc(17px * var(--font-scale)); letter-spacing: -.01em; }
.profile-head-actions { display: flex !important; gap: 8px !important; align-items: center !important; }
.profile-head-actions .autosave { white-space: nowrap; }
.profile-step > .form-grid, .initialization-step > .form-grid { padding: 17px; }
.profile-lead { display: grid; grid-template-columns: minmax(230px, .65fr) 1.35fr; gap: 20px; align-items: end; padding: 16px; background: #123749; color: #fff; }
.profile-lead label { color: #dfeaf0; }
.profile-lead select { background: #fff; }
.profile-lead p { margin: 0 0 5px; color: #d3e2e9; font-size: calc(12px * var(--font-scale)); line-height: 1.6; }
.profile-group { padding: 17px; border-bottom: 1px solid #e2e9ed; }
.profile-group:last-child { border-bottom: 0; }
.profile-group-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.profile-group-head > div { display: grid; gap: 3px; }
.profile-group-head b { color: #193b4d; font-size: calc(14px * var(--font-scale)); }
.profile-group-head small { color: #6c7f8a; font-size: calc(11px * var(--font-scale)); line-height: 1.45; }
.profile-group-head > span { min-width: 38px; padding: 3px 7px; border: 1px solid #94b7c3; color: #30707b; font: 800 calc(10px * var(--font-scale)) Bahnschrift, sans-serif; text-align: center; letter-spacing: .08em; }
.basis-option-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.choice-card { position: relative; display: flex; gap: 9px; align-items: flex-start; min-height: 77px; padding: 12px; border: 1px solid #cddbe1; border-radius: 7px; background: #fbfcfd; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.choice-card:hover { border-color: #5a959e; box-shadow: 0 3px 12px rgba(28, 91, 99, .08); }
.choice-card:has(input:checked) { border-color: #15827c; background: #ecf8f5; box-shadow: inset 3px 0 #15827c; }
.choice-card.accent:has(input:checked) { border-color: #cb8c21; background: #fff8e8; box-shadow: inset 3px 0 #cb8c21; }
.choice-card input { margin-top: 3px; accent-color: #15827c; }
.choice-card span { display: grid; gap: 4px; }
.choice-card b { color: #173849; font-size: calc(13px * var(--font-scale)); }
.choice-card small { color: #6d7f88; font-size: calc(10px * var(--font-scale)); line-height: 1.4; }
.inline-profile-input { display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 12px; margin-top: 11px; }
.inline-profile-input > span { color: #506976; font-size: calc(11px * var(--font-scale)); font-weight: 800; }
.special-condition-fields { display: grid; grid-template-columns: .8fr 1.2fr; gap: 10px; margin-top: 11px; padding: 12px; border-left: 3px solid #c9912e; background: #fff9ec; }
.special-condition-fields.is-disabled { opacity: .55; filter: grayscale(.2); }
.standard-chip-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.standard-chip-grid label { position: relative; cursor: pointer; }
.standard-chip-grid input { position: absolute; opacity: 0; pointer-events: none; }
.standard-chip-grid span { display: grid; min-height: 62px; padding: 10px; border: 1px solid #cbd8de; border-radius: 6px; background: #fff; color: #244555; font: 800 calc(12px * var(--font-scale)) Bahnschrift, sans-serif; }
.standard-chip-grid span small { margin-top: 5px; color: #788b95; font: 500 calc(9px * var(--font-scale)) "Microsoft YaHei", sans-serif; }
.standard-chip-grid input:checked + span { border-color: #177c79; background: #e9f7f4; color: #09635f; box-shadow: inset 0 -3px #177c79; }
.feature-chip-grid { display: flex; flex-wrap: wrap; gap: 7px; }
.feature-chip-grid label { position: relative; cursor: pointer; }
.feature-chip-grid input { position: absolute; opacity: 0; }
.feature-chip-grid span { display: inline-flex; min-height: 34px; align-items: center; padding: 7px 11px; border: 1px solid #cbd8df; border-radius: 5px; background: #fff; color: #49636f; font-size: calc(11px * var(--font-scale)); font-weight: 800; }
.feature-chip-grid input:checked + span { border-color: #1b7780; background: #1b5264; color: #fff; }
.profile-notes { display: grid; gap: 6px; margin-top: 11px; }
.profile-notes textarea { resize: vertical; }
.recommendation-step { min-height: 500px; }
.recommendation-head .heading-actions { margin-left: auto; }
.recommendation-rule { display: grid; grid-template-columns: 142px 1fr; align-items: center; padding: 11px 16px; background: #173a4b; color: #dce9ee; }
.recommendation-rule span { color: #7dd0c5; font: 900 calc(10px * var(--font-scale)) Bahnschrift, sans-serif; letter-spacing: .12em; }
.recommendation-rule p { margin: 0; font-size: calc(11px * var(--font-scale)); line-height: 1.55; }
.recommendation-runbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; border-bottom: 1px solid #e1e8ec; }
.recommendation-runbar > div { display: grid; gap: 3px; }
.recommendation-runbar b { color: #1e4050; font-size: calc(13px * var(--font-scale)); }
.recommendation-runbar small { color: #71838d; font-size: calc(10px * var(--font-scale)); }
.recommendation-runbar > span { padding: 5px 9px; border: 1px solid #b8c8d0; border-radius: 4px; color: #5b707b; font-size: calc(10px * var(--font-scale)); font-weight: 900; }
.recommendation-runbar > span.applied { border-color: #5fa89c; background: #e8f6f2; color: #126d65; }
.recommendation-metrics { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid #dfe7eb; background: #f8fafb; }
.recommendation-metrics article { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 11px 14px; border-right: 1px solid #dfe7eb; }
.recommendation-metrics article:last-child { border-right: 0; }
.recommendation-metrics span { color: #687d88; font-size: calc(10px * var(--font-scale)); font-weight: 800; }
.recommendation-metrics b { color: #163d4f; font: 900 calc(20px * var(--font-scale)) Bahnschrift, sans-serif; }
.recommendation-toolbar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e1e8ec; }
.recommendation-filter { min-width: max-content; }
.recommendation-search { display: flex; align-items: center; gap: 7px; width: min(330px, 42%); padding: 0 9px; border: 1px solid #ccd9df; border-radius: 5px; background: #fff; }
.recommendation-search input { width: 100%; border: 0; outline: 0; background: transparent; }
.recommendation-table-head { display: grid; grid-template-columns: 58px minmax(260px, 1.25fr) minmax(250px, 1fr) 110px; gap: 12px; padding: 8px 16px; background: #eaf0f3; color: #617680; font-size: calc(9px * var(--font-scale)); font-weight: 900; letter-spacing: .06em; }
.recommendation-rows { max-height: 680px; overflow: auto; }
.recommendation-row { display: grid; grid-template-columns: 58px minmax(260px, 1.25fr) minmax(250px, 1fr) 110px; gap: 12px; align-items: start; padding: 14px 16px; border-bottom: 1px solid #e2e8eb; background: #fff; }
.recommendation-row:hover { background: #fbfdfd; }
.recommendation-row.is-existing { background: #f7f9fa; }
.recommendation-select { display: grid; justify-items: center; gap: 5px; }
.recommendation-select input { width: 17px; height: 17px; accent-color: #147a74; }
.score-mark { width: 36px; padding: 3px 0; border: 1px solid #9eb2bc; border-radius: 4px; color: #385866; font: 800 calc(10px * var(--font-scale)) Bahnschrift, sans-serif; text-align: center; }
.recommendation-doc { display: grid; gap: 5px; min-width: 0; }
.recommendation-doc > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.recommendation-doc b { color: #183d4e; font-size: calc(13px * var(--font-scale)); }
.recommendation-doc small { color: #6e818a; font-size: calc(10px * var(--font-scale)); line-height: 1.45; }
.recommendation-level { display: inline-flex; width: fit-content; padding: 3px 6px; border-radius: 3px; font-size: calc(9px * var(--font-scale)); font-weight: 900; }
.recommendation-level.recommended { background: #dff3ef; color: #086961; }
.recommendation-level.evaluate { background: #fff0ce; color: #8b5b08; }
.recommendation-level.quiet { background: #edf0f2; color: #64747c; }
.recommendation-reasons { display: grid; gap: 5px; }
.recommendation-reasons p { margin: 0; color: #4e6570; font-size: calc(10px * var(--font-scale)); line-height: 1.45; }
.recommendation-reasons p::before { content: "—"; margin-right: 5px; color: #178078; font-weight: 900; }
.rule-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.rule-chips span { padding: 2px 5px; border: 1px solid #b9ccd3; border-radius: 3px; color: #4b6b77; font: 800 calc(8px * var(--font-scale)) Bahnschrift, sans-serif; }
.recommendation-state { display: grid; gap: 6px; justify-items: start; }
.recommendation-state b { color: #315260; font-size: calc(10px * var(--font-scale)); }
.recommendation-state small { color: #80919a; font-size: calc(9px * var(--font-scale)); }
.initialization-aside { display: grid; gap: 14px; min-width: 0; }
.sticky-readiness { position: sticky; top: 78px; z-index: 2; }
.readiness-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 9px; margin: 13px 0; }
.readiness-checks span { display: flex; gap: 5px; align-items: center; color: #c9d9e0; font-size: calc(9px * var(--font-scale)); }
.readiness-checks span::before { content: "○"; color: #76909b; }
.readiness-checks span.done::before { content: "●"; color: #6fd0bd; }
.readiness-warnings { display: grid; gap: 6px; }
.readiness-warnings p { margin: 0; padding: 7px 8px; border-left: 2px solid #d59b34; background: rgba(255,255,255,.08); color: #e9dfca; font-size: calc(9px * var(--font-scale)); line-height: 1.45; }
.initialization-principle { border-left: 4px solid #d49a32; }
.recommendation-history-card, .initialization-links { padding: 14px; }
.aside-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.aside-card-head b, .initialization-links > b { color: #1c4050; font-size: calc(12px * var(--font-scale)); }
.aside-card-head span { color: #6d8c97; font: 800 calc(8px * var(--font-scale)) Bahnschrift, sans-serif; letter-spacing: .08em; }
.history-run { display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 9px 0; border-top: 1px solid #e1e8eb; }
.recommendation-history-card button.history-run { width: 100%; border-right: 0; border-bottom: 0; border-left: 0; background: transparent; text-align: left; cursor: pointer; }
.history-run:first-child { border-top: 0; }
.history-run > span { display: grid; place-items: center; height: 30px; border: 1px solid #9db5be; color: #2c6370; font: 900 calc(9px * var(--font-scale)) Bahnschrift, sans-serif; }
.history-run div { display: grid; gap: 2px; }
.history-run b { color: #294b5b; font-size: calc(10px * var(--font-scale)); }
.history-run small { color: #75868e; font-size: calc(9px * var(--font-scale)); line-height: 1.4; }
.initialization-links { display: grid; gap: 8px; }
.initialization-links > b { margin-bottom: 3px; }
.initialization-links button { display: grid; grid-template-columns: 37px 1fr 12px; gap: 8px; align-items: center; width: 100%; padding: 9px; border: 1px solid #d6e0e4; border-radius: 5px; background: #fff; color: #45616d; text-align: left; cursor: pointer; }
.initialization-links button:hover { border-color: #5b929a; background: #f3faf8; }
.initialization-links button > span { display: grid; place-items: center; height: 32px; background: #e7f1f2; color: #236976; font: 900 calc(9px * var(--font-scale)) Bahnschrift, sans-serif; }
.initialization-links button div { display: grid; gap: 2px; }
.initialization-links button strong { color: #294b5b; font-size: calc(10px * var(--font-scale)); }
.initialization-links button small { color: #7a8a92; font-size: calc(8px * var(--font-scale)); }

@media (max-width: 1180px) {
  .initialization-shell { grid-template-columns: 1fr; }
  .initialization-aside { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-readiness { position: static; }
  .standard-chip-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Sprint 13 · conformity test and flight operations */
.test-heading { align-items: end; }
.test-command-band { display: grid; grid-template-columns: 148px 1fr 288px; min-height: 146px; margin-bottom: 16px; overflow: hidden; border: 1px solid #173f59; border-radius: 10px; color: #fff; background: #123750; box-shadow: 0 13px 32px rgba(21, 55, 76, .14); }
.test-command-score { display: flex; flex-direction: column; justify-content: center; padding: 22px 26px; background: #0b8179; }
.test-command-score span, .test-api-boundary span, .test-command-copy p { margin: 0; color: #83e4dc; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .12em; }
.test-command-score strong { margin: 5px 0 2px; font-family: Georgia, 'Times New Roman', serif; font-size: calc(44px * var(--font-scale)); line-height: 1; }
.test-command-score small { color: #d7fffb; font-size: calc(11px * var(--font-scale)); }
.test-command-copy { display: flex; flex-direction: column; justify-content: center; padding: 22px 30px; }
.test-command-copy h2 { margin: 6px 0; font-size: calc(20px * var(--font-scale)); }
.test-command-copy > span { color: #c3d7e3; font-size: calc(12px * var(--font-scale)); }
.test-command-copy > div { height: 5px; margin-top: 19px; overflow: hidden; background: #315a72; }
.test-command-copy > div i { display: block; width: 0; height: 100%; background: #5ed2c9; transition: width .35s ease; }
.test-api-boundary { display: flex; flex-direction: column; justify-content: center; padding: 22px 26px; border-left: 1px solid #365970; background: #1c2f3d; }
.test-api-boundary strong { margin: 7px 0 4px; font-size: calc(17px * var(--font-scale)); }
.test-api-boundary small { color: #bbcbd5; }
.test-api-boundary button { width: max-content; margin-top: 14px; padding: 0; border: 0; color: #6bd8d0; font-weight: 800; background: transparent; cursor: pointer; }
.test-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.test-summary-grid article { min-height: 100px; padding: 17px 19px; border: 1px solid #d5e0e6; border-bottom: 3px solid #3e738f; border-radius: 8px; background: #fff; box-shadow: 0 7px 17px rgba(29, 60, 78, .06); }
.test-summary-grid span, .test-summary-grid small { display: block; color: #6c7e89; font-size: calc(11px * var(--font-scale)); }
.test-summary-grid strong { display: block; margin: 6px 0; color: #153d57; font-family: Georgia, 'Times New Roman', serif; font-size: calc(25px * var(--font-scale)); }
.test-tabs { display: flex; gap: 3px; margin-bottom: 12px; border-bottom: 1px solid #cbd9e0; }
.test-tabs button { padding: 12px 18px; border: 0; border-bottom: 3px solid transparent; color: #566d7b; font-weight: 800; background: transparent; cursor: pointer; }
.test-tabs button.is-active { border-bottom-color: #0b9087; color: #153f58; }
.test-view { display: none; }
.test-view.is-active { display: block; animation: panelIn .2s ease-out; }
.test-subject-workspace { display: grid; grid-template-columns: minmax(270px, .72fr) minmax(500px, 1.45fr) minmax(280px, .72fr); gap: 12px; align-items: start; }
.test-subject-list-panel, .test-subject-detail, .test-release-gate { min-height: 610px; overflow: hidden; }
.test-panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 17px 18px; border-bottom: 1px solid #dbe4e9; background: #f4f8fa; }
.test-panel-heading h2, .test-view-toolbar h2 { margin: 3px 0 0; color: #153f58; font-size: calc(17px * var(--font-scale)); }
.test-panel-heading select { max-width: 130px; }
.test-subject-list { padding: 8px; }
.test-subject-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; width: 100%; padding: 13px 10px; border: 0; border-bottom: 1px solid #e3eaee; color: #29495c; text-align: left; background: #fff; cursor: pointer; }
.test-subject-row:hover { background: #f0f8f8; }
.test-subject-row.is-selected { box-shadow: inset 4px 0 #0a9187; background: #eaf7f5; }
.test-subject-row > i { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #b9d2d5; color: #087b74; font-style: normal; font-weight: 900; background: #fff; }
.test-subject-row strong, .test-subject-row small { display: block; }
.test-subject-row strong { margin-bottom: 5px; font-size: calc(12px * var(--font-scale)); }
.test-subject-row small { color: #71838d; font-size: calc(10px * var(--font-scale)); line-height: 1.45; }
.test-subject-row > span:last-child { align-self: center; color: #73848f; font-size: calc(10px * var(--font-scale)); font-weight: 800; }
.test-subject-detail-head { display: grid; grid-template-columns: 66px 1fr auto; align-items: center; gap: 16px; padding: 20px; border-bottom: 1px solid #dbe4e9; background: #f3f8fa; }
.test-subject-detail-head > i { display: grid; place-items: center; width: 62px; height: 62px; color: #fff; font-style: normal; font-weight: 900; background: #184967; }
.test-subject-detail-head p { margin: 0 0 4px; color: #0c8d84; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .08em; }
.test-subject-detail-head h2 { margin: 0; color: #153e57; font-size: calc(19px * var(--font-scale)); }
.test-subject-detail-head small { color: #6a7d89; }
.test-subject-detail-body { padding: 20px; }
.test-purpose { margin: 0 0 15px; padding: 11px 13px; border-left: 3px solid #0a9288; color: #4f6877; background: #f5f9fa; line-height: 1.55; }
.test-fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.test-fact-grid div { padding: 11px 12px; border: 1px solid #d8e3e8; }
.test-fact-grid span, .test-fact-grid small { display: block; color: #758791; font-size: calc(10px * var(--font-scale)); }
.test-fact-grid b { display: block; margin: 4px 0; color: #203f52; font-size: calc(11px * var(--font-scale)); }
.test-chain { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 13px 0 18px; overflow: hidden; border: 1px solid #cad8de; background: #cad8de; }
.test-chain > div { min-width: 0; padding: 12px; background: #fff; }
.test-chain span, .test-chain small { display: block; overflow: hidden; color: #74848e; font-size: calc(9px * var(--font-scale)); text-overflow: ellipsis; white-space: nowrap; }
.test-chain b { display: block; margin: 5px 0; overflow: hidden; color: #173f58; font-size: calc(11px * var(--font-scale)); text-overflow: ellipsis; white-space: nowrap; }
.test-section-title { display: flex; align-items: center; justify-content: space-between; margin: 17px 0 8px; color: #254759; font-size: calc(11px * var(--font-scale)); font-weight: 900; }
.test-section-title span { color: #71838e; font-size: calc(9px * var(--font-scale)); font-weight: 700; }
.test-execution-mini { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 11px 12px; border: 1px solid #dae5e9; border-left: 3px solid #0c9389; background: #fff; }
.test-execution-mini.is-blocked { border-left-color: #cb604b; background: #fff8f6; }
.test-execution-mini strong, .test-execution-mini small { display: block; }
.test-execution-mini strong { color: #244659; font-size: calc(11px * var(--font-scale)); }
.test-execution-mini small { margin-top: 4px; color: #74848d; font-size: calc(9px * var(--font-scale)); }
.test-release-gate { min-height: 420px; }
.test-gate-head { padding: 20px; color: #fff; background: #a74b3b; }
.test-gate-head.is-ready { background: #087f78; }
.test-gate-head span { color: #ffd9d1; font-size: calc(9px * var(--font-scale)); font-weight: 900; letter-spacing: .1em; }
.test-gate-head.is-ready span { color: #c9fffa; }
.test-gate-head h2 { margin: 6px 0 0; font-size: calc(18px * var(--font-scale)); }
.test-gate-list { padding: 14px; }
.test-gate-item { display: grid; grid-template-columns: 24px 1fr; gap: 9px; align-items: start; padding: 9px 2px; border-bottom: 1px solid #e2e9ec; color: #526b78; font-size: calc(10px * var(--font-scale)); line-height: 1.45; }
.test-gate-item i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font-style: normal; font-weight: 900; background: #bf5441; }
.test-gate-item.ok i { background: #118a82; }
.test-gate-action { padding: 0 14px 16px; }
.test-gate-action .btn { width: 100%; }
.test-view-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 13px; padding: 17px 19px; border: 1px solid #d3e0e5; border-left: 5px solid #0b9187; background: #fff; }
.test-view-toolbar p { margin: 5px 0 0; color: #647985; }
.test-article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.test-article-card { overflow: hidden; border: 1px solid #d4e0e5; border-top: 4px solid #b55240; border-radius: 8px; background: #fff; box-shadow: 0 7px 18px rgba(29, 60, 78, .06); }
.test-article-card.is-ready { border-top-color: #0c8e84; }
.test-article-card header { display: flex; justify-content: space-between; gap: 12px; padding: 17px 18px 12px; }
.test-article-card h3 { margin: 4px 0; color: #173e56; }
.test-article-card header span, .test-article-card header small { display: block; color: #71838e; font-size: calc(10px * var(--font-scale)); }
.test-article-card header em { height: max-content; padding: 5px 8px; color: #974434; font-size: calc(9px * var(--font-scale)); font-style: normal; font-weight: 900; background: #fff0ec; }
.test-article-card.is-ready header em { color: #087970; background: #e4f6f4; }
.test-article-line { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0 18px 12px; border: 1px solid #d8e3e7; background: #d8e3e7; }
.test-article-line div { min-width: 0; padding: 10px; background: #f8fafb; }
.test-article-line span, .test-article-line b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.test-article-line span { color: #788994; font-size: calc(9px * var(--font-scale)); }
.test-article-line b { margin-top: 4px; color: #294a5c; font-size: calc(10px * var(--font-scale)); }
.test-article-card footer { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px; border-top: 1px solid #e1e9ec; color: #6e818c; font-size: calc(10px * var(--font-scale)); background: #f8fafb; }
.test-article-card footer button { border: 0; color: #087f77; font-weight: 800; background: transparent; cursor: pointer; }
.test-register { overflow: hidden; }
.test-register-head, .test-register-row { display: grid; align-items: center; gap: 12px; }
.test-register-head { padding: 11px 16px; color: #687e8b; font-size: calc(9px * var(--font-scale)); font-weight: 900; text-transform: uppercase; background: #eef4f6; }
.test-register-head.auth, .test-register-row.auth { grid-template-columns: 1.2fr 1.1fr .8fr .75fr; }
.test-register-head.execution, .test-register-row.execution { grid-template-columns: .8fr 1.2fr 1.2fr .8fr; }
.test-register-row { width: 100%; padding: 14px 16px; border: 0; border-bottom: 1px solid #e1e8ec; color: #2b4b5d; text-align: left; background: #fff; cursor: pointer; }
.test-register-row:hover { background: #f1f8f8; }
.test-register-row strong, .test-register-row small { display: block; }
.test-register-row strong { font-size: calc(11px * var(--font-scale)); }
.test-register-row small { margin-top: 4px; color: #74858e; font-size: calc(9px * var(--font-scale)); line-height: 1.45; }
.test-register-row > em { justify-self: start; padding: 5px 8px; color: #9b4536; font-size: calc(9px * var(--font-scale)); font-style: normal; font-weight: 900; background: #fff0ec; }
.test-register-row > em.is-ready { color: #087c74; background: #e4f6f4; }

@media (max-width: 1450px) {
  .test-subject-workspace { grid-template-columns: 300px 1fr; }
  .test-release-gate { grid-column: 1 / -1; min-height: 0; }
  .test-gate-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
}

@media (max-width: 980px) {
  .test-command-band { grid-template-columns: 120px 1fr; }
  .test-api-boundary { grid-column: 1 / -1; border-top: 1px solid #365970; border-left: 0; }
  .test-summary-grid, .test-article-grid { grid-template-columns: repeat(2, 1fr); }
  .test-subject-workspace { grid-template-columns: 1fr; }
  .test-release-gate { grid-column: auto; }
}
@media (max-width: 760px) {
  .initialization-aside, .basis-option-grid, .profile-lead, .special-condition-fields { grid-template-columns: 1fr; }
  .standard-chip-grid { grid-template-columns: repeat(2, 1fr); }
  .inline-profile-input { grid-template-columns: 1fr; gap: 5px; }
  .recommendation-toolbar { align-items: stretch; flex-direction: column; }
  .recommendation-search { width: 100%; min-height: 38px; }
  .recommendation-table-head { display: none; }
  .recommendation-row { grid-template-columns: 45px 1fr; }
  .recommendation-reasons, .recommendation-state { grid-column: 2; }
  .recommendation-metrics { grid-template-columns: repeat(2, 1fr); }
}
.deliverable-template-notice { margin-bottom: 12px; padding: 10px 11px; border: 1px solid #e5c777; border-radius: 6px; background: #fff9e8; color: #71531d; font-size: calc(10.5px * var(--font-scale)); line-height: 1.55; }
.deliverable-template-notice b { display: block; color: #724f0e; }
.deliverable-template-notice button { margin-top: 8px; }

@media (max-width: 1450px) {
  .deliverable-summary { grid-template-columns: repeat(3, 1fr); }
  .deliverable-workspace { grid-template-columns: 1fr; }
  .deliverable-detail { position: static; }
  .template-workspace { grid-template-columns: 1fr; }
  .template-detail { position: static; }
}

@media (max-width: 980px) {
  .deliverable-policy-band { grid-template-columns: auto 1fr; }
  .deliverable-policy-band dl { grid-column: 1 / -1; }
  .deliverable-toolbar { grid-template-columns: 1fr 1fr; }
  .deliverable-toolbar .basis-search { grid-column: 1 / -1; }
  .deliverable-register { overflow-x: auto; }
  .deliverable-table-head, .deliverable-row { min-width: 930px; }
  .template-summary { grid-template-columns: repeat(2, 1fr); }
  .template-toolbar { grid-template-columns: 1fr 1fr; }
  .template-toolbar .basis-search { grid-column: 1 / -1; }
  .template-register { overflow-x: auto; }
  .template-table-head, .template-row { min-width: 860px; }
}

* { box-sizing: border-box; }
html { font-size: calc(16px * var(--font-scale)); }
body {
  margin: 0;
  min-width: 1120px;
  color: var(--ink);
  background: var(--paper);
  font-family: Aptos, "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
  font-size: .94rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(0, 139, 132, .24);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px 1fr; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 252px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  color: #f4fbff;
  background:
    radial-gradient(circle at 12% 8%, rgba(45, 157, 168, .23), transparent 25%),
    linear-gradient(155deg, #102e49 0%, #0c253b 70%, #081d2e 100%);
  border-right: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 8px 0 28px rgba(8, 29, 46, .13);
}
.sidebar::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 200px;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: linear-gradient(transparent, #000);
}
.brand { height: 86px; display: flex; align-items: center; gap: 12px; padding: 0 22px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.brand-mark { position: relative; width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(125, 224, 215, .52); border-radius: 50%; font: 700 .84rem/1 Bahnschrift, sans-serif; color: #c6fff8; letter-spacing: .05em; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; background: #5bd1c8; }
.brand-mark::before { width: 16px; height: 2px; right: -7px; top: 14px; transform: rotate(-16deg); }
.brand-mark::after { width: 7px; height: 7px; right: -7px; top: 11px; border-radius: 50%; }
.brand strong { display: block; font: 700 1.04rem/1.2 Bahnschrift, "Microsoft YaHei UI", sans-serif; letter-spacing: .04em; }
.brand small { display: block; margin-top: 5px; color: #9db7c9; font-size: .62rem; letter-spacing: .12em; }
.context-card { position: relative; padding: 18px 15px 14px; }
.context-label { display: block; margin: 0 8px 7px; color: #8faabe; font-size: .69rem; letter-spacing: .08em; }
.project-switcher { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 11px 12px; color: #fff; border: 1px solid rgba(255,255,255,.14); border-radius: 10px; background: rgba(255,255,255,.07); cursor: pointer; text-align: left; }
.project-switcher:hover { background: rgba(255,255,255,.11); }
.project-switcher strong, .project-switcher small { display: block; }
.project-switcher strong { font-size: .91rem; letter-spacing: .03em; }
.project-switcher small { margin-top: 3px; color: #a9bfce; font-size: .72rem; }
.project-switch-menu { position: absolute; z-index: 31; top: 103px; left: 15px; width: 390px; overflow: hidden; color: var(--ink); border: 1px solid #becdd6; border-radius: 12px; background: #fff; box-shadow: 0 22px 48px rgba(6,27,43,.26); opacity: 0; transform: translateY(-7px) scale(.985); transform-origin: top left; transition: opacity .16s ease, transform .16s ease; }
.project-switch-menu.is-visible { opacity: 1; transform: none; }
.project-switch-menu-head { padding: 13px 15px 11px; color: #fff; background: linear-gradient(120deg, #153951, #17636a); }
.project-switch-menu-head span, .project-switch-menu-head small { display: block; }
.project-switch-menu-head span { font-size: .75rem; font-weight: 800; }
.project-switch-menu-head small { margin-top: 2px; color: #bdd7df; font-size: .62rem; }
.project-switch-option { width: 100%; min-height: 67px; display: grid; grid-template-columns: 31px 1fr auto; gap: 9px; align-items: center; padding: 9px 13px; color: inherit; border: 0; border-bottom: 1px solid #e3e9ec; background: #fff; cursor: pointer; text-align: left; }
.project-switch-option:hover { background: #f1f8f7; }
.project-switch-option.is-current { background: #e5f3f1; box-shadow: inset 4px 0 var(--teal); }
.project-switch-option > i { width: 29px; height: 29px; display: grid; place-items: center; color: #17636e; border-radius: 6px; background: #e2f1f0; font-size: .57rem; font-style: normal; font-weight: 850; }
.project-switch-option strong, .project-switch-option small { display: block; }
.project-switch-option strong { font-size: .72rem; }
.project-switch-option small { max-width: 220px; overflow: hidden; margin-top: 2px; color: var(--muted); font-size: .59rem; text-overflow: ellipsis; white-space: nowrap; }
.project-switch-option em { color: #56727f; font-size: .57rem; font-style: normal; }
.project-switch-manage { width: 100%; min-height: 39px; color: var(--teal); border: 0; background: #f4f8f9; cursor: pointer; font-size: .65rem; font-weight: 750; }
.nav-list { padding: 4px 11px; display: grid; gap: 4px; flex: 1; min-height: 0; overflow-y: auto; align-content: start; overscroll-behavior: contain; scrollbar-width: thin; }
.sidebar > :not(.nav-list) { flex-shrink: 0; }
.nav-item { position: relative; width: 100%; display: grid; grid-template-columns: 29px 1fr auto; align-items: center; gap: 8px; padding: 11px 10px; color: #b9cad7; border: 0; border-radius: 9px; background: transparent; cursor: pointer; text-align: left; }
.nav-item::before { content: ""; position: absolute; left: -11px; width: 3px; height: 0; background: #5bd1c8; border-radius: 0 4px 4px 0; transition: height .2s ease; }
.nav-item:hover { color: #fff; background: rgba(255,255,255,.055); }
.nav-item.is-active { color: #fff; background: rgba(67, 180, 177, .14); }
.nav-item.is-active::before { height: 29px; }
.nav-index { color: #7394aa; font: 700 .64rem/1 Bahnschrift, sans-serif; letter-spacing: .08em; }
.nav-item strong, .nav-item small { display: block; }
.nav-item strong { font-size: .86rem; }
.nav-item small { margin-top: 2px; color: #829caf; font-size: .68rem; }
.nav-item.is-active small { color: #a8c2d1; }
.nav-badge { min-width: 23px; height: 23px; display: grid; place-items: center; padding: 0 6px; border-radius: 12px; color: #bcd0dd; background: rgba(255,255,255,.08); font-size: .68rem; font-weight: 700; }
.nav-badge.accent { color: #062d31; background: #75ded5; }
.nav-badge.alert { color: #ffe4dc; background: rgba(204, 90, 68, .34); }
.nav-section-label { margin: 20px 20px 8px; color: #6f8ba0; font-size: .65rem; font-weight: 700; letter-spacing: .13em; }
.future-modules { display: flex; flex-wrap: wrap; gap: 5px; padding: 0 18px; }
.future-modules span { color: #7892a5; border: 1px solid rgba(255,255,255,.08); border-radius: 5px; padding: 3px 7px; font-size: .65rem; }
.sidebar-foot { position: relative; z-index: 2; margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 18px 22px 22px; color: #a4bac9; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-foot strong, .sidebar-foot small { display: block; }
.sidebar-foot strong { font-size: .75rem; color: #dce9ef; }
.sidebar-foot small { margin-top: 2px; font-size: .65rem; }
.build-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ed0a9; box-shadow: 0 0 0 5px rgba(78, 208, 169, .11); }

.main-area { grid-column: 2; min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 15; height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 0 30px; background: rgba(250, 252, 252, .93); border-bottom: 1px solid var(--line); backdrop-filter: blur(14px); }
.breadcrumb { color: var(--ink-2); font-size: .82rem; font-weight: 650; }
.breadcrumb span { margin: 0 9px; color: #9eacb8; }
.topbar-actions { display: flex; align-items: center; gap: 11px; }
.font-control { height: 38px; display: flex; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.font-control > span { margin-right: 5px; color: var(--muted); font-size: .72rem; }
.font-control button { height: 30px; min-width: 31px; padding: 0 7px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: .74rem; font-weight: 700; }
.font-control button:hover { background: var(--blue-soft); color: var(--blue); }
.search-launch { height: 40px; min-width: 280px; display: flex; align-items: center; gap: 9px; padding: 0 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; text-align: left; }
.search-launch span:nth-child(2) { flex: 1; font-size: .78rem; }
kbd { display: inline-grid; place-items: center; min-width: 24px; height: 23px; padding: 0 6px; color: #607286; border: 1px solid #d2dce3; border-bottom-width: 2px; border-radius: 5px; background: #f5f8f9; font: 650 .67rem/1 Aptos, sans-serif; }
.avatar { width: 38px; height: 38px; color: #fff; border: 0; border-radius: 50%; background: linear-gradient(145deg, var(--teal), #075e69); box-shadow: 0 5px 12px rgba(0, 100, 104, .18); cursor: pointer; font-weight: 700; }
.content-wrap { max-width: 1540px; margin: 0 auto; padding: 28px 31px 50px; }
.active-context-strip { min-height: 49px; display: grid; grid-template-columns: auto 1.35fr .75fr .75fr 1.05fr auto; gap: 1px; align-items: stretch; overflow: hidden; margin: -10px 0 20px; color: #dce9ed; border: 1px solid #234b5f; border-radius: 9px; background: #234b5f; box-shadow: 0 6px 16px rgba(23,58,77,.08); }
.active-context-strip > span { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 7px 11px; background: #163950; }
.active-context-strip > span small, .active-context-strip > span b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.active-context-strip > span small { color: #8eafbd; font-size: .54rem; }
.active-context-strip > span b { margin-top: 1px; color: #f7fbfc; font-size: .64rem; }
.active-context-strip .context-live { display: flex; flex-direction: row; align-items: center; gap: 7px; padding: 0 13px; color: #74ddd3; background: #102e45; font-size: .61rem; font-weight: 800; }
.context-live i { width: 7px; height: 7px; border-radius: 50%; background: #59d4b2; box-shadow: 0 0 0 4px rgba(89,212,178,.13); }
.active-context-strip > button { padding: 0 13px; color: #fff; border: 0; background: #16706f; cursor: pointer; font-size: .62rem; font-weight: 800; }
.active-context-strip > button:hover { background: #0c817b; }
.active-context-strip.is-restricted { border-color: #816233; background: #816233; }
.active-context-strip.is-restricted > span { background: #4b3d2e; }
.active-context-strip.is-restricted .context-live { color: #ffd58d; background: #3b3026; }
.active-context-strip.is-restricted .context-live i { background: #e0a44a; box-shadow: 0 0 0 4px rgba(224,164,74,.14); }
.active-context-strip.is-restricted > button { background: #9b681e; }
.page { display: none; animation: pageIn .28s ease both; }
.page.is-active { display: block; }
@keyframes pageIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

.eyebrow { margin: 0 0 8px; color: var(--teal); font: 700 .68rem/1.1 Bahnschrift, sans-serif; letter-spacing: .14em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Bahnschrift, "Microsoft YaHei UI", sans-serif; }
h1 { margin-bottom: 10px; font-size: 2rem; line-height: 1.22; letter-spacing: -.035em; }
h2 { margin-bottom: 8px; font-size: 1.08rem; line-height: 1.3; }
.page-heading { min-height: 86px; display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.page-heading > div:first-child > p:last-child { max-width: 760px; margin: 0; color: var(--ink-2); font-size: .88rem; }
.heading-actions { display: flex; align-items: center; gap: 9px; padding-top: 20px; }
.btn { min-height: 39px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 15px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink); background: #fff; cursor: pointer; font-size: .8rem; font-weight: 700; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); border-color: #9aadb9; box-shadow: 0 6px 14px rgba(32, 55, 74, .08); }
.btn.primary { color: #fff; border-color: var(--teal); background: var(--teal); }
.btn.primary:hover { background: #007a74; }
.btn.full { width: 100%; }
.btn.small { min-height: 32px; padding: 0 11px; font-size: .72rem; }
.btn.danger-ghost { color: var(--coral); border-color: #eac5bf; }
.text-btn { padding: 0; color: var(--blue); border: 0; background: none; cursor: pointer; font-size: .76rem; font-weight: 700; }

.hero-grid { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.55fr .75fr; gap: 26px; min-height: 305px; padding: 38px 40px; color: #fff; border-radius: 18px; background: linear-gradient(118deg, #102e49 0%, #123f59 59%, #12686d 115%); box-shadow: 0 20px 48px rgba(16, 44, 70, .18); }
.hero-grid::before { content: ""; position: absolute; width: 510px; height: 510px; right: -170px; top: -305px; border: 1px solid rgba(124, 226, 215, .22); border-radius: 50%; box-shadow: 0 0 0 56px rgba(124, 226, 215, .045), 0 0 0 118px rgba(124, 226, 215, .03); }
.hero-grid::after { content: "TC"; position: absolute; right: 28px; bottom: -54px; color: rgba(255,255,255,.026); font: 700 12rem/1 Bahnschrift, sans-serif; letter-spacing: -.08em; }
.hero-copy, .gate-panel { position: relative; z-index: 1; }
.hero-copy .eyebrow { color: #79ded7; }
.hero-copy h1 { max-width: 760px; margin: 0 0 16px; color: #fff; font-size: clamp(2.15rem, 3.4vw, 3.35rem); line-height: 1.08; letter-spacing: -.045em; }
.hero-copy .lead { max-width: 720px; margin-bottom: 23px; color: #c7d9e4; font-size: .94rem; line-height: 1.75; }
.hero-actions { display: flex; gap: 9px; }
.hero-actions .btn:not(.primary) { color: #e7f4f7; border-color: rgba(255,255,255,.24); background: rgba(255,255,255,.07); }
.gate-panel { align-self: center; padding: 23px; border: 1px solid rgba(255,255,255,.16); border-radius: 13px; background: rgba(7, 29, 45, .31); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(7px); }
.gate-top { display: flex; align-items: center; justify-content: space-between; color: #a9c7d5; font-size: .72rem; }
.gate-top strong { padding: 3px 8px; color: #0b3037; border-radius: 5px; background: #72dbd1; font: 700 .73rem/1.4 Bahnschrift, sans-serif; }
.gate-panel h2 { margin: 22px 0 7px; color: #fff; font-size: 1.22rem; }
.gate-panel p { color: #afc6d2; font-size: .76rem; }
.gate-progress { height: 6px; overflow: hidden; margin: 21px 0 14px; border-radius: 8px; background: rgba(255,255,255,.13); }
.gate-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #52cfc3, #d5e982); }
.gate-facts { display: flex; gap: 18px; color: #a6bdca; font-size: .68rem; }
.gate-facts b { margin-right: 4px; color: #fff; font-size: .84rem; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-top: 16px; }
.metric-card { position: relative; min-height: 128px; overflow: hidden; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 6px 20px rgba(27, 52, 73, .045); }
.metric-kicker { display: block; color: var(--muted); font-size: .71rem; font-weight: 700; }
.metric-card strong { display: block; margin: 5px 0 2px; font: 700 1.95rem/1.1 Bahnschrift, sans-serif; letter-spacing: -.04em; }
.metric-card p { margin: 0; color: var(--ink-2); font-size: .72rem; }
.metric-accent { position: absolute; right: 0; top: 0; width: 5px; height: 100%; opacity: .8; }
.metric-accent.teal { background: var(--teal); }.metric-accent.blue { background: var(--blue); }.metric-accent.amber { background: var(--amber); }.metric-accent.coral { background: var(--coral); }
.dashboard-grid { display: grid; grid-template-columns: 1.38fr .8fr; gap: 14px; margin-top: 14px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); box-shadow: 0 6px 20px rgba(27, 52, 73, .045); }
.panel-head { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2, .panel-head .eyebrow { margin-bottom: 0; }
.panel-head > div .eyebrow { margin-bottom: 5px; }
.timeline { padding: 9px 20px 18px; }
.timeline-item { position: relative; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; min-height: 74px; border-bottom: 1px solid #e5ebef; }
.timeline-item:last-child { border-bottom: 0; }
.timeline-item::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 1px; background: #d9e2e8; }
.timeline-dot { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; color: #6d7f8e; border: 1px solid #cad5dc; border-radius: 50%; background: #fff; font: 700 .68rem/1 Bahnschrift, sans-serif; }
.timeline-item.complete .timeline-dot { color: #fff; border-color: var(--teal); background: var(--teal); }
.timeline-item.active .timeline-dot { color: var(--teal); border: 2px solid var(--teal); box-shadow: 0 0 0 5px var(--teal-soft); }
.timeline-item strong, .timeline-item small { display: block; }
.timeline-item strong { font-size: .82rem; }
.timeline-item small { margin-top: 3px; color: var(--muted); font-size: .7rem; }
.timeline-item b { color: var(--muted); font: 700 .76rem/1 Bahnschrift, sans-serif; }
.timeline-item.active b { color: var(--teal); }
.status-pill { display: inline-flex; align-items: center; min-height: 25px; padding: 0 9px; border-radius: 14px; font-size: .67rem; font-weight: 750; }
.status-pill.danger { color: #a7392d; background: var(--coral-soft); }
.status-pill.info { color: #1a648d; background: var(--blue-soft); }
.action-list { padding: 8px 13px 15px; }
.action-list button { width: 100%; display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 11px; padding: 13px 8px; border: 0; border-bottom: 1px solid #e6ecef; background: transparent; cursor: pointer; text-align: left; }
.action-list button:last-child { border-bottom: 0; }
.action-list button:hover { background: #f7fafb; }
.action-code { width: 38px; height: 30px; display: grid; place-items: center; color: #1a6676; border-radius: 6px; background: #e4f3f3; font: 700 .62rem/1 Bahnschrift, sans-serif; }
.action-list strong, .action-list small { display: block; }
.action-list strong { font-size: .78rem; }
.action-list small { margin-top: 3px; color: var(--muted); font-size: .69rem; }
.action-list i { color: #8296a5; font-style: normal; }

.setup-layout { display: grid; grid-template-columns: 1fr 310px; gap: 16px; }
.form-panel .panel-head > div { display: flex; align-items: center; gap: 11px; }
.step-number { width: 29px; height: 29px; display: grid; place-items: center; color: var(--teal); border-radius: 7px; background: var(--teal-soft); font: 700 .68rem/1 Bahnschrift, sans-serif; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 23px; }
label > span { display: block; margin-bottom: 7px; color: var(--ink-2); font-size: .72rem; font-weight: 700; }
input, select, textarea { width: 100%; color: var(--ink); border: 1px solid #cbd6dd; border-radius: 8px; background: #fff; transition: border-color .15s ease, box-shadow .15s ease; }
input, select { height: 43px; padding: 0 12px; }
textarea { padding: 10px 12px; resize: vertical; line-height: 1.55; }
input:hover, select:hover, textarea:hover { border-color: #9dafba; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,139,132,.1); outline: 0; }
.setup-aside { display: grid; align-content: start; gap: 14px; }
.readiness-card { padding: 24px; color: #fff; background: linear-gradient(150deg, #123b58, #145d68); border-color: transparent; }
.readiness-card .eyebrow { color: #78dcd4; }
.readiness-score { margin: 19px 0 3px; font: 700 3.2rem/1 Bahnschrift, sans-serif; letter-spacing: -.06em; }
.readiness-score span { margin-left: 3px; color: #83d9d3; font-size: 1rem; }
.readiness-card h2 { color: #fff; }
.readiness-card p { margin-bottom: 20px; color: #c4d8e1; font-size: .76rem; }
.readiness-card .btn { color: #e8f9fa; border-color: rgba(255,255,255,.23); background: rgba(255,255,255,.08); }
.note-card { padding: 20px; }
.note-card strong { font-size: .84rem; }
.note-card p { margin: 8px 0 0; color: var(--ink-2); font-size: .74rem; }
.autosave { color: #557184; font-size: .72rem; }

.governance-summary { display: grid; grid-template-columns: repeat(3, minmax(150px, .55fr)) 1.6fr; gap: 11px; margin-bottom: 17px; }
.governance-summary article, .summary-guidance { min-height: 105px; padding: 17px 19px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.governance-summary article span, .governance-summary article strong, .governance-summary article small { display: block; }
.governance-summary article span { color: var(--muted); font-size: .68rem; font-weight: 700; }
.governance-summary article strong { margin: 2px 0 1px; font: 700 1.72rem/1.2 Bahnschrift, sans-serif; }
.governance-summary article small { color: var(--ink-2); font-size: .66rem; }
.summary-guidance { color: #e7f7f8; border-color: transparent; background: linear-gradient(135deg, var(--navy-2), #165d67); }
.summary-guidance b { display: block; color: #75ded5; font-size: .72rem; }
.summary-guidance p { margin: 6px 0 0; color: #c2d8df; font-size: .7rem; }
.committee-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.segmented button { min-height: 31px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: .72rem; font-weight: 700; }
.segmented button.is-active { color: #fff; background: var(--navy-2); }
.save-indicator { color: var(--muted); font-size: .69rem; }
.committee-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.committee-card { position: relative; overflow: hidden; min-height: 270px; padding: 21px; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 6px 20px rgba(27, 52, 73, .04); }
.committee-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--teal); }
.committee-card.is-disabled { background: #f7f9fa; }
.committee-card.is-disabled::before { background: #9caab4; }
.committee-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.committee-ident { display: flex; gap: 12px; }
.committee-code { min-width: 54px; height: 31px; display: grid; place-items: center; padding: 0 8px; color: #0b6869; border-radius: 6px; background: var(--teal-soft); font: 700 .66rem/1 Bahnschrift, sans-serif; }
.committee-card.is-disabled .committee-code { color: #6f7f8b; background: #e7ecef; }
.committee-ident h2 { margin: 0 0 3px; font-size: .98rem; }
.committee-ident small { color: var(--muted); font-size: .68rem; }
.toggle { position: relative; flex: 0 0 auto; width: 43px; height: 24px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle i { position: absolute; inset: 0; border-radius: 14px; background: #b4c0c8; cursor: pointer; transition: background .18s ease; }
.toggle i::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.18); transition: transform .18s ease; }
.toggle input:checked + i { background: var(--teal); }
.toggle input:checked + i::after { transform: translateX(19px); }
.committee-scope { min-height: 50px; margin: 17px 0; color: var(--ink-2); font-size: .75rem; line-height: 1.65; }
.committee-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.committee-meta div { padding: 9px 10px; border-radius: 8px; background: #f4f7f8; }
.committee-meta span, .committee-meta strong { display: block; }
.committee-meta span { color: var(--muted); font-size: .62rem; }
.committee-meta strong { margin-top: 3px; font-size: .72rem; }
.committee-na { margin-top: 13px; padding: 10px 12px; color: #66502b; border: 1px solid #ecd6ad; border-radius: 8px; background: #fff7e7; font-size: .69rem; }
.committee-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding-top: 13px; border-top: 1px solid #e5ebef; }
.committee-card-foot span { color: var(--muted); font-size: .66rem; }
.committee-card-foot button { color: var(--blue); border: 0; background: none; cursor: pointer; font-size: .71rem; font-weight: 700; }

.database-state { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: .7rem; }
.database-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.database-state.ready i { background: var(--teal); box-shadow: 0 0 0 4px var(--teal-soft); }
.database-state.error i { background: var(--coral); box-shadow: 0 0 0 4px var(--coral-soft); }
.term-search-panel { padding: 20px; border-radius: 14px; color: #fff; background: linear-gradient(125deg, #12334f, #15545f); box-shadow: 0 13px 32px rgba(16, 44, 70, .13); }
.term-search-box { height: 54px; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 17px; border-radius: 9px; background: #fff; }
.term-search-box > span { color: #567284; font-size: 1.2rem; }
.term-search-box input { flex: 1; height: 100%; padding: 0; border: 0; border-radius: 0; box-shadow: none; font-size: .94rem; }
.term-search-box input:focus { box-shadow: none; }
.term-filters { display: flex; gap: 8px; margin-top: 12px; }
.term-filters select { width: 185px; height: 35px; color: #d8e8ed; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.08); font-size: .7rem; }
.term-filters select option { color: var(--ink); background: #fff; }
.term-filters .text-btn { margin-left: auto; color: #93dad7; }
.quick-terms { display: flex; align-items: center; gap: 7px; margin-top: 12px; color: #8eabbc; font-size: .68rem; }
.quick-terms button { padding: 3px 8px; color: #c8e0e7; border: 1px solid rgba(255,255,255,.15); border-radius: 5px; background: rgba(255,255,255,.06); cursor: pointer; font-size: .67rem; }
.quick-terms button:hover { color: #fff; border-color: #69cec7; }
.term-stats { min-height: 49px; display: flex; align-items: center; gap: 22px; padding: 0 4px; color: var(--muted); font-size: .69rem; }
.term-stats b { margin-right: 3px; color: var(--ink); font-size: .82rem; }
.term-warning { margin-left: auto; color: #7b5a25; }
.term-workspace { display: grid; grid-template-columns: minmax(670px, 1.55fr) minmax(330px, .72fr); gap: 13px; align-items: start; }
.term-results { overflow: hidden; }
.term-table-head, .term-row { display: grid; grid-template-columns: 1.05fr 1.2fr 1.15fr .65fr; gap: 12px; align-items: center; }
.term-table-head { min-height: 41px; padding: 0 16px; color: var(--muted); border-bottom: 1px solid var(--line); background: #f6f8f9; font-size: .65rem; font-weight: 700; }
.term-result-list { min-height: 430px; }
.term-row { width: 100%; min-height: 72px; padding: 10px 16px; border: 0; border-bottom: 1px solid #e7ecef; background: #fff; cursor: pointer; text-align: left; }
.term-row:hover { background: #f5faf9; }
.term-row.is-selected { background: #e9f6f4; box-shadow: inset 3px 0 var(--teal); }
.term-row strong, .term-row small { display: block; }
.term-row strong { font-size: .78rem; }
.term-row small { margin-top: 3px; color: var(--muted); font-size: .64rem; }
.term-row .english { color: var(--ink-2); font-size: .72rem; line-height: 1.4; }
.term-row .chinese { color: var(--ink-2); font-size: .72rem; }
.term-row .status-tag { justify-self: start; }
.status-tag { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; color: #286a61; border-radius: 12px; background: #e2f3ef; font-size: .61rem; font-weight: 700; }
.status-tag.warning { color: #865b19; background: #fff0d6; }
.status-tag.neutral { color: #546878; background: #eaf0f3; }
.result-footer { min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 15px; color: var(--muted); border-top: 1px solid var(--line); font-size: .67rem; }
.empty-state { min-height: 430px; display: grid; place-content: center; justify-items: center; color: var(--muted); text-align: center; }
.empty-state > span { width: 55px; height: 55px; display: grid; place-items: center; margin-bottom: 12px; color: var(--teal); border-radius: 50%; background: var(--teal-soft); font-size: 1.5rem; }
.empty-state strong { color: var(--ink); }
.empty-state p { max-width: 330px; margin: 5px 0 0; font-size: .7rem; }
.term-detail { position: sticky; top: 84px; overflow: hidden; min-height: 475px; }
.detail-empty { min-height: 475px; display: grid; align-content: center; justify-items: center; padding: 30px; color: var(--muted); text-align: center; }
.detail-empty span { width: 62px; height: 62px; display: grid; place-items: center; margin-bottom: 16px; color: #fff; border-radius: 50%; background: linear-gradient(145deg, var(--teal), #1b6274); font: 700 .74rem/1 Bahnschrift, sans-serif; letter-spacing: .08em; }
.detail-empty h2 { color: var(--ink); }
.detail-empty p { max-width: 260px; font-size: .72rem; }
.term-detail-content { padding-bottom: 19px; }
.detail-band { padding: 21px; color: #fff; background: linear-gradient(135deg, #163a57, #175f67); }
.detail-band .detail-type { color: #82dcd5; font: 700 .65rem/1 Bahnschrift, sans-serif; letter-spacing: .12em; }
.detail-band h2 { margin: 14px 0 3px; color: #fff; font-size: 1.55rem; }
.detail-band p { margin: 0; color: #c2dbe2; font-size: .76rem; }
.detail-body { padding: 18px 20px 0; }
.detail-field { padding: 12px 0; border-bottom: 1px solid #e4eaee; }
.detail-field:last-child { border-bottom: 0; }
.detail-field > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .63rem; font-weight: 700; letter-spacing: .04em; }
.detail-field p { margin: 0; color: var(--ink-2); font-size: .75rem; line-height: 1.65; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.detail-chips i { padding: 3px 7px; color: #415b6d; border-radius: 5px; background: #edf2f4; font-size: .64rem; font-style: normal; }
.detail-actions { display: flex; gap: 8px; padding: 17px 20px 0; }

.drawer-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(9, 28, 43, .38); backdrop-filter: blur(2px); }
.drawer { position: fixed; z-index: 50; top: 0; right: 0; bottom: 0; width: min(560px, 92vw); overflow-y: auto; padding: 0 24px 24px; border-left: 1px solid var(--line); background: #fff; box-shadow: -20px 0 50px rgba(8, 29, 46, .17); transform: translateX(105%); transition: transform .24s ease; }
.drawer.is-open { transform: translateX(0); }
.drawer-backdrop { opacity: 0; transition: opacity .22s ease; }
.drawer-backdrop.is-visible { opacity: 1; }
.drawer-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 24px 0 16px; border-bottom: 1px solid var(--line); background: #fff; }
.drawer-head h2 { margin: 0; font-size: 1.32rem; }
.icon-btn { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: #fff; cursor: pointer; font-size: 1.15rem; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 19px 0; padding: 15px; border: 1px solid #cfe0df; border-radius: 10px; background: #f0f8f7; }
.switch-row span { margin: 0; }
.switch-row strong, .switch-row small { display: block; }
.switch-row small { margin-top: 3px; color: var(--muted); font-size: .67rem; }
.switch-row input { position: absolute; opacity: 0; width: auto; height: auto; }
.switch-row i { position: relative; flex: 0 0 auto; width: 47px; height: 27px; border-radius: 15px; background: #aebbc3; cursor: pointer; }
.switch-row i::after { content: ""; position: absolute; width: 21px; height: 21px; left: 3px; top: 3px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .18s ease; }
.switch-row input:checked + i { background: var(--teal); }
.switch-row input:checked + i::after { transform: translateX(20px); }
.switch-row.compact { grid-column: span 2; margin: 0; }
.field-help { display: block; margin-top: 5px; color: var(--muted); font-size: .64rem; line-height: 1.45; }
.drawer-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.drawer-form-grid .span-2 { grid-column: span 2; }
.conditional-field { display: none; }
.drawer.show-na .conditional-field { display: block; }
.drawer-note { margin-top: 16px; padding: 11px 12px; color: #586b78; border-left: 3px solid var(--amber); background: #fff7e7; font-size: .68rem; }
.drawer-actions { display: grid; grid-template-columns: auto 1fr auto auto; gap: 8px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.btn.access-disabled, button:disabled { color: #8d9ba4 !important; border-color: #d9e0e4 !important; background: #edf1f3 !important; box-shadow: none !important; cursor: not-allowed !important; transform: none !important; }
.toast-region { position: fixed; z-index: 80; right: 22px; bottom: 22px; display: grid; gap: 8px; }
.toast { min-width: 285px; padding: 13px 15px; color: #fff; border-radius: 9px; background: #173b50; box-shadow: 0 12px 30px rgba(8,29,46,.2); animation: toastIn .22s ease both; font-size: .76rem; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.basis-source-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 13px; }
.source-card { position: relative; min-height: 118px; overflow: hidden; padding: 17px 18px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 6px 18px rgba(27,52,73,.04); }
.source-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--blue); }
.source-card.special::before { background: var(--teal); }
.source-card.procedure::before { background: var(--amber); }
.source-card.loading { color: var(--muted); display: grid; place-items: center; }
.source-card.loading::before { display: none; }
.source-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.source-card-head b { color: var(--ink); font: 700 .82rem/1.2 Bahnschrift, sans-serif; }
.source-type { padding: 3px 7px; color: #315b75; border-radius: 5px; background: #e8f0f5; font-size: .61rem; font-weight: 700; }
.source-card h2 { margin: 10px 0 3px; font-size: .9rem; }
.source-card p { margin: 0; color: var(--muted); font-size: .72rem; }
.source-card-foot { display: flex; justify-content: space-between; margin-top: 12px; color: var(--ink-2); font-size: .69rem; }
.basis-summary, .document-summary { display: grid; grid-template-columns: repeat(4, minmax(130px, .7fr)) 1.35fr; gap: 10px; margin-bottom: 13px; }
.basis-summary article, .document-summary article, .snapshot-summary, .identity-rule { min-height: 94px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.basis-summary article span, .basis-summary article strong, .basis-summary article small,
.document-summary article span, .document-summary article strong, .document-summary article small,
.snapshot-summary span, .snapshot-summary strong, .snapshot-summary small { display: block; }
.basis-summary article span, .document-summary article span, .snapshot-summary span { color: var(--muted); font-size: .7rem; font-weight: 700; }
.basis-summary article strong, .document-summary article strong { margin: 2px 0; font: 700 1.55rem/1.2 Bahnschrift, sans-serif; }
.basis-summary article small, .document-summary article small, .snapshot-summary small { color: var(--ink-2); font-size: .68rem; }
.snapshot-summary { color: #eaf8f9; border-color: transparent; background: linear-gradient(135deg, #163b58, #17646d); }
.snapshot-summary span, .snapshot-summary small { color: #a9c9d2; }
.snapshot-summary strong { margin: 10px 0 2px; color: #fff; font-size: .82rem; }
.basis-toolbar, .document-toolbar { display: flex; align-items: center; gap: 9px; margin-bottom: 12px; }
.basis-search { min-width: 300px; flex: 1; height: 40px; display: flex; align-items: center; gap: 9px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.basis-search span { color: var(--muted); }
.basis-search input { height: 100%; padding: 0; border: 0; box-shadow: none; font-size: .75rem; }
.basis-search input:focus { box-shadow: none; }
.basis-toolbar select, .document-toolbar select { width: 180px; height: 40px; font-size: .74rem; }
.basis-rule-note { max-width: 340px; color: #7c5b22; font-size: .7rem; line-height: 1.45; }
.basis-workspace { display: grid; grid-template-columns: minmax(650px, 1.35fr) minmax(390px, .8fr); gap: 13px; align-items: start; }
.clause-browser { overflow: hidden; }
.clause-browser-head, .clause-row { display: grid; grid-template-columns: 1.6fr .58fr .66fr .67fr; gap: 10px; align-items: center; }
.clause-browser-head { min-height: 41px; padding: 0 15px; color: var(--muted); border-bottom: 1px solid var(--line); background: #f5f8f9; font-size: .69rem; font-weight: 700; }
.clause-tree { min-height: 580px; }
.clause-row { position: relative; width: 100%; min-height: 62px; padding: 8px 14px; border: 0; border-bottom: 1px solid #e7ecef; background: #fff; cursor: pointer; text-align: left; }
.clause-row:hover { background: #f6faf9; }
.clause-row.is-selected { background: #e8f6f4; box-shadow: inset 3px 0 var(--teal); }
.clause-row.level-1 { min-height: 67px; background: #edf3f6; }
.clause-row.level-2 { background: #f7f9fa; }
.clause-row.level-3 .clause-ident { padding-left: 18px; }
.clause-row.level-4 .clause-ident { padding-left: 38px; }
.clause-row.level-3 .clause-ident::before, .clause-row.level-4 .clause-ident::before { content: ""; position: absolute; left: 16px; width: 11px; height: 1px; background: #b6c5ce; }
.clause-row.level-4 .clause-ident::before { left: 35px; }
.clause-ident { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; }
.level-chip { flex: 0 0 auto; width: 27px; height: 27px; display: grid; place-items: center; color: #486477; border: 1px solid #c9d5dc; border-radius: 6px; background: #fff; font: 700 .59rem/1 Bahnschrift, sans-serif; }
.clause-ident strong, .clause-ident small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clause-ident strong { font-size: .79rem; }
.clause-ident small { margin-top: 2px; color: var(--muted); font-size: .67rem; }
.clause-row .cell-text { color: var(--ink-2); font-size: .72rem; }
.mc-mini-list { display: flex; flex-wrap: wrap; gap: 3px; }
.mc-mini-list i { padding: 2px 5px; color: #1f6670; border-radius: 4px; background: #def1f0; font: 700 .57rem/1.4 Bahnschrift, sans-serif; font-style: normal; }
.clause-editor { position: sticky; top: 84px; min-height: 590px; overflow: hidden; }
.clause-editor-head { padding: 18px 20px; color: #fff; background: linear-gradient(135deg, #163954, #175e67); }
.clause-editor-head .editor-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: #a9c9d2; font-size: .63rem; }
.clause-editor-head h2 { margin: 13px 0 2px; color: #fff; font-size: 1.28rem; }
.clause-editor-head p { margin: 0; color: #c4dae1; font-size: .7rem; }
.clause-form { padding: 16px 18px 19px; }
.clause-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.clause-form-grid label > span { margin-bottom: 5px; font-size: .7rem; }
.clause-form-grid input, .clause-form-grid select { height: 37px; font-size: .74rem; }
.clause-form-grid textarea { font-size: .74rem; }
.clause-form-grid .span-2 { grid-column: span 2; }
.mc-field { grid-column: span 2; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #f7f9fa; }
.mc-field > span { display: flex; justify-content: space-between; margin-bottom: 8px; color: var(--ink-2); font-size: .7rem; font-weight: 700; }
.mc-field > span i { color: var(--muted); font-style: normal; font-weight: 400; }
.mc-selector { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.mc-selector label { position: relative; cursor: pointer; }
.mc-selector input { position: absolute; opacity: 0; }
.mc-selector b { min-height: 30px; display: grid; place-items: center; color: #526b7b; border: 1px solid #cbd7de; border-radius: 6px; background: #fff; font: 700 .68rem/1 Bahnschrift, sans-serif; }
.mc-selector input:checked + b { color: #fff; border-color: var(--teal); background: var(--teal); }
.clause-form-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.clause-form-actions .revision-note { margin-right: auto; color: var(--muted); font-size: .62rem; }
.mc-legend { margin-top: 12px; padding: 10px; border-left: 3px solid var(--blue); background: #edf5f9; color: var(--ink-2); font-size: .67rem; line-height: 1.55; }
.btn.danger-soft { color: #9a3f36; border-color: #e5b9b3; background: #fff8f7; }
.btn.danger-soft:hover { color: #fff; border-color: #a74b42; background: #a74b42; }
.clause-import-origin { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 10px 18px; border-bottom: 1px solid #dce7e8; background: #edf8f6; }
.clause-import-origin > span { padding: 4px 6px; color: #fff; border-radius: 4px; background: #1b7777; font: 800 .58rem/1 Bahnschrift, sans-serif; letter-spacing: .06em; }
.clause-import-origin b, .clause-import-origin small { display: block; }
.clause-import-origin b { color: #214b57; font-size: .7rem; }
.clause-import-origin small { margin-top: 2px; color: #668088; font-size: .64rem; }

/* Sprint 11 · controlled certification-basis ingestion */
.basis-initialization-band { display: grid; grid-template-columns: .82fr 1.08fr 1.25fr 1.35fr; gap: 1px; margin-bottom: 13px; overflow: hidden; color: #dcecf0; border: 1px solid #274d60; border-radius: 10px; background: #274d60; box-shadow: 0 8px 22px rgba(14,47,65,.08); }
.basis-initialization-band > div { min-height: 104px; padding: 14px 16px; background: linear-gradient(145deg, #153a53, #174b5e); }
.basis-profile-stamp span, .basis-profile-stamp strong, .basis-profile-stamp small { display: block; }
.basis-profile-stamp span { color: #69d4ca; font: 800 .62rem/1.2 Bahnschrift, sans-serif; letter-spacing: .09em; }
.basis-profile-stamp strong { margin-top: 10px; color: #fff; font-size: 1.02rem; }
.basis-profile-stamp small { margin-top: 4px; color: #aac3cc; font-size: .68rem; line-height: 1.45; }
.basis-coverage-meter > div:first-child { display: flex; align-items: center; justify-content: space-between; font-size: .7rem; }
.basis-coverage-meter strong { color: #fff; font: 800 .94rem/1 Bahnschrift, sans-serif; }
.coverage-track { height: 7px; margin: 13px 0 10px; overflow: hidden; border-radius: 4px; background: rgba(255,255,255,.14); }
.coverage-track i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #45b9ad, #7ae1ca); transition: width .32s ease; }
.basis-coverage-meter small { color: #ffc878; font-size: .68rem; line-height: 1.45; }
.basis-coverage-meter small.is-complete { color: #83e0c8; }
.basis-initialization-rule b, .basis-import-history > b { display: block; margin-bottom: 7px; color: #fff; font-size: .72rem; }
.basis-initialization-rule p { margin: 0; color: #bcd0d7; font-size: .69rem; line-height: 1.55; }
#basisImportHistory { display: grid; gap: 5px; max-height: 76px; overflow-y: auto; }
#basisImportHistory > button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; color: #d7e8ec; border: 1px solid rgba(255,255,255,.13); border-radius: 5px; background: rgba(255,255,255,.06); cursor: pointer; text-align: left; }
#basisImportHistory > button:hover { border-color: #6fd2ca; background: rgba(72,190,180,.12); }
#basisImportHistory b, #basisImportHistory small { display: block; max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#basisImportHistory b { font-size: .65rem; }
#basisImportHistory small { margin-top: 1px; color: #9eb8c1; font-size: .58rem; }
#basisImportHistory i { flex: 0 0 auto; padding: 2px 5px; color: #ffd08a; border-radius: 4px; background: rgba(230,162,55,.15); font-size: .59rem; font-style: normal; }
#basisImportHistory i.is-applied { color: #8ae2cc; background: rgba(61,190,159,.13); }
#basisImportHistory .muted { color: #9eb8c1; font-size: .68rem; }
.source-provenance { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.source-provenance span, .source-provenance i, .source-provenance code { padding: 2px 5px; border-radius: 4px; font-size: .58rem; font-style: normal; }
.source-provenance span { color: #2e6870; background: #e8f4f2; }
.source-provenance i { color: #6d5526; background: #fff3da; }
.source-provenance code { max-width: 145px; overflow: hidden; color: #506777; background: #edf2f4; text-overflow: ellipsis; white-space: nowrap; }

.basis-pdf-drawer { width: min(1180px, 94vw); padding: 0 28px 28px; background: #f7f9fa; }
.basis-pdf-drawer .drawer-head { margin: 0 -28px; padding: 22px 28px 16px; background: #fff; }
.basis-pdf-intro { display: grid; grid-template-columns: 1fr 34px 1fr 34px 1fr; align-items: center; margin: 18px 0 12px; padding: 14px 16px; color: #dcecf0; border-radius: 8px; background: linear-gradient(120deg, #15384f, #17626a); }
.basis-pdf-intro > div { display: grid; gap: 3px; }
.basis-pdf-intro b { color: #fff; font-size: .76rem; }
.basis-pdf-intro span { color: #b9d3d9; font-size: .66rem; }
.basis-pdf-intro > i { height: 1px; margin: 0 8px; background: #5ca7aa; }
.basis-pdf-upload { display: grid; grid-template-columns: 1.05fr 1.55fr auto; gap: 10px; align-items: end; padding: 14px 16px; border: 1px solid #d7e1e5; border-radius: 8px; background: #fff; }
.basis-pdf-upload label { display: grid; gap: 5px; }
.basis-pdf-upload label > span { color: #496270; font-size: .7rem; font-weight: 700; }
.basis-pdf-upload label > span small { color: #8a9aa3; font-weight: 400; }
.basis-pdf-upload select, .basis-pdf-upload input { height: 39px; font-size: .74rem; }
.basis-pdf-upload .btn { height: 39px; }
.basis-file-field input { padding: 6px 8px; background: #fbfcfc; }
.basis-pdf-preservation { display: flex; align-items: center; gap: 10px; margin: 9px 0 14px; padding: 8px 11px; border-left: 3px solid #2c8e87; background: #eaf5f3; }
.basis-pdf-preservation span { flex: 0 0 auto; color: #1d6f6a; font: 800 .6rem/1 Bahnschrift, sans-serif; letter-spacing: .06em; }
.basis-pdf-preservation p { margin: 0; color: #4c6c72; font-size: .67rem; }
.basis-pdf-job { overflow: hidden; border: 1px solid #d6e0e4; border-radius: 9px; background: #fff; box-shadow: 0 8px 24px rgba(16,49,68,.06); }
.basis-pdf-job-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 15px 17px; border-bottom: 1px solid #dce4e7; }
.basis-pdf-job-head h3 { margin: 3px 0 0; color: #203f50; font-size: .86rem; }
.basis-pdf-counts { display: flex; align-items: center; gap: 7px; }
.basis-pdf-counts span { min-width: 65px; padding: 6px 8px; color: #5a707c; border: 1px solid #dbe4e7; border-radius: 5px; background: #f7f9fa; font-size: .61rem; text-align: center; }
.basis-pdf-counts b { margin-right: 3px; color: #173f53; font-size: .78rem; }
.basis-pdf-counts .has-warning { color: #915d16; border-color: #e8c889; background: #fff8e8; }
.basis-pdf-counts .job-status { min-width: auto; color: #176f69; border-color: #b5ded8; background: #e9f6f3; font-weight: 800; }
.basis-pdf-warnings { display: grid; gap: 5px; padding: 9px 14px; border-bottom: 1px solid #e1e7ea; background: #fff9ed; }
.basis-pdf-warnings > div { display: flex; align-items: start; gap: 8px; color: #7b581d; font-size: .68rem; }
.basis-pdf-warnings > div span { flex: 0 0 auto; width: 18px; height: 18px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #d39131; font-weight: 800; }
.basis-pdf-warnings p { margin: 0; line-height: 1.5; }
.basis-pdf-warnings .is-clear { color: #336c65; }
.basis-pdf-warnings .is-clear span { background: #2c9a88; }
.basis-candidate-head, .basis-candidate-row { display: grid; grid-template-columns: 1.08fr 1.72fr .58fr .45fr; gap: 11px; align-items: center; }
.basis-candidate-head { min-height: 38px; padding: 0 15px; color: #6d7f88; border-bottom: 1px solid #dce4e7; background: #eef3f5; font-size: .66rem; font-weight: 800; }
.basis-candidate-rows { max-height: 510px; overflow-y: auto; }
.basis-candidate-row { min-height: 82px; padding: 9px 15px; border-bottom: 1px solid #e5eaed; background: #fff; }
.basis-candidate-row.is-selected { box-shadow: inset 3px 0 #2b9389; }
.basis-candidate-row.low-confidence { background: #fffaf0; box-shadow: inset 3px 0 #d49435; }
.candidate-identity { display: grid; grid-template-columns: 25px 53px minmax(110px, 1fr); gap: 6px; align-items: center; padding-left: calc(var(--candidate-indent) * 15px); }
.candidate-check { position: relative; width: 22px; height: 22px; }
.candidate-check input { position: absolute; opacity: 0; }
.candidate-check i { width: 22px; height: 22px; display: block; border: 1px solid #aebfc7; border-radius: 4px; background: #fff; cursor: pointer; }
.candidate-check input:checked + i { border-color: #24857d; background: #24857d; }
.candidate-check input:checked + i::after { content: "✓"; display: grid; place-items: center; height: 100%; color: #fff; font-size: .7rem; font-style: normal; font-weight: 800; }
.candidate-identity select, .candidate-identity input, .candidate-content input, .candidate-content textarea, .candidate-locator input { width: 100%; border-color: #cfdae0; border-radius: 5px; background: #fff; font-size: .69rem; }
.candidate-identity select, .candidate-identity input, .candidate-content input, .candidate-locator input { height: 33px; }
.candidate-content { display: grid; gap: 5px; }
.candidate-content input { color: #244754; font-weight: 750; }
.candidate-content textarea { min-height: 36px; padding: 6px 8px; resize: vertical; line-height: 1.4; }
.candidate-locator { display: grid; gap: 5px; }
.candidate-locator small { color: #7a8c94; font-size: .58rem; }
.candidate-confidence { display: grid; justify-items: start; gap: 2px; }
.candidate-confidence b { color: #236c6d; font: 800 .82rem/1 Bahnschrift, sans-serif; }
.low-confidence .candidate-confidence b { color: #9b6418; }
.candidate-confidence span { color: #7b8b93; font-size: .57rem; }
.basis-pdf-actions { position: sticky; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 13px 15px; border-top: 1px solid #dce4e7; background: rgba(255,255,255,.96); }
.basis-pdf-actions p { flex: 1; margin: 0; color: #647983; font-size: .66rem; line-height: 1.45; }

.identity-rule { color: #f1fafb; border-color: transparent; background: linear-gradient(135deg, #153a56, #155d67); }
.identity-rule b { display: block; color: #77ddd5; font-size: .74rem; }
.identity-rule p { margin: 7px 0 0; color: #c4d8df; font-size: .71rem; line-height: 1.5; }
.document-workspace { display: grid; grid-template-columns: minmax(760px, 1.5fr) minmax(320px, .63fr); gap: 13px; align-items: start; }
.document-register { overflow: hidden; }
.document-table-head, .document-row { display: grid; grid-template-columns: 1fr 1.25fr .8fr .72fr .62fr; gap: 10px; align-items: center; }
.document-table-head { min-height: 41px; padding: 0 15px; color: var(--muted); border-bottom: 1px solid var(--line); background: #f5f8f9; font-size: .69rem; font-weight: 700; }
.document-row { width: 100%; min-height: 74px; padding: 10px 15px; border: 0; border-bottom: 1px solid #e6ecef; background: #fff; cursor: pointer; text-align: left; }
.document-row:hover { background: #f6faf9; }
.document-row.is-selected { background: #e8f6f4; box-shadow: inset 3px 0 var(--teal); }
.document-row.is-impacted { background: #fff7e7; box-shadow: inset 4px 0 var(--amber); }
.document-row.is-impacted.is-selected { background: #fff0cf; box-shadow: inset 4px 0 var(--amber); }
.document-row strong, .document-row small { display: block; }
.document-row strong { font-size: .78rem; }
.document-row small { margin-top: 3px; color: var(--muted); font-size: .68rem; }
.document-number { color: #173f5b; font: 700 .76rem/1.35 Bahnschrift, sans-serif; }
.revision-chip { display: inline-flex; margin-top: 4px; padding: 2px 6px; color: #246875; border-radius: 4px; background: #e2f2f2; font-size: .59rem; font-weight: 700; }
.document-detail { position: sticky; top: 84px; min-height: 510px; overflow: hidden; }
.document-detail-band { padding: 20px; color: #fff; background: linear-gradient(135deg, #163954, #17636b); }
.document-detail-band span { color: #80dcd5; font-size: .62rem; font-weight: 700; letter-spacing: .08em; }
.document-detail-band h2 { margin: 11px 0 3px; color: #fff; font-size: 1.12rem; }
.document-detail-band p { margin: 0; color: #c4dce2; font: 700 .71rem/1.4 Bahnschrift, sans-serif; }
.document-detail-body { padding: 16px 18px; }
.document-detail-body .detail-field { padding: 10px 0; }
.document-detail-actions { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 18px; }
.identity-banner { display: flex; align-items: center; justify-content: space-between; margin: 18px 0; padding: 13px 14px; color: #174e5c; border: 1px solid #c4e2df; border-radius: 9px; background: #eaf7f5; }
.identity-banner b { font-size: .75rem; }
.identity-banner span { color: #4f6d77; font-size: .68rem; }

.configuration-summary { display: grid; grid-template-columns: repeat(6, minmax(140px, 1fr)); gap: 10px; margin-bottom: 13px; }
.configuration-summary article { min-height: 92px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.configuration-summary span, .configuration-summary strong, .configuration-summary small { display: block; }
.configuration-summary span { color: var(--muted); font-size: .7rem; font-weight: 700; }
.configuration-summary strong { margin: 2px 0; color: var(--ink); font: 700 1.55rem/1.2 Bahnschrift, sans-serif; }
.configuration-summary small { color: var(--ink-2); font-size: .68rem; }
.configuration-summary .configuration-alert { border-color: transparent; background: linear-gradient(135deg, #173b58, #7a4822); }
.configuration-summary .configuration-alert span, .configuration-summary .configuration-alert small { color: #cadce3; }
.configuration-summary .configuration-alert strong { color: #fff; }
.configuration-summary .configuration-fleet-summary { border-color: #b9d9d7; background: linear-gradient(145deg, #f5fbfa, #e2f2ef); }
.configuration-summary .configuration-fleet-summary strong { color: #0b746f; }
.configuration-summary .configuration-fleet-summary small b { display: inline; color: #a44938; }
.configuration-tabs { display: flex; align-items: center; gap: 5px; margin-bottom: 13px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: #edf2f4; }
.configuration-tabs button { min-height: 38px; flex: 1; padding: 0 14px; color: #526a7a; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: .74rem; font-weight: 700; }
.configuration-tabs button:hover { color: var(--ink); background: rgba(255,255,255,.65); }
.configuration-tabs button.is-active { color: #fff; background: #164d64; box-shadow: 0 4px 12px rgba(20,68,91,.18); }
.configuration-view { display: none; }
.configuration-view.is-active { display: block; animation: configViewIn .18s ease both; }
@keyframes configViewIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.configuration-toolbar { display: flex; gap: 9px; margin-bottom: 12px; }
.configuration-toolbar select { width: 205px; font-size: .74rem; }
.configuration-workspace { display: grid; grid-template-columns: minmax(760px, 1.45fr) minmax(330px, .62fr); gap: 13px; align-items: start; }
.configuration-tree-panel { overflow: hidden; }
.configuration-tree-head, .configuration-row { display: grid; grid-template-columns: 1.48fr .66fr .48fr .61fr .5fr; gap: 10px; align-items: center; }
.configuration-tree-head { min-height: 42px; padding: 0 15px; color: var(--muted); border-bottom: 1px solid var(--line); background: #f4f7f8; font-size: .69rem; font-weight: 700; }
.configuration-row { width: 100%; min-height: 70px; padding: 9px 15px; border: 0; border-bottom: 1px solid #e4eaee; background: #fff; cursor: pointer; text-align: left; }
.configuration-row:hover { background: #f6faf9; }
.configuration-row.is-selected { background: #e7f5f3; box-shadow: inset 4px 0 var(--teal); }
.configuration-row > span > strong, .configuration-row > span > small { display: block; }
.configuration-row > span > strong { color: var(--ink); font-size: .75rem; }
.configuration-row > span > small { margin-top: 3px; color: var(--muted); font-size: .65rem; }
.configuration-ident { min-width: 0; display: flex; align-items: center; gap: 10px; padding-left: calc(var(--depth) * 25px); }
.configuration-ident > i { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; color: #216f75; border: 1px solid #bcdad8; border-radius: 7px; background: #e4f3f1; font-size: .65rem; font-style: normal; font-weight: 800; }
.configuration-ident span { min-width: 0; }
.configuration-ident strong, .configuration-ident small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.configuration-ident strong { font-size: .79rem; }
.configuration-ident small { margin-top: 3px; color: var(--muted); font-size: .66rem; }
.object-type { justify-self: start; padding: 3px 7px; color: #345c70; border-radius: 5px; background: #e8f0f4; font-size: .66rem; font-weight: 700; }
.configuration-detail { position: sticky; top: 84px; min-height: 520px; overflow: hidden; }
.configuration-detail-band { padding: 20px; color: #fff; background: linear-gradient(135deg, #123750, #17656b); }
.configuration-detail-band > span { color: #7bddda; font-size: .65rem; font-weight: 800; letter-spacing: .08em; }
.configuration-detail-band h2 { margin: 11px 0 3px; color: #fff; font-size: 1.16rem; }
.configuration-detail-band p { margin: 0; color: #c7dce3; font: 700 .72rem/1.4 Bahnschrift, sans-serif; }
.configuration-detail-body { padding: 15px 18px; }
.trace-list { display: grid; gap: 6px; }
.trace-list button { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; color: var(--ink-2); border: 1px solid #d9e3e8; border-radius: 7px; background: #f7f9fa; cursor: pointer; text-align: left; }
.trace-list button:hover { border-color: var(--teal); background: #ecf7f5; }
.trace-list button b { font-size: .68rem; }
.trace-list button small { color: var(--muted); font-size: .62rem; }
.baseline-grid { display: grid; grid-template-columns: repeat(3, minmax(270px, 1fr)); gap: 13px; }
.baseline-card { position: relative; min-height: 265px; padding: 19px; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 7px 20px rgba(25,51,72,.05); }
.baseline-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 4px; background: var(--amber); }
.baseline-card.controlled::before { background: var(--teal); }
.baseline-card-head { display: flex; align-items: center; justify-content: space-between; }
.baseline-card-head > span { color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .06em; }
.baseline-card h2 { margin: 16px 0 3px; font-size: 1rem; }
.baseline-code { margin: 0; color: #19546c; font: 700 .72rem/1.4 Bahnschrift, sans-serif; }
.baseline-stats { display: flex; gap: 20px; margin: 17px 0 12px; }
.baseline-stats span { color: var(--muted); font-size: .67rem; }
.baseline-stats b { margin-right: 4px; color: var(--ink); font-size: .94rem; }
.baseline-items { min-height: 57px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px; }
.baseline-items i { padding: 3px 7px; color: #456173; border-radius: 5px; background: #edf2f4; font-size: .62rem; font-style: normal; }
.baseline-card footer { margin: 16px -19px -19px; padding: 12px 19px; border-top: 1px solid var(--line); background: #f8fafb; }
.baseline-card footer span, .baseline-card footer small { display: block; }
.baseline-card footer span { color: var(--ink-2); font-size: .68rem; font-weight: 700; }
.baseline-card footer small { margin-top: 3px; color: var(--muted); font-size: .62rem; }
.manufacturing-intro { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 13px; padding: 20px 22px; color: #e9f6f7; border-radius: 11px; background: linear-gradient(130deg, #143750, #17676d); }
.manufacturing-intro h2 { margin: 5px 0; color: #fff; font-size: 1.15rem; }
.manufacturing-intro p:last-child { max-width: 760px; margin: 0; color: #c4dce2; font-size: .72rem; line-height: 1.55; }
.manufacturing-intro-actions { display: grid; justify-items: end; gap: 10px; }
.manufacturing-intro-actions .btn { color: #e9f8f7; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.1); }
.manufacturing-intro-actions .btn:hover { border-color: #70d8d1; background: rgba(255,255,255,.16); }
.manufacturing-legend { white-space: nowrap; color: #cbe0e5; font-size: .67rem; }
.manufacturing-legend i { width: 9px; height: 9px; display: inline-block; margin: 0 5px 0 12px; border-radius: 50%; }
.manufacturing-legend .ready { background: #4ed2b4; }
.manufacturing-legend .pending { background: #f0aa48; }
.manufacturing-grid { display: grid; grid-template-columns: repeat(3, minmax(300px, 1fr)); gap: 13px; }
.manufacturing-card { position: relative; overflow: hidden; padding: 18px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 7px 20px rgba(25,51,72,.05); }
.manufacturing-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--amber); }
.manufacturing-card.is-ready::before { background: var(--teal); }
.manufacturing-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.manufacturing-card-head span { color: #285f71; font-size: .68rem; font-weight: 800; letter-spacing: .04em; }
.manufacturing-card-head i { padding: 3px 7px; color: #546b79; border-radius: 5px; background: #edf2f4; font-size: .62rem; font-style: normal; }
.manufacturing-card h2 { min-height: 42px; margin: 13px 0 9px; font-size: .96rem; }
.manufacturing-chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 7px; align-items: center; padding: 10px; border-radius: 8px; background: #f2f6f7; }
.manufacturing-chain > span { color: var(--muted); font-size: .6rem; }
.manufacturing-chain > span b { display: block; margin-top: 3px; color: var(--ink); font-size: .68rem; }
.manufacturing-chain > i { color: #90a2ad; font-style: normal; }
.build-state { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 9px; }
.build-state div { padding: 9px 10px; border: 1px solid #dfe7eb; border-radius: 7px; }
.build-state span, .build-state b { display: block; }
.build-state span { color: var(--muted); font-size: .59rem; font-weight: 700; }
.build-state b { margin-top: 3px; color: var(--ink-2); font-size: .67rem; }
.required-documents { margin-top: 14px; }
.required-documents-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.required-documents-head b { font-size: .72rem; }
.required-documents-head span { color: var(--muted); font-size: .64rem; }
.required-document { width: 100%; display: grid; grid-template-columns: 24px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; color: inherit; border: 0; border-top: 1px solid #e7ecef; background: transparent; text-align: left; }
.required-document[data-linked-document] { cursor: pointer; }
.required-document[data-linked-document]:hover strong { color: var(--teal); }
.required-document > i { width: 22px; height: 22px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #e1a84b; font-size: .65rem; font-style: normal; font-weight: 800; }
.required-document.ready > i { background: var(--teal); }
.required-document strong, .required-document small { display: block; }
.required-document strong { font-size: .68rem; }
.required-document small { margin-top: 2px; color: var(--muted); font-size: .59rem; }
.required-document > b { color: #516976; font-size: .59rem; font-weight: 600; }
.manufacturing-card footer { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; color: var(--muted); font-size: .62rem; }
.fleet-reserve-banner { display: grid; grid-template-columns: minmax(390px, 1.05fr) minmax(490px, 1.1fr) auto; gap: 24px; align-items: center; margin-bottom: 13px; padding: 21px 23px; color: #eaf7f7; border: 1px solid #123d52; border-radius: 9px; background: linear-gradient(118deg, #123b52 0%, #145f66 68%, #17786f 100%); box-shadow: 0 10px 22px rgba(21,56,71,.1); }
.fleet-reserve-banner h2 { margin: 5px 0 7px; color: #fff; font-size: calc(18px * var(--font-scale)); }
.fleet-reserve-banner p:last-child { max-width: 720px; margin: 0; color: #c8dfe2; font-size: calc(11px * var(--font-scale)); line-height: 1.6; }
.fleet-source-chain { display: grid; grid-template-columns: repeat(9, auto); gap: 7px; align-items: center; }
.fleet-source-chain span { min-height: 46px; display: grid; place-items: center; padding: 6px 10px; color: #eaf8f6; border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08); font-size: calc(10px * var(--font-scale)); font-weight: 800; text-align: center; }
.fleet-source-chain i { color: #e0b455; font-style: normal; font-weight: 900; }
.fleet-actions { display: grid; gap: 7px; }
.fleet-actions .btn { min-width: 116px; color: #eefafa; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.09); }
.fleet-actions .btn.primary { color: #173746; border-color: #f0c66a; background: #f0c66a; }
.fleet-workspace { display: grid; grid-template-columns: minmax(245px, .48fr) minmax(650px, 1.25fr) minmax(300px, .58fr); gap: 13px; align-items: start; }
.fleet-aircraft-panel, .fleet-installed-panel, .fleet-effectivity-panel { min-height: 610px; overflow: hidden; }
.fleet-workspace .panel-head { min-height: 67px; padding: 15px 17px; border-bottom: 1px solid #d6e1e5; background: #f7f9fa; }
.fleet-workspace .panel-head h2 { margin: 4px 0 0; color: #173b4e; font-size: calc(15px * var(--font-scale)); }
.fleet-workspace .panel-head > span { color: #6b7f89; font-size: calc(10px * var(--font-scale)); font-weight: 800; }
.fleet-aircraft-row { width: 100%; display: grid; grid-template-columns: 37px minmax(0, 1fr) auto; gap: 9px; align-items: center; padding: 13px 14px; color: inherit; border: 0; border-bottom: 1px solid #dfe7ea; background: #fff; cursor: pointer; text-align: left; }
.fleet-aircraft-row:hover { background: #f5f9f8; }
.fleet-aircraft-row.is-selected { background: #eaf6f4; box-shadow: inset 4px 0 #118d85; }
.fleet-aircraft-icon { width: 34px; height: 34px; display: grid; place-items: center; color: #fff; background: #17465b; font: 900 calc(10px * var(--font-scale))/1 Bahnschrift, sans-serif; }
.fleet-aircraft-row strong, .fleet-aircraft-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fleet-aircraft-row strong { color: #193d50; font-size: calc(12px * var(--font-scale)); }
.fleet-aircraft-row small { margin-top: 4px; color: #6e818b; font-size: calc(10px * var(--font-scale)); }
.fleet-aircraft-row > b { grid-column: 2 / -1; justify-self: start; margin-top: -4px; color: #0b8078; font-size: calc(9px * var(--font-scale)); }
.fleet-aircraft-row > b.has-gap { color: #b04c39; }
.fleet-aircraft-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #d7e1e5; background: #fff; }
.fleet-aircraft-strip div { min-height: 72px; padding: 13px 14px; border-right: 1px solid #dfe7ea; }
.fleet-aircraft-strip div:last-child { border-right: 0; }
.fleet-aircraft-strip span, .fleet-aircraft-strip b { display: block; }
.fleet-aircraft-strip span { color: #72838d; font-size: calc(9px * var(--font-scale)); font-weight: 800; }
.fleet-aircraft-strip b { margin-top: 7px; color: #173c50; font-size: calc(11px * var(--font-scale)); overflow-wrap: anywhere; }
.fleet-installation-head, .fleet-installation-row { display: grid; grid-template-columns: 1.05fr 1.08fr .95fr 1.05fr .8fr; gap: 10px; align-items: center; }
.fleet-installation-head { min-height: 43px; padding: 0 15px; color: #637781; border-bottom: 1px solid #d6e1e5; background: #eaf0f2; font-size: calc(9px * var(--font-scale)); font-weight: 900; }
.fleet-installation-row { min-height: 79px; padding: 11px 15px; border-bottom: 1px solid #dfe7ea; border-left: 4px solid #bd4f3d; background: #fffaf8; }
.fleet-installation-row.is-ready { border-left-color: #0b938a; background: #fff; }
.fleet-installation-row strong, .fleet-installation-row small { display: block; overflow-wrap: anywhere; }
.fleet-installation-row strong { color: #173c50; font-size: calc(12px * var(--font-scale)); }
.fleet-installation-row small { margin-top: 4px; color: #6c7f89; font-size: calc(10px * var(--font-scale)); line-height: 1.4; }
.fleet-rule-note { display: grid; gap: 4px; padding: 12px 15px; color: #5d573d; border-bottom: 1px solid #e4d7b8; background: #fff9ec; }
.fleet-rule-note b { font-size: calc(10px * var(--font-scale)); }
.fleet-rule-note span { font-size: calc(9px * var(--font-scale)); line-height: 1.45; }
#fleetEffectivityRules { max-height: 402px; overflow: auto; }
.fleet-effectivity-rule { padding: 14px 15px; border-bottom: 1px solid #dfe7ea; border-left: 4px solid #a9b8c0; background: #fff; }
.fleet-effectivity-rule.applies { border-left-color: #0d9188; background: #f3faf8; }
.fleet-effectivity-rule.manual { border-left-color: #d59a35; background: #fffbf3; }
.fleet-effectivity-rule header, .fleet-effectivity-rule footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fleet-effectivity-rule header > span { color: #14776f; font-size: calc(9px * var(--font-scale)); font-weight: 900; }
.fleet-effectivity-rule h3 { margin: 9px 0 3px; color: #193d50; font-size: calc(13px * var(--font-scale)); }
.fleet-effectivity-rule > p { margin: 0 0 9px; color: #3c5969; font-size: calc(11px * var(--font-scale)); }
.fleet-effectivity-rule > div { padding: 8px 9px; background: #edf3f4; }
.fleet-effectivity-rule > div span, .fleet-effectivity-rule > div small { display: block; }
.fleet-effectivity-rule > div span { color: #244d5f; font-size: calc(9px * var(--font-scale)); font-weight: 900; }
.fleet-effectivity-rule > div small { margin-top: 3px; color: #667983; font-size: calc(8px * var(--font-scale)); line-height: 1.4; }
.fleet-effectivity-rule footer { margin-top: 10px; color: #6d7d86; font-size: calc(9px * var(--font-scale)); }
.fleet-effectivity-rule footer b { color: #126f6a; }
.fleet-snapshot-register { border-top: 4px solid #17445a; }
.fleet-snapshot-register > div:first-child { display: flex; justify-content: space-between; padding: 11px 15px; color: #24495a; background: #eaf0f2; font-size: calc(10px * var(--font-scale)); }
#fleetSnapshotList article { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 10px 14px; border-top: 1px solid #e0e7ea; }
#fleetSnapshotList strong, #fleetSnapshotList small { display: block; }
#fleetSnapshotList strong { color: #1e4355; font-size: calc(9px * var(--font-scale)); overflow-wrap: anywhere; }
#fleetSnapshotList small, #fleetSnapshotList > p { margin-top: 3px; color: #71838c; font-size: calc(8px * var(--font-scale)); }
#fleetSnapshotList article > i { color: #14776f; font-size: calc(8px * var(--font-scale)); font-style: normal; }
#fleetSnapshotList > p { padding: 12px 15px; }
.fleet-mode-tabs { display: flex; gap: 6px; margin: 0 0 13px; padding: 5px; border: 1px solid #cbd8dd; background: #e7eef0; }
.fleet-mode-tabs button { min-height: 41px; display: flex; align-items: center; justify-content: center; gap: 9px; flex: 1; padding: 0 14px; color: #496372; border: 0; background: transparent; font-size: calc(11px * var(--font-scale)); font-weight: 900; cursor: pointer; }
.fleet-mode-tabs button > span { width: 23px; height: 23px; display: grid; place-items: center; color: #71858f; border: 1px solid #aebfc6; font: 800 calc(9px * var(--font-scale))/1 Bahnschrift, sans-serif; }
.fleet-mode-tabs button > b { min-width: 22px; padding: 2px 6px; color: #fff; border-radius: 10px; background: #9a4c3d; font-size: calc(9px * var(--font-scale)); }
.fleet-mode-tabs button.is-active { color: #fff; background: #164d64; box-shadow: 0 5px 12px rgba(20,68,91,.16); }
.fleet-mode-tabs button.is-active > span { color: #153b4e; border-color: #e7b95a; background: #efc66d; }
.fleet-mode-view { display: none; }
.fleet-mode-view.is-active { display: block; }
.fleet-campaign-command { display: grid; grid-template-columns: minmax(420px, 1fr) auto auto; gap: 22px; align-items: center; margin-bottom: 13px; padding: 18px 20px; color: #d8e9ec; border: 1px solid #183f53; background: linear-gradient(115deg, #173b50, #1d5964); }
.fleet-campaign-command h2 { margin: 4px 0 5px; color: #fff; font-size: calc(17px * var(--font-scale)); }
.fleet-campaign-command p:last-child { margin: 0; color: #bdd3d8; font-size: calc(10px * var(--font-scale)); line-height: 1.5; }
.fleet-campaign-metrics { display: flex; border: 1px solid rgba(255,255,255,.18); }
.fleet-campaign-metrics span { min-width: 88px; padding: 10px 13px; color: #bad0d6; border-right: 1px solid rgba(255,255,255,.16); font-size: calc(9px * var(--font-scale)); text-align: center; }
.fleet-campaign-metrics span:last-child { border-right: 0; }
.fleet-campaign-metrics b { display: block; margin-bottom: 3px; color: #fff; font: 800 calc(18px * var(--font-scale))/1 Bahnschrift, sans-serif; }
.fleet-campaign-workspace { display: grid; grid-template-columns: minmax(270px, .5fr) minmax(690px, 1.25fr) minmax(305px, .57fr); gap: 13px; align-items: start; }
.fleet-campaign-list-panel, .fleet-action-panel, .fleet-campaign-gate { min-height: 590px; overflow: hidden; }
.fleet-campaign-list-panel .panel-head, .fleet-action-panel .panel-head { min-height: 67px; padding: 14px 16px; border-bottom: 1px solid #d5e0e4; background: #f6f9fa; }
.fleet-campaign-list-panel .panel-head h2, .fleet-action-panel .panel-head h2 { margin: 4px 0 0; color: #173b4e; font-size: calc(15px * var(--font-scale)); }
.fleet-campaign-list-panel .panel-head > span { color: #647b87; font-size: calc(10px * var(--font-scale)); font-weight: 800; }
.fleet-campaign-row { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; padding: 14px 15px; color: inherit; border: 0; border-bottom: 1px solid #dfe7ea; border-left: 4px solid transparent; background: #fff; text-align: left; cursor: pointer; }
.fleet-campaign-row:hover { background: #f6faf9; }
.fleet-campaign-row.is-selected { border-left-color: #128a82; background: #eaf6f4; }
.fleet-campaign-row span, .fleet-campaign-row strong, .fleet-campaign-row small { display: block; }
.fleet-campaign-row > span:first-child { color: #13766f; font-size: calc(9px * var(--font-scale)); font-weight: 900; }
.fleet-campaign-row strong { grid-column: 1 / -1; color: #193d50; font-size: calc(12px * var(--font-scale)); }
.fleet-campaign-row small { grid-column: 1 / -1; color: #6b7e89; font-size: calc(9px * var(--font-scale)); line-height: 1.45; }
.fleet-campaign-row footer { grid-column: 1 / -1; display: flex; justify-content: space-between; color: #667a85; font-size: calc(9px * var(--font-scale)); }
.fleet-campaign-row footer b { color: #a44b39; }
.fleet-action-head, .fleet-action-row { display: grid; grid-template-columns: 1.05fr .83fr 1.05fr 1.17fr; gap: 11px; align-items: center; }
.fleet-action-head { min-height: 43px; padding: 0 15px; color: #607783; border-bottom: 1px solid #d3dfe3; background: #e8f0f2; font-size: calc(9px * var(--font-scale)); font-weight: 900; }
.fleet-action-row { width: 100%; min-height: 88px; padding: 11px 15px; color: inherit; border: 0; border-bottom: 1px solid #dfe7ea; border-left: 4px solid #b74e3d; background: #fffaf8; text-align: left; cursor: pointer; }
.fleet-action-row.is-ready { border-left-color: #0b9288; background: #fff; }
.fleet-action-row:hover { box-shadow: inset 0 0 0 2px rgba(18,127,120,.13); }
.fleet-action-row strong, .fleet-action-row small { display: block; overflow-wrap: anywhere; }
.fleet-action-row strong { color: #173c50; font-size: calc(11px * var(--font-scale)); }
.fleet-action-row small { margin-top: 4px; color: #6c7e88; font-size: calc(9px * var(--font-scale)); line-height: 1.4; }
.fleet-action-row em { display: inline-block; margin-top: 4px; color: #aa4937; font-size: calc(9px * var(--font-scale)); font-style: normal; font-weight: 900; }
.fleet-action-row em.is-ready { color: #0b837b; }
.fleet-campaign-gate { border-top: 5px solid #173f53; }
.fleet-gate-band { padding: 18px 17px; color: #e9f5f5; background: linear-gradient(130deg, #173c51, #17656a); }
.fleet-gate-band span { color: #bdd6d8; font-size: calc(9px * var(--font-scale)); font-weight: 900; }
.fleet-gate-band h2 { margin: 6px 0; color: #fff; font-size: calc(16px * var(--font-scale)); }
.fleet-gate-band p { margin: 0; color: #c7dcde; font-size: calc(10px * var(--font-scale)); line-height: 1.5; }
.fleet-gate-section { padding: 15px 17px; border-bottom: 1px solid #dbe4e7; }
.fleet-gate-section header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.fleet-gate-section header span { color: #21495b; font-size: calc(10px * var(--font-scale)); font-weight: 900; }
.fleet-gate-section header b { color: #ad4b38; font-size: calc(9px * var(--font-scale)); }
.fleet-gate-section header b.is-ready { color: #0b847c; }
.fleet-gate-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.fleet-gate-facts div { padding: 9px; background: #edf3f4; }
.fleet-gate-facts span, .fleet-gate-facts b { display: block; }
.fleet-gate-facts span { color: #70828b; font-size: calc(8px * var(--font-scale)); }
.fleet-gate-facts b { margin-top: 3px; color: #214858; font-size: calc(9px * var(--font-scale)); overflow-wrap: anywhere; }
.fleet-blocker-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.fleet-blocker-list li { padding: 7px 8px; color: #784535; border-left: 3px solid #c15a42; background: #fff2ed; font-size: calc(9px * var(--font-scale)); line-height: 1.4; }
.fleet-gate-actions { display: grid; gap: 7px; padding: 15px 17px; }
.effectivity-conflict-panel { min-height: 560px; overflow: hidden; }
.effectivity-conflict-intro { display: flex; justify-content: space-between; gap: 24px; align-items: center; padding: 20px 22px; color: #d8e7ea; background: linear-gradient(110deg, #173b50, #75452f); }
.effectivity-conflict-intro h2 { margin: 5px 0 7px; color: #fff; font-size: calc(18px * var(--font-scale)); }
.effectivity-conflict-intro p:last-child { max-width: 850px; margin: 0; color: #ccd9da; font-size: calc(10px * var(--font-scale)); line-height: 1.55; }
.effectivity-conflict-intro > span { min-width: 112px; padding: 13px 16px; color: #fff; border: 1px solid rgba(255,255,255,.25); font-size: calc(12px * var(--font-scale)); font-weight: 900; text-align: center; }
.effectivity-conflict-head, .effectivity-conflict-row { display: grid; grid-template-columns: .75fr .8fr 1.25fr 1.4fr; gap: 16px; align-items: center; }
.effectivity-conflict-head { min-height: 45px; padding: 0 20px; color: #637984; border-bottom: 1px solid #d5dfe3; background: #e9f0f2; font-size: calc(9px * var(--font-scale)); font-weight: 900; }
.effectivity-conflict-row { min-height: 99px; padding: 14px 20px; border-bottom: 1px solid #dce4e7; border-left: 5px solid #ba4e3a; background: #fff9f6; }
.effectivity-conflict-row strong, .effectivity-conflict-row small { display: block; }
.effectivity-conflict-row strong { color: #173c50; font-size: calc(11px * var(--font-scale)); }
.effectivity-conflict-row small { margin-top: 5px; color: #6d7e87; font-size: calc(9px * var(--font-scale)); line-height: 1.45; overflow-wrap: anywhere; }
.change-layout { display: grid; grid-template-columns: minmax(300px, .6fr) minmax(700px, 1.4fr); gap: 13px; align-items: start; }
@media (max-width: 1450px) {
  .configuration-summary { grid-template-columns: repeat(3, minmax(180px, 1fr)); }
  .fleet-reserve-banner { grid-template-columns: 1fr; }
  .fleet-actions { display: flex; flex-wrap: wrap; }
  .fleet-workspace { grid-template-columns: 245px minmax(620px, 1fr); }
  .fleet-effectivity-panel { grid-column: 1 / -1; min-height: 0; }
  #fleetEffectivityRules { display: grid; grid-template-columns: repeat(3, 1fr); max-height: none; }
  .fleet-campaign-workspace { grid-template-columns: 270px minmax(650px, 1fr); }
  .fleet-campaign-gate { grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 980px) {
  .configuration-tabs { overflow-x: auto; }
  .configuration-tabs button { min-width: 180px; }
  .fleet-source-chain { overflow-x: auto; }
  .fleet-source-chain span { min-width: 125px; }
  .fleet-workspace { grid-template-columns: 1fr; }
  .fleet-effectivity-panel { grid-column: auto; }
  .fleet-installation-head, .fleet-installation-row { min-width: 820px; }
  .fleet-installed-panel { overflow-x: auto; }
  #fleetEffectivityRules { grid-template-columns: 1fr; }
  .fleet-mode-tabs { overflow-x: auto; }
  .fleet-mode-tabs button { min-width: 220px; }
  .fleet-campaign-command { grid-template-columns: 1fr; }
  .fleet-campaign-workspace { grid-template-columns: 1fr; }
  .fleet-action-panel { overflow-x: auto; }
  .fleet-action-head, .fleet-action-row { min-width: 850px; }
  .effectivity-conflict-head, .effectivity-conflict-row { min-width: 920px; }
  .effectivity-conflict-panel { overflow-x: auto; }
}
.change-run-list-panel { overflow: hidden; }
.change-run-list-panel .panel-head { padding: 17px 18px; }
.change-run-row { width: 100%; min-height: 72px; display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 11px 16px; color: inherit; border: 0; border-top: 1px solid #e4eaee; background: #fff; cursor: pointer; text-align: left; }
.change-run-row:hover { background: #f5f9f9; }
.change-run-row.is-selected { background: #e8f5f4; box-shadow: inset 4px 0 var(--teal); }
.change-run-row strong, .change-run-row small { display: block; }
.change-run-row strong { font-size: .76rem; }
.change-run-row small { margin-top: 3px; color: var(--muted); font-size: .62rem; }
.change-run-row span:nth-child(2) { color: var(--ink-2); font-size: .63rem; text-align: right; }
.change-run-row span:nth-child(2) b { display: block; color: var(--ink); font-size: .82rem; }
.change-impact-panel { min-height: 570px; overflow: hidden; }
.change-impact-head { display: flex; align-items: start; justify-content: space-between; gap: 15px; padding: 19px 21px; color: #fff; background: linear-gradient(135deg, #143851, #17626a); }
.change-impact-head span { color: #80dcd6; font-size: .63rem; font-weight: 700; }
.change-impact-head h2 { margin: 9px 0 2px; color: #fff; font-size: 1.18rem; }
.change-impact-head p { margin: 0; color: #c7dce2; font-size: .69rem; }
.change-impact-head .detail-chips { justify-content: end; }
.change-impact-head .detail-chips i { color: #d7e9ec; background: rgba(255,255,255,.12); }
.change-impact-items { display: grid; gap: 10px; padding: 13px; background: #f2f5f6; }
.impact-document-card { padding: 15px 16px; border: 1px solid #dae3e7; border-radius: 9px; background: #fff; }
.impact-document-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.impact-document-head span { color: var(--teal); font-size: .61rem; font-weight: 800; letter-spacing: .05em; }
.impact-document-head h3 { margin: 5px 0 2px; color: var(--ink); font-size: .84rem; }
.impact-document-head p { margin: 0; color: var(--muted); font-size: .64rem; }
.impact-match { margin: 11px 0; padding: 8px 10px; color: #5f552e; border-left: 3px solid var(--amber); background: #fff8e9; font-size: .65rem; line-height: 1.5; }
.impact-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.impact-form-grid .span-2 { grid-column: span 2; }
.impact-form-grid label > span { margin-bottom: 4px; font-size: .64rem; }
.impact-form-grid input, .impact-form-grid select { height: 34px; font-size: .68rem; }
.impact-form-grid textarea { font-size: .68rem; }
.impact-document-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #e4eaee; }
.impact-document-card footer span { color: var(--muted); font-size: .61rem; }

.trace-summary { display: grid; grid-template-columns: repeat(5, minmax(145px, 1fr)); gap: 10px; margin-bottom: 12px; }
.trace-summary article { min-height: 91px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.trace-summary span, .trace-summary strong, .trace-summary small { display: block; }
.trace-summary span { color: var(--muted); font-size: .69rem; font-weight: 700; }
.trace-summary strong { margin: 2px 0; font: 700 1.55rem/1.2 Bahnschrift, sans-serif; }
.trace-summary small { color: var(--ink-2); font-size: .66rem; }
.trace-summary .trace-alert { color: #fff; border-color: transparent; background: linear-gradient(135deg, #173b58, #954b36); }
.trace-summary .trace-alert span, .trace-summary .trace-alert small { color: #d7e3e8; }
.trace-guidance { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); gap: 1px; overflow: hidden; margin-bottom: 12px; border: 1px solid #bfd6d6; border-radius: 10px; background: #bfd6d6; }
.trace-guidance > div { min-height: 71px; display: flex; flex-direction: column; justify-content: center; padding: 11px 14px; background: #f8fbfb; }
.trace-guidance-title { color: #fff; background: linear-gradient(130deg, #133952, #12696d) !important; }
.trace-guidance-title span { color: #71d9d2; font: 700 .59rem/1 Bahnschrift, sans-serif; letter-spacing: .12em; }
.trace-guidance-title strong { margin-top: 6px; font-size: .78rem; }
.trace-guidance-title small { margin-top: 2px; color: #c1d8df; font-size: .6rem; }
.trace-standard b { color: #1a5c6c; font: 700 .7rem/1.2 Bahnschrift, sans-serif; }
.trace-standard span { margin-top: 5px; color: var(--muted); font-size: .61rem; line-height: 1.4; }
.trace-tabs { display: flex; gap: 5px; margin-bottom: 12px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: #edf2f4; }
.trace-tabs button { min-height: 38px; flex: 1; color: #526a7a; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: .74rem; font-weight: 700; }
.trace-tabs button:hover { color: var(--ink); background: rgba(255,255,255,.7); }
.trace-tabs button.is-active { color: #fff; background: #164d64; box-shadow: 0 4px 12px rgba(20,68,91,.18); }
.trace-view { display: none; }
.trace-view.is-active { display: block; animation: configViewIn .18s ease both; }
.trace-toolbar { display: flex; gap: 9px; margin-bottom: 12px; }
.trace-toolbar select { width: 205px; font-size: .73rem; }
.trace-matrix-layout { display: grid; grid-template-columns: minmax(790px, 1.43fr) minmax(370px, .62fr); gap: 13px; align-items: start; }
.trace-matrix-panel { overflow: hidden; }
.trace-matrix-head, .trace-row { display: grid; grid-template-columns: minmax(365px, 1.7fr) repeat(5, minmax(61px, .34fr)); gap: 7px; align-items: center; }
.trace-matrix-head { min-height: 42px; padding: 0 14px; color: var(--muted); border-bottom: 1px solid var(--line); background: #f4f7f8; font-size: .66rem; font-weight: 700; text-align: center; }
.trace-matrix-head span:first-child { text-align: left; }
.trace-row { width: 100%; min-height: 70px; padding: 8px 14px; color: inherit; border: 0; border-bottom: 1px solid #e4eaee; background: #fff; cursor: pointer; text-align: left; }
.trace-row:hover { background: #f5faf9; }
.trace-row.is-selected { background: #e6f4f2; box-shadow: inset 4px 0 var(--teal); }
.trace-requirement-ident { min-width: 0; display: flex; align-items: center; gap: 10px; padding-left: calc(var(--level) * 19px); }
.trace-requirement-ident > i { flex: 0 0 auto; width: 31px; height: 31px; display: grid; place-items: center; color: #175e6b; border: 1px solid #bdd9d8; border-radius: 7px; background: #e3f2f1; font: 800 .63rem/1 Bahnschrift, sans-serif; font-style: normal; }
.trace-requirement-ident > span { min-width: 0; }
.trace-requirement-ident strong, .trace-requirement-ident small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace-requirement-ident strong { font-size: .75rem; }
.trace-requirement-ident small { margin-top: 3px; color: var(--muted); font-size: .62rem; }
.gate-mark { display: grid; justify-items: center; gap: 2px; text-align: center; }
.gate-mark i { width: 24px; height: 24px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #d38a32; font-size: .65rem; font-style: normal; font-weight: 800; }
.gate-mark.ready i { background: var(--teal); }
.gate-mark small { color: var(--muted); font-size: .56rem; }
.trace-detail { position: sticky; top: 84px; min-height: 610px; overflow: hidden; }
.trace-detail-band { padding: 19px 20px; color: #fff; background: linear-gradient(135deg, #173a55, #8b4a32); }
.trace-detail-band.ready { background: linear-gradient(135deg, #153b55, #176c68); }
.trace-detail-band > span { color: #8de0da; font-size: .62rem; font-weight: 750; letter-spacing: .05em; }
.trace-detail-band h2 { margin: 9px 0 3px; color: #fff; font-size: 1.06rem; }
.trace-detail-band p { margin: 0; color: #cbdde4; font: 700 .68rem/1.4 Bahnschrift, sans-serif; }
.trace-detail-body { padding: 14px 17px; }
.trace-text { padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.trace-text span, .trace-detail-section > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: .61rem; font-weight: 750; }
.trace-text p { margin: 0; color: var(--ink-2); font-size: .69rem; line-height: 1.55; }
.trace-meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 11px 0; overflow: hidden; border: 1px solid #e0e7eb; border-radius: 7px; background: #e0e7eb; }
.trace-meta-grid div { min-height: 48px; padding: 7px 9px; background: #f8fafb; }
.trace-meta-grid span, .trace-meta-grid b { display: block; }
.trace-meta-grid span { color: var(--muted); font-size: .57rem; }
.trace-meta-grid b { margin-top: 3px; color: var(--ink-2); font-size: .64rem; }
.trace-detail-section { margin: 12px 0; }
.trace-detail-section .detail-chips button, .dual-chip-row button { padding: 3px 7px; color: #266676; border: 0; border-radius: 5px; background: #e3f2f2; cursor: pointer; font-size: .6rem; font-weight: 700; }
.trace-detail-section .detail-chips button:hover, .dual-chip-row button:hover { color: #fff; background: var(--teal); }
.dual-chip-row { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.dual-chip-row > div { min-height: 34px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 4px; padding: 6px; border: 1px solid #e0e7eb; border-radius: 6px; }
.dual-chip-row i { padding: 3px 7px; color: #516b79; border-radius: 5px; background: #edf2f4; font-size: .6rem; font-style: normal; }
.trace-document-link { width: 100%; display: grid; grid-template-columns: 90px 1fr auto; gap: 8px; align-items: center; padding: 9px 10px; color: inherit; border: 1px solid #d9e4e7; border-radius: 7px; background: #f6f9fa; cursor: pointer; text-align: left; }
.trace-document-link:hover { border-color: var(--teal); background: #edf8f6; }
.trace-document-link span, .trace-document-link i { color: var(--muted); font-size: .59rem; font-style: normal; }
.trace-document-link b { font-size: .64rem; }
.trace-missing-document { padding: 8px 10px; color: #9a5b16; border-left: 3px solid var(--amber); background: #fff7e8; font-size: .63rem; }
.trace-gate-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; margin: 12px 0; }
.trace-gate-grid > div { min-height: 57px; display: grid; justify-items: center; align-content: center; border: 1px solid #ebd3b1; border-radius: 7px; background: #fff8ea; }
.trace-gate-grid > div.ready { border-color: #c9e3df; background: #edf8f6; }
.trace-gate-grid i { color: var(--amber); font-style: normal; font-weight: 850; }
.trace-gate-grid .ready i { color: var(--teal); }
.trace-gate-grid span { color: var(--ink-2); font-size: .55rem; font-weight: 700; }
.trace-gate-grid small { color: var(--muted); font-size: .52rem; }
.trace-object-list { display: grid; gap: 5px; }
.trace-object-list article { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 8px; padding: 7px 8px; border: 1px solid #e1e8eb; border-radius: 6px; }
.trace-object-list article > i { width: 28px; height: 25px; display: grid; place-items: center; color: #17636f; border-radius: 4px; background: #e3f2f1; font: 800 .53rem/1 Bahnschrift, sans-serif; font-style: normal; }
.trace-object-list article b, .trace-object-list article small { display: block; }
.trace-object-list article b { font-size: .63rem; }
.trace-object-list article small { margin-top: 2px; color: var(--muted); font-size: .56rem; }
.trace-object-list article button { padding: 3px 6px; color: var(--teal); border: 1px solid #bddad7; border-radius: 4px; background: #f0f8f7; cursor: pointer; font-size: .55rem; }
.trace-object-list article em { color: #a65d15; font-size: .56rem; font-style: normal; }
.trace-object-list > p { margin: 0; color: var(--muted); font-size: .63rem; }
.trace-closure-warning, .trace-closure-ready { margin-top: 11px; padding: 9px 10px; border-left: 3px solid var(--amber); background: #fff7e8; }
.trace-closure-ready { border-left-color: var(--teal); background: #eaf7f5; }
.trace-closure-warning b, .trace-closure-ready b { display: block; font-size: .64rem; }
.trace-closure-warning p, .trace-closure-ready p { margin: 3px 0 0; color: var(--ink-2); font-size: .59rem; }
.document-detail-actions .btn[disabled] { color: #93a1aa; border-color: #dbe2e6; background: #edf1f3; cursor: not-allowed; box-shadow: none; transform: none; }
.thread-canvas { overflow: hidden; min-height: 530px; padding-bottom: 22px; }
.thread-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.thread-head h2 { margin: 4px 0 0; }
.thread-flow { display: grid; grid-template-columns: 1fr 25px 1fr 25px 1fr 25px 1fr 25px 1fr; gap: 4px; align-items: stretch; padding: 26px 18px; }
.thread-column { min-width: 0; }
.thread-column > span { display: block; margin-bottom: 9px; color: var(--muted); font-size: .61rem; font-weight: 800; letter-spacing: .04em; }
.thread-column article { position: relative; min-height: 83px; margin-bottom: 8px; padding: 11px 9px 9px; border: 1px solid #dce5e8; border-radius: 8px; background: #f9fbfb; }
.thread-column article.focus { color: #fff; border-color: #17636b; background: linear-gradient(145deg, #173b56, #17666c); box-shadow: 0 9px 20px rgba(20,65,80,.16); }
.thread-column article.missing { border-color: #eccb9a; background: #fff7e9; }
.thread-column article > i { display: inline-flex; margin-bottom: 7px; padding: 3px 6px; color: #17616c; border-radius: 4px; background: #e2f2f1; font: 800 .55rem/1 Bahnschrift, sans-serif; font-style: normal; }
.thread-column article.focus > i { color: #093e45; background: #73ded5; }
.thread-column article.missing > i { color: #9a5a17; background: #ffe2b3; }
.thread-column article b, .thread-column article small { display: block; overflow: hidden; text-overflow: ellipsis; }
.thread-column article b { font-size: .66rem; }
.thread-column article small { margin-top: 4px; color: var(--muted); font-size: .56rem; line-height: 1.4; }
.thread-column article.focus small { color: #c6dce3; }
.thread-arrow { display: grid; place-items: center; padding-top: 25px; color: #88a7ae; font-size: 1.1rem; }
.gap-board { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 12px; }
.gap-card { position: relative; overflow: hidden; min-height: 225px; padding: 17px 18px 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 7px 20px rgba(25,51,72,.05); }
.gap-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--amber); }
.gap-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gap-card-head span { color: #356274; font-size: .62rem; font-weight: 800; }
.gap-card-head i { padding: 3px 7px; color: #965c18; border-radius: 10px; background: #fff0d6; font-size: .58rem; font-style: normal; font-weight: 750; }
.gap-card h2 { margin: 14px 0 3px; font-size: .88rem; }
.gap-card > p { margin: 0 0 12px; color: var(--muted); font-size: .62rem; }
.gap-card > div:nth-of-type(2) { min-height: 58px; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 5px; }
.gap-card > div:nth-of-type(2) span { padding: 4px 7px; color: #8b5316; border-radius: 5px; background: #fff4df; font-size: .58rem; }
.gap-card > button { width: 100%; margin-top: 12px; padding: 9px 0 0; color: var(--teal); border: 0; border-top: 1px solid #e5ebee; background: transparent; cursor: pointer; text-align: left; font-size: .63rem; font-weight: 750; }

.portfolio-summary { display: grid; grid-template-columns: repeat(5, minmax(145px, 1fr)); gap: 10px; margin-bottom: 12px; }
.portfolio-summary article { min-height: 96px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: 0 5px 14px rgba(24,48,68,.04); }
.portfolio-summary span, .portfolio-summary strong, .portfolio-summary small { display: block; }
.portfolio-summary span { color: var(--muted); font-size: .72rem; font-weight: 700; }
.portfolio-summary strong { margin: 2px 0; color: var(--ink); font: 700 1.65rem/1.2 Bahnschrift, sans-serif; }
.portfolio-summary small { color: var(--ink-2); font-size: .68rem; }
.access-equation { display: flex; align-items: center; gap: 10px; min-height: 56px; margin-bottom: 12px; padding: 9px 17px; color: #d9e8ed; border-radius: 10px; background: linear-gradient(110deg, #102f48, #145d67); box-shadow: 0 8px 20px rgba(17,55,72,.12); }
.access-equation > span { margin-right: 5px; color: #75ddd4; font-size: .7rem; font-weight: 800; letter-spacing: .05em; }
.access-equation b { padding: 6px 10px; color: #fff; border: 1px solid rgba(255,255,255,.17); border-radius: 6px; background: rgba(255,255,255,.08); font-size: .74rem; }
.access-equation i { color: #7ccfc9; font-size: .85rem; font-style: normal; }
.access-equation em { margin-left: auto; color: #bad3dc; font-size: .68rem; font-style: normal; }
.portfolio-tabs { display: flex; gap: 5px; margin-bottom: 12px; padding: 5px; border: 1px solid var(--line); border-radius: 9px; background: #eaf0f2; }
.portfolio-tabs button { min-height: 39px; flex: 1; color: #526a7a; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: .78rem; font-weight: 750; }
.portfolio-tabs button:hover { color: var(--ink); background: rgba(255,255,255,.72); }
.portfolio-tabs button.is-active { color: #fff; background: #164d64; box-shadow: 0 4px 12px rgba(20,68,91,.18); }
.portfolio-view { display: none; }
.portfolio-view.is-active { display: block; animation: configViewIn .18s ease both; }
.portfolio-project-grid { display: grid; grid-template-columns: repeat(3, minmax(280px, 1fr)); gap: 12px; }
.portfolio-project-card { position: relative; overflow: hidden; min-height: 360px; padding: 19px 19px 15px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgba(24,48,68,.06); }
.portfolio-project-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #0a8c84, #4bbdb5); }
.portfolio-project-card > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.portfolio-project-card > header > span { color: #346375; font-size: .68rem; font-weight: 800; letter-spacing: .05em; }
.portfolio-project-card header > i, .assignment-card > header > i { padding: 4px 8px; color: #61727f; border-radius: 10px; background: #edf1f3; font-size: .63rem; font-style: normal; font-weight: 750; }
.portfolio-project-card header > i.ready, .assignment-card > header > i.ready { color: #11685f; background: #dff3ed; }
.portfolio-project-card header > i.pending, .assignment-card > header > i.pending { color: #935b17; background: #fff0d5; }
.portfolio-project-code { margin-top: 18px; color: var(--teal); font: 800 1.04rem/1.2 Bahnschrift, sans-serif; letter-spacing: .04em; }
.portfolio-project-card h2 { min-height: 50px; margin: 7px 0 4px; font-size: 1rem; }
.portfolio-project-card > p { min-height: 42px; margin: 0 0 13px; color: var(--muted); font-size: .7rem; line-height: 1.55; }
.project-stage { padding: 11px 12px; border-left: 3px solid var(--teal); background: #edf7f6; }
.project-stage span, .project-stage b, .project-stage small { display: block; }
.project-stage span { color: var(--muted); font-size: .63rem; }
.project-stage b { margin: 2px 0; color: #164f5b; font-size: .75rem; }
.project-stage small { color: #607785; font-size: .62rem; }
.portfolio-project-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; margin: 13px 0; border: 1px solid #e0e7ea; border-radius: 7px; background: #e0e7ea; }
.portfolio-project-card dl div { padding: 8px; background: #fafcfc; }
.portfolio-project-card dt, .portfolio-project-card dd { margin: 0; }
.portfolio-project-card dt { color: var(--muted); font-size: .59rem; }
.portfolio-project-card dd { margin-top: 3px; color: var(--ink-2); font-size: .66rem; font-weight: 750; }
.portfolio-project-card footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding-top: 11px; border-top: 1px solid #e4eaed; }
.portfolio-project-card footer button { padding: 0; color: var(--teal); border: 0; background: transparent; cursor: pointer; font-size: .68rem; font-weight: 750; }
.portfolio-project-card footer span { color: var(--muted); font-size: .6rem; }
.portfolio-empty { grid-column: 1 / -1; }
.portfolio-toolbar { display: flex; gap: 10px; margin-bottom: 12px; }
.portfolio-toolbar .basis-search { flex: 1; }
.portfolio-toolbar select { width: 210px; font-size: .76rem; }
.people-workspace { display: grid; grid-template-columns: minmax(700px, 1.35fr) minmax(420px, .82fr); gap: 13px; align-items: start; }
.people-register { overflow: hidden; }
.people-table-head, .people-row { display: grid; grid-template-columns: minmax(205px, 1.35fr) minmax(175px, 1.05fr) 82px minmax(115px, .74fr) minmax(130px, .82fr); gap: 9px; align-items: center; }
.people-table-head { min-height: 43px; padding: 0 15px; color: var(--muted); border-bottom: 1px solid var(--line); background: #f4f7f8; font-size: .66rem; font-weight: 750; }
.people-row { width: 100%; min-height: 72px; padding: 9px 15px; color: inherit; border: 0; border-bottom: 1px solid #e4eaee; background: #fff; cursor: pointer; text-align: left; }
.people-row:hover { background: #f4faf9; }
.people-row.is-selected { background: #e7f4f2; box-shadow: inset 4px 0 var(--teal); }
.people-row strong, .people-row small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.people-row strong { font-size: .72rem; }
.people-row small { margin-top: 3px; color: var(--muted); font-size: .62rem; }
.person-ident { min-width: 0; display: flex; align-items: center; gap: 9px; }
.person-ident > i { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: linear-gradient(145deg, #17737a, #163b56); font-size: .74rem; font-style: normal; font-weight: 800; }
.person-ident > span { min-width: 0; }
.project-count { text-align: center; }
.project-count b { display: block; color: #176572; font: 800 1.03rem/1 Bahnschrift, sans-serif; }
.qualification-mini { display: flex; flex-wrap: wrap; gap: 4px; }
.qualification-mini i, .permission-chips i { padding: 3px 6px; color: #226574; border-radius: 5px; background: #e2f2f1; font-size: .59rem; font-style: normal; font-weight: 750; }
.person-detail { position: sticky; top: 84px; min-height: 560px; overflow: hidden; }
.person-detail-band { display: grid; grid-template-columns: 46px 1fr auto; gap: 11px; align-items: center; padding: 18px 18px 17px; color: #fff; background: linear-gradient(135deg, #153951, #17666a); }
.person-avatar { width: 44px; height: 44px; display: grid; place-items: center; color: #0b4146; border-radius: 50%; background: #76ddd4; font-weight: 850; }
.person-detail-band span { color: #83dcd6; font-size: .62rem; font-weight: 750; }
.person-detail-band h2 { margin: 3px 0 1px; color: #fff; font-size: 1.04rem; }
.person-detail-band p { margin: 0; color: #c6dbe1; font-size: .63rem; }
.person-flags { display: flex; gap: 4px; }
.person-flags i { padding: 3px 6px; color: #fff; border-radius: 5px; background: rgba(255,255,255,.14); font-size: .58rem; font-style: normal; }
.person-detail-body { padding: 13px 15px 16px; }
.effective-rule { padding: 9px 10px; border-left: 3px solid var(--amber); background: #fff7e9; }
.effective-rule b, .effective-rule span { display: block; }
.effective-rule b { color: #7e501a; font-size: .66rem; }
.effective-rule span { margin-top: 2px; color: #715f47; font-size: .6rem; }
.person-section { margin: 14px 0; }
.person-section > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.person-section > header h3 { margin: 0; font-size: .75rem; }
.person-section > header span { color: var(--muted); font-size: .61rem; }
.organization-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.organization-links article { display: grid; grid-template-columns: 25px 1fr; gap: 7px; align-items: center; padding: 7px; border: 1px solid #e0e7ea; border-radius: 6px; }
.organization-links article > i { width: 24px; height: 24px; display: grid; place-items: center; color: #17646f; border-radius: 4px; background: #e1f1f0; font-size: .56rem; font-style: normal; font-weight: 800; }
.organization-links b, .organization-links small { display: block; }
.organization-links b { font-size: .62rem; }
.organization-links small { margin-top: 2px; color: var(--muted); font-size: .55rem; }
.qualification-list { display: grid; gap: 6px; }
.qualification-list > article { padding: 8px 9px; border: 1px solid #e1e7ea; border-radius: 6px; background: #f8fafb; }
.qualification-list article header { display: flex; justify-content: space-between; }
.qualification-list article header b { color: #17616d; font-size: .66rem; }
.qualification-list article header i { color: #147267; font-size: .56rem; font-style: normal; }
.qualification-list p, .qualification-list small { margin: 2px 0 0; color: var(--ink-2); font-size: .58rem; }
.qualification-list small { display: block; color: var(--muted); }
.assignment-list { display: grid; gap: 8px; }
.assignment-card { overflow: hidden; border: 1px solid #dbe5e8; border-radius: 8px; background: #fff; }
.assignment-card > header { display: flex; align-items: start; justify-content: space-between; gap: 9px; padding: 9px 10px; background: #f2f6f7; }
.assignment-card > header span { color: var(--teal); font: 800 .61rem/1 Bahnschrift, sans-serif; }
.assignment-card > header h4 { margin: 4px 0 0; font-size: .68rem; line-height: 1.35; }
.assignment-role { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 10px; border-bottom: 1px solid #e5eaed; }
.assignment-role b { font-size: .69rem; }
.assignment-role span { color: #386876; font-size: .58rem; font-weight: 750; }
.assignment-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; background: #e4eaed; }
.assignment-card dl div { padding: 7px 9px; background: #fff; }
.assignment-card dt, .assignment-card dd { margin: 0; }
.assignment-card dt { color: var(--muted); font-size: .54rem; }
.assignment-card dd { margin-top: 2px; color: var(--ink-2); font-size: .58rem; font-weight: 650; }
.permission-chips { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px 9px; background: #f8fafb; }
.permission-chips button { margin-left: auto; padding: 3px 4px; color: var(--teal); border: 0; background: transparent; cursor: pointer; font-size: .58rem; font-weight: 750; }
.access-preview-drawer { width: min(680px, 94vw); padding-bottom: 0; }
.access-preview-drawer .drawer-head { padding-left: 3px; padding-right: 3px; }
.access-result-band { position: relative; margin: 0 -24px; padding: 22px 25px 21px; color: #fff; background: linear-gradient(125deg, #153951, #14736e); }
.access-result-band.blocked { background: linear-gradient(125deg, #3a3f49, #8b4938); }
.access-result-band > span { color: #88ded7; font-size: .65rem; font-weight: 750; }
.access-result-band.blocked > span { color: #efc2b7; }
.access-result-band h2 { margin: 7px 0 4px; color: #fff; font-size: 1.25rem; }
.access-result-band p { max-width: 520px; margin: 0; color: #c9dde2; font-size: .7rem; }
.access-result-band > i { position: absolute; top: 24px; right: 25px; padding: 5px 9px; color: #0c4a46; border-radius: 13px; background: #7be0d5; font-size: .62rem; font-style: normal; font-weight: 850; }
.access-result-band.blocked > i { color: #6e2e22; background: #ffd3c9; }
.access-preview-body { padding: 16px 0 24px; }
.access-factor-chain { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; gap: 6px; align-items: stretch; }
.access-factor-chain > em { display: grid; place-items: center; color: #63838c; font-style: normal; font-weight: 850; }
.access-factor { min-height: 63px; display: flex; align-items: center; gap: 8px; padding: 9px; border: 1px solid #cde2df; border-radius: 7px; background: #f1f8f7; }
.access-factor > i { flex: 0 0 auto; width: 23px; height: 23px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: var(--teal); font-size: .58rem; font-style: normal; font-weight: 850; }
.access-factor.blocked { border-color: #efd4cb; background: #fff2ef; }
.access-factor.blocked > i { background: var(--coral); }
.access-factor small, .access-factor b { display: block; }
.access-factor small { color: var(--muted); font-size: .54rem; }
.access-factor b { margin-top: 2px; color: var(--ink-2); font-size: .61rem; line-height: 1.35; }
.access-preview-section { margin: 15px 0; }
.access-preview-section > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.access-preview-section > header h3 { margin: 0; font-size: .76rem; }
.access-preview-section > header span { color: var(--muted); font-size: .61rem; }
.access-chip-list { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px; border: 1px solid #d9e5e6; border-radius: 7px; background: #f2f8f7; }
.access-chip-list i { padding: 4px 7px; color: #185e69; border-radius: 5px; background: #dcefed; font-size: .61rem; font-style: normal; font-weight: 750; }
.access-chip-list.neutral { background: #f6f8f9; }
.access-chip-list.neutral i { color: #526a77; background: #e7edef; }
.access-chip-list p { margin: 0; color: var(--muted); font-size: .63rem; }
.access-assignment-summary { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 11px; border: 1px solid #dce4e7; border-radius: 7px; }
.access-assignment-summary b { font-size: .68rem; }
.access-assignment-summary span { color: #246575; font-size: .61rem; font-weight: 750; }
.access-assignment-summary small { grid-column: 1 / -1; color: var(--muted); font-size: .59rem; }
.access-rule-note { padding: 10px 11px; border-left: 3px solid var(--amber); background: #fff7e7; }
.access-rule-note b { font-size: .65rem; }
.access-rule-note p { margin: 2px 0 0; color: #675943; font-size: .61rem; }
.access-preview-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 17px; padding-top: 15px; border-top: 1px solid var(--line); }
.security-boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.security-boundary-grid article { position: relative; overflow: hidden; min-height: 205px; padding: 21px 20px; border: 1px solid var(--line); border-radius: 11px; background: #fff; box-shadow: 0 7px 20px rgba(25,51,72,.05); }
.security-boundary-grid article::after { content: ''; position: absolute; right: -30px; bottom: -45px; width: 115px; height: 115px; border: 14px solid #eaf3f3; border-radius: 50%; }
.security-boundary-grid article > span { display: inline-grid; width: 31px; height: 31px; place-items: center; color: #fff; border-radius: 7px; background: #17636c; font: 800 .67rem/1 Bahnschrift, sans-serif; }
.security-boundary-grid h2 { position: relative; z-index: 1; margin: 17px 0 7px; font-size: .94rem; }
.security-boundary-grid p { position: relative; z-index: 1; margin: 0; color: var(--ink-2); font-size: .72rem; line-height: 1.65; }

/* DOA design-organization approval workspace */
.doa-heading { margin-bottom: 15px; }
.doa-project-chip { padding: 6px 10px; color: #2b5d6a; border: 1px solid #c8dcdf; border-radius: 6px; background: #edf7f6; font-size: .7rem; font-weight: 750; white-space: nowrap; }
.doa-readiness-band { display: grid; grid-template-columns: 132px minmax(180px, .8fr) minmax(360px, 1.6fr) auto; gap: 18px; align-items: center; min-height: 92px; margin-bottom: 12px; padding: 13px 18px; color: #d7e8ec; border-radius: 11px; background: linear-gradient(105deg, #102f49, #194d60 66%, #176c69); box-shadow: 0 9px 24px rgba(15,48,72,.13); }
.doa-score { display: flex; align-items: center; gap: 10px; }
.doa-score > span { color: #a6c0cb; font-size: .7rem; }
.doa-score strong { color: #fff; font: 800 1.55rem/1 Bahnschrift, sans-serif; }
.doa-score strong small { margin-left: 1px; color: #80ddd4; font-size: .72rem; }
.doa-score-track { height: 7px; overflow: hidden; border-radius: 8px; background: rgba(255,255,255,.15); }
.doa-score-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #49c7bb, #d6e77d); transition: width .35s ease; }
.doa-readiness-band p { margin: 0; color: #c3d6dc; font-size: .72rem; line-height: 1.55; }
.doa-readiness-band .status-pill { justify-self: end; white-space: nowrap; }
.doa-summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; margin-bottom: 12px; }
.doa-summary-grid article { min-height: 89px; padding: 14px 17px; border: 1px solid var(--line); border-top: 3px solid #287b86; border-radius: 8px; background: #fff; }
.doa-summary-grid span, .doa-summary-grid strong, .doa-summary-grid small { display: block; }
.doa-summary-grid span { color: var(--muted); font-size: .69rem; font-weight: 700; }
.doa-summary-grid strong { margin: 4px 0 1px; font: 800 1.52rem/1.15 Bahnschrift, sans-serif; }
.doa-summary-grid small { color: var(--ink-2); font-size: .66rem; }
.doa-path-panel { overflow: hidden; margin-bottom: 12px; }
.doa-access-state { color: #286675; font-size: .68rem; font-weight: 750; }
.doa-stage-rail { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 0; padding: 18px 18px 20px; }
.doa-stage-rail::before { content: ''; position: absolute; left: 7%; right: 7%; top: 48px; height: 2px; background: #d8e2e6; }
.doa-rail-step { position: relative; z-index: 1; min-width: 0; padding: 0 5px; border: 0; background: transparent; cursor: pointer; text-align: center; }
.doa-rail-step > i { width: 31px; height: 31px; display: inline-grid; place-items: center; color: #617988; border: 3px solid #fff; border-radius: 50%; background: #dbe4e8; box-shadow: 0 0 0 1px #c8d4da; font: 800 .61rem/1 Bahnschrift, sans-serif; }
.doa-rail-step.complete > i { color: #fff; background: #168b7c; box-shadow: 0 0 0 1px #168b7c; }
.doa-rail-step.active > i { color: #fff; background: #c07a1d; box-shadow: 0 0 0 1px #c07a1d, 0 0 0 5px #fff1da; }
.doa-rail-step.is-selected > i { outline: 3px solid rgba(40,119,168,.18); outline-offset: 4px; }
.doa-rail-step b, .doa-rail-step small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doa-rail-step b { margin-top: 8px; color: var(--ink); font-size: .68rem; }
.doa-rail-step small { margin-top: 1px; color: var(--muted); font-size: .59rem; }
.doa-tabs { display: flex; gap: 2px; margin: 16px 0 11px; padding: 4px; border: 1px solid var(--line); border-radius: 9px; background: #e9eef1; }
.doa-tabs button { min-height: 37px; flex: 1; padding: 0 13px; color: #587080; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: .74rem; font-weight: 750; }
.doa-tabs button.is-active { color: #0c5961; background: #fff; box-shadow: 0 2px 7px rgba(21,52,72,.09); }
.doa-tabs button span { min-width: 22px; display: inline-grid; place-items: center; margin-left: 4px; padding: 1px 5px; color: #fff; border-radius: 9px; background: var(--coral); font-size: .58rem; }
.doa-view { display: none; }
.doa-view.is-active { display: block; animation: pageIn .22s ease both; }
.doa-stage-workspace { display: grid; grid-template-columns: minmax(330px, .72fr) minmax(640px, 1.28fr); gap: 12px; align-items: start; }
.doa-stage-list { overflow: hidden; }
.doa-stage-row { width: 100%; display: grid; grid-template-columns: 35px 1fr auto; gap: 10px; align-items: center; min-height: 70px; padding: 9px 13px; border: 0; border-bottom: 1px solid #e2e9ec; background: #fff; cursor: pointer; text-align: left; }
.doa-stage-row:last-child { border-bottom: 0; }
.doa-stage-row:hover, .doa-stage-row.is-selected { background: #f0f8f7; }
.doa-stage-row.is-selected { box-shadow: inset 4px 0 var(--teal); }
.doa-stage-row > i { width: 32px; height: 32px; display: grid; place-items: center; color: #376271; border-radius: 7px; background: #e1ecef; font-size: .62rem; font-style: normal; font-weight: 850; }
.doa-stage-row.complete > i { color: #fff; background: #168b7c; }
.doa-stage-row b, .doa-stage-row small { display: block; }
.doa-stage-row b { font-size: .73rem; }
.doa-stage-row small { margin-top: 3px; color: var(--muted); font-size: .62rem; }
.doa-stage-row > em { color: #316779; font-size: .63rem; font-style: normal; font-weight: 800; }
.doa-stage-detail { position: sticky; top: 83px; min-height: 505px; overflow: hidden; }
.doa-stage-detail-head { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 19px 20px; color: #fff; background: linear-gradient(115deg, #153850, #17666a); }
.doa-stage-detail-head > i { width: 42px; height: 42px; display: grid; place-items: center; color: #073d43; border-radius: 8px; background: #74dcd3; font: 850 .7rem/1 Bahnschrift, sans-serif; font-style: normal; }
.doa-stage-detail-head small, .doa-stage-detail-head h2, .doa-stage-detail-head p { margin: 0; }
.doa-stage-detail-head small { color: #8adbd5; font-size: .62rem; }
.doa-stage-detail-head h2 { margin-top: 3px; color: #fff; font-size: 1.05rem; }
.doa-stage-detail-head p { margin-top: 3px; color: #c3d8df; font-size: .64rem; }
.doa-stage-detail-body { padding: 15px 18px 19px; }
.doa-stage-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 13px; }
.doa-stage-facts div { padding: 8px 9px; border: 1px solid #e0e7ea; border-radius: 6px; background: #f8fafb; }
.doa-stage-facts dt, .doa-stage-facts dd { margin: 0; }
.doa-stage-facts dt { color: var(--muted); font-size: .57rem; }
.doa-stage-facts dd { margin-top: 2px; color: var(--ink); font-size: .66rem; font-weight: 750; }
.doa-gate-banner { display: grid; grid-template-columns: 31px 1fr; gap: 9px; padding: 10px 11px; border-left: 4px solid #168b7c; background: #eaf7f4; }
.doa-gate-banner.blocked { border-left-color: var(--coral); background: #fff0ed; }
.doa-gate-banner > i { width: 27px; height: 27px; display: grid; place-items: center; color: #fff; border-radius: 50%; background: #168b7c; font-size: .66rem; font-style: normal; font-weight: 850; }
.doa-gate-banner.blocked > i { background: var(--coral); }
.doa-gate-banner b { display: block; font-size: .7rem; }
.doa-gate-banner p { margin: 2px 0 0; color: var(--ink-2); font-size: .62rem; }
.doa-evidence-block { margin-top: 14px; }
.doa-evidence-block > header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 7px; }
.doa-evidence-block h3 { margin: 0; font-size: .73rem; }
.doa-evidence-block header span { color: var(--muted); font-size: .59rem; }
.doa-evidence-list { display: grid; gap: 5px; }
.doa-evidence-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 7px 9px; border: 1px solid #dce5e8; border-radius: 6px; }
.doa-evidence-item b { font-size: .64rem; }
.doa-evidence-item small { display: block; margin-top: 2px; color: var(--muted); font-size: .57rem; }
.doa-evidence-item em { color: #146b64; font-size: .58rem; font-style: normal; font-weight: 750; }
.doa-evidence-item.missing em { color: var(--coral); }
.doa-blocker-list { margin: 7px 0 0; padding-left: 18px; color: #7a4137; font-size: .62rem; line-height: 1.55; }
.doa-register { overflow: hidden; }
.doa-table-head, .doa-document-row { display: grid; grid-template-columns: minmax(260px, 1.3fr) minmax(160px, .75fr) minmax(190px, .9fr) minmax(190px, .9fr); gap: 12px; align-items: center; }
.doa-table-head { min-height: 42px; padding: 0 15px; color: var(--muted); border-bottom: 1px solid var(--line); background: #f2f6f7; font-size: .65rem; font-weight: 750; }
.doa-document-row { min-height: 75px; padding: 9px 15px; border-bottom: 1px solid #e3e9ec; background: #fff; }
.doa-document-row:last-child { border-bottom: 0; }
.doa-document-row b, .doa-document-row small { display: block; }
.doa-document-row b { font-size: .7rem; }
.doa-document-row small { margin-top: 3px; color: var(--muted); font-size: .61rem; }
.doa-document-identity strong { color: #175f6a; font: 800 .68rem/1.2 Bahnschrift, sans-serif; }
.doa-document-stages { display: flex; flex-wrap: wrap; gap: 4px; }
.doa-document-stages i { padding: 3px 6px; color: #365c69; border-radius: 4px; background: #e7eef1; font-size: .57rem; font-style: normal; }
.doa-role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.doa-role-card { min-height: 203px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; box-shadow: 0 5px 15px rgba(25,52,70,.045); }
.doa-role-card > header { display: grid; grid-template-columns: 38px 1fr auto; gap: 9px; align-items: center; padding: 13px 13px 11px; color: #fff; background: #173f56; }
.doa-role-card > header i { width: 36px; height: 36px; display: grid; place-items: center; color: #0b4147; border-radius: 7px; background: #75ddd4; font-size: .6rem; font-style: normal; font-weight: 850; }
.doa-role-card > header h3 { margin: 0; color: #fff; font-size: .75rem; }
.doa-role-card > header small { display: block; margin-top: 2px; color: #b6ced7; font-size: .58rem; }
.doa-role-card > header em { color: #8de1d8; font-size: .58rem; font-style: normal; }
.doa-role-card.is-blocked > header { background: #5b4541; }
.doa-role-body { padding: 11px 13px 13px; }
.doa-role-person { display: flex; justify-content: space-between; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid #e3e9ec; }
.doa-role-person b { font-size: .75rem; }
.doa-role-person span { color: var(--muted); font-size: .59rem; }
.doa-role-body p { min-height: 45px; margin: 9px 0; color: var(--ink-2); font-size: .62rem; line-height: 1.5; }
.doa-role-meta { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; }
.doa-role-meta small { color: var(--muted); font-size: .56rem; }
.doa-role-meta b { overflow: hidden; color: #315f6b; font-size: .58rem; text-overflow: ellipsis; white-space: nowrap; }
.doa-role-card footer { display: flex; justify-content: space-between; align-items: center; margin-top: 9px; padding-top: 8px; border-top: 1px solid #e5ebee; }
.doa-role-card footer span { color: #147168; font-size: .59rem; font-weight: 750; }
.doa-role-card footer span.blocked { color: var(--coral); }
.doa-role-card footer button { padding: 0; color: var(--blue); border: 0; background: transparent; cursor: pointer; font-size: .61rem; font-weight: 750; }
.doa-credential-panel { margin-top: 12px; overflow: hidden; }
.doa-credential-panel .panel-head > span { color: var(--muted); font-size: .63rem; }
.doa-credential-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #dce5e8; }
.doa-credential-list article { min-height: 97px; padding: 11px 13px; background: #fff; }
.doa-credential-list header { display: flex; justify-content: space-between; gap: 8px; }
.doa-credential-list b { font-size: .67rem; }
.doa-credential-list em { color: #127167; font-size: .57rem; font-style: normal; font-weight: 750; }
.doa-credential-list p, .doa-credential-list small { display: block; margin: 3px 0 0; color: var(--ink-2); font-size: .58rem; }
.doa-credential-list small { color: var(--muted); }
.doa-finding-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 10px; padding: 10px 13px; border-left: 4px solid var(--amber); background: #fff7e9; }
.doa-finding-toolbar p { max-width: 900px; margin: 0; color: #6a5b43; font-size: .7rem; }
.doa-finding-board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.doa-finding-card { min-height: 247px; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.doa-finding-card > header { display: flex; justify-content: space-between; gap: 9px; padding: 11px 13px; border-bottom: 1px solid #e4eaed; background: #f4f7f8; }
.doa-finding-card > header b { color: #175e69; font: 800 .67rem/1.2 Bahnschrift, sans-serif; }
.doa-finding-card > header span { color: var(--coral); font-size: .61rem; font-weight: 750; }
.doa-finding-card.is-closed > header span { color: #13736a; }
.doa-finding-card-body { padding: 12px 13px; }
.doa-finding-card h3 { margin: 0 0 5px; font-size: .78rem; }
.doa-finding-card p { margin: 0 0 10px; color: var(--ink-2); font-size: .63rem; line-height: 1.5; }
.doa-finding-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 0; }
.doa-finding-card dl div { padding: 6px 7px; background: #f5f8f9; }
.doa-finding-card dt, .doa-finding-card dd { margin: 0; }
.doa-finding-card dt { color: var(--muted); font-size: .54rem; }
.doa-finding-card dd { margin-top: 2px; font-size: .59rem; font-weight: 700; }
.doa-finding-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 9px; border-top: 1px solid #e4eaed; }
.doa-finding-card footer span { color: var(--muted); font-size: .57rem; }
.doa-finding-card footer button { padding: 0; color: var(--blue); border: 0; background: transparent; cursor: pointer; font-size: .62rem; font-weight: 750; }

@media (max-width: 1280px) {
  .content-wrap { padding-left: 24px; padding-right: 24px; }
  .hero-grid { grid-template-columns: 1.35fr .8fr; padding: 32px; }
  .governance-summary { grid-template-columns: repeat(3, 1fr); }
  .summary-guidance { grid-column: span 3; }
  .basis-summary, .document-summary { grid-template-columns: repeat(4, 1fr); }
  .snapshot-summary, .identity-rule { grid-column: span 4; }
  .configuration-summary { grid-template-columns: repeat(3, 1fr); }
  .baseline-grid, .manufacturing-grid { grid-template-columns: repeat(2, 1fr); }
  .trace-summary { grid-template-columns: repeat(3, 1fr); }
  .trace-guidance { grid-template-columns: repeat(2, 1fr); }
  .trace-guidance-title { grid-row: span 2; }
  .gap-board { grid-template-columns: repeat(2, 1fr); }
  .portfolio-summary { grid-template-columns: repeat(3, 1fr); }
  .portfolio-project-grid { grid-template-columns: repeat(2, 1fr); }
  .people-workspace { grid-template-columns: minmax(650px, 1.2fr) minmax(385px, .8fr); }
  .security-boundary-grid { grid-template-columns: repeat(2, 1fr); }
  .doa-role-grid { grid-template-columns: repeat(3, 1fr); }
  .doa-credential-list { grid-template-columns: repeat(3, 1fr); }
  .doa-stage-workspace { grid-template-columns: minmax(305px, .62fr) minmax(590px, 1.38fr); }
  .basis-initialization-band { grid-template-columns: repeat(2, 1fr); }
  .basis-candidate-head, .basis-candidate-row { grid-template-columns: 1.05fr 1.6fr .56fr .45fr; }
}

@media print {
  .sidebar, .topbar, .heading-actions, .committee-toolbar, .term-search-panel, .result-footer { display: none !important; }
  .main-area { grid-column: 1; }
  .app-shell { display: block; }
  .content-wrap { max-width: none; padding: 0; }
  .page { display: none !important; }
  .page.is-active { display: block !important; }
  .panel, .committee-card { break-inside: avoid; box-shadow: none; }
}
/* Sprint 12 · executable TC lifecycle */
.tc-heading h1 { letter-spacing: -.025em; }
.tc-mission-band {
  display: grid;
  grid-template-columns: 132px minmax(340px, 1fr) minmax(220px, 300px);
  align-items: stretch;
  min-height: 132px;
  margin-bottom: 14px;
  overflow: hidden;
  border: 1px solid #234865;
  border-radius: 8px;
  background: #12334e;
  color: #fff;
  box-shadow: 0 10px 28px rgba(15, 46, 70, .12);
}
.tc-readiness-orbit { display: grid; place-content: center; text-align: center; border-right: 1px solid rgba(255,255,255,.16); background: #0b786f; }
.tc-readiness-orbit span, .tc-prerequisite span { font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .13em; opacity: .8; }
.tc-readiness-orbit strong { margin: 4px 0; font-family: "Bahnschrift", "DIN Alternate", sans-serif; font-size: calc(43px * var(--font-scale)); line-height: 1; }
.tc-readiness-orbit small, .tc-prerequisite small { font-size: calc(11px * var(--font-scale)); opacity: .75; }
.tc-mission-copy { align-self: center; padding: 22px 28px; }
.tc-mission-copy > p { margin: 0 0 6px; color: #80d9d0; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .15em; }
.tc-mission-copy h2 { margin: 0 0 7px; font-size: calc(20px * var(--font-scale)); }
.tc-mission-copy > span { color: #bfd0dc; font-size: calc(12px * var(--font-scale)); line-height: 1.55; }
.tc-mission-progress { height: 5px; margin-top: 16px; overflow: hidden; background: rgba(255,255,255,.14); }
.tc-mission-progress i { display: block; width: 0; height: 100%; background: #62d2c8; transition: width .3s ease; }
.tc-prerequisite { display: grid; align-content: center; gap: 7px; padding: 22px; border-left: 1px solid rgba(255,255,255,.16); background: #193d59; }
.tc-prerequisite strong { font-size: calc(16px * var(--font-scale)); line-height: 1.3; }
.tc-prerequisite.is-blocked { background: #643c34; }
.tc-prerequisite.is-ready { background: #1e574e; }

.tc-summary { display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.tc-summary article { min-height: 96px; padding: 15px 17px; border: 1px solid #d4dfe6; border-bottom: 3px solid #5a829c; border-radius: 7px; background: #fff; box-shadow: 0 5px 15px rgba(19, 46, 67, .045); }
.tc-summary span { display: block; color: #637686; font-size: calc(11px * var(--font-scale)); font-weight: 800; }
.tc-summary strong { display: block; margin: 7px 0 4px; color: #153a57; font-family: "Bahnschrift", sans-serif; font-size: calc(27px * var(--font-scale)); line-height: 1; }
.tc-summary small { color: #7b8a96; font-size: calc(10px * var(--font-scale)); }
.tc-summary .tc-attention { border-bottom-color: #c75b47; background: #fffaf8; }
.tc-summary .tc-attention strong { color: #af4537; }

.tc-tabs { display: flex; gap: 4px; margin-bottom: 12px; border-bottom: 1px solid #cfdbe2; }
.tc-tabs button { padding: 11px 18px 10px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: #627586; font: inherit; font-size: calc(12px * var(--font-scale)); font-weight: 800; cursor: pointer; }
.tc-tabs button.is-active { border-bottom-color: #0b8c83; color: #123b58; }
.tc-view { display: none; }
.tc-view.is-active { display: block; }

.tc-stage-rail { display: grid; grid-template-columns: repeat(8, minmax(132px, 1fr)); gap: 7px; margin-bottom: 12px; overflow-x: auto; padding-bottom: 4px; }
.tc-stage-node { position: relative; min-width: 132px; min-height: 112px; padding: 13px 12px; border: 1px solid #d0dbe2; border-top: 4px solid #93a7b5; border-radius: 6px; background: #fff; color: #23394b; text-align: left; cursor: pointer; }
.tc-stage-node::after { position: absolute; top: 43px; right: -9px; z-index: 2; width: 10px; height: 1px; content: ''; background: #9fb1bd; }
.tc-stage-node:last-child::after { display: none; }
.tc-stage-node:hover, .tc-stage-node.is-selected { border-color: #3a8987; box-shadow: 0 7px 19px rgba(26, 71, 94, .1); }
.tc-stage-node.is-selected { outline: 2px solid rgba(24, 145, 137, .17); }
.tc-stage-node.stage-complete { border-top-color: #169289; }
.tc-stage-node.stage-active { border-top-color: #d69227; }
.tc-stage-node.stage-na { border-top-color: #7e8f9c; background: #f5f7f8; }
.tc-stage-node > span { display: flex; justify-content: space-between; color: #6e7f8c; font-size: calc(9px * var(--font-scale)); font-weight: 900; letter-spacing: .05em; }
.tc-stage-node strong { display: block; min-height: 34px; margin: 10px 0 7px; font-size: calc(13px * var(--font-scale)); line-height: 1.28; }
.tc-stage-node small { display: block; color: #738694; font-size: calc(10px * var(--font-scale)); }
.tc-stage-node .tc-mini-progress { height: 3px; margin-top: 11px; background: #e4eaee; }
.tc-stage-node .tc-mini-progress i { display: block; height: 100%; background: #148d85; }

.tc-stage-workspace { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .7fr); gap: 12px; align-items: start; }
.tc-stage-detail { min-height: 470px; overflow: hidden; border-radius: 8px; }
.tc-stage-detail-head { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 18px; padding: 20px 22px; border-bottom: 1px solid #d8e2e8; background: #f5f9fa; }
.tc-stage-sequence { display: grid; width: 58px; height: 58px; place-items: center; background: #153d59; color: #fff; font-family: "Bahnschrift", sans-serif; font-size: calc(22px * var(--font-scale)); }
.tc-stage-detail-head p { margin: 0 0 4px; color: #16877f; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .1em; }
.tc-stage-detail-head h2 { margin: 0; color: #173950; font-size: calc(20px * var(--font-scale)); }
.tc-stage-detail-head small { display: block; margin-top: 5px; color: #6f818e; font-size: calc(11px * var(--font-scale)); }
.tc-stage-detail-body { padding: 20px 22px; }
.tc-objective { margin: 0 0 18px; padding-left: 14px; border-left: 3px solid #179188; color: #455c6c; font-size: calc(13px * var(--font-scale)); line-height: 1.65; }
.tc-stage-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 18px; }
.tc-stage-facts div { padding: 11px 12px; border: 1px solid #dbe3e8; background: #fff; }
.tc-stage-facts span { display: block; color: #778895; font-size: calc(9px * var(--font-scale)); font-weight: 800; }
.tc-stage-facts b { display: block; margin-top: 5px; color: #213d51; font-size: calc(12px * var(--font-scale)); }
.tc-section-title { display: flex; align-items: center; justify-content: space-between; margin: 17px 0 8px; color: #254458; font-size: calc(12px * var(--font-scale)); font-weight: 900; }
.tc-section-title span { color: #7a8b97; font-size: calc(10px * var(--font-scale)); font-weight: 700; }
.tc-linked-list { display: grid; gap: 6px; }
.tc-linked-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; padding: 10px 12px; border: 1px solid #dae3e8; border-left: 3px solid #9cb0bd; background: #fff; }
button.tc-linked-item { width: 100%; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tc-linked-item.is-ready { border-left-color: #178e85; }
.tc-linked-item.is-missing, .tc-linked-item.is-blocked { border-left-color: #c65a48; background: #fff9f7; }
.tc-linked-item strong { display: block; color: #213e53; font-size: calc(12px * var(--font-scale)); }
.tc-linked-item small { display: block; margin-top: 3px; color: #748590; font-size: calc(10px * var(--font-scale)); }
.tc-linked-item > span:last-child { align-self: center; color: #537183; font-size: calc(10px * var(--font-scale)); font-weight: 800; }
.tc-side-stack { display: grid; gap: 12px; }
.tc-gate-card, .tc-guidance-card { border-radius: 8px; }
.tc-gate-head { padding: 17px 18px; border-bottom: 1px solid #d9e2e7; background: #f5f8fa; }
.tc-gate-head span { color: #6f8290; font-size: calc(9px * var(--font-scale)); font-weight: 900; letter-spacing: .1em; }
.tc-gate-head h2 { margin: 5px 0 0; color: #173b55; font-size: calc(17px * var(--font-scale)); }
.tc-gate-head.is-ready { background: #e8f6f3; }
.tc-gate-head.is-blocked { background: #fff1ec; }
.tc-gate-checks { display: grid; gap: 7px; padding: 15px 18px; }
.tc-gate-check { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; color: #4f6574; font-size: calc(11px * var(--font-scale)); line-height: 1.45; }
.tc-gate-check i { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #e3f3f0; color: #087b73; font-style: normal; font-size: 10px; }
.tc-gate-check.blocked i { background: #f9dfd8; color: #ac3f31; }
.tc-gate-action { padding: 0 18px 18px; }
.tc-gate-action .btn { width: 100%; }
.tc-guidance-card { padding: 18px; border-top: 4px solid #d59b35; }
.tc-guidance-card h2 { margin: 5px 0 8px; color: #173b55; font-size: calc(16px * var(--font-scale)); }
.tc-guidance-card > p:not(.eyebrow) { color: #5e7180; font-size: calc(11px * var(--font-scale)); line-height: 1.65; }
.tc-guidance-card > div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid #e0e7eb; color: #6c7d89; font-size: calc(10px * var(--font-scale)); }
.tc-guidance-card > div b { color: #2d4a5e; }

.tc-issue-toolbar { display: grid; grid-template-columns: minmax(320px, 1fr) 190px 160px; gap: 8px; margin-bottom: 10px; }
.tc-issue-toolbar select { min-height: 42px; padding: 0 10px; border: 1px solid #ced9e0; border-radius: 6px; background: #fff; color: #385064; font: inherit; font-size: calc(11px * var(--font-scale)); }
.tc-issue-register { overflow: hidden; border-radius: 8px; }
.tc-issue-head, .tc-issue-row { display: grid; grid-template-columns: 150px minmax(260px, 1.4fr) minmax(210px, 1fr) 160px 100px; gap: 14px; align-items: center; }
.tc-issue-head { padding: 11px 15px; border-bottom: 1px solid #cbd8e0; background: #173c57; color: #dce9f0; font-size: calc(9px * var(--font-scale)); font-weight: 900; letter-spacing: .06em; }
.tc-issue-row { width: 100%; min-height: 76px; padding: 12px 15px; border: 0; border-bottom: 1px solid #e0e7eb; background: #fff; color: #365064; font: inherit; text-align: left; cursor: pointer; }
.tc-issue-row:hover { background: #f5faf9; }
.tc-issue-row.is-overdue { box-shadow: inset 3px 0 #c55644; }
.tc-issue-row strong { display: block; color: #1d3c52; font-size: calc(11px * var(--font-scale)); line-height: 1.35; }
.tc-issue-row small { display: block; margin-top: 4px; color: #71838f; font-size: calc(9px * var(--font-scale)); line-height: 1.35; }
.tc-na-field { transition: opacity .15s ease; }
.tc-na-field.is-muted { opacity: .45; }

@media (max-width: 1180px) {
  .tc-mission-band { grid-template-columns: 110px 1fr 220px; }
  .tc-stage-rail { grid-template-columns: repeat(8, 144px); }
  .tc-issue-head, .tc-issue-row { grid-template-columns: 130px minmax(230px, 1fr) 190px 140px 90px; }
}
@media (max-width: 900px) {
  .tc-mission-band { grid-template-columns: 100px 1fr; }
  .tc-prerequisite { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.16); border-left: 0; }
  .tc-summary { grid-template-columns: 1fr 1fr; }
  .tc-stage-workspace { grid-template-columns: 1fr; }
  .tc-issue-toolbar { grid-template-columns: 1fr 1fr; }
  .tc-issue-toolbar .basis-search { grid-column: 1 / -1; }
  .tc-issue-register { overflow-x: auto; }
  .tc-issue-head, .tc-issue-row { min-width: 900px; }
}

/* Sprint 14 · certificate and continuing airworthiness control */
.post-cert-heading h1 { letter-spacing: -.035em; }
.post-cert-command { display: grid; grid-template-columns: 158px minmax(520px, 1fr) 286px; min-height: 152px; margin: 21px 0 16px; overflow: hidden; color: #eef8f8; border: 1px solid #123e54; border-radius: 8px; background: #123e54; box-shadow: 0 13px 24px rgba(20,50,65,.12); }
.post-cert-score { display: flex; flex-direction: column; justify-content: center; padding: 20px 25px; color: #fff; background: #8a5a12; }
.post-cert-score span, .post-cert-command-copy p, .approved-design-stamp span { margin: 0; color: #f4d59e; font-size: calc(11px * var(--font-scale)); font-weight: 900; letter-spacing: .12em; }
.post-cert-score strong { margin: 8px 0 0; font: 800 calc(50px * var(--font-scale))/1 Georgia, serif; }
.post-cert-score small { margin-top: 3px; color: #fff1d7; font-size: calc(11px * var(--font-scale)); }
.post-cert-command-copy { display: flex; flex-direction: column; justify-content: center; padding: 22px 30px; border-right: 1px solid rgba(255,255,255,.16); }
.post-cert-command-copy p { color: #76d5cf; }
.post-cert-command-copy h2 { margin: 8px 0 5px; color: #fff; font-size: calc(20px * var(--font-scale)); }
.post-cert-command-copy > span { color: #c9dce2; font-size: calc(12px * var(--font-scale)); }
.post-cert-command-copy > div { height: 5px; margin-top: 20px; overflow: hidden; background: #315c6e; }
.post-cert-command-copy i { display: block; width: 0; height: 100%; background: #d5a348; transition: width .45s ease; }
.approved-design-stamp { display: flex; flex-direction: column; justify-content: center; padding: 21px 25px; background: #1b3544; }
.approved-design-stamp span { color: #75d4ce; }
.approved-design-stamp strong { margin: 10px 0 4px; color: #fff; font: 800 calc(19px * var(--font-scale))/1.2 Georgia, serif; }
.approved-design-stamp small { color: #b8ccd4; font-size: calc(12px * var(--font-scale)); }
.post-cert-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 21px; }
.post-cert-summary article { min-height: 112px; padding: 18px 20px; border: 1px solid #d3dee3; border-bottom: 3px solid #8a5a12; border-radius: 7px; background: #fff; box-shadow: 0 7px 17px rgba(36,61,73,.05); }
.post-cert-summary span, .post-cert-summary small { display: block; color: #6d7f89; font-size: calc(11px * var(--font-scale)); }
.post-cert-summary strong { display: block; margin: 14px 0 7px; color: #15394d; font: 800 calc(24px * var(--font-scale))/1 Georgia, serif; }
.post-cert-tabs { display: flex; gap: 4px; min-height: 51px; border-bottom: 1px solid #cad7dd; }
.post-cert-tabs button { padding: 0 18px; color: #617784; border: 0; border-bottom: 3px solid transparent; background: transparent; font-size: calc(13px * var(--font-scale)); font-weight: 800; cursor: pointer; }
.post-cert-tabs button:hover, .post-cert-tabs button.is-active { color: #15394d; border-bottom-color: #8a5a12; }
.post-cert-view { display: none; padding-top: 14px; }
.post-cert-view.is-active { display: block; }
.certificate-workspace { display: grid; grid-template-columns: 310px minmax(560px, 1fr) 330px; gap: 13px; align-items: stretch; }
.certificate-register, .certificate-detail, .certificate-gate, .type-change-list-panel, .type-change-detail, .type-change-gate { min-height: 590px; overflow: hidden; }
.post-cert-panel-head, .post-cert-view-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 21px; border-left: 5px solid #8a5a12; background: #fff; }
.post-cert-panel-head .btn { white-space: nowrap; }
.post-cert-view-toolbar > select { width: 230px; flex: 0 0 230px; }
.post-cert-panel-head h2, .post-cert-view-toolbar h2 { margin: 3px 0 0; color: #183b4e; font-size: calc(16px * var(--font-scale)); }
.post-cert-view-toolbar { margin-bottom: 13px; border: 1px solid #ccd9df; border-left: 5px solid #8a5a12; }
.post-cert-view-toolbar p:not(.eyebrow) { margin: 6px 0 0; color: #657a86; font-size: calc(12px * var(--font-scale)); }
.certificate-list-row { width: 100%; display: grid; grid-template-columns: 48px 1fr auto; gap: 11px; align-items: center; padding: 16px 17px; color: inherit; text-align: left; border: 0; border-top: 1px solid #dce5e9; background: #fff; cursor: pointer; }
.certificate-list-row:hover { background: #f7f9f9; }
.certificate-list-row.is-selected { background: #f8f2e7; box-shadow: inset 5px 0 #8a5a12; }
.certificate-list-row > i { display: grid; width: 44px; height: 44px; place-items: center; color: #fff; background: #173e52; font-style: normal; font-weight: 900; }
.certificate-list-row strong, .certificate-list-row small { display: block; }
.certificate-list-row strong { color: #183c50; font-size: calc(12px * var(--font-scale)); }
.certificate-list-row small { margin-top: 4px; color: #6d7e88; font-size: calc(11px * var(--font-scale)); }
.certificate-list-row em { color: #8a5a12; font-size: calc(11px * var(--font-scale)); font-style: normal; font-weight: 900; }
.certificate-detail-head { display: flex; align-items: center; justify-content: space-between; padding: 21px 23px; color: #fff; background: #173e52; }
.certificate-detail-head p, .certificate-detail-head h2, .certificate-detail-head small { margin: 0; color: inherit; }
.certificate-detail-head p { color: #77d4ce; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .06em; }
.certificate-detail-head h2 { margin: 7px 0 5px; font: 800 calc(23px * var(--font-scale))/1 Georgia, serif; }
.certificate-detail-head small { color: #c8dbe2; font-size: calc(11px * var(--font-scale)); }
.certificate-detail-body { padding: 20px; }
.certificate-identity { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid #ccdade; }
.certificate-identity div { min-height: 78px; padding: 14px; border-right: 1px solid #ccdade; }
.certificate-identity div:last-child { border-right: 0; }
.certificate-identity span, .certificate-identity small, .type-change-facts span { display: block; color: #72848d; font-size: calc(10px * var(--font-scale)); }
.certificate-identity b { display: block; margin: 8px 0 3px; color: #15394d; font-size: calc(13px * var(--font-scale)); overflow-wrap: anywhere; }
.approved-type-design { margin-top: 16px; padding: 17px 18px; border-left: 4px solid #0c938b; background: #f0f7f6; }
.approved-type-design span { color: #0b746f; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .08em; }
.approved-type-design h3 { margin: 7px 0 5px; color: #153b4f; font-size: calc(16px * var(--font-scale)); }
.approved-type-design p { margin: 0; color: #627784; font-size: calc(12px * var(--font-scale)); line-height: 1.6; }
.certificate-limitations { margin-top: 15px; padding: 15px 17px; border: 1px solid #e2d4bb; background: #fffbf3; color: #665842; font-size: calc(12px * var(--font-scale)); line-height: 1.6; }
.certificate-gate-head, .type-change-gate-head { padding: 19px 20px; color: #fff; background: #a74939; }
.certificate-gate-head.is-ready, .type-change-gate-head.is-ready { background: #0b8e84; }
.certificate-gate-head span, .type-change-gate-head span { font-size: calc(9px * var(--font-scale)); font-weight: 900; letter-spacing: .08em; }
.certificate-gate-head h2, .type-change-gate-head h2 { margin: 8px 0 0; color: #fff; font-size: calc(17px * var(--font-scale)); }
.certificate-gate-list, .type-change-gate-list { padding: 12px 14px; }
.post-gate-item { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e2e9ec; color: #4d626e; font-size: calc(11px * var(--font-scale)); line-height: 1.45; }
.post-gate-item i { display: grid; width: 18px; height: 18px; place-items: center; color: #fff; border-radius: 50%; background: #bd503e; font-style: normal; font-weight: 900; }
.post-gate-item.ok i { background: #0c978d; }
.certificate-gate-action, .type-change-gate-action { padding: 0 14px 16px; }
.certificate-gate-action .btn, .type-change-gate-action .btn { width: 100%; }
.post-cert-register { overflow: hidden; }
.post-cert-register-head, .post-cert-register-row { display: grid; align-items: center; }
.post-cert-register-head { min-height: 44px; padding: 0 18px; color: #637681; background: #eaf0f2; font-size: calc(11px * var(--font-scale)); font-weight: 900; }
.post-cert-register-head.obligations, .post-cert-register-row.obligations { grid-template-columns: 1.05fr 1fr 1.35fr 150px; }
.post-cert-register-head.events, .post-cert-register-row.events { grid-template-columns: .95fr 1.25fr 1.35fr 160px; }
.post-cert-register-row { width: 100%; min-height: 78px; padding: 12px 18px; color: inherit; border: 0; border-top: 1px solid #e0e8eb; background: #fff; text-align: left; cursor: pointer; }
.post-cert-register-row:hover { background: #f7f9f9; }
.post-cert-register-row > span { padding-right: 13px; }
.post-cert-register-row strong, .post-cert-register-row small { display: block; }
.post-cert-register-row strong { color: #183b4e; font-size: calc(11px * var(--font-scale)); }
.post-cert-register-row small { margin-top: 5px; color: #71838d; font-size: calc(11px * var(--font-scale)); line-height: 1.35; }
.post-cert-register-row em { justify-self: end; padding: 6px 9px; color: #a84a39; background: #fff0ec; font-size: calc(11px * var(--font-scale)); font-style: normal; font-weight: 900; }
.post-cert-register-row em.is-ready { color: #087c75; background: #eaf8f5; }
.change-control-workspace { display: grid; grid-template-columns: 315px minmax(570px, 1fr) 330px; gap: 13px; }
.type-change-row { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 15px 17px; color: inherit; text-align: left; border: 0; border-top: 1px solid #dde6e9; background: #fff; cursor: pointer; }
.type-change-row:hover { background: #f7f9f9; }
.type-change-row.is-selected { background: #f8f2e7; box-shadow: inset 5px 0 #8a5a12; }
.type-change-row strong, .type-change-row small { display: block; }
.type-change-row strong { color: #173b4e; font-size: calc(12px * var(--font-scale)); }
.type-change-row small { margin-top: 5px; color: #70828c; font-size: calc(10px * var(--font-scale)); }
.type-change-row em { color: #8a5a12; font-size: calc(10px * var(--font-scale)); font-style: normal; font-weight: 900; }
.type-change-detail-head { display: flex; align-items: start; justify-content: space-between; gap: 13px; padding: 20px 22px; color: #fff; background: #173e52; }
.type-change-detail-head span { color: #78d6cf; font-size: calc(10px * var(--font-scale)); font-weight: 900; }
.type-change-detail-head h2 { margin: 7px 0 4px; color: #fff; font-size: calc(19px * var(--font-scale)); }
.type-change-detail-head p { margin: 0; color: #c3d8df; font-size: calc(11px * var(--font-scale)); }
.type-change-detail-body { padding: 18px 20px; }
.type-change-basis { padding: 14px 16px; border-left: 4px solid #8a5a12; background: #fbf6ec; color: #5d625f; font-size: calc(11px * var(--font-scale)); line-height: 1.55; }
.type-change-facts { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border: 1px solid #d2dde2; }
.type-change-facts div { min-height: 76px; padding: 13px; border-right: 1px solid #d2dde2; }
.type-change-facts div:last-child { border-right: 0; }
.type-change-facts b { display: block; margin-top: 8px; color: #183b4e; font-size: calc(11px * var(--font-scale)); overflow-wrap: anywhere; }
.type-change-section { margin-top: 16px; }
.type-change-section > header { display: flex; justify-content: space-between; margin-bottom: 8px; color: #213f50; font-size: calc(10px * var(--font-scale)); font-weight: 900; }
.type-change-section > header span { color: #768690; font-weight: 500; }
.type-change-refs { display: flex; flex-wrap: wrap; gap: 6px; }
.type-change-refs i { padding: 6px 8px; color: #315c6c; background: #edf3f4; font-size: calc(9px * var(--font-scale)); font-style: normal; }
@media (max-width: 1400px) {
  .certificate-workspace, .change-control-workspace { grid-template-columns: 285px minmax(500px, 1fr); }
  .certificate-gate, .type-change-gate { grid-column: 1 / -1; min-height: auto; }
}
@media (max-width: 1120px) {
  .post-cert-command { grid-template-columns: 140px 1fr; }
  .approved-design-stamp { grid-column: 1 / -1; }
  .post-cert-summary { grid-template-columns: repeat(2, 1fr); }
  .certificate-workspace, .change-control-workspace { grid-template-columns: 1fr; }
  .post-cert-register { overflow-x: auto; }
  .post-cert-register-head, .post-cert-register-row { min-width: 960px; }
}

/* Sprint 15 · submittal and authority review control */
.submission-heading h1 { letter-spacing: -.035em; }
.submission-command { display: grid; grid-template-columns: 168px minmax(520px, 1fr) 330px; min-height: 154px; margin: 21px 0 16px; overflow: hidden; color: #f3f7f8; border: 1px solid #15384c; border-radius: 8px; background: #15384c; box-shadow: 0 13px 24px rgba(20,50,65,.12); }
.submission-score { display: flex; flex-direction: column; justify-content: center; padding: 21px 25px; color: #fff; background: #9a472f; }
.submission-score span, .submission-command-copy p { margin: 0; color: #ffd6c7; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .13em; }
.submission-score strong { margin: 8px 0 0; font: 800 calc(50px * var(--font-scale))/1 Georgia, serif; }
.submission-score small { margin-top: 4px; color: #ffe9e1; font-size: calc(11px * var(--font-scale)); }
.submission-command-copy { display: flex; flex-direction: column; justify-content: center; padding: 22px 30px; border-right: 1px solid rgba(255,255,255,.16); }
.submission-command-copy p { color: #70d5ce; }
.submission-command-copy h2 { margin: 8px 0 5px; color: #fff; font-size: calc(20px * var(--font-scale)); }
.submission-command-copy > span { color: #c9d9df; font-size: calc(12px * var(--font-scale)); }
.submission-command-copy > div { height: 5px; margin-top: 20px; overflow: hidden; background: #35586a; }
.submission-command-copy i { display: block; width: 0; height: 100%; background: #d88965; transition: width .45s ease; }
.submission-role-split { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 24px; background: #102f40; }
.submission-role-split span { min-height: 72px; padding: 14px 13px; border: 1px solid rgba(255,255,255,.17); }
.submission-role-split b, .submission-role-split small { display: block; }
.submission-role-split b { color: #fff; font-size: calc(12px * var(--font-scale)); }
.submission-role-split small { margin-top: 7px; color: #b9cdd5; font-size: calc(10px * var(--font-scale)); }
.submission-role-split i { color: #70d5ce; font: 800 calc(22px * var(--font-scale))/1 Georgia, serif; }
.submission-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 21px; }
.submission-summary article { min-height: 110px; padding: 18px 20px; border: 1px solid #d3dee3; border-bottom: 3px solid #244f64; border-radius: 7px; background: #fff; box-shadow: 0 7px 17px rgba(36,61,73,.05); }
.submission-summary article.submission-alert { border-bottom-color: #a64b35; background: #fffaf8; }
.submission-summary span, .submission-summary small { display: block; color: #6d7f89; font-size: calc(11px * var(--font-scale)); }
.submission-summary strong { display: block; margin: 14px 0 7px; color: #15394d; font: 800 calc(24px * var(--font-scale))/1 Georgia, serif; }
.submission-tabs { display: flex; gap: 4px; min-height: 51px; border-bottom: 1px solid #cad7dd; }
.submission-tabs button { padding: 0 20px; color: #617784; border: 0; border-bottom: 3px solid transparent; background: transparent; font-size: calc(13px * var(--font-scale)); font-weight: 800; cursor: pointer; }
.submission-tabs button span { display: inline-grid; min-width: 21px; height: 21px; margin-left: 6px; place-items: center; color: #fff; border-radius: 10px; background: #a24b35; font-size: calc(10px * var(--font-scale)); }
.submission-tabs button:hover, .submission-tabs button.is-active { color: #15394d; border-bottom-color: #a24b35; }
.submission-view { display: none; padding-top: 14px; }
.submission-view.is-active { display: block; }
.submission-workspace { display: grid; grid-template-columns: 318px minmax(570px, 1fr) 330px; gap: 13px; align-items: stretch; }
.submission-package-list-panel, .submission-package-detail, .submission-gate { min-height: 600px; overflow: hidden; }
.submission-panel-head, .submission-review-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 21px; border-left: 5px solid #a24b35; background: #fff; }
.submission-panel-head h2, .submission-review-toolbar h2 { margin: 3px 0 0; color: #183b4e; font-size: calc(16px * var(--font-scale)); }
.submission-panel-head select { max-width: 130px; }
.submission-package-row { width: 100%; display: grid; grid-template-columns: 50px 1fr auto; gap: 11px; align-items: center; padding: 16px 17px; color: inherit; text-align: left; border: 0; border-top: 1px solid #dce5e9; background: #fff; cursor: pointer; }
.submission-package-row:hover { background: #f7f9f9; }
.submission-package-row.is-selected { background: #fff4ef; box-shadow: inset 5px 0 #a24b35; }
.submission-package-row > i { display: grid; width: 46px; height: 46px; place-items: center; color: #fff; background: #173e52; font-style: normal; font-weight: 900; }
.submission-package-row strong, .submission-package-row small { display: block; }
.submission-package-row strong { color: #183c50; font-size: calc(12px * var(--font-scale)); }
.submission-package-row small { margin-top: 4px; color: #6d7e88; font-size: calc(10px * var(--font-scale)); }
.submission-package-row em { color: #a24b35; font-size: calc(10px * var(--font-scale)); font-style: normal; font-weight: 900; }
.submission-detail-head { display: flex; align-items: start; justify-content: space-between; gap: 14px; padding: 21px 23px; color: #fff; background: #173e52; }
.submission-detail-head p, .submission-detail-head h2, .submission-detail-head small { margin: 0; color: inherit; }
.submission-detail-head p { color: #74d5cf; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .06em; }
.submission-detail-head h2 { margin: 7px 0 5px; font-size: calc(20px * var(--font-scale)); }
.submission-detail-head small { color: #c5dae1; font-size: calc(11px * var(--font-scale)); }
.submission-detail-body { padding: 19px 21px; }
.submission-identity { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #cfdbdf; }
.submission-identity div { min-height: 75px; padding: 13px; border-right: 1px solid #cfdbdf; }
.submission-identity div:last-child { border-right: 0; }
.submission-identity span, .submission-link-section header span { display: block; color: #71838d; font-size: calc(10px * var(--font-scale)); }
.submission-identity b { display: block; margin-top: 8px; color: #173b4e; font-size: calc(11px * var(--font-scale)); overflow-wrap: anywhere; }
.submission-link-section { margin-top: 16px; }
.submission-link-section header { display: flex; justify-content: space-between; margin-bottom: 8px; color: #1b4052; font-size: calc(11px * var(--font-scale)); font-weight: 900; }
.submission-ref-list { display: flex; flex-wrap: wrap; gap: 6px; }
.submission-ref-list i { padding: 6px 8px; color: #315c6c; background: #edf3f4; font-size: calc(9px * var(--font-scale)); font-style: normal; overflow-wrap: anywhere; }
.submission-gate-head { padding: 19px 20px; color: #fff; background: #a74939; }
.submission-gate-head.is-ready { background: #0b8e84; }
.submission-gate-head span { font-size: calc(9px * var(--font-scale)); font-weight: 900; letter-spacing: .08em; }
.submission-gate-head h2 { margin: 8px 0 0; color: #fff; font-size: calc(17px * var(--font-scale)); }
.submission-gate-body { padding: 13px 15px; }
.submission-gate-item { display: grid; grid-template-columns: 20px 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid #e2e9ec; color: #4d626e; font-size: calc(11px * var(--font-scale)); line-height: 1.45; }
.submission-gate-item i { display: grid; width: 18px; height: 18px; place-items: center; color: #fff; border-radius: 50%; background: #bd503e; font-style: normal; font-weight: 900; }
.submission-gate-item.ok i { background: #0c978d; }
.submission-gate-action { padding: 0 15px 16px; }
.submission-gate-action .btn { width: 100%; }
.submission-review-toolbar { margin-bottom: 13px; border: 1px solid #ccd9df; border-left: 5px solid #a24b35; }
.submission-review-toolbar p:not(.eyebrow) { margin: 6px 0 0; color: #657a86; font-size: calc(12px * var(--font-scale)); }
.submission-review-toolbar > select { width: 230px; flex: 0 0 230px; }
.authority-review-register { overflow: hidden; }
.authority-review-head, .authority-review-row { display: grid; grid-template-columns: 1.05fr 1.45fr 1.25fr 1.05fr; align-items: center; }
.authority-review-head { min-height: 46px; padding: 0 18px; color: #617681; background: #eaf0f2; font-size: calc(11px * var(--font-scale)); font-weight: 900; }
.authority-review-row { width: 100%; min-height: 110px; padding: 13px 18px; color: inherit; text-align: left; border: 0; border-top: 1px solid #dde6e9; background: #fff; }
.authority-review-row:hover { background: #faf7f5; }
.authority-review-row > span { padding-right: 16px; }
.authority-review-row strong, .authority-review-row small { display: block; }
.authority-review-row strong { color: #183b4e; font-size: calc(11px * var(--font-scale)); line-height: 1.4; }
.authority-review-row small { margin-top: 5px; color: #71838d; font-size: calc(10px * var(--font-scale)); line-height: 1.45; }
.authority-review-row .review-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.authority-review-row .review-actions button { padding: 5px 8px; color: #214d60; border: 1px solid #beced5; background: #fff; font-size: calc(9px * var(--font-scale)); font-weight: 800; cursor: pointer; }
.authority-review-row .review-actions button.primary { color: #fff; border-color: #a24b35; background: #a24b35; }
.authority-review-row em { display: inline-block; padding: 5px 8px; color: #a54a36; background: #fff0ec; font-size: calc(10px * var(--font-scale)); font-style: normal; font-weight: 900; }
.authority-review-row em.closed { color: #087c75; background: #eaf8f5; }
.authority-record-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; }
.authority-record-card { min-height: 250px; padding: 19px; border: 1px solid #cedadf; border-top: 5px solid #244f64; background: #fff; box-shadow: 0 7px 16px rgba(30,57,69,.05); }
.authority-record-card.is-final { border-top-color: #0b9087; }
.authority-record-card header { display: flex; justify-content: space-between; gap: 12px; }
.authority-record-card header span { color: #a24b35; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .06em; }
.authority-record-card header i { color: #0b8179; font-size: calc(10px * var(--font-scale)); font-style: normal; font-weight: 900; }
.authority-record-card h3 { margin: 13px 0 7px; color: #183b4e; font-size: calc(15px * var(--font-scale)); }
.authority-record-card p { min-height: 48px; margin: 0; color: #657984; font-size: calc(11px * var(--font-scale)); line-height: 1.55; }
.authority-record-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 15px 0; }
.authority-record-card dt { color: #7a8a92; font-size: calc(9px * var(--font-scale)); }
.authority-record-card dd { margin: 4px 0 0; color: #264b5c; font-size: calc(10px * var(--font-scale)); font-weight: 800; overflow-wrap: anywhere; }
.authority-record-card footer { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; border-top: 1px solid #e0e7ea; }
.authority-record-card footer small { color: #788a93; font-size: calc(9px * var(--font-scale)); }
.authority-record-card footer button { color: #a24b35; border: 0; background: none; font-size: calc(10px * var(--font-scale)); font-weight: 900; cursor: pointer; }
.identity-banner.authority { background: #fff1eb; border-left-color: #a24b35; }
.response-question { margin: 0 0 18px; padding: 16px 18px; border-left: 4px solid #a24b35; background: #fff5f1; color: #4d626e; font-size: calc(12px * var(--font-scale)); line-height: 1.6; }
.response-question b { display: block; margin-bottom: 5px; color: #173b4e; }
@media (max-width: 1450px) {
  .submission-workspace { grid-template-columns: 290px minmax(510px, 1fr); }
  .submission-gate { grid-column: 1 / -1; min-height: auto; }
  .authority-record-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1120px) {
  .submission-command { grid-template-columns: 150px 1fr; }
  .submission-role-split { grid-column: 1 / -1; }
  .submission-summary { grid-template-columns: repeat(2, 1fr); }
  .submission-workspace { grid-template-columns: 1fr; }
  .authority-review-register { overflow-x: auto; }
  .authority-review-head, .authority-review-row { min-width: 1050px; }
  .authority-record-grid { grid-template-columns: 1fr; }
}
/* Sprint 16 · 型号合格审定申请与受理工作台 */
.application-heading { align-items: flex-end; }
.application-heading h1 { color: #102c46; letter-spacing: -.025em; }
.application-heading > div:first-child { max-width: 900px; }

.application-intake-band {
  display: grid;
  grid-template-columns: 176px minmax(320px, 1fr) minmax(420px, 1.08fr);
  min-height: 174px;
  margin: 20px 0 16px;
  overflow: hidden;
  border: 1px solid #173b5c;
  border-radius: 18px;
  background: #102c46;
  box-shadow: 0 14px 34px rgba(16, 44, 70, .14);
}
.application-intake-score {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
  border-right: 1px solid rgba(255,255,255,.17);
  color: #fff;
}
.application-intake-score span { color: #8fd2ce; font-size: calc(11px * var(--font-scale)); font-weight: 900; letter-spacing: .14em; }
.application-intake-score strong { margin: 5px 0 1px; font: 800 calc(46px * var(--font-scale))/1 system-ui, sans-serif; letter-spacing: -.055em; }
.application-intake-score small { color: #c9d9e6; font-size: calc(12px * var(--font-scale)); line-height: 1.5; }
.application-intake-copy { align-self: stretch; padding: 25px 28px 20px; color: #fff; }
.application-intake-copy > p { margin: 0 0 7px; color: #78c7c3; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .13em; }
.application-intake-copy h2 { margin: 0 0 8px; font-size: calc(22px * var(--font-scale)); line-height: 1.3; }
.application-intake-copy > span { display: block; min-height: 39px; color: #cbd8e2; font-size: calc(12px * var(--font-scale)); line-height: 1.6; }
.application-intake-copy > div { height: 6px; margin-top: 17px; overflow: hidden; border-radius: 20px; background: rgba(255,255,255,.14); }
.application-intake-copy i { display: block; width: 0; height: 100%; background: #46b7ae; transition: width .3s ease; }
.application-stage-strip { display: grid; grid-template-columns: repeat(4, 1fr); align-self: stretch; background: #f8fbfc; }
.application-stage-strip > span { position: relative; display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 23px 14px; border-left: 1px solid #dce5eb; }
.application-stage-strip > span::after { content: ''; position: absolute; right: 12px; bottom: 17px; left: 12px; height: 3px; background: #d7e0e7; }
.application-stage-strip i { display: grid; width: 31px; height: 31px; place-items: center; margin-bottom: 12px; border: 1px solid #9aacba; border-radius: 50%; color: #53697b; font-size: calc(10px * var(--font-scale)); font-style: normal; font-weight: 900; }
.application-stage-strip b { color: #1a344d; font-size: calc(13px * var(--font-scale)); }
.application-stage-strip small { margin-top: 4px; color: #718293; font-size: calc(10px * var(--font-scale)); line-height: 1.4; }
.application-stage-strip > span.is-complete { background: #edf8f6; }
.application-stage-strip > span.is-complete i { border-color: #008b84; background: #008b84; color: #fff; }
.application-stage-strip > span.is-complete::after { background: #36aaa3; }
.application-stage-strip > span.has-blocker { background: #fff8ed; }
.application-stage-strip > span.has-blocker i { border-color: #bb7314; color: #9b5d0d; }

.application-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.application-summary article { min-height: 104px; padding: 17px 19px; border: 1px solid #d5e0e7; border-top: 3px solid #3e819f; border-radius: 12px; background: #fff; box-shadow: 0 5px 15px rgba(22, 55, 80, .05); }
.application-summary article > span { display: block; color: #657789; font-size: calc(11px * var(--font-scale)); font-weight: 800; }
.application-summary article > strong { display: block; margin: 5px 0 3px; color: #153650; font-size: calc(21px * var(--font-scale)); line-height: 1.25; }
.application-summary article > small { color: #83909c; font-size: calc(10px * var(--font-scale)); line-height: 1.4; }
.application-summary article.application-attention { border-top-color: #bb7314; }

.application-intake-grid { display: grid; grid-template-columns: minmax(540px, 1.35fr) minmax(330px, .88fr) minmax(275px, .68fr); gap: 14px; align-items: start; }
.application-dossier-panel, .application-identity-panel, .application-gate-panel { min-height: 420px; overflow: hidden; }
.application-dossier-panel > header, .application-event-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 19px 20px 15px; border-bottom: 1px solid #dce5eb; }
.application-dossier-panel header h2, .application-event-panel header h2 { margin: 2px 0 4px; color: #153650; font-size: calc(18px * var(--font-scale)); }
.application-dossier-panel header small, .application-event-panel header p { margin: 0; color: #6a7b8c; font-size: calc(11px * var(--font-scale)); line-height: 1.55; }
.application-dossier-panel header button { flex: none; padding: 7px 0; border: 0; background: transparent; color: #167c78; font-size: calc(11px * var(--font-scale)); font-weight: 800; cursor: pointer; }
.application-dossier-head { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(180px, .85fr) 84px; gap: 12px; padding: 9px 18px; border-bottom: 1px solid #e3eaef; background: #f5f8fa; color: #71808f; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .03em; }
.application-dossier-row { display: grid; grid-template-columns: minmax(230px, 1fr) minmax(180px, .85fr) 84px; gap: 12px; width: 100%; padding: 14px 18px; border: 0; border-bottom: 1px solid #e6ecef; background: #fff; color: inherit; text-align: left; cursor: pointer; }
.application-dossier-row:hover { background: #f4faf9; }
.application-dossier-row:last-child { border-bottom: 0; }
.application-dossier-row > div { min-width: 0; }
.application-dossier-row b { display: block; overflow: hidden; color: #19364f; font-size: calc(12px * var(--font-scale)); line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.application-dossier-row small { display: block; margin-top: 4px; color: #738393; font-size: calc(10px * var(--font-scale)); line-height: 1.45; }
.application-dossier-row .dossier-level { color: #557085; font-size: calc(10px * var(--font-scale)); font-weight: 800; }
.application-dossier-row .dossier-level i { display: inline-block; margin-right: 5px; padding: 2px 6px; border: 1px solid #b9c9d4; border-radius: 3px; color: #1e5c78; font-style: normal; }
.application-dossier-row .dossier-file-ref { overflow-wrap: anywhere; }
.application-dossier-row .dossier-file-ref em { display: block; color: #17817b; font-size: calc(10px * var(--font-scale)); font-style: normal; font-weight: 800; line-height: 1.45; }
.application-dossier-row .dossier-status { align-self: center; justify-self: end; padding: 4px 8px; border-radius: 20px; background: #f2f4f6; color: #657585; font-size: calc(10px * var(--font-scale)); font-weight: 900; white-space: nowrap; }
.application-dossier-row .dossier-status.is-ready { background: #dff4f1; color: #05746e; }
.application-dossier-row .dossier-status.is-blocked { background: #fff0d6; color: #985c10; }

.application-record-head { padding: 21px 20px 17px; border-bottom: 1px solid #dde6eb; background: #f7fafb; }
.application-record-head > span { color: #167c78; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .09em; }
.application-record-head h2 { margin: 5px 0 2px; color: #112f49; font-size: calc(20px * var(--font-scale)); }
.application-record-head p { margin: 0; color: #697b8b; font-size: calc(11px * var(--font-scale)); }
.application-record-status { display: inline-flex; margin-top: 12px; padding: 5px 9px; border: 1px solid #70b9b5; border-radius: 4px; background: #eaf7f5; color: #06746e; font-size: calc(10px * var(--font-scale)); font-weight: 900; }
.application-record-status.is-pending { border-color: #d6ad6f; background: #fff8e9; color: #965c0e; }
.application-record-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.application-record-body > div { min-width: 0; padding: 13px 17px; border-right: 1px solid #e2e9ed; border-bottom: 1px solid #e2e9ed; }
.application-record-body > div:nth-child(even) { border-right: 0; }
.application-record-body > div.span-2 { grid-column: 1 / -1; border-right: 0; }
.application-record-body small { display: block; color: #768696; font-size: calc(9px * var(--font-scale)); font-weight: 800; }
.application-record-body b { display: block; margin-top: 5px; color: #203d55; font-size: calc(11px * var(--font-scale)); line-height: 1.5; overflow-wrap: anywhere; }
.application-record-foot { padding: 15px 18px; }
.application-record-foot button { width: 100%; }

.application-gate-panel { padding: 0; border-top: 4px solid #173b5c; }
.application-gate-title { padding: 17px 18px 12px; }
.application-gate-title span { color: #668093; font-size: calc(9px * var(--font-scale)); font-weight: 900; letter-spacing: .1em; }
.application-gate-title h2 { margin: 4px 0 0; color: #153650; font-size: calc(17px * var(--font-scale)); }
.application-gate-section { padding: 14px 17px; border-top: 1px solid #e1e8ed; }
.application-gate-section > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.application-gate-section b { color: #263f53; font-size: calc(11px * var(--font-scale)); }
.application-gate-section i { flex: none; padding: 3px 7px; border-radius: 3px; background: #fff0d6; color: #92590e; font-size: calc(9px * var(--font-scale)); font-style: normal; font-weight: 900; }
.application-gate-section.is-ready i { background: #dff4f1; color: #08746e; }
.application-gate-section p { margin: 8px 0 0; color: #768492; font-size: calc(10px * var(--font-scale)); line-height: 1.55; }
.application-gate-section ul { margin: 8px 0 0; padding-left: 16px; color: #7d5b2f; font-size: calc(10px * var(--font-scale)); line-height: 1.55; }
.application-gate-rule { margin: 13px 17px 17px; padding: 12px; border-left: 3px solid #328e89; background: #edf7f5; color: #4c6a70; font-size: calc(10px * var(--font-scale)); line-height: 1.55; }

.application-event-panel { margin-top: 16px; overflow: hidden; }
.application-event-panel > header select { min-width: 160px; }
.application-event-line { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(245px, 1fr)); gap: 12px; padding: 18px 20px 21px; background: #f8fafb; }
.application-event-card { position: relative; min-height: 178px; padding: 16px; border: 1px solid #d5e0e7; border-top: 3px solid #54778e; border-radius: 8px; background: #fff; color: inherit; text-align: left; cursor: pointer; }
.application-event-card:hover { border-color: #65a7a3; box-shadow: 0 8px 18px rgba(21, 63, 83, .08); }
.application-event-card.is-authority { border-top-color: #bb7314; }
.application-event-card.is-final { border-top-color: #008b84; }
.application-event-card > header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.application-event-card header span { color: #3a647c; font-size: calc(9px * var(--font-scale)); font-weight: 900; letter-spacing: .05em; }
.application-event-card header i { padding: 3px 7px; border-radius: 20px; background: #edf1f4; color: #607283; font-size: calc(9px * var(--font-scale)); font-style: normal; font-weight: 900; }
.application-event-card.is-final header i { background: #dff4f1; color: #06736d; }
.application-event-card h3 { margin: 12px 0 6px; color: #16364e; font-size: calc(14px * var(--font-scale)); line-height: 1.4; }
.application-event-card p { display: -webkit-box; min-height: 43px; margin: 0 0 12px; overflow: hidden; color: #6c7b89; font-size: calc(10px * var(--font-scale)); line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.application-event-card footer { display: flex; flex-wrap: wrap; gap: 6px; }
.application-event-card footer em { padding: 3px 6px; border: 1px solid #d7e1e7; border-radius: 3px; color: #5b7080; font-size: calc(9px * var(--font-scale)); font-style: normal; }
.application-event-card footer em.is-overdue { border-color: #e0a99e; background: #fbe8e4; color: #9d3e31; }
.identity-banner.application { border-left-color: #008b84; background: #eef8f6; }
.identity-banner.application b { color: #08766f; }
.drawer-actions .btn[hidden] { display: none !important; }

@media (max-width: 1320px) {
  .application-intake-band { grid-template-columns: 155px minmax(285px, .8fr) minmax(380px, 1fr); }
  .application-intake-grid { grid-template-columns: minmax(500px, 1.2fr) minmax(310px, .8fr); }
  .application-gate-panel { grid-column: 1 / -1; min-height: auto; display: grid; grid-template-columns: repeat(4, 1fr); }
  .application-gate-title, .application-gate-rule { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .application-intake-band { grid-template-columns: 145px 1fr; }
  .application-stage-strip { grid-column: 1 / -1; min-height: 122px; }
  .application-summary { grid-template-columns: 1fr 1fr; }
  .application-intake-grid { grid-template-columns: 1fr; }
  .application-dossier-panel, .application-identity-panel, .application-gate-panel { min-height: auto; }
  .application-gate-panel { display: block; }
}
@media (max-width: 680px) {
  .application-intake-band { grid-template-columns: 1fr; }
  .application-intake-score { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.17); }
  .application-stage-strip { grid-template-columns: 1fr 1fr; }
  .application-summary { grid-template-columns: 1fr; }
  .application-dossier-head { display: none; }
  .application-dossier-row { grid-template-columns: 1fr auto; }
  .application-dossier-row > div:nth-child(2) { grid-column: 1 / -1; }
}

/* Sprint 17 · project mobilization and certification review organization */
.startup-command-band { display: grid; grid-template-columns: 190px minmax(360px, .9fr) minmax(560px, 1.45fr); min-height: 186px; margin-bottom: 15px; overflow: hidden; border: 1px solid #294c62; border-radius: 14px; background: #102f43; box-shadow: 0 12px 28px rgba(15, 45, 63, .14); }
.startup-score { display: flex; flex-direction: column; justify-content: center; padding: 22px; border-right: 1px solid rgba(255,255,255,.14); color: #fff; }
.startup-score span { color: #efb866; font-size: calc(11px * var(--font-scale)); font-weight: 900; letter-spacing: .12em; }
.startup-score strong { margin: 7px 0 2px; font: 850 calc(48px * var(--font-scale))/1 system-ui, sans-serif; letter-spacing: -.055em; }
.startup-score small { color: #c4d2da; font-size: calc(12px * var(--font-scale)); line-height: 1.5; }
.startup-command-copy { padding: 25px 28px 20px; color: #fff; }
.startup-command-copy > p { margin: 0 0 7px; color: #efb866; font-size: calc(11px * var(--font-scale)); font-weight: 900; letter-spacing: .08em; }
.startup-command-copy h2 { margin: 0 0 8px; font-size: calc(23px * var(--font-scale)); line-height: 1.3; }
.startup-command-copy > span { display: block; min-height: 41px; color: #cbd8df; font-size: calc(13px * var(--font-scale)); line-height: 1.6; }
.startup-command-copy > div { height: 6px; margin-top: 15px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.14); }
.startup-command-copy i { display: block; width: 0; height: 100%; background: #e2a84f; transition: width .25s ease; }
.startup-gate-strip { display: grid; grid-template-columns: repeat(3, 1fr); align-self: stretch; background: #f7f9fa; }
.startup-gate-strip > span { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 16px 13px; border-left: 1px solid #dce4e8; border-bottom: 1px solid #dce4e8; }
.startup-gate-strip i { display: grid; width: 26px; height: 26px; place-items: center; margin-bottom: 7px; border: 1px solid #a9b9c3; border-radius: 50%; color: #5f7382; font-size: calc(10px * var(--font-scale)); font-style: normal; font-weight: 900; }
.startup-gate-strip b { color: #17364c; font-size: calc(12px * var(--font-scale)); }
.startup-gate-strip small { margin-top: 3px; overflow: hidden; color: #71818e; font-size: calc(10px * var(--font-scale)); line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.startup-gate-strip > span.is-ready { background: #edf7f4; }
.startup-gate-strip > span.is-ready i { border-color: #0b8178; background: #0b8178; color: #fff; }
.startup-gate-strip > span.has-blocker { background: #fff8eb; }
.startup-gate-strip > span.has-blocker i { border-color: #ba741a; color: #985b0b; }

.startup-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 15px; }
.startup-summary article { min-height: 105px; padding: 17px 19px; border: 1px solid #d6e0e5; border-top: 3px solid #2d7185; border-radius: 11px; background: #fff; box-shadow: 0 5px 15px rgba(20, 51, 67, .05); }
.startup-summary article > span { display: block; color: #667b89; font-size: calc(12px * var(--font-scale)); font-weight: 800; }
.startup-summary article > strong { display: block; margin: 6px 0 4px; color: #14354a; font-size: calc(22px * var(--font-scale)); line-height: 1.2; }
.startup-summary article > small { color: #7f8e99; font-size: calc(11px * var(--font-scale)); line-height: 1.4; }
.startup-summary article.startup-attention { border-top-color: #b87319; }

.startup-workspace { display: grid; grid-template-columns: minmax(360px, .85fr) minmax(560px, 1.35fr) minmax(290px, .68fr); gap: 14px; align-items: start; }
.startup-docket, .review-team-panel, .startup-gate-panel { min-height: 440px; overflow: hidden; }
.startup-docket-head { padding: 20px 21px 17px; border-bottom: 1px solid #dbe4e9; background: #f5f8f9; }
.startup-docket-head > span { color: #a15f0c; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .08em; }
.startup-docket-head h2 { margin: 5px 0 2px; color: #14344a; font-size: calc(20px * var(--font-scale)); }
.startup-docket-head p { margin: 0; color: #697b87; font-size: calc(12px * var(--font-scale)); }
.startup-docket-status { display: inline-flex; margin-top: 11px; padding: 5px 9px; border: 1px solid #6db4ad; border-radius: 4px; background: #e9f6f3; color: #0a736b; font-size: calc(10px * var(--font-scale)); font-weight: 900; }
.startup-docket-body { display: grid; grid-template-columns: 1fr 1fr; }
.startup-docket-body > div { min-width: 0; padding: 14px 17px; border-right: 1px solid #e3e9ed; border-bottom: 1px solid #e3e9ed; }
.startup-docket-body > div:nth-child(even) { border-right: 0; }
.startup-docket-body > div.span-2 { grid-column: 1 / -1; border-right: 0; }
.startup-docket-body small { display: block; color: #748591; font-size: calc(10px * var(--font-scale)); font-weight: 800; }
.startup-docket-body b { display: block; margin-top: 5px; color: #203e51; font-size: calc(12px * var(--font-scale)); line-height: 1.5; overflow-wrap: anywhere; }
.startup-docket-foot { padding: 15px 18px; }
.startup-docket-foot button { width: 100%; }

.review-team-panel > header, .familiarization-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 19px 20px 15px; border-bottom: 1px solid #dae4e9; }
.review-team-panel header h2, .familiarization-panel header h2 { margin: 3px 0 4px; color: #15354a; font-size: calc(19px * var(--font-scale)); }
.review-team-panel header small, .familiarization-panel header p { margin: 0; color: #697c89; font-size: calc(12px * var(--font-scale)); line-height: 1.55; }
.familiarization-panel > header button { flex: none; padding: 6px 0; border: 0; background: transparent; color: #0b7b73; font-size: calc(11px * var(--font-scale)); font-weight: 850; cursor: pointer; }
.review-team-tree { padding: 13px; background: #f7f9fa; }
.review-team-card { position: relative; width: 100%; margin-bottom: 10px; padding: 14px 15px; border: 1px solid #d2dde3; border-left: 4px solid #2e7184; border-radius: 7px; background: #fff; color: inherit; text-align: left; cursor: pointer; }
.review-team-card:last-child { margin-bottom: 0; }
.review-team-card.is-child { margin-left: 26px; width: calc(100% - 26px); border-left-color: #8b7049; }
.review-team-card.is-blocked { border-left-color: #b76242; }
.review-team-card:hover { border-color: #7da7b3; box-shadow: 0 6px 14px rgba(19, 55, 71, .07); }
.review-team-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.review-team-card header span { color: #4e6c7d; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .04em; }
.review-team-card header i { padding: 3px 7px; border-radius: 20px; background: #dff3ef; color: #087168; font-size: calc(9px * var(--font-scale)); font-style: normal; font-weight: 900; }
.review-team-card.is-blocked header i { background: #fae9e1; color: #9a452d; }
.review-team-card h3 { margin: 7px 0 5px; color: #17374d; font-size: calc(15px * var(--font-scale)); line-height: 1.4; }
.review-team-card p { margin: 0 0 10px; color: #657783; font-size: calc(11px * var(--font-scale)); line-height: 1.48; }
.review-team-card footer { display: flex; flex-wrap: wrap; gap: 6px; }
.review-team-card footer em { padding: 3px 6px; border: 1px solid #d5e0e5; border-radius: 3px; color: #5d7280; font-size: calc(10px * var(--font-scale)); font-style: normal; }

.startup-gate-panel { padding: 0; border-top: 4px solid #183f55; }
.startup-gate-title { padding: 17px 18px 12px; }
.startup-gate-title span { color: #6c8290; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .09em; }
.startup-gate-title h2 { margin: 4px 0 0; color: #15354a; font-size: calc(18px * var(--font-scale)); }
.startup-gate-item { padding: 13px 17px; border-top: 1px solid #e0e7eb; }
.startup-gate-item > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.startup-gate-item b { color: #294453; font-size: calc(12px * var(--font-scale)); }
.startup-gate-item i { flex: none; padding: 3px 7px; border-radius: 3px; background: #fff0d8; color: #92590c; font-size: calc(9px * var(--font-scale)); font-style: normal; font-weight: 900; }
.startup-gate-item.is-ready i { background: #dff3ef; color: #087168; }
.startup-gate-item ul { margin: 7px 0 0; padding-left: 17px; color: #7a5a35; font-size: calc(10px * var(--font-scale)); line-height: 1.55; }
.startup-gate-rule { margin: 13px 17px 17px; padding: 12px; border-left: 3px solid #2d8b82; background: #edf7f5; color: #4c6d70; font-size: calc(10px * var(--font-scale)); line-height: 1.55; }

.familiarization-panel { margin-top: 15px; overflow: hidden; }
.familiarization-head, .familiarization-row { display: grid; grid-template-columns: minmax(250px, .9fr) minmax(290px, 1fr) minmax(230px, .82fr) minmax(220px, .75fr); gap: 14px; }
.familiarization-head { padding: 10px 18px; border-bottom: 1px solid #dde5e9; background: #f2f5f7; color: #6c7f8c; font-size: calc(10px * var(--font-scale)); font-weight: 900; }
.familiarization-row { width: 100%; padding: 15px 18px; border: 0; border-bottom: 1px solid #e1e8eb; background: #fff; color: inherit; text-align: left; cursor: pointer; }
.familiarization-row:last-child { border-bottom: 0; }
.familiarization-row:hover { background: #f5faf9; }
.familiarization-row > div { min-width: 0; }
.familiarization-row b { display: block; color: #17364a; font-size: calc(13px * var(--font-scale)); line-height: 1.45; }
.familiarization-row small { display: block; margin-top: 4px; color: #70818d; font-size: calc(10px * var(--font-scale)); line-height: 1.5; overflow-wrap: anywhere; }
.familiarization-row .topic-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.familiarization-row .topic-chips i { padding: 3px 6px; border: 1px solid #cad9df; border-radius: 3px; color: #526f7c; font-size: calc(9px * var(--font-scale)); font-style: normal; }
.familiarization-row .topic-chips i.is-missing { border-color: #e1ae77; background: #fff5e7; color: #975b12; }
.familiarization-status { display: inline-flex; padding: 4px 8px; border-radius: 20px; background: #eef2f4; color: #59707f; font-size: calc(10px * var(--font-scale)); font-weight: 900; }
.familiarization-status.is-ready { background: #dff3ef; color: #087168; }
.identity-banner.startup { border-left-color: #b6761b; background: #fff7e9; }
.identity-banner.startup b { color: #8c570e; }

@media (max-width: 1450px) {
  .startup-command-band { grid-template-columns: 170px minmax(320px, .75fr) minmax(490px, 1.35fr); }
  .startup-workspace { grid-template-columns: minmax(340px, .8fr) minmax(510px, 1.2fr); }
  .startup-gate-panel { grid-column: 1 / -1; min-height: auto; display: grid; grid-template-columns: repeat(3, 1fr); }
  .startup-gate-title, .startup-gate-rule { grid-column: 1 / -1; }
}
@media (max-width: 1080px) {
  .startup-command-band { grid-template-columns: 165px 1fr; }
  .startup-gate-strip { grid-column: 1 / -1; min-height: 150px; }
  .startup-summary { grid-template-columns: 1fr 1fr; }
  .startup-workspace { grid-template-columns: 1fr; }
  .startup-docket, .review-team-panel, .startup-gate-panel { min-height: auto; }
  .startup-gate-panel { display: block; }
  .familiarization-head { display: none; }
  .familiarization-row { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .startup-command-band { grid-template-columns: 1fr; }
  .startup-score { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }
  .startup-gate-strip { grid-template-columns: 1fr 1fr; }
  .startup-summary { grid-template-columns: 1fr; }
  .familiarization-row { grid-template-columns: 1fr; }
  .review-team-card.is-child { margin-left: 12px; width: calc(100% - 12px); }
}

/* Sprint 21 · process-level manufacturing conformity and composite evidence */
#config-view-manufacturing .manufacturing-intro { align-items: center; margin-bottom: 14px; padding: 24px 26px; border: 1px solid #244c5b; border-radius: 14px; background: linear-gradient(118deg, #102f42 0%, #174b58 58%, #146f69 100%); box-shadow: 0 12px 28px rgba(13, 49, 65, .14); }
#config-view-manufacturing .manufacturing-intro h2 { margin: 6px 0 7px; font-size: calc(22px * var(--font-scale)); letter-spacing: -.015em; }
#config-view-manufacturing .manufacturing-intro p:last-child { max-width: 900px; color: #d3e1e5; font-size: calc(12px * var(--font-scale)); line-height: 1.62; }
#config-view-manufacturing .manufacturing-legend { font-size: calc(10px * var(--font-scale)); }

.manufacturing-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.manufacturing-metrics article { position: relative; min-height: 104px; padding: 17px 19px; overflow: hidden; border: 1px solid #d5e0e5; border-top: 3px solid #2a7180; border-radius: 10px; background: #fff; box-shadow: 0 5px 15px rgba(18, 54, 70, .05); }
.manufacturing-metrics article::after { content: ""; position: absolute; right: -22px; bottom: -32px; width: 82px; height: 82px; border: 12px solid rgba(32, 109, 119, .055); border-radius: 50%; }
.manufacturing-metrics article.has-alert { border-top-color: #bb741a; }
.manufacturing-metrics span, .manufacturing-metrics strong, .manufacturing-metrics small { display: block; position: relative; z-index: 1; }
.manufacturing-metrics span { color: #607783; font-size: calc(11px * var(--font-scale)); font-weight: 850; }
.manufacturing-metrics strong { margin: 5px 0 2px; color: #16364a; font-size: calc(24px * var(--font-scale)); line-height: 1.15; }
.manufacturing-metrics small { color: #788994; font-size: calc(10px * var(--font-scale)); }

.manufacturing-workbench { display: grid; grid-template-columns: minmax(360px, .72fr) minmax(760px, 1.55fr); gap: 14px; align-items: start; }
.manufacturing-register-panel, .manufacturing-control-detail { min-height: 650px; overflow: hidden; }
.manufacturing-register-panel .panel-head { padding: 18px 19px 14px; border-bottom: 1px solid #dae3e8; background: #f5f8f9; }
.manufacturing-register-panel .panel-head h2 { margin-top: 4px; color: #17364a; font-size: calc(18px * var(--font-scale)); }
.manufacturing-register-panel .panel-head > span { color: #607783; font-size: calc(11px * var(--font-scale)); font-weight: 850; }
.manufacturing-register-tools { display: grid; grid-template-columns: 1fr 126px; gap: 8px; padding: 11px 12px; border-bottom: 1px solid #dee6ea; background: #fff; }
.manufacturing-register-tools input, .manufacturing-register-tools select { min-width: 0; height: 36px; padding: 0 10px; border: 1px solid #cedae0; border-radius: 5px; background: #fff; color: #284454; font-size: calc(11px * var(--font-scale)); }
#config-view-manufacturing .manufacturing-grid { display: block; max-height: 720px; overflow: auto; padding: 8px; }
.manufacturing-register-row { width: 100%; display: grid; grid-template-columns: 34px minmax(0, 1fr) 74px; gap: 10px; align-items: center; margin-bottom: 7px; padding: 13px 12px; border: 1px solid #d9e2e6; border-left: 3px solid transparent; border-radius: 7px; background: #fff; color: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.manufacturing-register-row:hover { border-color: #91b4bc; background: #f7fbfb; transform: translateX(2px); }
.manufacturing-register-row.is-selected { border-left-color: #0b8178; background: #edf7f5; box-shadow: inset 0 0 0 1px rgba(11, 129, 120, .12); }
.manufacturing-register-mark { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 4px; background: #fff0d9; color: #95600f; font-size: calc(11px * var(--font-scale)); font-weight: 900; }
.manufacturing-register-mark.ready { background: #dcefeb; color: #087168; }
.manufacturing-register-copy { min-width: 0; }
.manufacturing-register-copy > i { display: block; overflow: hidden; color: #537487; font-size: calc(9px * var(--font-scale)); font-style: normal; font-weight: 900; letter-spacing: .04em; text-overflow: ellipsis; white-space: nowrap; }
.manufacturing-register-copy > strong { display: block; margin: 4px 0 3px; overflow: hidden; color: #18394d; font-size: calc(12px * var(--font-scale)); text-overflow: ellipsis; white-space: nowrap; }
.manufacturing-register-copy > small { display: block; overflow: hidden; color: #71828d; font-size: calc(10px * var(--font-scale)); text-overflow: ellipsis; white-space: nowrap; }
.manufacturing-progress { display: block; height: 3px; margin-top: 8px; overflow: hidden; border-radius: 3px; background: #dfe7e9; }
.manufacturing-progress i { display: block; height: 100%; background: #159187; }
.manufacturing-register-state { text-align: right; }
.manufacturing-register-state > b, .manufacturing-register-state > small { display: block; }
.manufacturing-register-state > b { color: #284858; font-size: calc(12px * var(--font-scale)); }
.manufacturing-register-state > small { margin: 1px 0 6px; color: #82909a; font-size: calc(9px * var(--font-scale)); }
.manufacturing-register-state .status-tag { display: inline-flex; font-size: calc(8px * var(--font-scale)); }

.manufacturing-control-detail { background: #fff; }
.manufacturing-detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 21px 22px 17px; color: #fff; border-bottom: 1px solid #244b5f; background: linear-gradient(112deg, #15364c, #21596a); }
.manufacturing-detail-head > div:first-child > span { color: #e6b466; font-size: calc(10px * var(--font-scale)); font-weight: 900; letter-spacing: .07em; }
.manufacturing-detail-head h2 { margin: 5px 0 4px; font-size: calc(21px * var(--font-scale)); line-height: 1.35; }
.manufacturing-detail-head p { margin: 0; color: #cbd9df; font-size: calc(11px * var(--font-scale)); }
.manufacturing-detail-actions { display: flex; flex: none; gap: 7px; }
.manufacturing-detail-actions .btn { color: #fff; border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.manufacturing-detail-actions .btn.primary { border-color: #d9a451; background: #b87518; }
.manufacturing-identity-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid #dce5e8; background: #f6f8f9; }
.manufacturing-identity-grid > div { min-width: 0; padding: 14px 15px; border-right: 1px solid #dce5e8; }
.manufacturing-identity-grid > div:last-child { border-right: 0; }
.manufacturing-identity-grid span, .manufacturing-identity-grid b, .manufacturing-identity-grid small { display: block; }
.manufacturing-identity-grid span { color: #70838f; font-size: calc(9px * var(--font-scale)); font-weight: 850; letter-spacing: .03em; }
.manufacturing-identity-grid b { margin: 5px 0 3px; color: #1b3c50; font-size: calc(12px * var(--font-scale)); line-height: 1.4; overflow-wrap: anywhere; }
.manufacturing-identity-grid small { color: #7b8993; font-size: calc(10px * var(--font-scale)); line-height: 1.4; }
.manufacturing-baseline-chain { display: grid; grid-template-columns: repeat(7, auto); justify-content: stretch; align-items: center; gap: 7px; margin: 14px 17px 6px; padding: 11px 13px; border: 1px solid #d9e3e6; border-radius: 7px; background: #f7f9fa; }
.manufacturing-baseline-chain > span { min-width: 0; color: #74848f; font-size: calc(9px * var(--font-scale)); }
.manufacturing-baseline-chain > span b { display: block; margin-top: 3px; overflow: hidden; color: #1f4053; font-size: calc(11px * var(--font-scale)); text-overflow: ellipsis; white-space: nowrap; }
.manufacturing-baseline-chain > span.ready b { color: #08766e; }
.manufacturing-baseline-chain > span.pending b { color: #9b6012; }
.manufacturing-baseline-chain > i { color: #8da0aa; font-style: normal; }

.manufacturing-detail-section { margin-top: 9px; border-top: 1px solid #dfe7ea; border-bottom: 1px solid #dfe7ea; }
.manufacturing-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; padding: 14px 17px 11px; }
.manufacturing-section-head h3 { margin: 3px 0 0; color: #193a4f; font-size: calc(15px * var(--font-scale)); }
.manufacturing-section-head > span { color: #6f818c; font-size: calc(10px * var(--font-scale)); font-weight: 800; }
.manufacturing-operation-head, .manufacturing-operation-row { display: grid; grid-template-columns: minmax(120px, .68fr) minmax(280px, 1.55fr) minmax(115px, .68fr) minmax(190px, 1.05fr) minmax(130px, .72fr); gap: 12px; align-items: center; }
.manufacturing-operation-head { padding: 8px 16px; border-top: 1px solid #e0e7ea; border-bottom: 1px solid #d9e2e6; background: #eff3f5; color: #667b88; font-size: calc(9px * var(--font-scale)); font-weight: 900; letter-spacing: .025em; }
.manufacturing-operation-list { max-height: 360px; overflow: auto; }
.manufacturing-operation-row { position: relative; width: 100%; padding: 13px 16px; border: 0; border-bottom: 1px solid #e1e8eb; background: #fff; color: inherit; text-align: left; cursor: pointer; }
.manufacturing-operation-row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #d39a43; }
.manufacturing-operation-row.is-ready::before { background: #16877e; }
.manufacturing-operation-row:hover { background: #f5faf9; }
.manufacturing-operation-row > span { min-width: 0; }
.manufacturing-operation-row b, .manufacturing-operation-row small { display: block; }
.manufacturing-operation-row b { color: #203f51; font-size: calc(11px * var(--font-scale)); line-height: 1.45; }
.manufacturing-operation-row small { margin-top: 3px; color: #74848e; font-size: calc(9px * var(--font-scale)); line-height: 1.4; overflow-wrap: anywhere; }
.manufacturing-operation-row > span:first-child > i { display: inline-grid; min-width: 29px; height: 25px; place-items: center; margin-bottom: 5px; padding: 0 5px; border-radius: 3px; background: #193f55; color: #fff; font-size: calc(10px * var(--font-scale)); font-style: normal; font-weight: 900; }
.checkpoint-tag { display: inline-flex; padding: 4px 7px; border: 1px solid #87a8b3; border-radius: 3px; color: #3a6373; font-size: calc(9px * var(--font-scale)); font-style: normal; font-weight: 900; }
.manufacturing-operation-row .status-tag { display: inline-flex; }

.manufacturing-detail-bottom { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; }
.manufacturing-detail-bottom > section { min-width: 0; padding-bottom: 12px; border-right: 1px solid #dfe6e9; }
.manufacturing-detail-bottom > section:last-child { border-right: 0; }
.manufacturing-detail-bottom .required-documents { margin: 0 17px; }
.manufacturing-gate-panel { background: #fff8ec; }
.manufacturing-gate-panel.is-ready { background: #eef8f5; }
.manufacturing-gate-panel ul { margin: 3px 17px 12px; padding-left: 17px; color: #7c5a30; font-size: calc(10px * var(--font-scale)); line-height: 1.65; }
.manufacturing-gate-panel > p { margin: 3px 17px 12px; color: #397068; font-size: calc(10px * var(--font-scale)); line-height: 1.6; }
.manufacturing-gate-panel footer { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 17px; }
.manufacturing-gate-panel footer b { padding: 4px 7px; border: 1px solid #d6c39f; border-radius: 3px; background: rgba(255,255,255,.65); color: #6d5b3c; font-size: calc(9px * var(--font-scale)); }
.manufacturing-template-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 12px 16px 15px; border-top: 1px solid #dce4e8; background: #f5f8f9; }
.manufacturing-template-strip > span { margin-right: 4px; color: #5e7684; font-size: calc(10px * var(--font-scale)); font-weight: 900; }
.manufacturing-template-strip button { padding: 5px 8px; border: 1px solid #c6d6dc; border-radius: 4px; background: #fff; color: #356073; font-size: calc(9px * var(--font-scale)); font-weight: 800; cursor: pointer; }
.manufacturing-template-strip button:hover { border-color: #16877e; color: #08766e; }
.empty-state.compact { min-height: 150px; }

@media (max-width: 1500px) {
  .manufacturing-workbench { grid-template-columns: minmax(330px, .65fr) minmax(690px, 1.35fr); }
  .manufacturing-identity-grid { grid-template-columns: 1fr 1fr; }
  .manufacturing-identity-grid > div:nth-child(2) { border-right: 0; }
  .manufacturing-identity-grid > div:nth-child(-n+2) { border-bottom: 1px solid #dce5e8; }
}
@media (max-width: 1180px) {
  .manufacturing-metrics { grid-template-columns: 1fr 1fr; }
  .manufacturing-workbench { grid-template-columns: 1fr; }
  .manufacturing-register-panel, .manufacturing-control-detail { min-height: auto; }
  #config-view-manufacturing .manufacturing-grid { max-height: 420px; }
}
@media (max-width: 780px) {
  #config-view-manufacturing .manufacturing-intro { align-items: flex-start; flex-direction: column; }
  .manufacturing-metrics { grid-template-columns: 1fr; }
  .manufacturing-identity-grid, .manufacturing-detail-bottom { grid-template-columns: 1fr; }
  .manufacturing-identity-grid > div { border-right: 0; border-bottom: 1px solid #dce5e8; }
  .manufacturing-operation-head { display: none; }
  .manufacturing-operation-row { grid-template-columns: 1fr 1fr; }
  .manufacturing-baseline-chain { grid-template-columns: 1fr; }
  .manufacturing-baseline-chain > i { display: none; }
}
/* Sprint 22: manufacturing import review workspace. */
.mi-dialog { width: min(1540px, 96vw); max-width: 96vw; height: 94vh; max-height: 94vh; padding: 0; border: 1px solid #b6cbd2; border-radius: 16px; color: #183344; background: #f3f7f8; box-shadow: 0 28px 100px #092c4266; font-size: 15px; }
.mi-dialog[open] { display: flex; flex-direction: column; }
.mi-dialog::backdrop { background: #0c263bb3; }
.mi-dialog [hidden] { display: none !important; }
.mi-dialog input, .mi-dialog select, .mi-dialog button { font: inherit; }
.mi-dialog input:not([type=checkbox]), .mi-dialog select { box-sizing: border-box; width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #bccfd6; border-radius: 6px; background: white; color: #16394b; }
.mi-dialog input[type=checkbox] { width: 18px; height: 18px; accent-color: #008b83; flex-shrink: 0; }
.mi-dialog label { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; color: #365364; }
.mi-dialog label span { font-weight: 600; }
.mi-header { display: flex; justify-content: space-between; padding: 20px 26px; background: #143f52; color: white; flex-shrink: 0; }
.mi-header h2 { margin: 3px 0 7px; font-size: 25px; }
.mi-header p { margin: 0; color: #c2dce1; font-size: 14px; }
.mi-header .icon-btn { color: white; background: transparent; border: 1px solid #769fae; font-size: 25px; }
.mi-upload { display: grid; grid-template-columns: 1.1fr auto 1fr; gap: 16px; align-items: end; padding: 16px 26px 10px; flex-shrink: 0; }
.mi-message { margin: 0; padding: 8px 26px 12px; color: #08796f; font-size: 15px; white-space: pre-wrap; max-height: 130px; overflow: auto; flex-shrink: 0; }
.mi-message.is-error { color: #a73f28; background: #fff2ec; }
.mi-scroll { padding: 0 26px 24px; overflow-y: auto; min-height: 0; }
.mi-source-bar { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 0 5px; }
.mi-source-bar strong { font-size: 22px; }
.mi-source-bar p { margin: 6px 0; font-size: 14px; color: #4c6878; overflow-wrap: anywhere; }
.mi-warning { padding: 12px 15px; background: #fff6e7; border-left: 3px solid #ba831f; font-size: 14px; line-height: 1.6; }
.mi-mapping { margin: 10px 0; border: 1px solid #cfdee3; border-radius: 8px; background: white; }
.mi-mapping summary { padding: 13px 16px; cursor: pointer; font-size: 16px; font-weight: 600; }
.mi-mapping-body { padding: 0 16px 16px; }
.mi-mapping-body p { color: #526d7b; font-size: 14px; }
.mi-mapping-settings { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; margin: 12px 0 20px; }
.mi-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.mi-raw { overflow-x: auto; max-height: 330px; }
.mi-raw table { border-collapse: collapse; font-size: 14px; }
.mi-raw th, .mi-raw td { border: 1px solid #cfdee3; padding: 8px; min-width: 90px; max-width: 260px; overflow-wrap: anywhere; }
.mi-raw th { position: sticky; top: 0; background: #e6eff2; }
.mi-section-title { display: flex; justify-content: space-between; align-items: center; margin: 24px 0 14px; gap: 10px; }
.mi-section-title h3 { margin: 0; font-size: 19px; }
.mi-section-title span { color: #5b7381; font-size: 14px; }
.mi-bulk { display: flex; gap: 12px; align-items: end; padding: 15px; background: #e8f2f2; border: 1px solid #c5dede; border-radius: 8px; }
.mi-bulk label { flex: 1; }
.mi-candidates { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 18px; margin-top: 18px; align-items: start; }
.mi-candidates > aside { position: sticky; top: 0; max-height: 64vh; overflow: auto; background: white; border: 1px solid #cbdde4; border-radius: 8px; }
.mi-search { padding: 14px; position: sticky; top: 0; background: white; border-bottom: 1px solid #d4e3e8; z-index: 1; }
.mi-part-row { display: flex; align-items: flex-start; gap: 7px; padding: 12px; border-bottom: 1px solid #dbe6eb; border-left: 3px solid transparent; }
.mi-part-row.is-active { background: #e6f4f2; border-left-color: #008c80; }
.mi-part-row button { display: flex; flex-direction: column; gap: 5px; min-width: 0; background: transparent; border: 0; text-align: left; cursor: pointer; color: #143f52; padding: 0; }
.mi-part-row b { font-size: 14px; overflow-wrap: anywhere; }
.mi-part-row small { color: #587383; font-size: 13px; }
#miPartDetail { padding: 20px; border: 1px solid #cbdde4; border-radius: 8px; background: white; }
.mi-detail-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid #d5e2e8; padding-bottom: 14px; margin-bottom: 18px; }
.mi-detail-title h3 { font-size: 22px; margin: 6px 0 0; }
.mi-detail-title small { font-size: 14px; color: #587383; }
.mi-dialog .mi-inline { flex-direction: row; align-items: center; }
.mi-operation { padding: 14px; margin-top: 12px; border: 1px solid #ccdde4; border-left: 3px solid #438c96; border-radius: 7px; background: #f9fbfc; }
.mi-op-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; color: #506d7d; }
.mi-op-head label { flex-direction: row; align-items: center; }
.mi-op-head small { font-size: 14px; }
.mi-op-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.mi-footer { padding: 14px 26px 20px; border-top: 1px solid #cbdde4; background: white; flex-shrink: 0; }
.mi-review { display: flex; gap: 20px; align-items: center; margin-bottom: 14px; }
.mi-review label { flex-direction: row; align-items: center; flex: 1; font-size: 14px; }
.mi-review > input { flex: 1; }
.mi-footer-actions { display: flex; gap: 12px; align-items: center; }
.mi-footer-actions > span { flex: 1; font-size: 15px; font-weight: 600; }
.mi-dialog button:disabled { opacity: .5; cursor: not-allowed; }
.mi-empty { padding: 24px; color: #5c7583; }
@media (max-width: 1100px) { .mi-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mi-candidates { grid-template-columns: 235px minmax(0, 1fr); } .mi-bulk { flex-wrap: wrap; } }
@media (max-width: 760px) { .mi-upload { grid-template-columns: 1fr auto; } .mi-upload > label:last-child { grid-column: 1 / -1; } .mi-candidates { grid-template-columns: 1fr; } .mi-candidates > aside { position: static; max-height: 220px; } .mi-review { flex-direction: column; align-items: stretch; gap: 8px; } .mi-footer-actions { flex-wrap: wrap; } .mi-fields, .mi-op-fields { grid-template-columns: 1fr; } .mi-scroll { padding: 0 12px 15px; } .mi-mapping-settings { grid-template-columns: 1fr 1fr; } }
/* Sprint 23: reusable mappings and version differences. */
.mi-template-controls, .mi-compare-controls { display: flex; align-items: end; gap: 14px; margin: 15px 0; }
.mi-template-controls label, .mi-compare-controls label { flex: 1; }
.mi-template-actions { display: flex; gap: 12px; margin: 16px 0; }
.mi-template-section ul { padding: 0 24px; color: #466374; line-height: 1.8; }
.mi-revision-section { margin: 28px 0 0; padding: 22px; background: white; border: 1px solid #c4d8df; border-top: 4px solid #348e91; border-radius: 9px; }
.mi-revision-section .mi-section-title { margin-top: 0; }
.mi-revision-help { color: #456477; font-size: 15px; line-height: 1.6; }
.mi-diff-counts { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; }
.mi-diff-counts span { padding: 10px 16px; border: 1px solid #c8dee4; border-radius: 6px; color: #214c60; background: #eef6f7; }
.mi-diff-counts b { margin-left: 12px; font-size: 21px; }
.mi-review-tools { display: flex; gap: 12px; align-items: end; }
.mi-review-tools label { flex: 1; }
.mi-diff-row { margin-top: 15px; border: 1px solid #d1dfe5; border-radius: 8px; padding: 16px; }
.mi-diff-title { display: flex; gap: 15px; align-items: flex-start; }
.mi-diff-title > div { display: flex; flex-wrap: wrap; gap: 7px 18px; }
.mi-diff-title b { font-size: 16px; }
.mi-diff-title small { width: 100%; color: #536f80; font-size: 14px; }
.mi-diff-kind { font-weight: 600; white-space: nowrap; border-radius: 4px; padding: 5px 9px; background: #e7f1f4; color: #244d61; }
.mi-diff-kind.kind-变更, .mi-diff-kind.kind-待配对 { color: #94560f; background: #fff0d9; }
.mi-diff-kind.kind-新增 { color: #0e7667; background: #dff2ec; }
.mi-diff-row details { margin: 12px 0; }
.mi-diff-row summary { cursor: pointer; color: #176f80; font-size: 15px; }
.mi-diff-row table { table-layout: fixed; width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 14px; }
.mi-diff-row th, .mi-diff-row td { border: 1px solid #d6e3e8; padding: 11px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.mi-diff-row thead { background: #e9f2f5; }
.mi-diff-decision { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 15px; margin-top: 16px; }
.mi-review-completion { display: flex; gap: 14px; align-items: end; margin-top: 22px; padding-top: 18px; border-top: 1px solid #c7dbe1; }
.mi-review-completion label { flex: 1; }
.mi-metadata-diff { background: #f4f8fa; padding: 14px; margin-top: 16px; }
.mi-metadata-diff summary { cursor: pointer; font-weight: 600; }
.mi-metadata-diff ul { font-size: 14px; line-height: 1.9; }
.manufacturing-revision-lineage { padding: 15px 22px; background: #e8f3f1; color: #235d61; border-bottom: 1px solid #c7deda; font-size: 14px; line-height: 1.6; }
@media (max-width: 760px) { .mi-template-controls, .mi-compare-controls, .mi-review-tools, .mi-review-completion { flex-direction: column; align-items: stretch; } .mi-diff-decision { grid-template-columns: 1fr; } }
.ms-dialog { width: min(1500px, 96vw); max-width: 96vw; height: 94vh; max-height: 94vh; margin: auto; padding: 0; border: 1px solid #b7d0d7; border-radius: 15px; background: #f3f7f8; color: #193d4e; overflow: hidden; }
.ms-dialog[open] { display: flex; flex-direction: column; }
.ms-dialog::backdrop { background: #062638ad; }
.ms-header { display: flex; justify-content: space-between; gap: 20px; background: #173f4f; color: white; padding: 22px 26px; }
.ms-header p { color: #9fc7cb; letter-spacing: .13em; font-size: 12px; font-weight: 700; margin: 0 0 6px; }
.ms-header h2 { color: white; font-size: 25px; margin: 0 0 8px; }
.ms-header span { color: #d0e3e8; font-size: 14px; }
.ms-header .icon-btn { color: white; flex: 0 0 38px; border-color: #6e929f; background: transparent; font-size: 24px; }
.ms-metrics { display: grid; grid-template-columns: repeat(4, 1fr); background: white; border-bottom: 1px solid #d5e3e8; }
.ms-metrics > div { padding: 14px 26px; display: flex; justify-content: space-between; align-items: center; border-right: 1px solid #deeaed; gap: 12px; }
.ms-metrics span { color: #476576; font-size: 14px; }
.ms-metrics b { font-size: 27px; font-variant-numeric: tabular-nums; }
.ms-metrics > div:nth-child(2) b, .ms-metrics > div:nth-child(4) b { color: #a66314; }
.ms-toolbar { display: flex; align-items: center; gap: 12px; padding: 16px 24px 0; }
.ms-toolbar label { flex: 1; }
.ms-dialog input, .ms-dialog select, .ms-dialog textarea { width: 100%; border: 1px solid #bed1da; border-radius: 5px; padding: 10px; font-size: calc(14px * var(--font-scale, 1)); line-height: 1.45; min-width: 0; color: #163d50; background: white; }
.ms-dialog select:disabled, .ms-dialog input:disabled, .ms-dialog textarea:disabled { color: #446271; background: #f2f6f8; opacity: 1; }
.ms-dialog input:focus, .ms-dialog select:focus, .ms-dialog textarea:focus { outline: 2px solid #12978f; outline-offset: 1px; }
.ms-toolbar > select { width: 160px; }
.ms-toolbar button { white-space: nowrap; }
.ms-message { font-size: 14px; color: #087d75; margin: 12px 24px; line-height: 1.5; }
.ms-message.is-error { color: #a03521; }
.ms-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 18px; padding: 0 24px 22px; }
.ms-layout > aside, .ms-layout > section { overflow: auto; min-width: 0; overscroll-behavior: contain; }
.ms-layout > section { background: white; border: 1px solid #d0e1e6; border-radius: 8px; padding: 22px; }
.ms-list-row { width: 100%; text-align: left; padding: 15px; border: 1px solid #ccdfe5; border-radius: 7px; background: white; margin-bottom: 10px; color: #224656; cursor: pointer; }
.ms-list-row.selected { border-left: 4px solid #078b85; background: #e9f5f3; }
.ms-list-row > span { display: flex; justify-content: space-between; gap: 9px; margin-bottom: 10px; overflow-wrap: anywhere; }
.ms-list-row b { font-size: 14px; }
.ms-list-row i { font-size: 12px; font-style: normal; flex-shrink: 0; }
.ms-list-row > strong { display: block; font-size: 17px; margin-bottom: 7px; }
.ms-list-row small, .ms-list-row time { display: block; color: #506f7d; font-size: 13px; line-height: 1.7; }
.ms-list-row em { display: inline-block; margin-top: 7px; border-radius: 3px; background: #fff0d9; color: #995615; font-size: 13px; padding: 3px 7px; font-style: normal; }
.ms-detail-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid #dce7eb; padding-bottom: 16px; margin-bottom: 20px; }
.ms-detail-head p { color: #18827f; font-size: 12px; letter-spacing: .12em; margin: 0 0 5px; }
.ms-detail-head h3 { font-size: 22px; margin: 0 0 6px; }
.ms-detail-head span { color: #526f7c; font-size: 14px; }
.ms-fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 15px 18px; }
.ms-fields label, .ms-action-section > label { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ms-fields label > span, .ms-action-section > label > span { font-size: calc(14px * var(--font-scale, 1)); font-weight: 600; }
.ms-span-2 { grid-column: 1 / -1; }
.ms-dialog fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.ms-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.ms-qualification, .ms-source { color: #526f7d; font-size: 13px; line-height: 1.75; }
.ms-readiness { background: #eff6f7; padding: 16px 20px; border-left: 3px solid #4e9fa2; margin-top: 20px; }
.ms-readiness h4, .ms-action-section h4 { margin: 0 0 10px; font-size: 17px; }
.ms-readiness p, .ms-readiness li, .ms-action-section p { font-size: 14px; line-height: 1.7; }
.ms-readiness ul { padding-left: 20px; color: #92551b; }
.ms-alert { color: #9f5720; font-size: 14px; }
.ms-ok { color: #0c7766; }
.ms-action-section { border-top: 1px solid #d3e3e8; padding-top: 20px; margin-top: 24px; }
.ms-execution { color: #173e50; overflow-wrap: anywhere; }
.ms-execution-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ms-execution-heading .eyebrow { margin: 0 0 4px; color: #236f77; letter-spacing: .12em; font-size: 12px; }
.ms-execution-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: #d7e4e8; border: 1px solid #d7e4e8; }
.ms-execution-facts > div { background: #f3f8f9; padding: 12px 16px; }
.ms-execution-facts dt { color: #526f7c; font-size: calc(13px * var(--font-scale, 1)); }
.ms-execution-facts dd { margin: 5px 0 0; font-weight: 650; font-size: calc(15px * var(--font-scale, 1)); }
.ms-execution .ms-muted { color: #536e7b; }
.ms-evidence-types { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; font-size: calc(14px * var(--font-scale, 1)); }
.ms-evidence-types b { margin-right: 8px; }
.ms-evidence-types span { background: #eaf2f4; border: 1px solid #c7dce2; padding: 4px 9px; border-radius: 4px; }
.ms-execution-gaps { margin: 16px 0; padding: 14px 18px; background: #fff8ec; border-left: 3px solid #ae731f; font-size: calc(14px * var(--font-scale, 1)); line-height: 1.7; color: #764b19; }
.ms-execution-gaps ul { margin: 6px 0 0; padding-left: 20px; }
.ms-evidence-scroll { overflow-x: auto; border: 1px solid #d4e3e8; margin: 16px 0; }
.ms-evidence-table { border-collapse: collapse; width: 100%; font-size: calc(14px * var(--font-scale, 1)); text-align: left; }
.ms-evidence-table caption { text-align: left; background: #eaf2f4; padding: 10px 14px; font-weight: 650; }
.ms-evidence-table th, .ms-evidence-table td { padding: 12px; vertical-align: top; border-top: 1px solid #d4e3e8; min-width: 70px; }
.ms-evidence-table th { color: #46616f; font-weight: 600; }
.ms-evidence-table td:first-child { min-width: 140px; }
.ms-evidence-table small { display: block; margin-top: 5px; color: #536e7b; }
.ms-archive { margin: 18px 0; padding: 18px; border: 1px solid #99c4c8; background: #f8fcfc; }
.ms-archive summary, .ms-live-execution summary { cursor: pointer; font-size: calc(16px * var(--font-scale, 1)); font-weight: 650; line-height: 1.6; }
.ms-execution .ms-digest { font-family: Consolas, monospace; font-size: 12px; color: #536e7b; word-break: break-all; }
.ms-execution-restricted { padding: 14px 18px; background: #f0f4f6; color: #536e7b; font-size: 14px; line-height: 1.7; }
#returnToManufacturingSchedule { margin: 0 0 16px; }
#returnToManufacturingSchedule[hidden] { display: none; }
.ms-execution p { font-size: calc(14px * var(--font-scale, 1)); }
.md-dialog .md-boundary { font-size: calc(14px * var(--font-scale, 1)); color: #546e7c; line-height: 1.7; }
.md-review-note { display: flex; flex-direction: column; gap: 8px; font-size: calc(14px * var(--font-scale, 1)); font-weight: 600; }
.md-history { overflow-wrap: anywhere; }
.md-history article { border-top: 1px solid #d4e3e8; padding: 12px 0; }
.md-history summary { cursor: pointer; line-height: 1.7; }
.md-history article h4 { margin: 8px 0; }
.md-dialog #mdClose { color: white; background: transparent; border-color: #7898a5; }
.md-dialog #mdEvidence { overflow-wrap: anywhere; }
.ms-warning { padding: 10px 14px; background: #fff3df; color: #88521d; border-radius: 4px; }
.ms-feedback-result { padding: 13px 16px; border-left: 3px solid #078b85; background: #eaf5f3; }
.ms-history { margin-top: 24px; font-size: 13px; color: #536d7a; }
.ms-history summary { cursor: pointer; font-size: 14px; }
.ms-empty { color: #53727e; font-size: 15px; line-height: 1.85; padding: 20px; }
@media (max-width: 1100px) { .ms-layout { grid-template-columns: 245px minmax(0,1fr); gap: 12px; padding: 0 16px 18px; } .ms-layout > section { padding: 17px; } .ms-metrics > div { padding: 12px 17px; } }
@media (max-width: 760px) { .ms-layout { grid-template-columns: 1fr; overflow: auto; display: block; } .ms-layout > aside { max-height: 190px; margin-bottom: 14px; } .ms-layout > section { overflow: visible; } .ms-toolbar { flex-wrap: wrap; padding: 12px 16px 0; } .ms-toolbar label { flex-basis: 65%; } .ms-toolbar > select { width: 100px; } .ms-metrics { grid-template-columns: repeat(2,1fr); } .ms-metrics > div { padding: 8px 16px; } .ms-header h2 { font-size: 20px; } .ms-header { padding: 17px; } .ms-fields { grid-template-columns: 1fr; } .ms-header p { display: none; } }
/* Number corrections preserve the original identity and use an explicit two-person decision. */
.md-correction { border: 1px solid #9bbcb7; border-left: 4px solid #16786c; background: #f4faf8; padding: 20px; margin: 22px 0; border-radius: 8px; }
.md-correction h4 { font-size: 18px; color: #163b45; margin: 0; }
.md-correction p, .md-correction label, .md-correction-history p { font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; }
.md-correction-map { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin: 18px 0; }
.md-correction-map > div { background: white; border: 1px solid #c7d8d5; border-radius: 6px; padding: 12px; min-width: 0; }
.md-correction-map small, .md-correction-map strong { display: block; overflow-wrap: anywhere; }
.md-correction-map small { color: #496367; font-size: 13px; margin-bottom: 6px; }
.md-correction-map strong { color: #173b47; font-size: 17px; }
.ms-correction-snapshot { border: 1px solid #9bbcb7; border-left: 4px solid #16786c; border-radius: 7px; background: #f4faf8; padding: 14px 16px; color: #294d56; }
.ms-correction-snapshot > summary { color: #173b47; font-size: calc(15px * var(--font-scale, 1)); font-weight: 700; }
.ms-correction-snapshot p, .ms-correction-snapshot dt, .ms-correction-snapshot dd { font-size: calc(14px * var(--font-scale, 1)); line-height: 1.65; overflow-wrap: anywhere; }
.ms-correction-map { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin: 14px 0; }
.ms-correction-map > div { min-width: 0; padding: 11px 12px; border: 1px solid #c7d8d5; border-radius: 6px; background: #fff; }
.ms-correction-map small, .ms-correction-map strong { display: block; overflow-wrap: anywhere; }
.ms-correction-map small { margin-bottom: 5px; color: #496367; font-size: 13px; }
.ms-correction-map strong { color: #173b47; font-size: calc(16px * var(--font-scale, 1)); }
@media (max-width: 760px) { .ms-correction-map { grid-template-columns: 1fr; } .ms-correction-map > span { transform: rotate(90deg); justify-self: center; } }
