/* R&D management execution surfaces only. */
body[data-page="RND"] .rd-project-heading {
  background:linear-gradient(105deg,#f8fbff,#fff);
  border-color:#cfdaf0;
  box-shadow:0 1px 2px rgb(21 34 59 / 4%);
}

body[data-page="RND"] .rnd-work-hero {
  display:flex;
  justify-content:space-between;
  gap:24px;
  align-items:flex-start;
  margin:2px 0 16px;
  padding:4px 2px 2px;
}
body[data-page="RND"] .rnd-work-hero h2 { margin:3px 0 7px; font-size:28px; letter-spacing:-.02em; }
body[data-page="RND"] .rnd-work-hero p { max-width:760px; margin:0; color:var(--muted,#657188); line-height:1.7; }
body[data-page="RND"] .rnd-work-kicker { color:var(--accent,#2468f2); font-size:12px; font-weight:750; }
body[data-page="RND"] .rnd-work-hero-actions { flex:0 0 auto; padding-top:14px; }
body[data-page="RND"] .rnd-work-hero-actions button { margin:0; }

body[data-page="RND"] .rnd-work-kpis,
body[data-page="RND"] .rnd-cockpit-kpis {
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin-bottom:16px;
}

body[data-page="RND"] .rnd-work-kpis .rd-health,
body[data-page="RND"] .rnd-cockpit-kpis .rd-health {
  position:relative;
  overflow:hidden;
  min-height:108px;
  padding:15px 16px;
}

body[data-page="RND"] .rnd-work-kpis .rd-health::after {
  position:absolute;
  right:16px;
  bottom:0;
  left:16px;
  height:4px;
  border-radius:4px 4px 0 0;
  background:#83a8f8;
  content:"";
}
body[data-page="RND"] .rnd-work-kpis .rd-health.red::after { background:#ef6b62; }
body[data-page="RND"] .rnd-work-kpis .rd-health.yellow::after { background:#f1bc54; }
body[data-page="RND"] .rnd-work-kpis .rd-health.green::after { background:#68c38f; }

body[data-page="RND"] .rnd-work-kpis .rd-health strong,
body[data-page="RND"] .rnd-cockpit-kpis .rd-health strong {
  margin-top:4px;
  font-size:25px;
}
body[data-page="RND"] .rnd-work-kpis .rd-health small { display:block; margin-top:7px; color:var(--muted,#657188); font-size:11px; line-height:1.45; }

body[data-page="RND"] .rnd-work-layout,
body[data-page="RND"] .rnd-cockpit-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 330px;
  gap:16px;
  align-items:start;
}

body[data-page="RND"] .rnd-work-layout>.panel,
body[data-page="RND"] .rnd-cockpit-layout>.panel { min-width:0; }

body[data-page="RND"] .rnd-work-aside,
body[data-page="RND"] .rnd-cockpit-aside {
  display:grid;
  gap:14px;
  min-width:0;
}

body[data-page="RND"] .rnd-work-aside>.panel,
body[data-page="RND"] .rnd-cockpit-aside>.panel { margin:0; }

body[data-page="RND"] .rnd-segmented {
  display:flex;
  width:100%;
  gap:22px;
  margin:8px 0 16px;
  padding:0;
  overflow-x:auto;
  border:0;
  border-bottom:1px solid var(--line,#dce3eb);
  border-radius:0;
  background:transparent;
}

body[data-page="RND"] .rnd-segmented>button {
  position:relative;
  display:flex;
  flex:0 0 auto;
  align-items:center;
  gap:7px;
  margin:0;
  padding:9px 2px 11px;
  border:0;
  border-bottom:2px solid transparent;
  border-radius:0;
  background:transparent;
  color:var(--muted,#657188);
  box-shadow:none;
}

body[data-page="RND"] .rnd-segmented>button.selected {
  border-bottom-color:var(--accent,#2468f2);
  background:transparent;
  color:var(--accent,#2468f2);
  box-shadow:none;
}

body[data-page="RND"] .rnd-segment-count {
  display:inline-grid;
  min-width:20px;
  height:20px;
  padding:0 6px;
  place-items:center;
  border-radius:10px;
  background:#edf2f8;
  color:#56647a;
  font-size:11px;
  font-weight:700;
  line-height:20px;
}

body[data-page="RND"] .rnd-segmented>button.selected .rnd-segment-count {
  background:#e8f0ff;
  color:var(--accent,#2468f2);
}

body[data-page="RND"] .rnd-work-list { display:grid; gap:10px; }

body[data-page="RND"] .rnd-work-card {
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:start;
  overflow:hidden;
  padding:15px 15px 15px 18px;
  border:1px solid var(--line,#dce3eb);
  border-radius:10px;
  background:#fff;
  box-shadow:0 3px 12px rgb(28 48 84 / 3%);
}

body[data-page="RND"] .rnd-work-card:hover { border-color:#97addc; }
body[data-page="RND"] .rnd-page-actions { display:flex; justify-content:flex-end; gap:8px; margin:0 0 14px; }
body[data-page="RND"] .rnd-page-actions button { margin:0; }
body[data-page="RND"] .subnav .rnd-create-project-nav {
  margin-left:auto;
  padding-inline:18px;
  border-color:var(--accent,#2468f2);
  background:var(--accent,#2468f2);
  color:#fff;
  box-shadow:0 7px 18px rgb(36 104 242 / 18%);
  white-space:nowrap;
}
body[data-page="RND"] .subnav .rnd-create-project-nav:hover { filter:brightness(.97); color:#fff; }
body[data-page="RND"] .rnd-collection-guide { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:0 0 16px; }
body[data-page="RND"] .rnd-collection-purpose { padding:15px 16px; border:1px solid var(--line,#dce3eb); border-radius:10px; background:var(--surface,#fff); }
body[data-page="RND"] .rnd-collection-purpose.active { border-color:#94b4f7; background:#f4f8ff; box-shadow:inset 3px 0 0 var(--accent,#2468f2); }
body[data-page="RND"] .rnd-collection-purpose strong { display:block; margin-bottom:6px; color:#243958; font-size:14px; }
body[data-page="RND"] .rnd-collection-purpose p { margin:0; color:var(--muted,#657188); font-size:12px; line-height:1.65; }
body[data-page="RND"] .rnd-collection-boundary { grid-column:1/-1; margin:0; padding:10px 13px; border-radius:8px; background:#eef4ff; color:#405b82; font-size:12px; }
body[data-page="RND"] .rnd-portfolio-heading { display:grid; grid-template-columns:auto 1fr; gap:6px 14px; align-items:center; }
body[data-page="RND"] .rnd-portfolio-heading>.rd-back-to-list { grid-row:1/3; align-self:start; }
body[data-page="RND"] .rnd-portfolio-heading>h2,
body[data-page="RND"] .rnd-portfolio-heading>p { grid-column:2; margin-block:0; }
body[data-page="RND"] .rnd-portfolio-metrics { margin:0 0 16px; }
body[data-page="RND"] .rnd-project-grid { display:grid; grid-template-columns:repeat(3,minmax(270px,1fr)); gap:14px; margin-top:14px; }
body[data-page="RND"] .rnd-project-card { display:grid; gap:15px; min-width:0; padding:17px; border:1px solid var(--line,#dce3eb); border-radius:11px; background:var(--surface,#fff); cursor:pointer; transition:border-color .15s,box-shadow .15s; }
body[data-page="RND"] .rnd-project-card:hover { border-color:#9bb7ec; box-shadow:0 10px 28px rgb(31 58 105 / 8%); }
body[data-page="RND"] .rnd-project-card:focus-visible { outline:3px solid rgb(36 104 242 / 24%); outline-offset:2px; border-color:var(--accent,#2468f2); }
body[data-page="RND"] .rnd-project-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; }
body[data-page="RND"] .rnd-project-card-head h3 { margin:5px 0 0; font-size:17px; overflow-wrap:anywhere; }
body[data-page="RND"] .rnd-project-kicker { color:var(--accent,#2468f2); font-size:11px; font-weight:700; }
body[data-page="RND"] .rnd-project-identity { display:flex; flex-wrap:wrap; gap:6px; margin-top:-5px; }
body[data-page="RND"] .rnd-project-identity>span { padding:4px 7px; border-radius:6px; background:#eef4ff; color:#405b82; font-size:11px; }
body[data-page="RND"] .rnd-project-card-facts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
body[data-page="RND"] .rnd-project-card-facts>div { min-width:0; padding:9px; border-radius:8px; background:var(--raised,#f6f8fb); }
body[data-page="RND"] .rnd-project-card-facts span,
body[data-page="RND"] .rnd-project-card-facts strong { display:block; overflow:hidden; text-overflow:ellipsis; }
body[data-page="RND"] .rnd-project-card-facts span { color:var(--muted,#657188); font-size:10px; }
body[data-page="RND"] .rnd-project-card-facts strong { margin-top:3px; font-size:12px; white-space:nowrap; }
body[data-page="RND"] .rnd-project-risk { min-height:38px; margin:0; padding:9px 10px; border-radius:8px; background:#f5f8fd; color:#486078; font-size:11px; line-height:1.55; }
body[data-page="RND"] .rnd-project-risk.warn { background:#fff7df; color:#7b570a; }
body[data-page="RND"] .rnd-project-risk.bad { background:#fff0ed; color:#91291f; }
body[data-page="RND"] .rnd-project-card-actions { display:flex; justify-content:flex-end; }
body[data-page="RND"] .rnd-project-card-actions button { margin:0; }
body[data-page="RND"] .rnd-project-filter { padding:14px 16px; }
body[data-page="RND"] .rnd-project-filter>h2 { margin:0 0 10px; font-size:17px; }
body[data-page="RND"] .rnd-project-filter>.grid-form {
  display:grid;
  grid-template-columns:repeat(7,minmax(118px,1fr)) auto;
  gap:8px;
  align-items:end;
  margin-top:0;
}
body[data-page="RND"] .rnd-project-filter>.grid-form>label { gap:4px; min-width:0; font-size:12px; }
body[data-page="RND"] .rnd-project-filter>.grid-form input,
body[data-page="RND"] .rnd-project-filter>.grid-form select { min-width:0; min-height:40px; padding:7px 9px; }
body[data-page="RND"] .rnd-project-filter>.grid-form>button { min-width:96px; min-height:40px; margin:0; padding:7px 16px; }
body[data-page="RND"] .rnd-section-actions { display:flex; justify-content:flex-end; margin:0 0 12px; }
body[data-page="RND"] .rnd-section-actions button { margin:0; }
body[data-page="RND"] .project-audit-search { padding:18px 20px; }
body[data-page="RND"] .project-audit-search>h2 { margin-bottom:5px; }
body[data-page="RND"] .project-audit-search>p { margin:5px 0 12px; font-size:12px; }
body[data-page="RND"] .project-audit-search>.grid-form { grid-template-columns:repeat(6,minmax(0,1fr)); gap:10px 12px; align-items:end; }
body[data-page="RND"] .project-audit-search>.grid-form>label { gap:5px; min-width:0; }
body[data-page="RND"] .project-audit-search>.grid-form :is(input,select) { height:40px; padding:7px 9px; font-size:13px; }
body[data-page="RND"] .project-audit-search>.grid-form>button { height:40px; min-width:0; margin:0; padding:7px 12px; }
body[data-page="RND"] .rnd-work-card::before { position:absolute; inset:0 auto 0 0; width:4px; background:#72a0f8; content:""; }
body[data-page="RND"] .rnd-work-card.bad::before { background:#e45a50; }
body[data-page="RND"] .rnd-work-card.warn::before { background:#d89a25; }
body[data-page="RND"] .rnd-work-title { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }
body[data-page="RND"] .rnd-work-title>strong { font-size:15px; }
body[data-page="RND"] .rnd-meta { margin:5px 0 0; color:var(--muted,#657188); font-size:12px; }
body[data-page="RND"] .rnd-work-meta { display:flex; flex-wrap:wrap; gap:6px; margin-top:7px; }
body[data-page="RND"] .rnd-work-meta>span { padding:3px 7px; border-radius:6px; background:#f2f5f9; color:#59677d; font-size:11px; }
body[data-page="RND"] .rnd-work-hint { margin:9px 0 0; padding:8px 10px; border-radius:7px; background:#f7f9fc; color:#40506a; }
body[data-page="RND"] .rnd-work-hint.bad { background:#fff0ed; color:#8f241b; }
body[data-page="RND"] .rnd-work-hint.warn { background:#fff6df; color:#774800; }
body[data-page="RND"] .rnd-work-card-actions { display:flex; align-items:flex-start; }
body[data-page="RND"] .rnd-approval-loading,
body[data-page="RND"] .rnd-approval-error { padding:16px; border-radius:9px; background:#f7f9fc; color:var(--muted,#657188); }
body[data-page="RND"] .rnd-approval-error>p { margin:5px 0 12px; }
body[data-page="RND"] .rnd-approval-summary { display:flex; gap:8px; flex-wrap:wrap; margin-bottom:2px; }
body[data-page="RND"] .rnd-approval-summary>span { display:inline-flex; align-items:center; gap:5px; padding:6px 9px; border-radius:8px; background:#f2f5fa; color:#59677d; font-size:12px; }
body[data-page="RND"] .rnd-approval-summary b { color:var(--text,#172033); font-size:14px; }
body[data-page="RND"] .rnd-related-approval { display:grid; gap:9px; padding:14px; border:1px solid var(--line,#dce3eb); border-radius:10px; background:#fff; }
body[data-page="RND"] .rnd-related-approval-head,
body[data-page="RND"] .rnd-related-approval-foot { display:flex; justify-content:space-between; gap:12px; align-items:center; }
body[data-page="RND"] .rnd-related-approval-head>div { min-width:0; }
body[data-page="RND"] .rnd-related-approval-head strong,
body[data-page="RND"] .rnd-related-approval-project { display:block; }
body[data-page="RND"] .rnd-related-approval-project { margin-top:3px; overflow:hidden; color:var(--muted,#657188); font-size:12px; text-overflow:ellipsis; white-space:nowrap; }
body[data-page="RND"] .rnd-related-approval-reason { margin:0; color:#40506a; font-size:12px; line-height:1.6; }
body[data-page="RND"] .rnd-related-approval-foot>button { margin:0; white-space:nowrap; }
body[data-page="RND"] .rnd-approval-detail-actions { position:sticky; bottom:-28px; z-index:3; margin:18px -20px -28px; padding:14px 20px; border-top:1px solid var(--line,#dce3eb); background:#fff; }
body[data-page="RND"] .badge.yellow { background:#fff6df; color:#8a5b00; }
body[data-page="RND"] .badge.red { background:#fff0ed; color:#b42318; }
body[data-page="RND"] .badge.blue { background:#eaf0ff; color:#2457d6; }

body[data-page="RND"] .rnd-side-list { display:grid; gap:9px; }
body[data-page="RND"] .rnd-side-item {
  display:block;
  width:100%;
  margin:0;
  padding:6px 0 6px 12px;
  border:0;
  border-left:3px solid var(--line,#dce3eb);
  border-radius:0;
  background:transparent;
  color:inherit;
  text-align:left;
}
body[data-page="RND"] button.rnd-side-item:hover { border-left-color:var(--accent,#3568d4); background:#f8faff; }
body[data-page="RND"] .rnd-side-item strong,
body[data-page="RND"] .rnd-side-item small { display:block; }
body[data-page="RND"] .rnd-side-item small { margin-top:2px; color:var(--muted,#657188); }
body[data-page="RND"] .rnd-side-item.bad { border-left-color:#e45a50; }
body[data-page="RND"] .rnd-side-item.warn { border-left-color:#d89a25; }

body[data-page="RND"] .rnd-personal-view { display:grid; gap:7px; }
body[data-page="RND"] .rnd-personal-view-item {
  display:grid;
  gap:2px;
  width:100%;
  margin:0;
  padding:9px 10px;
  border:1px solid transparent;
  border-radius:8px;
  background:#f7f9fc;
  color:inherit;
  text-align:left;
}
body[data-page="RND"] .rnd-personal-view-item:hover,
body[data-page="RND"] .rnd-personal-view-item.selected { border-color:#a9c1f2; background:#eef4ff; }
body[data-page="RND"] .rnd-personal-view-item.selected strong { color:var(--accent,#2468f2); }
body[data-page="RND"] .rnd-personal-view-item small { color:var(--muted,#657188); font-size:11px; }

body[data-page="RND"] .rnd-scope-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
body[data-page="RND"] .rnd-scope-grid>section { padding:16px; border:1px solid var(--line,#dce3eb); border-radius:10px; background:#f8faff; }
body[data-page="RND"] .rnd-scope-grid strong { color:#213a61; }
body[data-page="RND"] .rnd-scope-grid p { margin:8px 0 0; color:var(--muted,#657188); font-size:12px; line-height:1.7; }

body[data-page="RND"] .rnd-members-layout { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:16px; align-items:start; }
body[data-page="RND"] .rnd-members-layout>.panel { min-width:0; margin:0; }
body[data-page="RND"] .rnd-member-summary { display:flex; align-items:center; gap:8px; margin:14px 0 12px; }
body[data-page="RND"] .rnd-member-actions { display:flex; gap:8px; margin-left:auto; }
body[data-page="RND"] .rnd-member-actions button,
body[data-page="RND"] .rnd-member-card-actions button { margin:0; }
body[data-page="RND"] .rnd-member-toolbar { display:grid; grid-template-columns:minmax(180px,1fr) 190px; gap:9px; margin:0 0 12px; }
body[data-page="RND"] .rnd-member-toolbar input,
body[data-page="RND"] .rnd-member-toolbar select { min-width:0; }
body[data-page="RND"] .rnd-member-list { display:grid; gap:9px; }
body[data-page="RND"] .rnd-member-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:12px; align-items:center; padding:12px; border:1px solid var(--line,#dce3eb); border-radius:10px; background:#fff; }
body[data-page="RND"] .rnd-member-card:hover { border-color:#a5b9df; background:#fbfcff; }
body[data-page="RND"] .rnd-member-avatar { display:grid; place-items:center; width:40px; height:40px; border:1px solid #d9e3f4; border-radius:50%; background:#eaf0fb; color:#31598b; font-weight:700; }
body[data-page="RND"] .rnd-member-copy strong,
body[data-page="RND"] .rnd-member-copy span { display:block; }
body[data-page="RND"] .rnd-member-copy span { margin-top:4px; color:var(--muted,#657188); font-size:12px; }
body[data-page="RND"] .rnd-member-card-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; flex-wrap:wrap; }
body[data-page="RND"] .rnd-member-aside { display:grid; gap:14px; min-width:0; }
body[data-page="RND"] .rnd-member-aside>.panel { margin:0; }
body[data-page="RND"] .rnd-member-role-list,
body[data-page="RND"] .rnd-responsibility-list { display:grid; gap:8px; margin-top:12px; }
body[data-page="RND"] .rnd-member-role-item { padding:10px 12px; border-left:3px solid #8ba7dc; background:#f7f9fd; }
body[data-page="RND"] .rnd-member-role-item strong,
body[data-page="RND"] .rnd-member-role-item span { display:block; }
body[data-page="RND"] .rnd-member-role-item span { margin-top:3px; color:var(--muted,#657188); font-size:11px; line-height:1.45; }
body[data-page="RND"] .rnd-responsibility-item { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 10px; border-radius:8px; background:var(--raised,#f6f8fb); }
body[data-page="RND"] .rnd-responsibility-item strong { color:#2457d6; font-size:12px; }
body[data-page="RND"] .rnd-permission-steps { overflow:hidden; }
body[data-page="RND"] .rnd-permission-step { position:relative; padding:0 0 15px 28px; }
body[data-page="RND"] .rnd-permission-step::before { content:""; position:absolute; left:8px; top:9px; bottom:-1px; width:1px; background:#ccd6e5; }
body[data-page="RND"] .rnd-permission-step:last-child { padding-bottom:0; }
body[data-page="RND"] .rnd-permission-step:last-child::before { display:none; }
body[data-page="RND"] .rnd-permission-step::after { content:""; position:absolute; left:4px; top:5px; width:9px; height:9px; border-radius:50%; background:var(--accent,#2468f2); box-shadow:0 0 0 3px #eaf0ff; }
body[data-page="RND"] .rnd-permission-step strong,
body[data-page="RND"] .rnd-permission-step span { display:block; }
body[data-page="RND"] .rnd-permission-step strong { font-size:12px; }
body[data-page="RND"] .rnd-permission-step span { margin-top:3px; color:var(--muted,#657188); font-size:11px; line-height:1.5; }
body[data-page="RND"] .rnd-member-badges { display:flex; flex-wrap:wrap; gap:7px; margin-top:12px; }

body[data-page="RND"] .rnd-collaboration-summary { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin-bottom:14px; }
body[data-page="RND"] .rnd-collaboration-summary>div { padding:12px 14px; border:1px solid var(--line,#dce3eb); border-radius:9px; background:#fff; }
body[data-page="RND"] .rnd-collaboration-summary strong,
body[data-page="RND"] .rnd-collaboration-summary span { display:block; }
body[data-page="RND"] .rnd-collaboration-summary strong { color:#2457d6; font-size:22px; }
body[data-page="RND"] .rnd-collaboration-summary span { margin-top:2px; color:var(--muted,#657188); font-size:11px; }
body[data-page="RND"] .rnd-collaboration-layout { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(300px,.55fr); gap:16px; align-items:start; }
body[data-page="RND"] .rnd-collaboration-layout.compact { grid-template-columns:1fr; }
body[data-page="RND"] .rnd-collaboration-layout>.panel { min-width:0; margin:0; }
body[data-page="RND"] .rnd-collaboration-head { display:grid; grid-template-columns:minmax(180px,1fr) auto; gap:9px; align-items:center; margin:14px 0 12px; }
body[data-page="RND"] .rnd-collaboration-head input { min-width:0; }
body[data-page="RND"] .rnd-collaboration-head button,
body[data-page="RND"] .rnd-file-link-head button { margin:0; }
body[data-page="RND"] .rnd-discussion-feed { display:grid; gap:10px; }
body[data-page="RND"] .rnd-discussion-card { display:grid; grid-template-columns:auto minmax(0,1fr); gap:11px; padding:13px; border:1px solid var(--line,#dce3eb); border-radius:10px; background:#fff; }
body[data-page="RND"] .rnd-discussion-avatar { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:#eaf0fb; color:#31598b; font-weight:700; }
body[data-page="RND"] .rnd-discussion-content { min-width:0; }
body[data-page="RND"] .rnd-discussion-content>header { display:flex; align-items:center; justify-content:space-between; gap:12px; }
body[data-page="RND"] .rnd-discussion-content time { color:var(--muted,#657188); font-size:11px; white-space:nowrap; }
body[data-page="RND"] .rnd-discussion-content>p { margin:8px 0 0; color:#334158; line-height:1.65; white-space:pre-wrap; overflow-wrap:anywhere; }
body[data-page="RND"] .rnd-discussion-content>footer { display:flex; justify-content:flex-end; margin-top:8px; }
body[data-page="RND"] .rnd-discussion-content>footer button { min-height:30px; margin:0; padding:4px 10px; }
body[data-page="RND"] .rnd-discussion-reply { margin-top:8px; padding:8px 10px; border-left:3px solid #9bb3df; background:#f6f8fc; }
body[data-page="RND"] .rnd-discussion-reply strong,
body[data-page="RND"] .rnd-discussion-reply span { display:block; }
body[data-page="RND"] .rnd-discussion-reply span { margin-top:2px; color:var(--muted,#657188); font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
body[data-page="RND"] .rnd-discussion-mentions { display:flex; align-items:center; flex-wrap:wrap; gap:5px; margin-top:9px; }
body[data-page="RND"] .rnd-discussion-mentions span { color:var(--muted,#657188); font-size:11px; }
body[data-page="RND"] .rnd-discussion-mentions b { padding:3px 7px; border-radius:999px; background:#edf3ff; color:#2457d6; font-size:11px; font-weight:600; }
body[data-page="RND"] .rnd-file-link-head { display:flex; align-items:center; justify-content:space-between; gap:9px; margin:14px 0 12px; }
body[data-page="RND"] .rnd-file-link-list { display:grid; gap:9px; }
body[data-page="RND"] .rnd-file-link-card { display:grid; grid-template-columns:auto minmax(0,1fr); gap:10px; align-items:start; padding:11px; border:1px solid var(--line,#dce3eb); border-radius:9px; background:#fff; }
body[data-page="RND"] .rnd-file-link-icon { display:grid; place-items:center; width:34px; height:38px; border:1px solid #d8e3f5; border-radius:7px; background:#edf3ff; color:#2457d6; font-size:11px; font-weight:700; }
body[data-page="RND"] .rnd-file-link-card strong,
body[data-page="RND"] .rnd-file-link-card span,
body[data-page="RND"] .rnd-file-link-card small { display:block; overflow:hidden; text-overflow:ellipsis; }
body[data-page="RND"] .rnd-file-link-card strong { overflow-wrap:anywhere; }
body[data-page="RND"] .rnd-file-link-card span { margin-top:4px; color:#526078; font-size:11px; white-space:nowrap; }
body[data-page="RND"] .rnd-file-link-card small { margin-top:4px; color:var(--muted,#657188); font-size:10px; white-space:nowrap; }

body[data-page="RND"] .rnd-stage-timeline-panel { padding-bottom:12px; overflow:hidden; }
body[data-page="RND"] .rnd-stagebar {
  display:flex;
  align-items:flex-start;
  margin-top:15px;
  padding:3px 2px 8px;
  overflow-x:auto;
}
body[data-page="RND"] .rnd-stage-node { position:relative; flex:1 0 132px; min-width:132px; color:var(--muted,#657188); }
body[data-page="RND"] .rnd-stage-node:not(:last-child)::after { content:""; position:absolute; top:13px; left:29px; right:-1px; height:2px; background:#d8dee8; }
body[data-page="RND"] .rnd-stage-dot { position:relative; z-index:2; display:grid; place-items:center; width:28px; height:28px; border-radius:50%; background:#e5eaf0; font-weight:700; }
body[data-page="RND"] .rnd-stage-node.done .rnd-stage-dot { background:#21805f; color:#fff; }
body[data-page="RND"] .rnd-stage-node.done:not(:last-child)::after { background:#21805f; }
body[data-page="RND"] .rnd-stage-node.current .rnd-stage-dot { background:var(--accent,#3568d4); color:#fff; box-shadow:0 0 0 4px #eaf0ff; }
body[data-page="RND"] .rnd-stage-node strong,
body[data-page="RND"] .rnd-stage-node small { display:block; max-width:120px; margin-top:6px; }
body[data-page="RND"] .rnd-stage-node strong { color:var(--text,#172033); }
body[data-page="RND"] .rnd-stage-node small { margin-top:1px; font-size:11px; }

body[data-page="RND"] .rnd-readiness { margin:0; }
body[data-page="RND"] .rnd-readiness>.rd-cards { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
body[data-page="RND"] .rnd-readiness>.rd-cards>.panel { min-height:86px; padding:12px; }
body[data-page="RND"] .rnd-readiness>.rd-cards strong { font-size:20px; }
body[data-page="RND"] .rnd-readiness-summary { margin:12px 0; padding:12px 14px; border-radius:9px; }
body[data-page="RND"] .rnd-readiness-summary>p { margin:4px 0 0; }
body[data-page="RND"] .rnd-readiness-summary.warn { background:#fff6df; color:#774800; }
body[data-page="RND"] .rnd-readiness-summary.ready { background:#eaf8f1; color:#087443; }

body[data-page="RND"] .rnd-stage-card { border-color:#dce3eb; }
body[data-page="RND"] .rnd-stage-card.current { border-top:3px solid var(--accent,#3568d4); box-shadow:0 8px 24px rgb(28 47 82 / 7%); }

/* 研发详情与编辑统一离开页面正文：详情从右侧抽屉打开，复杂创建/配置使用居中弹窗。 */
dialog.rnd-dialog {
  box-sizing:border-box;
  padding:0;
  border:1px solid var(--line,#dce3eb);
  background:var(--surface,#fff);
  color:var(--text,#172033);
  overflow:hidden;
  box-shadow:0 24px 80px rgb(25 40 70 / 28%);
}
dialog.rnd-dialog::backdrop { background:rgb(16 27 47 / 43%); backdrop-filter:blur(2px); }
dialog.rnd-dialog[open] { display:flex; flex-direction:column; }
dialog.rnd-dialog-drawer {
  width:min(780px,100vw);
  height:100vh;
  max-height:100vh;
  margin:0 0 0 auto;
  border-radius:14px 0 0 14px;
  animation:rnd-drawer-in .18s ease-out;
}
dialog.rnd-dialog-modal {
  width:min(920px,calc(100vw - 24px));
  max-height:min(94vh,960px);
  margin:auto;
  border-radius:14px;
}
dialog.rnd-dialog-wide { width:min(1280px,calc(100vw - 24px)); }
.rnd-dialog-head {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:18px;
  padding:18px 22px 16px;
  border-bottom:1px solid var(--line,#dce3eb);
  background:var(--surface,#fff);
  flex:0 0 auto;
}
.rnd-dialog-heading { min-width:0; }
.rnd-dialog-heading h2 { margin:3px 0 0; font-size:19px; line-height:1.4; }
.rnd-dialog-eyebrow { color:var(--accent,#2468f2); font-size:11px; font-weight:700; letter-spacing:.08em; }
.rnd-dialog-close { width:34px; height:34px; min-height:34px; margin:0; padding:0; border-color:transparent; background:transparent; font-size:24px; line-height:1; }
.rnd-dialog-body { min-height:0; padding:18px 20px 28px; overflow:auto; flex:1 1 auto; }
.rnd-dialog-body>.panel { margin:0 0 14px; box-shadow:none; }
.rnd-dialog-body>.panel:last-child { margin-bottom:0; }
.rnd-dialog-body .rnd-dialog-content-title { display:none; }
.rnd-dialog-body>.grid-form,
.rnd-dialog-body>.panel>.grid-form { margin-top:0; }
.rnd-dialog-body .rd-actions { position:sticky; bottom:-28px; z-index:3; margin:18px -20px -28px; padding:14px 20px; border-top:1px solid var(--line,#dce3eb); background:var(--surface,#fff); }
@keyframes rnd-drawer-in { from { transform:translateX(28px); opacity:.55; } to { transform:none; opacity:1; } }

body[data-page="RND"] .rnd-documents-layout {
  display:grid;
  grid-template-columns:210px minmax(0,1fr);
  gap:14px;
  align-items:start;
}
body[data-page="RND"] .rnd-documents-layout>.panel { margin:0; min-width:0; }
body[data-page="RND"] .rnd-folder-nav { position:sticky; top:70px; padding:10px; }
body[data-page="RND"] .rnd-folder-nav>h2,
body[data-page="RND"] .rnd-folder-nav>p { margin-inline:4px; }
body[data-page="RND"] .rnd-folder-list { display:grid; gap:3px; margin-top:8px; }
body[data-page="RND"] .rnd-folder-list>button {
  width:100%;
  min-height:34px;
  margin:0;
  padding:7px 9px 7px calc(9px + var(--folder-depth,0) * 13px);
  border-color:transparent;
  background:transparent;
  color:var(--muted,#657188);
  text-align:left;
}
body[data-page="RND"] .rnd-folder-list>button::before { content:'▾'; margin-right:7px; color:#96a3ba; }
body[data-page="RND"] .rnd-folder-list>button[data-folder=""]::before { content:'▦'; }
body[data-page="RND"] .rnd-folder-list>button:hover { background:#f3f6fc; color:var(--text,#202a3d); }
body[data-page="RND"] .rnd-folder-list>button.selected { background:var(--accent-soft,#edf3ff); color:var(--accent,#2468f2); border-color:#d5e2ff; font-weight:600; }
body[data-page="RND"] .rnd-document-actions { justify-content:flex-end; margin:-2px 0 10px; }
body[data-page="RND"] .rnd-template-grid { display:grid; grid-template-columns:repeat(3,minmax(260px,1fr)); gap:14px; }
body[data-page="RND"] .rnd-template-card { display:grid; gap:16px; margin:0; padding:18px; }
body[data-page="RND"] .rnd-template-card-head { display:flex; gap:12px; align-items:flex-start; }
body[data-page="RND"] .rnd-template-card-head>div { min-width:0; }
body[data-page="RND"] .rnd-template-card-head h3 { margin:5px 0; font-size:16px; overflow-wrap:anywhere; }
body[data-page="RND"] .rnd-template-card-head p { margin:0; color:var(--muted,#657188); font-size:12px; line-height:1.55; }
body[data-page="RND"] .rnd-template-icon { display:grid; width:42px; height:42px; flex:0 0 auto; place-items:center; border-radius:11px; color:#fff; background:linear-gradient(145deg,var(--accent,#2468f2),#6f6cf7); font-weight:800; }
body[data-page="RND"] .rnd-template-kicker { color:var(--accent,#2468f2); font-size:11px; font-weight:700; }
body[data-page="RND"] .rnd-template-card-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:7px; }
body[data-page="RND"] .rnd-template-card-metrics span { padding:9px 7px; border-radius:8px; background:var(--raised,#f6f8fb); color:var(--muted,#657188); font-size:11px; text-align:center; }
body[data-page="RND"] .rnd-template-card-metrics b { display:block; margin-bottom:2px; color:var(--text,#172033); font-size:17px; }
body[data-page="RND"] .rnd-template-flow { display:flex; gap:4px; }
body[data-page="RND"] .rnd-template-flow i { height:5px; min-width:8px; flex:1; border-radius:5px; background:#e5e9ef; }
body[data-page="RND"] .rnd-template-flow i.done { background:var(--accent,#2468f2); }
body[data-page="RND"] .rnd-template-card-actions { display:flex; flex-wrap:wrap; gap:7px; padding-top:2px; }
body[data-page="RND"] .rnd-template-card-actions button { margin:0; }
.rnd-dialog .rnd-template-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:9px; margin-top:14px; }
.rnd-dialog .rnd-template-metrics>div { padding:12px; border-radius:9px; background:var(--raised,#f6f8fb); }
.rnd-dialog .rnd-template-metrics strong,
.rnd-dialog .rnd-template-metrics span { display:block; }
.rnd-dialog .rnd-template-metrics strong { font-size:22px; }
.rnd-dialog .rnd-template-metrics span { margin-top:3px; color:var(--muted,#657188); font-size:11px; }
body[data-page="RND"] .rnd-review-facts { grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; margin:12px 0; }
body[data-page="RND"] .rnd-review-facts>.panel { min-height:82px; padding:12px; }
body[data-page="RND"] .rnd-review-facts strong { font-size:20px; }
body[data-page="RND"] .rnd-review-layout { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr); gap:14px; align-items:start; }
body[data-page="RND"] .rnd-review-layout>.panel { min-width:0; margin:0; background:#fff; box-shadow:none; }
body[data-page="RND"] .rnd-review-actions { margin-top:12px; }

.rnd-work-kpis .rd-health,
.rnd-readiness .rd-health,
.rnd-review-package .rd-health,
.rnd-execution-package .rd-health {
  min-height: 82px;
}

.rnd-readiness,
.rnd-review-package,
.rnd-execution-package,
.rnd-current-action {
  border-left: 3px solid var(--accent);
}

.rnd-review-package > .panel,
.rnd-execution-package > .panel,
.rnd-execution-package > form,
.rnd-current-action > form {
  margin-top: 12px;
}

.rnd-state-warning,
.rnd-state-unknown {
  border-radius: 8px;
  padding: 10px 12px;
  line-height: 1.6;
}

.rnd-state-warning {
  color: #8a5b00;
  background: #fff8df;
  border: 1px solid #ead39a;
}

.rnd-state-unknown {
  color: #59657a;
  background: #f4f6fa;
  border: 1px solid #dce2ec;
}

.rnd-secondary > summary {
  cursor: pointer;
  font-weight: 650;
}

.rnd-secondary[open] > summary {
  margin-bottom: 14px;
}

body[data-page="RND"] .rnd-role-board,
body[data-page="RND"] .rnd-score-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
  margin:14px 0;
}
body[data-page="RND"] .rnd-role-card,
body[data-page="RND"] .rnd-score-card { margin:0; min-width:0; }
body[data-page="RND"] .rnd-role-card-head,
body[data-page="RND"] .rnd-score-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; }
body[data-page="RND"] .rnd-role-card-head h3,
body[data-page="RND"] .rnd-score-head h3 { margin:7px 0 2px; font-size:17px; }
body[data-page="RND"] .rnd-role-card-head p,
body[data-page="RND"] .rnd-score-head p { margin:0; }
body[data-page="RND"] .rnd-role-people { display:grid; gap:8px; margin-top:14px; }
body[data-page="RND"] .rnd-role-person { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px; align-items:center; padding:10px; border:1px solid var(--line,#dce3eb); border-radius:9px; background:var(--raised,#f7f9fc); }
body[data-page="RND"] .rnd-role-person strong,
body[data-page="RND"] .rnd-role-person small { display:block; }
body[data-page="RND"] .rnd-role-person small { margin-top:3px; color:var(--muted,#657188); }
body[data-page="RND"] .rnd-score-value { color:var(--accent,#2468f2); font-size:24px; white-space:nowrap; }
body[data-page="RND"] .rnd-score-bar { height:8px; margin:14px 0 8px; overflow:hidden; border-radius:8px; background:#e9edf4; }
body[data-page="RND"] .rnd-score-bar i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#2468f2,#49a0ff); }
body[data-page="RND"] .rnd-score-evidence { padding:9px 11px; border-radius:8px; background:#f6f8fb; }
.rnd-dialog .rnd-role-editor { margin:12px 0; padding:14px; border:1px solid var(--line,#dce3eb); border-radius:10px; }
.rnd-dialog .rnd-system-identifier {
  width:100%;
  margin:10px 0 14px;
  color:var(--muted,#657188);
  font-size:12px;
}
.rnd-dialog .rnd-system-identifier > summary { cursor:pointer; user-select:none; }
.rnd-dialog .rnd-system-identifier > div {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  margin-top:8px;
  padding:9px 11px;
  border-radius:8px;
  background:#f6f8fb;
}
.rnd-dialog .rnd-system-identifier code { color:#33445f; font-size:12px; }
.rnd-dialog .rnd-system-identifier small { flex-basis:100%; margin:0; }
.rnd-dialog .rnd-permission-checks { display:grid; grid-template-columns:repeat(3,minmax(170px,1fr)); gap:10px; margin-top:10px; }
.rnd-dialog .rnd-permission-checks label {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:10px 12px;
  border:1px solid #e1e7f0;
  border-radius:9px;
  color:#33445f;
  background:#f7f9fc;
  cursor:pointer;
  line-height:1.35;
}
.rnd-dialog .rnd-permission-checks label:hover { border-color:#b9cff5; background:#f1f6ff; }
.rnd-dialog .rnd-permission-checks label:has(input:checked) { border-color:#a9c5ff; color:#174fae; background:#eaf2ff; }
.rnd-dialog .rnd-permission-checks input[type="checkbox"] {
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin:0;
}
.rnd-dialog .rnd-permission-actions {
  display:flex;
  grid-column:1 / -1;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-height:36px;
  margin-bottom:2px;
}
.rnd-dialog .rnd-permission-actions span { margin-right:auto; color:var(--muted,#657188); font-size:12px; }
.rnd-dialog .rnd-permission-actions button { min-height:32px; margin:0; padding:6px 12px; }
.rnd-dialog .rnd-folder-permission-table { min-width:680px; overflow:auto; }
.rnd-dialog .rnd-folder-permission-row { display:grid; grid-template-columns:minmax(180px,1fr) repeat(5,70px); align-items:center; min-height:48px; border-bottom:1px solid var(--line,#dce3eb); }
.rnd-dialog .rnd-folder-permission-row.header { color:var(--muted,#657188); font-size:12px; }
.rnd-dialog .rnd-folder-permission-row input { justify-self:center; width:18px; height:18px; }
body[data-page="RND"] .rnd-folder-actions { display:grid; gap:6px; margin-top:10px; }
body[data-page="RND"] .rnd-folder-actions button { width:100%; margin:0; }

body[data-page="RND"] .rnd-page-head,
body[data-page="RND"] .rnd-section-heading,
body[data-page="RND"] .rnd-section-toolbar {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
}
body[data-page="RND"] .rnd-page-head {
  margin:0 0 18px;
  padding:22px 24px;
  border:1px solid var(--line,#dce3eb);
  border-radius:14px;
  background:var(--panel,#fff);
}
body[data-page="RND"] .rnd-page-head h1 { margin:5px 0 6px; font-size:27px; line-height:1.2; }
body[data-page="RND"] .rnd-page-head p,
body[data-page="RND"] .rnd-section-heading p { margin:0; }
body[data-page="RND"] .rnd-page-head-actions,
body[data-page="RND"] .rnd-document-actions { flex:0 0 auto; margin:0; }
body[data-page="RND"] .rnd-project-list-tools {
  display:flex;
  align-items:center;
  gap:12px;
  margin:14px 0 18px;
}
body[data-page="RND"] .rnd-project-list-tools input {
  width:min(460px,100%);
  min-height:42px;
  margin:0;
}
body[data-page="RND"] .rnd-project-list-tools span { white-space:nowrap; }
body[data-page="RND"] .rnd-section-heading { margin-bottom:14px; }
body[data-page="RND"] .rnd-section-heading h2 { margin-top:0; }
body[data-page="RND"] .rnd-section-toolbar {
  align-items:center;
  margin-top:14px;
  padding-top:14px;
  border-top:1px solid var(--line,#dce3eb);
}
body[data-page="RND"] .rnd-section-toolbar strong,
body[data-page="RND"] .rnd-section-toolbar span { display:block; }
body[data-page="RND"] .rnd-section-toolbar span { margin-top:4px; }
body[data-page="RND"] .rnd-gantt-empty {
  max-width:760px;
  margin:18px auto 6px;
  padding:30px;
  text-align:center;
  border:1px dashed #bfd0ea;
  border-radius:14px;
  background:linear-gradient(180deg,#f8fbff,#fff);
}
body[data-page="RND"] .rnd-gantt-empty h3 { margin:8px 0; font-size:20px; }
body[data-page="RND"] .rnd-gantt-empty p { max-width:620px; margin:0 auto 18px; }
body[data-page="RND"] .rnd-gantt-empty .rd-actions { justify-content:center; }

dialog.rnd-template-editor-dialog {
  width:min(1480px,calc(100vw - 40px));
  height:calc(100vh - 32px);
  max-height:calc(100vh - 32px);
}
.rnd-template-editor-dialog .rnd-dialog-head {
  position:absolute;
  top:8px;
  right:10px;
  z-index:12;
  min-height:0;
  padding:0;
  border:0;
  background:transparent;
}
.rnd-template-editor-dialog .rnd-dialog-heading { display:none; }
.rnd-template-editor-dialog .rnd-dialog-close {
  pointer-events:auto;
  border:1px solid var(--line,#dce3eb);
  border-radius:50%;
  background:var(--surface,#fff);
  box-shadow:0 3px 12px rgb(25 40 70 / 10%);
}
.rnd-template-editor-dialog .rnd-dialog-body { display:flex; flex-direction:column; min-height:0; padding-top:0; overflow-x:hidden; }
.rnd-template-editor-dialog .rnd-dialog-body>.panel { flex:1 1 auto; min-height:0; margin-top:8px; }
.rnd-template-editor-dialog .rnd-dialog-body>.panel>h2:first-child,
.rnd-template-editor-dialog .rnd-dialog-body>.panel>h2:first-child + p {
  display:inline;
  vertical-align:baseline;
}
.rnd-template-editor-dialog .rnd-dialog-body>.panel>h2:first-child { margin:0 10px 0 0; }
.rnd-template-editor-dialog .rnd-dialog-body>.panel>h2:first-child + p { margin:0; }
.rnd-template-editor-dialog .rnd-dialog-body>.panel>h2:first-child + p::after {
  content:"";
  display:block;
  height:14px;
}
.rnd-template-editor-dialog .rnd-dialog-body>.panel>form {
  display:grid;
  grid-template-columns:190px minmax(0,1fr);
  grid-template-rows:minmax(0,auto) auto;
  column-gap:16px;
  align-items:start;
}
.rnd-template-editor-dialog .rnd-template-editor-nav {
  position:sticky;
  top:12px;
  z-index:4;
  display:flex;
  grid-column:1;
  grid-row:1 / span 2;
  flex-direction:column;
  gap:6px;
  margin:0;
  padding:10px;
  border:1px solid var(--line,#dce3eb);
  border-radius:12px;
  background:#f8faff;
}
.rnd-template-editor-dialog .rnd-template-editor-nav button {
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:8px;
  min-height:42px;
  width:100%;
  margin:0;
  padding:10px 11px;
  text-align:left;
  border-color:transparent;
  color:var(--muted,#657188);
  background:transparent;
}
.rnd-template-editor-dialog .rnd-template-editor-nav button span {
  display:inline-grid;
  width:23px;
  height:23px;
  place-items:center;
  border-radius:50%;
  color:#43617e;
  background:#e7edf6;
  font-size:12px;
  font-weight:700;
}
.rnd-template-editor-dialog .rnd-template-editor-nav button.selected {
  border-color:#b9d0ff;
  color:#1558d6;
  background:#eaf2ff;
  box-shadow:inset 0 0 0 1px #d2e1ff;
}
.rnd-template-editor-dialog .rnd-template-editor-nav button.selected span { color:#fff; background:#2468f2; }
.rnd-template-editor-dialog .rnd-dialog-body>.panel>form>:is(.grid-form,.rnd-template-editor-nav+div) { grid-column:2; grid-row:1; min-width:0; }
.rnd-template-editor-dialog .rd-stage-editor .rd-field-wide { grid-column:1 / -1; }
.rnd-template-editor-dialog .rd-stage-editor .rd-field-wide textarea { min-height:108px; resize:vertical; }
.rnd-template-editor-dialog .rnd-stage-workspace { display:grid; grid-template-columns:220px minmax(0,1fr); gap:14px; align-items:start; }
.rnd-template-editor-dialog .rnd-stage-list {
  position:sticky;
  top:0;
  display:flex;
  flex-direction:column;
  gap:7px;
  padding:10px;
  border:1px solid var(--line,#dce3eb);
  border-radius:12px;
  background:#fbfcff;
}
.rnd-template-editor-dialog .rnd-stage-list-head { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:2px 2px 7px; }
.rnd-template-editor-dialog .rnd-stage-list-head strong { font-size:14px; }
.rnd-template-editor-dialog .rnd-stage-list>.rnd-stage-list-head>button { display:block; width:auto; min-height:32px; padding:6px 9px; color:#fff; background:#2468f2; font-size:12px; }
.rnd-template-editor-dialog .rnd-stage-list button { display:grid; gap:4px; width:100%; margin:0; padding:11px 12px; text-align:left; border-color:transparent; background:#f5f7fb; }
.rnd-template-editor-dialog .rnd-stage-list button b { color:#34465f; }
.rnd-template-editor-dialog .rnd-stage-list button span { color:var(--muted,#657188); font-size:12px; font-weight:400; }
.rnd-template-editor-dialog .rnd-stage-list button.selected { border-color:#b9d0ff; background:#eaf2ff; }
.rnd-template-editor-dialog .rnd-stage-list button.selected b { color:#1558d6; }
.rnd-template-editor-dialog .rnd-stage-detail { min-width:0; }
.rnd-template-editor-dialog .rnd-stage-detail>.rd-stage-editor { margin:0; }
.rnd-template-editor-dialog .rnd-common-task-editor {
  margin:18px 0;
  padding:14px;
  border:1px solid var(--line,#dce3eb);
  border-radius:12px;
  background:#fbfcff;
}
.rnd-template-editor-dialog .rnd-common-task-head {
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.rnd-template-editor-dialog .rnd-common-task-head h3 { margin:0 0 5px; font-size:17px; }
.rnd-template-editor-dialog .rnd-common-task-head p { margin:0; color:var(--muted,#657188); font-size:12px; }
.rnd-template-editor-dialog .rnd-common-task-actions,
.rnd-template-editor-dialog .rnd-common-task-row-actions { display:flex; gap:7px; }
.rnd-template-editor-dialog .rnd-common-task-actions button,
.rnd-template-editor-dialog .rnd-common-task-row-actions button { margin:0; white-space:nowrap; }
.rnd-template-editor-dialog .rnd-common-task-table {
  overflow-x:hidden;
  border:1px solid var(--line,#dce3eb);
  border-radius:10px;
  background:#fff;
}
.rnd-template-editor-dialog .rnd-common-task-row {
  display:grid;
  grid-template-columns:minmax(120px,1.15fr) minmax(112px,.9fr) minmax(130px,1fr) 78px 94px 76px minmax(135px,1.2fr) 88px;
  gap:8px;
  align-items:center;
  min-width:0;
  padding:9px 10px;
  border-top:1px solid #e8edf5;
}
.rnd-template-editor-dialog .rnd-common-task-row:first-child { border-top:0; }
.rnd-template-editor-dialog .rnd-common-task-row-head {
  min-height:40px;
  color:#66758d;
  background:#f5f7fb;
  font-size:12px;
  font-weight:700;
}
.rnd-template-editor-dialog .rnd-common-task-row :is(input,select) { min-width:0; width:100%; }
.rnd-template-editor-dialog .rnd-common-task-row-actions button { min-width:0; padding:7px 5px; border-color:transparent; background:transparent; }
.rnd-template-editor-dialog .rnd-common-task-empty { margin:0; padding:30px; color:var(--muted,#657188); text-align:center; }
.rnd-dialog .rnd-task-library { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.rnd-dialog .rnd-task-library fieldset { padding:14px; border:1px solid var(--line,#dce3eb); border-radius:10px; }
.rnd-dialog .rnd-task-library label { display:grid; grid-template-columns:auto 1fr; gap:4px 9px; padding:9px; border-radius:8px; }
.rnd-dialog .rnd-task-library label:hover { background:#f3f7ff; }
.rnd-dialog .rnd-task-library label input { grid-row:1 / span 2; width:auto; margin-top:3px; }
.rnd-dialog .rnd-task-library label span { color:var(--text,#1f2d42); font-weight:600; }
.rnd-dialog .rnd-task-library label small { color:var(--muted,#657188); }
@media(max-width:980px){
  .rnd-template-editor-dialog .rnd-stage-workspace { grid-template-columns:1fr; }
  .rnd-template-editor-dialog .rnd-stage-list { position:static; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .rnd-dialog .rnd-task-library { grid-template-columns:1fr; }
}
.rnd-template-editor-dialog .rnd-transition-line {
  display:grid;
  grid-template-columns:minmax(160px,220px) minmax(160px,220px) minmax(160px,210px) auto;
  gap:12px;
  width:min(100%,820px);
  min-width:0;
  align-items:end;
}
.rnd-template-editor-dialog .rnd-transition-line > label { min-width:0; }
.rnd-template-editor-dialog .rnd-transition-line > button { min-width:96px; white-space:nowrap; }
.rnd-template-editor-dialog .rd-line:not(.rnd-transition-line) {
  display:grid;
  grid-template-columns:minmax(160px,320px) minmax(160px,280px) auto;
  gap:12px;
  width:min(100%,760px);
  min-width:0;
  align-items:end;
}
.rnd-template-editor-dialog .rd-line:not(.rnd-transition-line) > label { min-width:0; }
.rnd-template-editor-dialog .rd-line:not(.rnd-transition-line) > button { min-width:96px; white-space:nowrap; }
.rnd-file-link-card { grid-template-columns:auto minmax(0,1fr) auto !important; }
.rnd-file-card-actions { align-self:center; }
.rnd-file-card-actions button { margin:0; }
.rnd-template-editor-dialog .rnd-template-editor-nav+div>.panel { margin:0; }
.rnd-template-editor-dialog .rnd-template-save-actions {
  position:sticky;
  bottom:-24px;
  z-index:5;
  grid-column:2;
  grid-row:2;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  width:100%;
  min-height:48px;
  margin:22px 0 -24px;
  padding:6px 0;
  background:#fff;
  box-shadow:0 -10px 24px rgba(255,255,255,.94);
}
.rnd-template-editor-dialog .rnd-template-save-actions button {
  min-width:140px;
  min-height:46px;
  margin:0;
  border-radius:10px;
}
.rnd-template-editor-dialog .rnd-template-save-actions button.primary {
  box-shadow:0 8px 22px rgba(36,104,242,.18);
}
.rnd-template-editor-dialog .rnd-template-save-status {
  align-self:center;
  max-width:min(720px,55vw);
  margin-right:auto;
  color:#50709a;
  font-size:13px;
  line-height:1.4;
  white-space:normal;
}
.rnd-template-editor-dialog .rnd-template-save-status.error { color:#c43242; }

/* 桌面端“基本信息”固定为一屏；其它长配置页继续保留正常滚动。 */
@media (min-width:681px) and (min-height:800px) {
  .rnd-template-editor-dialog[data-template-section="base"] .rnd-dialog-body {
    padding:0 12px 12px;
    overflow-y:hidden;
  }
  .rnd-template-editor-dialog[data-template-section="base"] .rnd-dialog-body>.panel {
    flex:1 1 auto;
    height:auto;
    margin-top:8px;
    padding:12px 16px;
    overflow:hidden;
  }
  .rnd-template-editor-dialog[data-template-section="base"] .rnd-dialog-body>.panel>h2:first-child + p::after { height:8px; }
  .rnd-template-editor-dialog[data-template-section="base"] .rnd-dialog-body>.panel>form { height:calc(100% - 30px); }
  .rnd-template-editor-dialog[data-template-section="base"] .rnd-dialog-body>.panel>form>.grid-form {
    height:100%;
    align-content:space-between;
    gap:8px 12px;
  }
  .rnd-template-editor-dialog[data-template-section="base"] .grid-form>label { gap:4px; }
  .rnd-template-editor-dialog[data-template-section="base"] .grid-form :is(input,select) {
    min-height:40px;
    padding:7px 10px;
  }
  .rnd-template-editor-dialog[data-template-section="base"] .grid-form textarea {
    height:58px;
    min-height:58px;
    padding:8px 10px;
  }
  .rnd-template-editor-dialog[data-template-section="base"] .grid-form>fieldset {
    margin:0;
    padding:5px 10px 7px;
  }
  .rnd-template-editor-dialog[data-template-section="base"] .scope-selection {
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    align-items:center;
    gap:8px;
  }
  .rnd-template-editor-dialog[data-template-section="base"] .scope-selection>button { min-height:40px; margin:0; white-space:nowrap; }
  .rnd-template-editor-dialog[data-template-section="base"] .scope-selection>.selection-summary { max-height:none; padding:0; }
  .rnd-template-editor-dialog[data-template-section="base"] .rnd-template-save-actions {
    bottom:0;
    margin:10px 0 0;
  }
}

/* 单个任务专用流程：摘要放在任务表单内，详细设计使用大弹窗的左栏导航。 */
body[data-page="RND"] .rnd-task-flow-summary {
  grid-column:1/-1; display:grid; gap:12px; padding:16px; border:1px solid #cfdcf5;
  border-radius:12px; background:#f7faff;
}
body[data-page="RND"] .rnd-task-flow-summary-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
body[data-page="RND"] .rnd-task-flow-summary-head p { margin:4px 0 0; }
body[data-page="RND"] .rnd-task-flow-path { display:flex; align-items:center; gap:8px; overflow-x:auto; padding:3px 1px 7px; }
body[data-page="RND"] .rnd-task-flow-path span { position:relative; flex:0 0 auto; padding:7px 12px; border-radius:18px; background:#eaf1ff; color:#315b9d; font-size:12px; font-weight:650; }
body[data-page="RND"] .rnd-task-flow-path span:not(:last-child)::after { content:'→'; position:absolute; right:-14px; color:#8293ad; }
body[data-page="RND"] .rnd-task-flow-path span:not(:last-child) { margin-right:12px; }
body[data-page="RND"] .rnd-task-flow-path span.done { background:#e8f6ee; color:#278055; }
body[data-page="RND"] .rnd-task-flow-path span.review { background:#fff4d8; color:#8c6814; }
body[data-page="RND"] .rnd-task-flow-path span.cancelled { background:#f2f3f5; color:#6f7784; }
body[data-page="RND"] .rnd-task-flow-designer { display:grid; grid-template-columns:210px minmax(0,1fr); gap:18px; min-height:460px; }
body[data-page="RND"] .rnd-task-flow-nav { display:flex; flex-direction:column; gap:8px; padding:8px; border-right:1px solid var(--line,#dce3eb); }
body[data-page="RND"] .rnd-task-flow-nav button { justify-content:flex-start; min-height:42px; text-align:left; }
body[data-page="RND"] .rnd-task-flow-nav button.selected { border-color:#8bb4ff; background:#eaf2ff; color:#1764dc; font-weight:700; }
body[data-page="RND"] .rnd-task-flow-content { min-width:0; padding:4px 4px 20px; }
body[data-page="RND"] .rnd-task-flow-row { display:grid; grid-template-columns:34px minmax(0,1.5fr) minmax(0,1fr) auto; gap:12px; align-items:end; margin-bottom:10px; padding:12px; border:1px solid var(--line,#dce3eb); border-radius:10px; }
body[data-page="RND"] .rnd-task-flow-index { display:grid; place-items:center; width:28px; height:28px; margin-bottom:7px; border-radius:50%; background:#eaf2ff; color:#1764dc; font-weight:700; }
body[data-page="RND"] .rnd-task-flow-edge { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1fr) auto; gap:12px; align-items:end; margin-bottom:10px; padding:12px; border:1px solid var(--line,#dce3eb); border-radius:10px; }

@media (max-width: 760px) {
  .rnd-work-kpis,
  .rnd-readiness .rd-cards,
  .rnd-review-package .rd-cards,
  .rnd-execution-package .rd-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body[data-page="RND"] .rnd-task-flow-designer { grid-template-columns:1fr; }
  body[data-page="RND"] .rnd-task-flow-nav { flex-direction:row; overflow-x:auto; border-right:0; border-bottom:1px solid var(--line,#dce3eb); }
  body[data-page="RND"] .rnd-task-flow-row,
  body[data-page="RND"] .rnd-task-flow-edge { grid-template-columns:1fr 1fr; }
  body[data-page="RND"] .rnd-scope-grid { grid-template-columns:1fr; }
  body[data-page="RND"] .rnd-project-filter>.grid-form { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-page="RND"] .rnd-project-grid { grid-template-columns:repeat(2,minmax(250px,1fr)); }
  body[data-page="RND"] .rnd-template-grid { grid-template-columns:repeat(2,minmax(240px,1fr)); }
  body[data-page="RND"] .rnd-work-layout,
  body[data-page="RND"] .rnd-cockpit-layout,
  body[data-page="RND"] .rnd-review-layout,
  body[data-page="RND"] .rnd-documents-layout,
  body[data-page="RND"] .rnd-members-layout,
  body[data-page="RND"] .rnd-collaboration-layout { grid-template-columns:1fr; }
  body[data-page="RND"] .rnd-member-aside { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-page="RND"] .rnd-folder-nav { position:static; }
  body[data-page="RND"] .rnd-folder-list { display:flex; overflow-x:auto; padding-bottom:3px; }
  body[data-page="RND"] .rnd-folder-list>button { width:auto; flex:0 0 auto; padding-left:9px; }
  body[data-page="RND"] .rnd-role-board,
  body[data-page="RND"] .rnd-score-grid { grid-template-columns:1fr; }
}

@media (min-width: 981px) and (max-width: 1400px) {
  body[data-page="RND"] .rnd-project-filter>.grid-form { grid-template-columns:repeat(4,minmax(140px,1fr)); }
}

@media (max-width: 680px) {
  dialog.rnd-template-editor-dialog { width:calc(100vw - 16px); max-height:calc(100vh - 16px); }
  .rnd-template-editor-dialog .rnd-dialog-body>.panel>h2:first-child,
  .rnd-template-editor-dialog .rnd-dialog-body>.panel>h2:first-child + p { display:block; }
  .rnd-template-editor-dialog .rnd-dialog-body>.panel>h2:first-child { margin-bottom:4px; }
  .rnd-template-editor-dialog .rnd-dialog-body>.panel>form { display:block; }
  .rnd-template-editor-dialog .rnd-template-save-actions { bottom:-24px; width:100%; }
  .rnd-template-editor-dialog .rnd-template-save-actions button { flex:1 1 0; min-width:0; }
  .rnd-template-editor-dialog .rnd-template-editor-nav {
    position:sticky;
    top:0;
    flex-direction:row;
    margin:0 0 12px;
    overflow-x:auto;
    border-width:0 0 1px;
    border-radius:0;
    background:var(--panel,#fff);
  }
  .rnd-template-editor-dialog .rnd-template-editor-nav button { flex:0 0 158px; }
  .rnd-template-editor-dialog .rnd-transition-line { grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  .rnd-template-editor-dialog .rnd-transition-line > button { width:100%; margin-bottom:8px; }
  body[data-page="RND"] .rnd-page-head,
  body[data-page="RND"] .rnd-section-heading,
  body[data-page="RND"] .rnd-section-toolbar { flex-direction:column; gap:12px; }
  body[data-page="RND"] .rnd-page-head-actions,
  body[data-page="RND"] .rnd-page-head-actions button,
  body[data-page="RND"] .rnd-document-actions,
  body[data-page="RND"] .rnd-document-actions button,
  body[data-page="RND"] .rnd-section-toolbar button { width:100%; }
  body[data-page="RND"] .rnd-project-list-tools { align-items:stretch; flex-direction:column; }
  body[data-page="RND"] .rnd-project-list-tools input { width:100%; }
  body[data-page="RND"] .rnd-work-hero { flex-direction:column; gap:10px; }
  body[data-page="RND"] .rnd-work-hero-actions { width:100%; padding-top:0; }
  body[data-page="RND"] .rnd-work-hero-actions button { width:100%; }
  body[data-page="RND"] .subnav .rnd-create-project-nav { margin-left:10px; }
  body[data-page="RND"] .rnd-collection-guide { grid-template-columns:1fr; }
  body[data-page="RND"] .rnd-collection-boundary { grid-column:auto; }
  body[data-page="RND"] .rnd-portfolio-heading { grid-template-columns:1fr; }
  body[data-page="RND"] .rnd-portfolio-heading>.rd-back-to-list,
  body[data-page="RND"] .rnd-portfolio-heading>h2,
  body[data-page="RND"] .rnd-portfolio-heading>p { grid-column:1; grid-row:auto; }
  body[data-page="RND"] .project-audit-search>.grid-form { grid-template-columns:1fr; }
  body[data-page="RND"] .rnd-project-grid { grid-template-columns:1fr; }
  body[data-page="RND"] .rnd-template-grid { grid-template-columns:1fr; }
  .rnd-dialog .rnd-template-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
  dialog.rnd-dialog-drawer { width:100vw; border-radius:0; }
  dialog.rnd-dialog-modal,
  dialog.rnd-dialog-wide { width:calc(100vw - 16px); max-height:calc(100vh - 16px); }
  .rnd-dialog-head { padding:15px 16px; }
  .rnd-dialog-body { padding:15px 14px 24px; }
  body[data-page="RND"] .rnd-work-kpis,
  body[data-page="RND"] .rnd-cockpit-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  body[data-page="RND"] .rnd-work-card { grid-template-columns:1fr; }
  body[data-page="RND"] .rnd-related-approval-foot { align-items:flex-start; flex-direction:column; }
  body[data-page="RND"] .rnd-related-approval-foot>button { width:100%; }
  body[data-page="RND"] .rnd-member-summary { align-items:flex-start; flex-wrap:wrap; }
  body[data-page="RND"] .rnd-member-actions { width:100%; margin-left:0; }
  body[data-page="RND"] .rnd-member-toolbar { grid-template-columns:1fr; }
  body[data-page="RND"] .rnd-member-card { grid-template-columns:auto minmax(0,1fr); }
  body[data-page="RND"] .rnd-member-card-actions { grid-column:1/-1; justify-content:flex-start; }
  body[data-page="RND"] .rnd-member-aside { grid-template-columns:1fr; }
  body[data-page="RND"] .rnd-collaboration-summary { grid-template-columns:1fr; }
  body[data-page="RND"] .rnd-collaboration-head { grid-template-columns:1fr; }
  body[data-page="RND"] .rnd-segmented { width:100%; gap:16px; }
  body[data-page="RND"] .rnd-review-facts { grid-template-columns:1fr; }
  .rnd-dialog .rnd-permission-checks { grid-template-columns:1fr; }
  body[data-page="RND"] .rnd-role-person { grid-template-columns:auto minmax(0,1fr); }
  body[data-page="RND"] .rnd-role-person .rnd-member-card-actions { grid-column:1/-1; }
}
/* Persistent common-task-library page */
body[data-page="RND"] .rnd-library-summary{display:grid;grid-template-columns:repeat(4,minmax(150px,1fr));gap:14px;margin-bottom:16px}
body[data-page="RND"] .rnd-library-summary .panel{margin:0;min-height:96px}
body[data-page="RND"] .rnd-library-tools{display:grid;grid-template-columns:minmax(240px,1.5fr) minmax(150px,.7fr) minmax(140px,.6fr) auto auto;gap:12px;align-items:center;margin:16px 0}
body[data-page="RND"] .rnd-library-tools input,body[data-page="RND"] .rnd-library-tools select{width:100%;min-width:0}
body[data-page="RND"] .rnd-library-tools .muted{white-space:nowrap}
@media(max-width:1050px){body[data-page="RND"] .rnd-library-summary{grid-template-columns:repeat(2,minmax(150px,1fr))}body[data-page="RND"] .rnd-library-tools{grid-template-columns:1fr 1fr}body[data-page="RND"] .rnd-library-tools input{grid-column:1/-1}}
@media(max-width:680px){body[data-page="RND"] .rnd-library-summary,body[data-page="RND"] .rnd-library-tools{grid-template-columns:1fr}body[data-page="RND"] .rnd-library-tools input{grid-column:auto}}
