/* Styles are confined to this prototype. No external fonts or assets required. */
.scm-prototype .project-stage-bar { display:flex; align-items:stretch; min-width:0; border-bottom:1px solid var(--line); }
.scm-prototype .project-stage-bar .project-stage-tabs { flex:1; min-width:0; border-bottom:0; }
.scm-prototype .project-stage-bar .stage-tab { padding:12px 11px; gap:6px; }
.scm-prototype .terminated-tab { margin-left:18px; border-left:1px solid var(--line); align-self:stretch; }
.scm-prototype .badge.project-stage { border:0; padding:4px 9px; font-size:12px; }
.scm-prototype .badge.stage-draft { color:#647078; background:#f0f2f4; }
.scm-prototype .badge.stage-preparing { color:#22633c; background:#ddf2e3; }
.scm-prototype .badge.stage-reviewing { color:#245b9b; background:#e0edff; }
.scm-prototype .badge.stage-open { color:#70429e; background:#eee1fb; }
.scm-prototype .badge.stage-closed { color:#9b5700; background:#ffecd0; }
.scm-prototype .badge.stage-awarded { color:#c33434; background:transparent; border:0; box-shadow:none; }
.scm-prototype .badge.stage-terminated { color:#687078; background:#eff1f2; }
.scm-prototype .project-search { flex-wrap:wrap; }
.scm-prototype .project-search .btn { white-space:nowrap; }
.scm-prototype .terminate-link { color:#8c6464; }
.scm-prototype .type-field { margin:18px 0; padding:12px 14px; border:1px solid var(--line); border-radius:6px; }
.scm-prototype .type-field legend { font-size:13px; padding:0 5px; }
.scm-prototype .type-options,.scm-prototype .type-tags { display:flex; flex-wrap:wrap; gap:6px 10px; }
.scm-prototype .type-option { display:inline-flex; align-items:center; gap:6px; padding:6px 8px; font-size:13px; cursor:pointer; }
.scm-prototype .type-option input { width:auto; min-height:0; margin:0; }
.scm-prototype .selection-toolbar,.scm-prototype .expert-type-filter { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:10px 0; }
.scm-prototype .selection-toolbar input { flex:1; min-width:140px; }
.scm-prototype .selection-toolbar select { width:180px; }
.scm-prototype .supplier-selection-list,.scm-prototype .expert-selection-list { max-height:280px; overflow:auto; border:1px solid var(--line); border-radius:6px; }
.scm-prototype .supplier-selection-row,.scm-prototype .expert-selection-row { display:grid; grid-template-columns:20px minmax(120px,1fr) minmax(100px,1fr); align-items:center; gap:10px; padding:9px 12px; border-bottom:1px solid var(--line); cursor:pointer; font-size:13px; }
.scm-prototype .supplier-selection-row:last-child,.scm-prototype .expert-selection-row:last-child { border-bottom:0; }
.scm-prototype .supplier-selection-row:has(input:checked),.scm-prototype .expert-selection-row:has(input:checked) { background:#f0f8f5; }
.scm-prototype .supplier-selection-row[hidden],.scm-prototype .expert-selection-row[hidden] { display:none!important; }
.scm-prototype .supplier-selection-row input,.scm-prototype .expert-selection-row input { width:auto; min-height:0; margin:0; }
.scm-prototype .selection-name small { display:block; color:var(--muted); font-size:11px; }
.scm-prototype .expert-selection-row small { display:block; font-size:11px; }
.scm-prototype #item-rows .item-editor .form-grid { grid-template-columns:minmax(0,1.4fr) minmax(80px,.8fr) minmax(0,1.4fr) 75px 80px; }
@media(max-width:640px) { .scm-prototype .terminated-tab { margin-left:4px; } .scm-prototype .project-stage-bar .stage-tab { padding:10px 8px; } .scm-prototype .supplier-selection-row,.scm-prototype .expert-selection-row { grid-template-columns:18px minmax(0,1fr); } .scm-prototype .supplier-selection-row>:last-child,.scm-prototype .expert-selection-row>:last-child { grid-column:2; } .scm-prototype #item-rows .item-editor .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
.scm-prototype .project-stage-tabs { display:flex; gap:4px; overflow-x:auto; border-bottom:1px solid var(--line); padding:0 0 1px; }
.scm-prototype .stage-tab { position:relative; display:flex; align-items:center; flex-shrink:0; gap:8px; padding:12px 16px; border:0; border-bottom:3px solid transparent; background:transparent; white-space:nowrap; color:var(--muted); }
.scm-prototype .project-stage-tabs .stage-tab + .stage-tab::before { content:""; position:absolute; left:-2px; top:12px; bottom:12px; width:1px; background:#cbd8d5; }
.scm-prototype .stage-tab .stage-count { min-width:20px; padding:0 5px; border-radius:4px; background:#e8eeec; font-size:12px; }
.scm-prototype .stage-tab.active { color:var(--blue); border-bottom-color:var(--blue); font-weight:700; }
.scm-prototype .stage-tab.active .stage-count { background:var(--blue-light); }
.scm-prototype .unread-slot { display:inline-flex; align-items:center; flex-shrink:0; vertical-align:middle; }
.scm-prototype .unread-slot:empty { display:none; }
.scm-prototype .unread-dot { display:inline-block; width:8px; height:8px; flex:0 0 8px; border-radius:50%; background:#e44040; vertical-align:middle; }
.scm-prototype .unread-count { display:inline-flex; align-items:center; justify-content:center; min-width:19px; height:19px; padding:0 5px; border-radius:10px; background:#d93636; color:#fff; font-size:11px; font-weight:700; line-height:1; }
.scm-prototype .nav-item .unread-slot { margin-left:auto; }
.scm-prototype .tab .unread-slot { margin-left:7px; }
.scm-prototype .project-row-title .unread-slot { position:absolute; top:0; right:0; margin:0; }
.scm-prototype .stage-tab .unread-slot { position:absolute; top:4px; right:4px; margin:0; }
.scm-prototype .notification-card.is-unread { border-left:3px solid #e44040; }
.scm-prototype .notification-card h3 .unread-dot { margin-right:8px; }
.scm-prototype .project-list-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.scm-prototype .project-list-options { display:flex; align-items:center; justify-content:flex-end; gap:14px; flex-wrap:wrap; font-size:13px; }
.scm-prototype .project-sort-control { display:flex; align-items:center; gap:8px; white-space:nowrap; }
.scm-prototype .project-sort-control select { width:140px; }
.scm-prototype .project-search { display:flex; gap:8px; align-items:center; }
.scm-prototype .project-search input { width:300px; max-width:100%; }
.scm-prototype .panel.project-list-panel { padding:0; overflow:hidden; }
.scm-prototype .project-list-table { min-width:980px; font-size:13px; }
.scm-prototype .project-list-table td { padding:11px 16px; vertical-align:middle; white-space:nowrap; }
.scm-prototype .text-link.project-row-title { position:relative; display:block; width:max-content; max-width:290px; padding:4px 12px 0 0; font-weight:600; text-align:left; }
.scm-prototype .project-title-text { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.scm-prototype .project-list-table td small { display:block; margin-top:4px; }
.scm-prototype .project-list-table .actions { flex-wrap:nowrap; gap:6px; }
.scm-prototype .technical-project-config { margin:20px 0; border:1px solid var(--line); border-radius:8px; padding:18px; background:#f6faf9; }
.scm-prototype .technical-project-config h3 { margin-bottom:12px; }
.scm-prototype .technical-project-config #technical-settings>* { margin-top:16px; }
.scm-prototype .technical-criterion { display:grid; grid-template-columns:1.2fr 85px 1.8fr auto; align-items:end; gap:10px; margin-top:10px; }
.scm-prototype .technical-summary { display:flex; flex-wrap:wrap; gap:16px 28px; margin-bottom:18px; }
.scm-prototype .technical-score-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; padding-top:18px; }
.scm-prototype .technical-score-form>.field:has(textarea),.scm-prototype .technical-score-form>.actions { grid-column:1/-1; }
.scm-prototype .catalog-picker { display:flex; gap:12px; align-items:center; margin:16px 0; }
.scm-prototype .catalog-picker select { flex:1; min-width:0; }
.scm-prototype .stepper { overflow-x:auto; }
.scm-prototype .stepper .step { min-width:110px; }
@media(max-width:640px) { .scm-prototype .project-list-toolbar { flex-wrap:wrap; } .scm-prototype .project-search { width:100%; } .scm-prototype .project-search input { flex:1; min-width:0; } .scm-prototype .technical-criterion { grid-template-columns:minmax(0,1fr) 80px; } .scm-prototype .technical-score-form { grid-template-columns:1fr; } .scm-prototype .catalog-picker { flex-wrap:wrap; } }
/* Demonstration controls remain outside the business workspace. */
.scm-prototype .account-control { display:flex; align-items:center; gap:12px; }
.scm-prototype .account-control small { display:block; color:var(--muted); font-size:11px; }
.scm-prototype .account-avatar { display:grid; place-items:center; width:34px; height:34px; border-radius:50%; color:var(--green); background:var(--blue-light); font-weight:700; }
.scm-prototype .quick-account-switch { display:flex; align-items:center; gap:8px; }
.scm-prototype .quick-account-switch>.btn { white-space:nowrap; }
.scm-prototype .quick-switch-menu { position:fixed; inset:70px 20px auto auto; margin:0; padding:8px; width:260px; max-width:calc(100vw - 24px); overflow:auto; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); box-shadow:0 10px 32px #153b4326; }
.scm-prototype .quick-switch-menu>p { padding:8px 10px; font-size:12px; color:var(--muted); }
.scm-prototype .quick-switch-menu>.btn { display:flex; width:100%; justify-content:flex-start; text-align:left; padding:10px 12px; border-color:transparent; background:transparent; }
.scm-prototype .quick-switch-menu>.btn.selected { color:var(--blue); background:var(--blue-light); }
.scm-prototype .quick-switch-menu>.btn:disabled { opacity:.5; cursor:not-allowed; }
.scm-prototype .quick-switch-menu .btn small { margin-top:3px; }
.scm-prototype[data-demo] .topbar { flex-wrap:wrap; }
.scm-prototype[data-demo] .account-control { margin-left:auto; flex-wrap:wrap; }
@media(max-width:640px) { .scm-prototype .quick-account-switch { order:2; width:100%; } .scm-prototype .quick-account-switch>.btn { flex:1; justify-content:center; } }
.scm-prototype .login-shell { min-height:100vh; display:grid; place-items:center; padding:24px; background:#edf3f1; }
.scm-prototype .login-card { width:100%; max-width:420px; background:#fff; border:1px solid var(--line); border-radius:14px; padding:36px; box-shadow:0 16px 48px #173c4010; }
.scm-prototype .login-brand { display:flex; align-items:center; gap:16px; margin-bottom:30px; }
.scm-prototype .login-brand .brand-icon { background:var(--nav); color:#fff; }
.scm-prototype .login-card form>.btn { width:100%; margin-top:12px; }
.scm-prototype .login-foot { display:flex; align-items:center; justify-content:space-between; border-top:1px solid var(--line); margin-top:28px; padding-top:16px; }
.scm-prototype .control-page { max-width:1200px; margin:0 auto; }
.scm-prototype .demo-console { position:fixed; right:20px; bottom:20px; z-index:50; width:300px; border:1px solid #b5ceca; border-radius:12px; background:#fff; box-shadow:0 8px 32px #153b4326; overflow:hidden; }
.scm-prototype .demo-console[open] { width:410px; }
.scm-prototype .demo-console summary { display:flex; align-items:center; gap:12px; padding:14px 18px; background:var(--nav); color:#fff; cursor:pointer; list-style:none; font-weight:600; }
.scm-prototype .demo-console summary::-webkit-details-marker { display:none; }
.scm-prototype .demo-console summary small { margin-left:auto; font-size:12px; font-weight:400; color:#c6e3df; }
.scm-prototype .demo-console summary:focus-visible { outline:3px solid #51c8b8; outline-offset:-4px; }
.scm-prototype .demo-toggle::after { content:'＋'; }
.scm-prototype .demo-console[open] .demo-toggle::after { content:'−'; }
.scm-prototype .demo-console-body { max-height:calc(100dvh - 116px); overflow:auto; padding:16px; overscroll-behavior:contain; }
.scm-prototype .demo-console-intro { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:16px; font-size:12px; }
.scm-prototype .demo-console .panel { padding:16px; margin-bottom:12px; }
.scm-prototype .demo-console .panel:last-child { margin-bottom:0; }
.scm-prototype .demo-console h2 { font-size:15px; }
.scm-prototype .demo-console .form-grid { grid-template-columns:1fr; gap:10px; }
.scm-prototype .demo-console .section-title { margin-bottom:12px; }
.scm-prototype .demo-console select { width:100%; min-width:0; }
.scm-prototype .demo-mail { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); font-size:12px; }
.scm-prototype .demo-mail:last-child { border-bottom:0; }
.scm-prototype .demo-mail>div { min-width:0; overflow-wrap:anywhere; }
.scm-prototype .demo-mail small { display:block; margin-top:4px; }
.scm-prototype .demo-mail .btn { flex-shrink:0; }
.scm-prototype[data-demo] .content { padding-bottom:100px; }
@media(max-width:640px) { .scm-prototype .demo-console { right:12px; bottom:12px; max-width:calc(100vw - 24px); } .scm-prototype .demo-console[open] { width:calc(100vw - 24px); } .scm-prototype .demo-console-body { max-height:calc(100dvh - 100px); padding:12px; } }
@media(max-width:640px) { .scm-prototype .account-control {width:100%;} .scm-prototype .account-control>.btn {margin-left:auto;} .scm-prototype .login-card {padding:28px 22px;} }
.scm-prototype {
  --nav: #153b43;
  --nav-deep: #102e35;
  --blue: #087f79;
  --blue-hover: #066762;
  --blue-light: #eaf6f3;
  --ink: #233a40;
  --muted: #687d82;
  --line: #dfe8e6;
  --surface: #fff;
  --background: #f4f7f6;
  --green: #18724c;
  --amber: #895b10;
  --red: #b13838;
  margin: 0;
  min-width: 0;
  background: var(--background);
  color: var(--ink);
  font: 14px/1.6 "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  -webkit-text-size-adjust: 100%;
}
.scm-prototype *, .scm-prototype *::before, .scm-prototype *::after { box-sizing: border-box; }
.scm-prototype :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure) { margin: 0; }
.scm-prototype :where(header, footer, main, section, nav) { min-width: 0; }
.scm-prototype :where(button, input, select, textarea) { font: inherit; }
.scm-prototype button, .scm-prototype select { cursor: pointer; }
.scm-prototype button { color: inherit; }
.scm-prototype a { color: var(--blue); text-underline-offset: 3px; }
.scm-prototype img, .scm-prototype svg { max-width: 100%; vertical-align: middle; }
.scm-prototype :focus-visible { outline: 3px solid #6cacf1; outline-offset: 3px; }
.scm-prototype [hidden] { display: none !important; }
.scm-prototype button:disabled, .scm-prototype input:disabled, .scm-prototype select:disabled { cursor: not-allowed; opacity: .6; }
.scm-prototype h1 { font-size: 26px; line-height: 1.4; font-weight: 700; letter-spacing: -.4px; }
.scm-prototype h2 { font-size: 18px; line-height: 1.5; font-weight: 700; }
.scm-prototype h3 { font-size: 16px; line-height: 1.5; font-weight: 700; }
.scm-prototype p + p { margin-top: 8px; }
.scm-prototype noscript { display: block; margin: 24px; padding: 20px; background: white; border: 1px solid var(--line); }

/* Main frame */
.scm-prototype .shell { display: grid; grid-template-columns: 228px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.scm-prototype .sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 22px; padding: 26px 16px 20px; background: var(--nav); color: #f4f8ff; }
.scm-prototype .brand { display: flex; gap: 11px; align-items: center; min-height: 42px; padding: 0 7px; color: #fff; text-decoration: none; font-size: 18px; font-weight: 700; line-height: 1.4; }
.scm-prototype .brand small, .scm-prototype .brand-sub { display: block; margin-top: 3px; color: #c4d6ef; font-size: 12px; font-weight: 400; letter-spacing: .5px; }
.scm-prototype .brand-icon { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border: 1px solid #87b2e7; border-radius: 9px; background: #fff; color: var(--nav); font-size: 23px; font-weight: 800; }
.scm-prototype .nav-group { display: grid; gap: 5px; margin-bottom: 22px; }
.scm-prototype .nav-group > :is(h2, h3, h4, .nav-label, .nav-title) { padding: 0 12px 7px; color: #b7ceec; font-size: 12px; font-weight: 500; letter-spacing: 1px; }
.scm-prototype .sidebar > .nav-group { display: block; margin: 0 12px -12px; color: #b7ceec; font-size: 12px; letter-spacing: 1px; }
.scm-prototype .sidebar nav { display: grid; gap: 5px; }
.scm-prototype .nav-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 43px; padding: 10px 12px; border: 1px solid transparent; border-radius: 6px; background: transparent; color: #e3eeff; text-align: left; text-decoration: none; font-size: 14px; line-height: 1.5; }
.scm-prototype .nav-item:hover { background: #ffffff13; color: #fff; }
.scm-prototype .nav-item.active { background: #fff; border-color: #fff; color: var(--nav-deep); font-weight: 700; box-shadow: 0 2px 4px #102c5a12; }
.scm-prototype .nav-icon { width: 20px; flex: 0 0 20px; text-align: center; font-size: 17px; }
.scm-prototype .nav-count { margin-left: auto; padding: 0 6px; border-radius: 4px; background: #ffffff20; font-size: 12px; }
.scm-prototype .nav-item.active .nav-count { background: #e9f1fc; color: var(--nav); }
.scm-prototype .sidebar-foot { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid #ffffff26; color: #ccdcf1; font-size: 12px; line-height: 1.8; overflow-wrap: anywhere; }
.scm-prototype .sidebar-foot a { color: #fff; }
.scm-prototype .workspace { min-width: 0; display: flex; flex-direction: column; }
.scm-prototype .topbar { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 88px; padding: 18px 30px; background: var(--surface); border-bottom: 1px solid var(--line); }
.scm-prototype .breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: 13px; }
.scm-prototype .breadcrumb strong, .scm-prototype .breadcrumb b { color: var(--ink); font-weight: 600; }
.scm-prototype .breadcrumb a { text-decoration: none; }
.scm-prototype .topbar-leading,.scm-prototype .modal-heading { display:flex; align-items:center; gap:12px; min-width:0; }
.scm-prototype .btn.back-button { flex:0 0 34px; width:34px; min-height:34px; padding:0; font-size:23px; line-height:1; }
.scm-prototype .back-button:disabled { opacity:.35; }
.scm-prototype .project-rule-selector { display:flex; align-items:center; gap:8px; }
.scm-prototype .project-rule-selector select { flex:1; min-width:0; }
.scm-prototype .btn.rule-help-button { flex:0 0 32px; width:32px; height:32px; min-height:32px; padding:0; border:1px solid #b4ccc6; border-radius:50%; background:#fff; color:var(--blue); font-weight:700; }
.scm-prototype .btn.rule-help-button[aria-expanded="true"] { background:var(--blue-light); }
.scm-prototype .project-rule-details { margin-top:12px; padding:12px 14px; border:1px solid var(--line); border-radius:6px; background:#f6faf9; font-size:13px; overflow-wrap:anywhere; }
.scm-prototype .project-rule-details[hidden] { display:none; }
.scm-prototype .project-rule-details table { min-width:0; }
.scm-prototype .project-rule-details .formula { white-space:normal; overflow-wrap:anywhere; }
.scm-prototype .role-control { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 8px 12px; border: 1px solid #c8dbf4; border-radius: 7px; background: #f4f8ff; }
.scm-prototype .role-control > label, .scm-prototype .role-control > .label { margin: 0; color: #28486f; font-size: 14px; font-weight: 700; white-space: nowrap; }
.scm-prototype .identity-select { min-width: 208px; min-height: 42px; border-color: #a9c6ed; background-color: white; color: #174b91; font-size: 15px; font-weight: 600; }
.scm-prototype .demo-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; padding: 10px 30px; background: #eaf2ff; border-bottom: 1px solid #d6e4fa; color: #385b88; font-size: 12px; line-height: 1.7; }
.scm-prototype .demo-strip a { color: #275d9e; }
.scm-prototype .content { flex: 1; width: 100%; max-width: 1650px; min-width: 0; padding: 28px 30px 40px; margin: 0 auto; }
.scm-prototype .content > * + * { margin-top: 20px; }
.scm-prototype .page-head { display: flex; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.scm-prototype .page-head > :first-child { min-width: 0; flex: 1 1 260px; }
.scm-prototype .page-head p { margin-top: 7px; color: var(--muted); }
.scm-prototype .actions, .scm-prototype .inline { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; }
.scm-prototype .actions { justify-content: flex-end; }
.scm-prototype .statusbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 14px 30px; border-top: 1px solid var(--line); color: var(--muted); background: #fff; font-size: 12px; }

/* Controls */
.scm-prototype .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 8px 16px; border: 1px solid #c8d3e1; border-radius: 5px; background: white; color: #334b68; font-weight: 500; line-height: 1.5; text-decoration: none; white-space: normal; }
.scm-prototype .btn:hover:not(:disabled) { border-color: #89abd5; background: #f4f8fd; }
.scm-prototype .btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.scm-prototype .btn.primary:hover:not(:disabled) { background: var(--blue-hover); border-color: var(--blue-hover); }
.scm-prototype .btn.success { background: var(--green); border-color: var(--green); color: #fff; }
.scm-prototype .btn.success:hover:not(:disabled) { background: #125c3c; border-color: #125c3c; }
.scm-prototype .btn.danger { color: var(--red); border-color: #e7bbbb; background: #fff; }
.scm-prototype .btn.danger:hover:not(:disabled) { background: #fff3f3; border-color: #ca8989; }
.scm-prototype .btn.small { min-height: 32px; padding: 5px 11px; font-size: 12px; }
.scm-prototype .btn.ghost { border-color: transparent; background: transparent; color: var(--blue); }
.scm-prototype .btn.ghost:hover:not(:disabled) { background: #eaf2ff; border-color: transparent; }
.scm-prototype .pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 30px; background: #fff; color: #52657d; font-size: 12px; line-height: 1.5; }
.scm-prototype .tabs { display: flex; align-items: stretch; gap: 22px; overflow-x: auto; max-width: 100%; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.scm-prototype .tab { flex: 0 0 auto; padding: 12px 3px; border: 0; border-bottom: 3px solid transparent; background: transparent; color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap; }
.scm-prototype .tab:hover { color: var(--blue); }
.scm-prototype .tab.active { border-bottom-color: var(--blue); color: var(--blue); font-weight: 700; }
.scm-prototype .badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 4px; background: #eef1f5; color: #57667a; font-size: 12px; font-weight: 500; line-height: 1.55; white-space: nowrap; }
.scm-prototype .badge.green { color: #176144; background: #e6f4ed; }
.scm-prototype .badge.blue { color: #245b9e; background: #e9f1fe; }
.scm-prototype .badge.amber { color: #80560e; background: #fff1d7; }
.scm-prototype .badge.gray { color: #647185; background: #edf0f4; }
.scm-prototype .badge.red { color: #a43d3d; background: #fcecec; }
.scm-prototype .muted { color: var(--muted); }
.scm-prototype .tiny { font-size: 12px; line-height: 1.7; }
.scm-prototype .num { font-variant-numeric: tabular-nums; }
.scm-prototype .right { text-align: right; }
.scm-prototype .nowrap { white-space: nowrap; }
.scm-prototype .text-link { border: 0; padding: 0; background: none; color: var(--blue); font: inherit; text-align: left; text-decoration: underline; text-underline-offset: 3px; }

/* Panels and introductory guidance */
.scm-prototype .card { min-width: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); box-shadow: 0 1px 3px #1d3a5e03; }
.scm-prototype .card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; min-height: 61px; padding: 16px 22px; border-bottom: 1px solid #e7edf4; }
.scm-prototype .card-head h2, .scm-prototype .card-head h3 { font-size: 16px; }
.scm-prototype .card-body { min-width: 0; padding: 22px; }
.scm-prototype .card-body > * + * { margin-top: 16px; }
.scm-prototype .card-body > .table-wrap:first-child { margin-top: 0; }
.scm-prototype .grid2, .scm-prototype .grid3, .scm-prototype .stats { display: grid; gap: 18px; min-width: 0; }
.scm-prototype .grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.scm-prototype .grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scm-prototype .stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.scm-prototype .grid2 > *, .scm-prototype .grid3 > *, .scm-prototype .stats > * { min-width: 0; }
.scm-prototype .stat { padding: 18px 21px; border: 1px solid var(--line); border-radius: 7px; background: white; }
.scm-prototype .stat > :is(strong, b), .scm-prototype .stat-value { display: block; margin: 7px 0 2px; color: #193d6b; font-size: 29px; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.scm-prototype .stat > :is(span, small), .scm-prototype .stat-label { color: var(--muted); font-size: 13px; }
.scm-prototype .welcome { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); align-items: center; gap: 26px; padding: 24px 26px; border: 1px solid #cedff4; border-left: 4px solid #2976d2; border-radius: 7px; background: #f5f9ff; }
.scm-prototype .welcome > * { min-width: 0; }
.scm-prototype .welcome h2 { color: #214b7e; font-size: 21px; }
.scm-prototype .welcome p { max-width: 850px; margin-top: 9px; color: #536a84; }
.scm-prototype .welcome .actions { margin-top: 17px; justify-content: flex-start; }
.scm-prototype .eyebrow { display: block; margin-bottom: 8px; color: #58769b; font-size: 12px; font-weight: 600; letter-spacing: .3px; }
.scm-prototype .lesson-card { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.scm-prototype .lesson-card h3 { margin-bottom: 8px; }
.scm-prototype .lesson-card > .btn { margin-top: 18px; }
.scm-prototype .lesson-step { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid #e8edf4; }
.scm-prototype .lesson-step:last-child { border-bottom: 0; }
.scm-prototype .lesson-step > :is(b, .step-number) { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; background: #eaf2ff; color: #245fa6; font-size: 12px; font-weight: 700; }
.scm-prototype .lesson-step > div { min-width: 0; }
.scm-prototype .lesson-step small { display: block; color: var(--muted); font-size: 12px; }
.scm-prototype .notice { display: flex; align-items: flex-start; gap: 10px; padding: 13px 16px; border: 1px solid #d4e2f4; border-left: 3px solid #4b8ccc; border-radius: 5px; background: #f2f7ff; color: #385c86; font-size: 13px; line-height: 1.75; overflow-wrap: anywhere; }
.scm-prototype .notice.blue { background: #f2f7ff; border-color: #d4e2f4; border-left-color: #4b8ccc; color: #385c86; }
.scm-prototype .notice.amber { background: #fff9eb; border-color: #f0dfb4; border-left-color: #d8a33e; color: #815d20; }
.scm-prototype .notice > div { min-width: 0; }
.scm-prototype .notice + .notice { margin-top: 8px; }
.scm-prototype .step-hint { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 16px; border-radius: 6px; background: #eaf2ff; color: #2e5b8f; font-size: 13px; line-height: 1.75; }
.scm-prototype .step-hint strong { color: #174b91; }
.scm-prototype .step-hint > div:first-child { min-width: 0; flex: 1; }
.scm-prototype .step-hint > .actions { flex: 0 0 auto; max-width: 48%; }
.scm-prototype .step-hint .btn { flex: 0 0 auto; max-width: 100%; }
.scm-prototype .empty { padding: 42px 20px; text-align: center; color: var(--muted); }
.scm-prototype .empty h3 { margin-bottom: 8px; color: #415774; }
.scm-prototype .empty .btn { margin-top: 17px; }
.scm-prototype .source-note { padding-top: 12px; color: #738196; font-size: 12px; line-height: 1.75; overflow-wrap: anywhere; }

/* Tables scroll inside their panel, including at 320 px. */
.scm-prototype .table-wrap { width: 100%; max-width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; border-radius: 5px; }
.scm-prototype table, .scm-prototype .table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 13px; line-height: 1.65; }
.scm-prototype th { padding: 12px 14px; border-bottom: 1px solid #d7e1ee; background: #f5f8fc; color: #516780; text-align: left; font-weight: 600; white-space: nowrap; }
.scm-prototype td { padding: 14px; border-bottom: 1px solid #e8edf4; vertical-align: middle; }
.scm-prototype td:first-child { min-width: 100px; }
.scm-prototype tbody tr:last-child td { border-bottom: 0; }
.scm-prototype tbody tr:hover, .scm-prototype tr.hover { background: #f8fbff; }
.scm-prototype td strong { color: #304b70; font-weight: 600; }
.scm-prototype td small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }
.scm-prototype td .actions { justify-content: flex-start; flex-wrap: nowrap; gap: 5px; }
.scm-prototype td.right .actions { justify-content: flex-end; }
.scm-prototype td .btn { white-space: nowrap; }
.scm-prototype .table.compact th, .scm-prototype .table.compact td { padding: 10px 12px; }
.scm-prototype .table-total td, .scm-prototype tfoot td { border-top: 1px solid #c5d6ec; background: #eff5ff; color: #204c82; font-weight: 700; }
.scm-prototype .toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.scm-prototype .search { width: min(100%, 320px); min-width: 0; }
.scm-prototype .toolbar .search { flex: 1 1 220px; max-width: 360px; }
.scm-prototype label.search { display: grid; gap: 6px; color: #435873; }
.scm-prototype label.search > input { width: 100%; }
.scm-prototype .quote-cell { min-width: 145px; width: 180px; }
.scm-prototype .quote-cell .muted, .scm-prototype .quote-cell small { font-size: 12px; }
.scm-prototype input.money-input { width: 128px; min-width: 88px; padding: 7px 10px; text-align: right; font-variant-numeric: tabular-nums; }

/* Native forms */
.scm-prototype :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { max-width: 100%; min-height: 40px; padding: 9px 11px; border: 1px solid #cbd6e3; border-radius: 5px; background: white; color: var(--ink); line-height: 1.5; }
.scm-prototype input::placeholder, .scm-prototype textarea::placeholder { color: #8796a8; opacity: 1; }
.scm-prototype :is(input, select, textarea):focus { border-color: #5a96da; }
.scm-prototype :is(input, textarea)[readonly] { background: #f5f7fa; color: #67778b; }
.scm-prototype textarea { width: 100%; min-height: 96px; resize: vertical; }
.scm-prototype input[type="checkbox"], .scm-prototype input[type="radio"] { width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--blue); flex: 0 0 17px; }
.scm-prototype .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 22px; }
.scm-prototype .form-grid > * { min-width: 0; }
.scm-prototype .form-grid > label, .scm-prototype .field:not(input):not(select):not(textarea) { display: grid; align-content: start; gap: 7px; min-width: 0; }
.scm-prototype .field > :is(input, select, textarea), .scm-prototype .form-grid > label > :is(input, select, textarea) { width: 100%; }
.scm-prototype .label, .scm-prototype .field > label { display: block; margin-bottom: 7px; color: #435873; font-weight: 600; }
.scm-prototype .field > label { margin-bottom: 0; }
.scm-prototype .full { grid-column: 1 / -1; }
.scm-prototype .checkbox, .scm-prototype label.checkbox { display: flex; align-items: flex-start; gap: 9px; font-weight: 400; line-height: 1.7; }
.scm-prototype .required { color: var(--red); }
.scm-prototype .field-help { color: var(--muted); font-size: 12px; line-height: 1.6; }
.scm-prototype .card-body form > label { display: grid; gap: 7px; }
.scm-prototype .card-body form > * + * { margin-top: 16px; }
.scm-prototype .card-body form > label > :is(input, select, textarea) { width: 100%; }
.scm-prototype .error-box { padding: 13px 16px; border: 1px solid #edc3c3; border-left: 3px solid #c55d5d; border-radius: 5px; background: #fff5f5; color: #9e3838; font-size: 13px; line-height: 1.8; }
.scm-prototype .error-box ul { padding-left: 20px; }
.scm-prototype .file-chip { display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 6px 10px; border: 1px solid #d6e0ed; border-radius: 5px; background: #f7faff; color: #46658a; font-size: 12px; overflow-wrap: anywhere; }
.scm-prototype .project-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 24px; padding: 21px 23px; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.scm-prototype .summary-item { min-width: 0; overflow-wrap: anywhere; }
.scm-prototype .summary-item > :is(span, small, dt), .scm-prototype .summary-label { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; }
.scm-prototype .summary-item > :is(strong, b, dd), .scm-prototype .summary-value { color: #2a4467; font-size: 14px; font-weight: 600; }
.scm-prototype .details { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 13px 18px; }
.scm-prototype .details dt { color: var(--muted); }
.scm-prototype .details dd { min-width: 0; overflow-wrap: anywhere; }
.scm-prototype .card.card-body > .card-head { min-height: 42px; padding: 0 0 14px; }
.scm-prototype .list-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; min-height: 69px; padding: 13px 0; border-bottom: 1px solid #e8edf4; }
.scm-prototype .list-row > div:first-child { flex: 1 1 140px; min-width: 0; }
.scm-prototype .list-row > div:last-child:not(:first-child) { text-align: right; }
.scm-prototype .list-row small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.scm-prototype .list-row .checkbox { font-size: 13px; }
.scm-prototype .list-row:last-child { border-bottom: 0; }
.scm-prototype .card-body > .list-row + .list-row { margin-top: 0; }
.scm-prototype .result-total { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 22px; border: 1px solid #c8daf2; border-radius: 6px; background: #edf5ff; color: #315d90; }
.scm-prototype .result-total strong { color: #164a88; font-size: 23px; font-variant-numeric: tabular-nums; }
.scm-prototype .score-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.scm-prototype .score-grid > * { min-width: 0; }

/* Activity and mobile approval preview */
.scm-prototype .timeline { display: grid; gap: 0; padding: 0; list-style: none; }
.scm-prototype .log-item { position: relative; padding: 0 0 22px 25px; border-left: 1px solid #d9e3f0; margin-left: 5px; overflow-wrap: anywhere; }
.scm-prototype .log-item::before { content: ""; position: absolute; top: 7px; left: -5px; width: 9px; height: 9px; border: 2px solid #e9f1fd; border-radius: 50%; background: #4d86c9; }
.scm-prototype .log-item:last-child { padding-bottom: 0; border-left-color: transparent; }
.scm-prototype .log-item time, .scm-prototype .log-item .time { display: block; color: #7a899d; font-size: 12px; }
.scm-prototype .log-item p { margin-top: 4px; }
.scm-prototype .mobile-phone { width: min(100%, 390px); min-width: 0; margin: 0 auto; padding: 0 0 18px; overflow: hidden; border: 1px solid #cbd7e6; border-radius: 20px; background: #f3f6fb; box-shadow: 0 8px 25px #233c5f0d; }
.scm-prototype .mobile-top { padding: 21px 19px 17px; background: var(--nav); color: #fff; font-size: 16px; font-weight: 600; }
.scm-prototype .mobile-phone > :not(.mobile-top) { margin: 14px; }
.scm-prototype .mobile-phone .card-body { padding: 16px; }
.scm-prototype .mobile-phone .project-summary, .scm-prototype .mobile-phone .form-grid { grid-template-columns: 1fr; }
.scm-prototype .mobile-phone .actions { justify-content: stretch; }
.scm-prototype .mobile-phone .actions > .btn { flex: 1; }

/* Dialog and feedback */
.scm-prototype #modal { width: min(900px, calc(100% - 40px)); max-width: 900px; max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px); padding: 0; border: 1px solid #c6d5e8; border-radius: 10px; color: var(--ink); background: #fff; box-shadow: 0 18px 70px #14274330; overflow: auto; }
.scm-prototype #modal::backdrop { background: #1529457a; }
.scm-prototype #modal-body { min-width: 0; padding: 25px 28px; }
.scm-prototype #modal-body > * + * { margin-top: 20px; }
.scm-prototype #modal-body form > * + * { margin-top: 18px; }
.scm-prototype .modal-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.scm-prototype .modal-head h2 { font-size: 20px; }
.scm-prototype .modal-head p { margin-top: 6px; color: var(--muted); font-size: 13px; }
.scm-prototype .modal-head > :first-child { min-width: 0; }
.scm-prototype .modal-head > button { flex-shrink: 0; }
.scm-prototype .modal-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 19px; border-top: 1px solid var(--line); }
.scm-prototype #toast { position: fixed; z-index: 100; bottom: 24px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 32px); padding: 13px 20px; border: 1px solid #c5d9f0; border-radius: 7px; background: #fff; color: #214a79; box-shadow: 0 6px 24px #1c385b26; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.scm-prototype #toast:empty, .scm-prototype #toast:not(.show) { display: none; }
.scm-prototype #toast.error { color: #9c3535; border-color: #e6bcbc; }

@media (min-width: 1700px) {
  .scm-prototype .content { padding-right: 40px; padding-left: 40px; }
}
@media (max-width: 1120px) {
  .scm-prototype .topbar { padding: 16px 22px; }
  .scm-prototype .content { padding: 24px 22px 32px; }
  .scm-prototype .demo-strip, .scm-prototype .statusbar { padding-right: 22px; padding-left: 22px; }
  .scm-prototype .stats, .scm-prototype .project-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scm-prototype .grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scm-prototype .role-control { gap: 6px; }
  .scm-prototype .identity-select { min-width: 180px; }
  .scm-prototype .welcome { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 820px) {
  .scm-prototype .shell { grid-template-columns: 192px minmax(0, 1fr); }
  .scm-prototype .sidebar { padding-right: 12px; padding-left: 12px; }
  .scm-prototype .brand { gap: 8px; padding: 0 3px; font-size: 16px; }
  .scm-prototype .topbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .scm-prototype .role-control { width: 100%; }
  .scm-prototype .identity-select { min-width: 0; flex: 1; }
  .scm-prototype .grid2, .scm-prototype .grid3, .scm-prototype .score-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .scm-prototype .shell { display: block; }
  .scm-prototype .sidebar { position: relative; height: auto; overflow: visible; padding: 15px 14px 11px; gap: 13px; }
  .scm-prototype .brand { min-height: 34px; font-size: 17px; }
  .scm-prototype .brand-icon { width: 32px; height: 32px; flex-basis: 32px; font-size: 20px; }
  .scm-prototype .brand small, .scm-prototype .brand-sub { display: none; }
  .scm-prototype .sidebar nav, .scm-prototype .sidebar .nav { display: flex; gap: 6px; min-width: 0; max-width: 100%; overflow-x: auto; scrollbar-width: thin; }
  .scm-prototype .nav-group { display: flex; flex: 0 0 auto; gap: 6px; max-width: 100%; overflow-x: auto; margin: 0; scrollbar-width: thin; }
  .scm-prototype .nav-group > :is(h2, h3, h4, .nav-label, .nav-title) { display: none; }
  .scm-prototype .sidebar > .nav-group { display: none; }
  .scm-prototype .nav-item { flex: 0 0 auto; width: auto; min-height: 36px; padding: 7px 11px; white-space: nowrap; font-size: 13px; }
  .scm-prototype .nav-icon { width: 16px; flex-basis: 16px; font-size: 14px; }
  .scm-prototype .sidebar-foot { display: none; }
  .scm-prototype .topbar { padding: 13px 16px; gap: 10px; }
  .scm-prototype .role-control { padding: 8px; }
  .scm-prototype .role-control > label { font-size: 13px; }
  .scm-prototype .identity-select { min-height: 42px; font-size: 14px; }
  .scm-prototype .demo-strip { padding: 9px 16px; gap: 5px; }
  .scm-prototype .content { padding: 21px 16px 28px; }
  .scm-prototype .content > * + * { margin-top: 16px; }
  .scm-prototype h1 { font-size: 23px; }
  .scm-prototype .page-head { margin-bottom: 18px; gap: 14px; }
  .scm-prototype .page-head .actions { width: 100%; justify-content: flex-start; }
  .scm-prototype .card-head { padding: 14px 16px; }
  .scm-prototype .card-body, .scm-prototype .lesson-card { padding: 17px 16px; }
  .scm-prototype .welcome { padding: 19px 17px; }
  .scm-prototype .welcome h2 { font-size: 19px; }
  .scm-prototype .stats { gap: 10px; }
  .scm-prototype .stat { padding: 14px; }
  .scm-prototype .stat > :is(strong, b), .scm-prototype .stat-value { font-size: 25px; }
  .scm-prototype .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .scm-prototype .project-summary { gap: 15px; padding: 17px; }
  .scm-prototype .notice, .scm-prototype .step-hint { padding: 11px 13px; }
  .scm-prototype .step-hint { align-items: stretch; flex-direction: column; gap: 12px; }
  .scm-prototype .step-hint > .actions { width: 100%; max-width: 100%; justify-content: flex-start; }
  .scm-prototype .details { grid-template-columns: 1fr; gap: 4px; }
  .scm-prototype .details dd { margin-bottom: 11px; }
  .scm-prototype .details dd:last-child { margin-bottom: 0; }
  .scm-prototype .result-total { padding: 15px 16px; }
  .scm-prototype .result-total strong { font-size: 21px; }
  .scm-prototype .toolbar { align-items: stretch; }
  .scm-prototype .toolbar .search { max-width: none; flex-basis: 100%; }
  .scm-prototype .statusbar { padding: 12px 16px; }
  .scm-prototype #modal { width: calc(100% - 20px); max-height: calc(100dvh - 24px); border-radius: 8px; }
  .scm-prototype #modal-body { padding: 19px 16px; }
  .scm-prototype .modal-head h2 { font-size: 18px; }
  .scm-prototype .modal-actions { gap: 8px; }
  .scm-prototype .mobile-phone { border-radius: 13px; }
}
@media (max-width: 360px) {
  .scm-prototype .role-control { display: grid; grid-template-columns: 1fr; }
  .scm-prototype .identity-select { width: 100%; }
  .scm-prototype .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scm-prototype .btn { padding-right: 12px; padding-left: 12px; }
}
/* The simplified procurement workspace: navy navigation, calm green actions. */
.scm-prototype .shell { grid-template-columns:220px minmax(0,1fr); }
.scm-prototype h1 { font-size:28px; overflow-wrap:anywhere; }
.scm-prototype .sidebar { gap:28px; padding-top:30px; }
.scm-prototype .brand-icon { color:#fff; background:#24515a; border-color:#75a89f; border-radius:10px; }
.scm-prototype .brand small { color:#9ebdbb; font-size:10px; letter-spacing:1px; }
.scm-prototype .sidebar>.nav-group { color:#98b8b7; font-size:11px; letter-spacing:1.5px; }
.scm-prototype .sidebar nav { gap:7px; }
.scm-prototype .nav-item { min-height:46px; padding:11px 14px; border:0; color:#bed2d1; }
.scm-prototype .nav-item.active { color:#fff; background:#2c5b62; box-shadow:inset 3px 0 #79c8b9; }
.scm-prototype .sidebar-foot { color:#9fbfbd; font-size:11px; }
.scm-prototype .topbar { min-height:80px; padding:17px 32px; flex-wrap:wrap; gap:12px; }
.scm-prototype .breadcrumb { font-size:12px; overflow-wrap:anywhere; }
.scm-prototype .role-control { padding:0; border:0; background:none; gap:8px; }
.scm-prototype .role-control>label { color:var(--muted); font-size:12px; font-weight:400; }
.scm-prototype .role-control select { min-height:36px; padding:6px 9px; font-size:12px; font-weight:500; color:var(--ink); border-color:var(--line); }
.scm-prototype .identity-select { min-width:150px; }
.scm-prototype .demo-strip { padding:7px 32px; border-bottom-color:#dce9e5; background:#ecf4f0; color:#4c7067; font-size:11px; }
.scm-prototype .demo-strip .btn { min-height:27px; padding:2px 8px; font-size:11px; }
.scm-prototype .content { max-width:1530px; padding:30px 32px 50px; }
.scm-prototype .content>*+* { margin-top:24px; }
.scm-prototype .btn { border-color:#cfdcda; border-radius:6px; color:#37585e; }
.scm-prototype .btn:hover:not(:disabled) { border-color:#8fb6ae; background:#f3f9f6; }
.scm-prototype .btn.primary:hover:not(:disabled) { border-color:var(--blue-hover); background:var(--blue-hover); }
.scm-prototype .btn.ghost:hover:not(:disabled) { background:var(--blue-light); }
.scm-prototype :where(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),select,textarea) { min-width:0; border-color:#cddbd7; }
.scm-prototype :is(input,select,textarea):focus { border-color:#62a89a; }
.scm-prototype .card { border-radius:10px; box-shadow:none; }
.scm-prototype .panel,.scm-prototype .rule-card,.scm-prototype .quote-card,.scm-prototype .project-card { min-width:0; padding:23px; border:1px solid var(--line); border-radius:10px; background:#fff; }
.scm-prototype .panel>*+*,.scm-prototype .rule-card>*+*,.scm-prototype .quote-card>*+* { margin-top:17px; }
.scm-prototype .section-title { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; margin-bottom:16px; }
.scm-prototype .hero { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(260px,.8fr); align-items:center; gap:38px; padding:30px 32px; border:1px solid #d9e8e0; border-radius:12px; background:#eaf2ed; }
.scm-prototype .hero>* { min-width:0; }
.scm-prototype .hero h1,.scm-prototype .hero h2 { color:#204d48; font-size:29px; line-height:1.5; letter-spacing:-.4px; }
.scm-prototype .hero p { margin-top:12px; color:#53716c; max-width:680px; }
.scm-prototype .hero-actions { display:flex; flex-wrap:wrap; gap:9px; align-items:center; margin-top:22px; }
.scm-prototype .eyebrow { display:block; color:#62827a; font-size:10px; font-weight:600; letter-spacing:2px; margin-bottom:10px; }
.scm-prototype .lead { color:#5f7578; font-size:14px; line-height:1.9; }
.scm-prototype .metric-grid,.scm-prototype .project-grid,.scm-prototype .split,.scm-prototype .help-grid { display:grid; min-width:0; gap:20px; }
.scm-prototype .metric-grid { grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.scm-prototype .project-grid,.scm-prototype .help-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
.scm-prototype .split { grid-template-columns:minmax(0,1.5fr) minmax(0,1fr); align-items:start; }
.scm-prototype :is(.metric-grid,.project-grid,.split,.help-grid)>* { min-width:0; }
.scm-prototype .metric { padding:20px 22px; background:#fff; border:1px solid var(--line); border-radius:9px; }
.scm-prototype .metric>:is(span,small) { color:var(--muted); font-size:12px; }
.scm-prototype .metric>:is(strong,b) { display:block; margin:8px 0 3px; color:#234a4e; font-size:31px; line-height:1.2; font-weight:600; font-variant-numeric:tabular-nums; }
.scm-prototype .metric small { display:block; margin-top:8px; font-size:11px; }
.scm-prototype .project-card { display:flex; flex-direction:column; transition:border-color .15s,box-shadow .15s; }
.scm-prototype .project-card:hover { border-color:#a4c4b8; box-shadow:0 4px 16px #153b4307; }
.scm-prototype .project-card h3 { margin:16px 0 8px; font-size:18px; }
.scm-prototype .project-card p { color:var(--muted); font-size:13px; }
.scm-prototype .card-top { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
.scm-prototype .card-foot { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-top:auto; padding-top:21px; }
.scm-prototype .card-foot .tiny { color:var(--muted); }
.scm-prototype .stage-list { display:grid; gap:0; padding:4px 0; }
.scm-prototype .stage-item { display:flex; align-items:flex-start; gap:13px; padding:12px 0; }
.scm-prototype .stage-item+.stage-item { border-top:1px solid #cfded5; }
.scm-prototype .stage-item>div { min-width:0; }
.scm-prototype .stage-item small { display:block; color:#658278; font-size:11px; margin-top:2px; }
.scm-prototype .stage-number { display:grid; place-items:center; width:29px; height:29px; flex:0 0 29px; border:1px solid #a8c9bb; border-radius:50%; color:#306858; font:500 12px/1 sans-serif; }
.scm-prototype .stepper { display:flex; align-items:stretch; gap:0; padding:20px 10px; overflow-x:auto; border:1px solid var(--line); border-radius:10px; background:#fff; }
.scm-prototype .step { position:relative; flex:1 0 100px; min-width:0; padding:0 12px; text-align:center; color:#8a9b9b; font-size:12px; }
.scm-prototype .step+.step { border-left:1px solid #e4ece8; }
.scm-prototype .step strong,.scm-prototype .step b { display:block; margin-top:4px; }
.scm-prototype .step.active,.scm-prototype .step.current { color:var(--blue); font-weight:700; }
.scm-prototype .step.done { color:#416d5e; }
.scm-prototype .quote-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.scm-prototype .quote-grid>* { min-width:0; }
.scm-prototype .quote-card+.quote-card,.scm-prototype .item-editor+.item-editor { margin-top:15px; }
.scm-prototype .item-editor .form-grid { grid-template-columns:minmax(0,1.7fr) minmax(0,1.7fr) minmax(70px,.7fr) minmax(70px,.7fr); gap:14px; }
.scm-prototype .plain-list { padding-left:20px; color:var(--muted); }
.scm-prototype .plain-list li+li { margin-top:9px; }
.scm-prototype .metric strong { overflow-wrap:anywhere; }
.scm-prototype .rank-box { padding:22px; border:1px solid #bfdad0; border-radius:10px; background:#eff7f2; text-align:center; color:#386659; }
.scm-prototype .rank-box strong { display:block; margin:4px 0; font-size:38px; font-weight:600; line-height:1.3; font-variant-numeric:tabular-nums; }
.scm-prototype .formula { padding:13px 16px; border:1px solid #e0e8e3; border-radius:6px; background:#f5f8f6; color:#385e50; font-size:13px; line-height:1.9; overflow-wrap:anywhere; }
.scm-prototype .summary-bar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:14px; padding:19px 22px; background:#eaf4ee; border:1px solid #c8dfd1; border-radius:8px; color:#426354; }
.scm-prototype .summary-bar strong { color:#205e4f; font-size:22px; }
.scm-prototype .check-row { display:flex; align-items:flex-start; gap:9px; padding:10px 0; font-weight:400; line-height:1.7; }
.scm-prototype .notice,.scm-prototype .notice.blue { display:block; border-color:#d9e7e1; border-left-color:#77a996; background:#f0f7f3; color:#496a5e; }
.scm-prototype .notice.amber { border-color:#eadfc2; border-left-color:#d0aa63; background:#fdf9ef; color:#806332; }
.scm-prototype .notice.red { border-color:#ecd2cc; border-left-color:#bf7f73; background:#fff5f1; color:#9b5046; }
.scm-prototype .help-grid>div { padding:20px; border:1px solid var(--line); border-radius:8px; background:#fff; }
.scm-prototype .help-grid h3 { margin-bottom:9px; }
.scm-prototype .help-grid ol,.scm-prototype .help-grid ul { padding-left:20px; }
.scm-prototype th { border-bottom-color:#dce6e0; background:#f4f7f4; color:#70837b; font-size:12px; font-weight:500; }
.scm-prototype td { border-bottom-color:#e8eeea; }
.scm-prototype td strong { color:#345849; }
.scm-prototype tbody tr:hover { background:#fbfcfa; }
.scm-prototype .table-total td,.scm-prototype tfoot td { background:#edf5ef; color:#345849; border-color:#ccdcd1; }
.scm-prototype .attachment-list { display:flex; flex-wrap:wrap; gap:8px; }
.scm-prototype .file-chip { border-color:#dce7e1; background:#f5f9f6; color:#4c6f5f; }
.scm-prototype .timeline-entry { position:relative; margin-left:5px; padding:0 0 23px 23px; border-left:1px solid #dbe6de; overflow-wrap:anywhere; }
.scm-prototype .timeline-entry::before { content:""; position:absolute; top:6px; left:-4px; width:7px; height:7px; border-radius:50%; background:#76a591; }
.scm-prototype .timeline-entry:last-child { padding-bottom:0; border-left-color:transparent; }
.scm-prototype .timeline-entry time { display:block; margin-bottom:5px; color:#82968c; font-size:11px; }
.scm-prototype .timeline-entry p { margin-top:4px; }
.scm-prototype .badge { font-size:11px; }
.scm-prototype .badge.green { color:#327158; background:#e8f3ec; }
.scm-prototype .badge.blue { color:#25797a; background:#e7f3f1; }
.scm-prototype .badge.amber { color:#917132; background:#faf2de; }
.scm-prototype .badge.gray { color:#78857d; background:#eff2ef; }
.scm-prototype .money,.scm-prototype .mono { font-variant-numeric:tabular-nums; }
.scm-prototype .money { color:#284e41; font-weight:600; white-space:nowrap; }
.scm-prototype .mono { font-family:Consolas,"Microsoft YaHei",monospace; font-size:.94em; }
.scm-prototype .mobile-only { display:none; }
.scm-prototype #modal { border-color:#cbded1; border-radius:12px; }
.scm-prototype #modal::backdrop { background:#14343880; }
.scm-prototype #toast { border-color:#b9d7c7; color:#285e49; }
@media (max-width:1180px) {
  .scm-prototype .topbar { padding:16px 24px; }
  .scm-prototype .content { padding:26px 24px 40px; }
  .scm-prototype .demo-strip { padding-right:24px; padding-left:24px; }
  .scm-prototype .hero { grid-template-columns:1fr 1fr; gap:25px; padding:27px; }
  .scm-prototype .hero h1,.scm-prototype .hero h2 { font-size:25px; }
  .scm-prototype .metric { padding:18px; }
}
@media (max-width:960px) {
  .scm-prototype .shell { grid-template-columns:185px minmax(0,1fr); }
  .scm-prototype .sidebar { padding-right:12px; padding-left:12px; }
  .scm-prototype .brand { font-size:16px; gap:9px; padding:0 4px; }
  .scm-prototype .metric-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .scm-prototype .hero,.scm-prototype .split { grid-template-columns:1fr; }
  .scm-prototype .hero { gap:20px; }
  .scm-prototype .hero .stage-list { display:none; }
  .scm-prototype .project-grid { grid-template-columns:1fr; }
  .scm-prototype .quote-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  .scm-prototype .help-grid,.scm-prototype .form-grid { grid-template-columns:1fr; }
  .scm-prototype .item-editor .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .scm-prototype .item-editor .field:nth-child(-n+2) { grid-column:1/-1; }
  .scm-prototype .role-control { width:100%; }
  .scm-prototype .identity-select { flex:1; min-width:0; }
}
@media (max-width:640px) {
  .scm-prototype .shell { display:block; }
  .scm-prototype .sidebar { padding:16px 16px 11px; gap:16px; }
  .scm-prototype .brand { font-size:18px; }
  .scm-prototype .brand-icon { width:31px; height:31px; flex-basis:31px; font-size:20px; border-radius:8px; }
  .scm-prototype .sidebar nav { display:flex; gap:6px; }
  .scm-prototype .nav-item { min-height:36px; padding:7px 10px; font-size:12px; }
  .scm-prototype .nav-item.active { box-shadow:none; }
  .scm-prototype .topbar { padding:12px 16px; gap:8px; }
  .scm-prototype .role-control { gap:6px; }
  .scm-prototype .role-control>label { width:100%; font-size:11px; }
  .scm-prototype .role-control select { min-height:40px; font-size:13px; }
  .scm-prototype .demo-strip { padding:7px 16px; }
  .scm-prototype .content { padding:23px 16px 36px; }
  .scm-prototype .content>*+* { margin-top:19px; }
  .scm-prototype h1 { font-size:24px; }
  .scm-prototype .panel,.scm-prototype .project-card,.scm-prototype .rule-card,.scm-prototype .quote-card { padding:18px 16px; }
  .scm-prototype .hero { padding:23px 20px; }
  .scm-prototype .hero h1,.scm-prototype .hero h2 { font-size:25px; }
  .scm-prototype .metric-grid { gap:10px; }
  .scm-prototype .metric { padding:15px; }
  .scm-prototype .metric>:is(strong,b) { font-size:27px; }
  .scm-prototype .project-grid { gap:15px; }
  .scm-prototype .quote-grid { grid-template-columns:1fr; gap:15px; }
  .scm-prototype .quote-grid input,.scm-prototype .quote-grid select { width:100%; }
  .scm-prototype .summary-bar { padding:16px; }
  .scm-prototype .summary-bar strong { font-size:20px; }
  .scm-prototype .mobile-only { display:block; }
  .scm-prototype .desktop-only { display:none; }
}
@media (prefers-reduced-motion:reduce) { .scm-prototype * { transition:none!important; } }
@media print {
  .scm-prototype { background: #fff; color: #111; font-size: 11px; }
  .scm-prototype .shell { display: block; min-height: 0; }
  .scm-prototype .sidebar, .scm-prototype .topbar, .scm-prototype .demo-strip,
  .scm-prototype .statusbar, .scm-prototype .no-print, .scm-prototype #toast,
  .scm-prototype #modal, .scm-prototype .page-head .actions { display: none !important; }
  body.scm-prototype.print-result .sidebar, body.scm-prototype.print-result .topbar,
  body.scm-prototype.print-result .demo-strip, body.scm-prototype.print-result .no-print { display: none !important; }
  .scm-prototype .content { max-width: none; margin: 0; padding: 0; }
  .scm-prototype .card { border-color: #c9c9c9; box-shadow: none; border-radius: 0; }
  .scm-prototype .card-head, .scm-prototype .card-body { padding: 12px; }
  .scm-prototype .table-wrap { overflow: visible; }
  .scm-prototype table, .scm-prototype .table { min-width: 0; width: 100%; font-size: 10px; }
  .scm-prototype th, .scm-prototype td { padding: 7px 6px; white-space: normal; overflow-wrap: anywhere; }
  .scm-prototype tr { break-inside: avoid; }
  .scm-prototype thead { display: table-header-group; }
  .scm-prototype tfoot { display: table-footer-group; }
  .scm-prototype h1 { font-size: 22px; }
  .scm-prototype .page-head { margin-bottom: 15px; }
  .scm-prototype .result-total { background: #f4f6f8; border-color: #c9c9c9; }
  .scm-prototype a { color: inherit; text-decoration: none; }
  .scm-prototype * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
/* Compact multi-item inputs and clearly bounded project setup sections. */
.scm-prototype #modal:has(#project-form) { width:min(1160px,calc(100% - 40px)); max-width:1160px; }
.scm-prototype #modal-body #project-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.scm-prototype #modal-body #project-form>* { min-width:0; grid-column:1/-1; }
.scm-prototype #modal-body #project-form>*+* { margin-top:0; }
.scm-prototype #modal-body #project-form>.project-form-section:is([data-section="basic"],[data-section="commercial"],[data-section="technical"],[data-section="scoring"]) { grid-column:auto; }
.scm-prototype #project-form .project-form-section { margin:0; border:1px solid #bfd2ca; border-radius:8px; padding:14px 16px; background:#fbfdfc; }
.scm-prototype #project-form .project-form-section>h3,.scm-prototype #project-form .project-form-section>.section-title { margin:0 0 12px; padding-bottom:9px; border-bottom:1px solid #dce7e2; }
.scm-prototype #project-form .project-form-section h3 { font-size:15px; color:#24584f; }
.scm-prototype #project-form .project-form-section>.field,.scm-prototype #project-form .project-form-section>.form-grid { margin-top:10px; }
.scm-prototype #project-form .form-grid { gap:10px 12px; }
.scm-prototype #project-form .field { font-size:13px; gap:4px; }
.scm-prototype #project-form .field>input,.scm-prototype #project-form .field>select { min-height:36px; padding:7px 9px; }
.scm-prototype #project-form textarea { min-height:60px; padding:7px 9px; }
.scm-prototype #project-form .check-row { padding:8px 0 2px; font-size:13px; }
.scm-prototype #project-form .catalog-picker { margin:0 0 10px; gap:8px; }
.scm-prototype #project-form #catalog-type-filter { flex:0 1 170px; }
.scm-prototype #project-form #catalog-select { flex:1 1 240px; }
.scm-prototype #project-form .catalog-picker .btn { flex-shrink:0; }
.scm-prototype #item-rows .item-editor { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:end; gap:8px; padding:8px 10px; border-color:#d9e5df; border-radius:5px; }
.scm-prototype #item-rows .item-editor+.item-editor { margin-top:6px; }
.scm-prototype #item-rows .item-editor>*+* { margin-top:0; }
.scm-prototype #item-rows .item-editor .form-grid { grid-template-columns:minmax(110px,1.3fr) minmax(90px,.8fr) minmax(130px,1.6fr) 85px 75px; gap:8px; }
.scm-prototype #project-form #technical-settings>* { margin-top:10px; }
.scm-prototype #project-form #technical-config>.form-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.scm-prototype .technical-criterion { gap:8px; margin-top:6px; padding:6px 8px; border:1px solid #d9e5df; border-radius:5px; background:white; }
.scm-prototype .technical-criterion .field { font-size:12px; gap:4px; }
.scm-prototype .technical-criterion input { min-height:34px; padding:6px 8px; }
.scm-prototype #project-form #technical-config>.section-title { margin-top:12px; }
.scm-prototype #project-form #technical-config h3 { font-size:13px; }
.scm-prototype .type-options { gap:6px; }
.scm-prototype .type-option { display:inline-flex; max-width:100%; padding:5px 9px; border:1px solid #d5e0db; border-radius:5px; background:#fff; line-height:1.5; overflow-wrap:anywhere; }
.scm-prototype .type-option:has(input:checked) { color:#176a60; background:#edf7f3; border-color:#81b9a8; }
.scm-prototype .type-option input { flex-shrink:0; }
.scm-prototype .type-field { margin:12px 0; }
.scm-prototype .supplier-selection-row,.scm-prototype .expert-selection-row { padding:7px 10px; gap:8px; }
.scm-prototype .supplier-selection-row .selection-name,.scm-prototype .expert-selection-row>span:first-of-type { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 8px; }
.scm-prototype .selection-name small,.scm-prototype .expert-selection-row>span:first-of-type small { display:inline; }
.scm-prototype #project-form>.modal-actions { margin:0; padding-top:12px; }
@media(max-width:1100px) {
 .scm-prototype .project-list-toolbar { flex-wrap:wrap; }
 .scm-prototype .project-list-options { margin-left:auto; }
}
@media(max-width:800px) {
 .scm-prototype #modal-body #project-form { grid-template-columns:1fr; }
 .scm-prototype #modal-body #project-form>.project-form-section:is([data-section="basic"],[data-section="commercial"]) { grid-column:1/-1; }
 .scm-prototype #item-rows .item-editor .form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .scm-prototype #item-rows .item-editor .field { grid-column:auto; }
 .scm-prototype #item-rows .item-editor .field:nth-child(3) { grid-column:1/-1; }
}
@media(max-width:640px) {
 .scm-prototype #modal:has(#project-form) { width:calc(100% - 20px); }
 .scm-prototype #project-form .project-form-section { padding:12px 10px; }
 .scm-prototype #project-form .form-grid,.scm-prototype #project-form #technical-config>.form-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .scm-prototype #project-form [data-section="basic"]>.form-grid,.scm-prototype #project-form [data-section="commercial"]>.form-grid,.scm-prototype #project-form [data-section="suppliers"]>.form-grid { grid-template-columns:1fr; }
 .scm-prototype #item-rows .item-editor { grid-template-columns:minmax(0,1fr); }
 .scm-prototype #item-rows .item-editor>.btn { justify-self:end; }
 .scm-prototype #project-form .catalog-picker { flex-wrap:wrap; }
 .scm-prototype #project-form #catalog-type-filter { flex:1 1 100%; }
 .scm-prototype #project-form #catalog-select { flex-basis:150px; }
 .scm-prototype .technical-criterion { grid-template-columns:minmax(0,1fr) 70px; }
 .scm-prototype .technical-criterion>.field:nth-child(3) { grid-column:1/-1; }
 .scm-prototype .technical-criterion>.btn { grid-column:2; }
 .scm-prototype .project-list-options { width:100%; justify-content:space-between; margin:0; }
}
.scm-prototype #library-criteria .library-criterion-row { display:grid; grid-template-columns:minmax(130px,1fr) 80px minmax(180px,1.8fr) auto; align-items:end; gap:8px; padding:8px 10px; border-radius:5px; }
.scm-prototype #library-criteria .library-criterion-row+.library-criterion-row { margin-top:6px; }
.scm-prototype #library-criteria .library-criterion-row>*+* { margin-top:0; }
.scm-prototype #library-criteria .library-criterion-row .field { font-size:12px; gap:4px; }
.scm-prototype #library-criteria .library-criterion-row input { min-height:36px; padding:7px 8px; }
.scm-prototype #library-criteria .library-criterion-row textarea { min-height:54px; padding:6px 8px; }
@media(max-width:640px) {
 .scm-prototype #library-criteria .library-criterion-row { grid-template-columns:minmax(0,1fr) 70px; }
 .scm-prototype #library-criteria .library-criterion-row>.field:nth-child(3) { grid-column:1/-1; }
 .scm-prototype #library-criteria .library-criterion-row>.btn { grid-column:2; }
}
/* Formula editing and participant lists share the compact form rhythm. */
.scm-prototype #scoring-config>*+* { margin-top:12px; }
.scm-prototype #scoring-config>.field { gap:6px; }
.scm-prototype .scoring-trial,.scm-prototype .scoring-disclosure { padding:12px 14px; border:1px solid var(--line); border-radius:7px; background:#f6faf8; }
.scm-prototype .scoring-trial summary,.scm-prototype .scoring-disclosure summary { cursor:pointer; font-weight:600; color:#24584f; }
.scm-prototype .scoring-trial[open]>*+*,.scm-prototype .scoring-disclosure[open]>*+* { margin-top:12px; }
.scm-prototype .scoring-trial-inputs { grid-template-columns:repeat(3,minmax(0,1fr)); }
.scm-prototype .formula-cell { min-width:170px; max-width:280px; overflow-wrap:anywhere; }
.scm-prototype .expert-pool-section { padding-top:14px; margin-top:14px; border-top:1px solid var(--line); }
.scm-prototype .expert-pool-section .selection-toolbar { gap:10px 14px; align-items:end; }
.scm-prototype .expert-pool-section .selection-toolbar .field { min-width:130px; }
.scm-prototype .expert-pool-section .selection-toolbar .field input { max-width:120px; }
.scm-prototype #supplier-picker .supplier-selection-row { grid-template-columns:18px minmax(140px,1fr) minmax(180px,1.5fr) minmax(100px,.8fr); }
.scm-prototype .selection-products { font-size:12px; overflow-wrap:anywhere; }
.scm-prototype .supplier-products-cell { min-width:180px; max-width:300px; }
.scm-prototype #supplier-order-hint { margin:4px 0 8px; }
.scm-prototype .supplier-match { font-size:10px; padding:2px 5px; }
.scm-prototype .supplier-match[hidden] { display:none; }
@media(max-width:640px) {
 .scm-prototype .scoring-trial-inputs { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .scm-prototype #supplier-picker .supplier-selection-row { grid-template-columns:18px minmax(0,1fr); }
 .scm-prototype #supplier-picker .selection-products,.scm-prototype #supplier-picker .supplier-selection-row>:last-child { grid-column:2; }
 .scm-prototype .expert-pool-section .selection-toolbar .field { min-width:110px; flex:1; }
}
.scm-prototype .supplier-product-summary { display:flex; flex-wrap:wrap; align-items:center; gap:4px 6px; }
.scm-prototype .supplier-product-chip { display:inline-flex; align-items:center; gap:4px; padding:2px 5px; border-radius:4px; background:#f1f5f3; font-size:12px; }
.scm-prototype .product-source { color:#496e88; font-size:10px; white-space:nowrap; }
.scm-prototype .supplier-product-add-row { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) auto; gap:10px; align-items:end; }
@media(max-width:640px) {
 .scm-prototype .supplier-product-add-row { grid-template-columns:1fr; }
 .scm-prototype .supplier-product-add-row>.btn { justify-self:end; }
}
.scm-prototype #modal-body:has(#supplier-products-form) td { padding:8px 12px; }
.scm-prototype #modal-body:has(#supplier-products-form) th { padding:10px 12px; }
.scm-prototype .demo-console summary { gap:8px; }
.scm-prototype .demo-console .btn.demo-cases-launch { min-height:27px; padding:3px 8px; border-color:#83aaa6; background:transparent; color:#fff; font-size:11px; white-space:nowrap; }
.scm-prototype #modal:has(.demo-case-directory) { width:min(1050px,calc(100% - 32px)); max-width:1050px; }
.scm-prototype .demo-case-directory { display:grid; gap:18px; }
.scm-prototype .demo-case-group h3 { display:flex; align-items:center; gap:8px; padding:0 0 8px; border-bottom:1px solid var(--line); font-size:14px; }
.scm-prototype .demo-case-group h3>span { color:var(--muted); font-size:11px; font-weight:400; }
.scm-prototype .demo-case-row { display:grid; grid-template-columns:24px minmax(0,1fr) 95px 220px; gap:10px; align-items:center; padding:10px 0; border-bottom:1px solid #e7eeeb; }
.scm-prototype .demo-case-number { color:var(--muted); font-size:12px; }
.scm-prototype .demo-case-title { min-width:0; }
.scm-prototype .demo-case-title strong { display:block; font-size:13px; }
.scm-prototype .demo-case-title small { display:block; margin-top:3px; color:var(--muted); font-size:11px; overflow-wrap:anywhere; }
.scm-prototype .demo-case-row .actions { flex-wrap:nowrap; gap:6px; }
@media(max-width:640px) {
 .scm-prototype .demo-case-row { grid-template-columns:22px minmax(0,1fr); gap:6px 8px; }
 .scm-prototype .demo-case-current { grid-column:2; grid-row:auto; }
 .scm-prototype .demo-case-row .actions { grid-column:2; justify-content:flex-start; }
}

/* Project details: current work first, procurement contents next, reference rules aside. */
.scm-prototype .project-detail-page { min-width:0; }
.scm-prototype .project-detail-page>*+* { margin-top:16px; }
.scm-prototype .project-detail-page>.page-head { margin-bottom:0; align-items:center; }
.scm-prototype .project-detail-page .page-head h1 { font-size:25px; }
.scm-prototype .project-detail-page>.stepper { padding:10px 6px; border-radius:7px; }
.scm-prototype .project-detail-page .step { flex-basis:90px; font-size:11px; }
.scm-prototype .project-detail-page>.tabs { margin-top:10px; }
.scm-prototype .project-detail-page>.tabs .tab { padding-top:10px; padding-bottom:10px; }
.scm-prototype .project-focus { display:flex; align-items:center; flex-wrap:wrap; gap:16px 24px; padding:20px 22px; border:1px solid #bdd8d0; border-left:4px solid #268575; border-radius:8px; background:#f3faf7; }
.scm-prototype .project-focus-copy { flex:1 1 310px; min-width:0; }
.scm-prototype .project-focus-heading { display:flex; align-items:center; flex-wrap:wrap; gap:8px 12px; }
.scm-prototype .project-focus h2 { font-size:18px; line-height:1.5; }
.scm-prototype .project-focus-copy>p { margin-top:7px; color:#5d7672; font-size:13px; overflow-wrap:anywhere; white-space:pre-wrap; }
.scm-prototype .project-focus-progress { margin-top:8px; color:#42685f; font-size:12px; }
.scm-prototype .project-focus-deadline { display:grid; gap:4px; font-size:12px; color:var(--muted); }
.scm-prototype .project-focus-deadline strong { font-size:14px; font-weight:600; color:#244e48; font-variant-numeric:tabular-nums; }
.scm-prototype .project-focus-deadline small { font-size:11px; }
.scm-prototype .project-focus-actions { flex:0 0 auto; justify-content:flex-end; }
.scm-prototype .project-overview-grid { display:grid; grid-template-columns:minmax(0,1fr) 330px; align-items:start; gap:18px; margin-top:18px; }
.scm-prototype .project-overview-grid>* { min-width:0; }
.scm-prototype .project-overview .panel { padding:20px; }
.scm-prototype .project-overview .panel>.section-title { margin-bottom:14px; }
.scm-prototype .project-overview .panel>.section-title h2 { font-size:17px; }
.scm-prototype .project-overview-aside>.panel+.panel { margin-top:16px; }
.scm-prototype .detail-description { margin-bottom:18px; line-height:1.8; font-size:14px; white-space:pre-wrap; overflow-wrap:anywhere; }
.scm-prototype .detail-list-heading { margin-bottom:10px; }
.scm-prototype .detail-list-heading h3,.scm-prototype .detail-delivery h3,.scm-prototype .detail-attachments h3 { font-size:13px; font-weight:600; }
.scm-prototype .detail-item-list table { min-width:520px; font-size:13px; }
.scm-prototype .detail-item-list :is(td,th) { padding:11px 10px; vertical-align:top; }
.scm-prototype .detail-item-list td:nth-child(1) { width:90px; font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.scm-prototype .detail-item-list td:nth-child(3) { min-width:130px; overflow-wrap:anywhere; white-space:pre-wrap; }
.scm-prototype .detail-item-list td:nth-child(n+4) { white-space:nowrap; }
.scm-prototype .detail-delivery,.scm-prototype .detail-attachments { margin-top:18px; padding-top:16px; border-top:1px solid var(--line); }
.scm-prototype .detail-delivery p { margin-top:6px; color:var(--muted); font-size:13px; white-space:pre-wrap; overflow-wrap:anywhere; }
.scm-prototype .detail-attachments h3 { margin-bottom:7px; }
.scm-prototype .detail-attachments .attachment-list { margin:0; }
.scm-prototype .project-facts { display:grid; gap:12px; margin:0; font-size:13px; }
.scm-prototype .project-facts>div { display:grid; grid-template-columns:70px minmax(0,1fr); gap:12px; align-items:start; }
.scm-prototype .project-facts dt { color:var(--muted); }
.scm-prototype .project-facts dd { margin:0; text-align:right; overflow-wrap:anywhere; }
.scm-prototype .project-date-list { display:grid; gap:10px; margin-top:16px; padding-top:14px; border-top:1px solid var(--line); font-size:12px; }
.scm-prototype .project-date-list>div { display:flex; justify-content:space-between; flex-wrap:wrap; gap:2px 8px; }
.scm-prototype .project-date-list span { color:var(--muted); }
.scm-prototype .project-date-list time { font-variant-numeric:tabular-nums; }
.scm-prototype .detail-label { display:block; margin-bottom:4px; color:var(--muted); font-size:12px; }
.scm-prototype .overview-rule-block>strong { display:block; font-size:14px; overflow-wrap:anywhere; }
.scm-prototype .overview-rule-block>p { margin-top:6px; }
.scm-prototype .overview-rule-block+.overview-rule-block,.scm-prototype .project-overview-aside .panel>.muted+.overview-rule-block { margin-top:16px; padding-top:14px; border-top:1px solid var(--line); }
.scm-prototype .overview-weights { display:flex; flex-wrap:wrap; gap:8px 20px; margin-top:8px; font-size:13px; }
.scm-prototype .overview-weights b { color:var(--blue); }
.scm-prototype .overview-rule-details { margin-top:10px; font-size:12px; }
.scm-prototype .overview-rule-details summary { width:fit-content; cursor:pointer; color:var(--blue); padding:3px 0; }
.scm-prototype .overview-rule-details[open] summary { margin-bottom:10px; }
.scm-prototype .overview-rule-details .formula { padding:9px 10px; font-size:12px; }
.scm-prototype .overview-rule-details .formula+.detail-label { margin-top:10px; }
.scm-prototype .overview-rule-details p { margin-top:8px; }
.scm-prototype .overview-rule-details table { min-width:0; font-size:12px; }
.scm-prototype .overview-rule-details :is(td,th) { padding:8px 6px; vertical-align:top; overflow-wrap:anywhere; }
@media(max-width:1100px) {
 .scm-prototype .project-overview-grid { grid-template-columns:minmax(0,1fr) 290px; gap:14px; }
 .scm-prototype .project-overview .panel { padding:16px; }
}
@media(max-width:900px) {
 .scm-prototype .project-overview-grid { grid-template-columns:minmax(0,1fr); }
 .scm-prototype .project-overview-aside { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; align-items:start; }
 .scm-prototype .project-overview-aside>.panel+.panel { margin-top:0; }
}
@media(max-width:640px) {
 .scm-prototype .project-detail-page .page-head h1 { font-size:21px; }
 .scm-prototype .project-focus { padding:16px; gap:12px; }
 .scm-prototype .project-focus-copy { flex-basis:100%; }
 .scm-prototype .project-focus h2 { font-size:16px; }
 .scm-prototype .project-focus-actions { margin-left:auto; }
 .scm-prototype .project-overview-aside { grid-template-columns:minmax(0,1fr); }
 .scm-prototype .project-detail-page .step { flex-basis:80px; }
}
