/* CR-012 platform entrance. Reuses the local workbench's sidebar/card/filter
   primitives; colors and geometry follow the supplied screenshot. */
.portal-shell{display:grid;grid-template-columns:204px minmax(0,1fr);min-height:100vh;background:#000;color:#f5f5f5;font:14px/1.5 system-ui,-apple-system,"PingFang SC",sans-serif}
.portal-shell button,.portal-shell input,.portal-shell select{font:inherit}
.portal-shell button{transition:background .15s,border-color .15s;color:inherit}
.portal-shell button:active{transform:none!important}.portal-shell button:focus-visible,.portal-shell input:focus-visible,.portal-shell select:focus-visible{outline:2px solid #fff;outline-offset:4px}
.portal-sidebar{position:sticky;top:0;height:100vh;background:#191919;border-right:1px solid #333;padding:18px 12px 22px;display:flex;flex-direction:column;min-width:0}
.portal-brand{height:43px;display:flex;align-items:center;gap:12px;padding:0 9px;white-space:nowrap}
.portal-brand>strong{font-size:15px;letter-spacing:.1px}.portal-brand-logo>.portal-icon{width:30px;height:30px}
.portal-icon{width:22px;height:22px;display:inline-flex;flex-shrink:0;vertical-align:middle}
.portal-icon svg{width:100%;height:100%;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round}
.portal-icon-button{border:0;padding:4px;background:none;color:#aaa!important;cursor:pointer;margin-left:auto;display:flex;align-items:center;justify-content:center}
.portal-icon-button .portal-icon{width:16px;height:16px}
.portal-navigation{display:flex;flex-direction:column;gap:6px;margin-top:26px}
.portal-navigation>button{display:flex;align-items:center;gap:16px;text-align:left;border:0;border-radius:10px;background:none;padding:14px 16px;min-height:48px;color:#bbb;font-size:15px;font-weight:500;white-space:nowrap}
.portal-navigation>button.active{background:#343434;color:#fff;font-weight:650}
.portal-navigation>button:disabled{opacity:1;cursor:default;color:#aaa}.portal-navigation>button:disabled:hover{background:none}
.portal-sidebar-bottom{margin-top:auto}.portal-side-divider{height:1px;background:#333;margin:12px 4px 10px}
.portal-sidebar-bottom .portal-navigation{margin-top:0;gap:2px}.portal-user{display:flex;align-items:center;gap:9px;margin:10px 16px 0;font-size:14px}
.portal-avatar{display:grid;place-items:center;border-radius:50%;width:27px;height:27px;background:#2b2b2b;font-size:12px;font-weight:600}
.portal-main{position:relative;padding:88px 44px 32px;min-width:0}
.portal-main:focus{outline:0}.portal-main>h1{font-size:24px;line-height:32px;font-weight:700;letter-spacing:0;margin:0 0 18px}
.portal-points{position:absolute;top:16px;right:24px;display:flex;align-items:center;gap:6px;padding:5px 12px;border:1px solid #333;border-radius:24px;background:#191919;color:#bbb;font-weight:600;font-size:13px}
.portal-points .portal-icon{width:16px;height:16px}
.portal-mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.portal-mode{display:flex;align-items:flex-start;flex-direction:column;gap:9px;min-height:100px;padding:16px;border:1px solid #333;border-radius:15px;background:#222;text-align:left;cursor:pointer}
.portal-mode-icon{display:grid;place-items:center;width:34px;height:34px;background:#292929;border:1px solid #363636;border-radius:10px}
.portal-mode strong{font-size:15px;line-height:22px;font-weight:650}.portal-mode.overseas{border-color:#aaa}.portal-mode.overseas:hover{background:#292929;border-color:#fff}
.portal-mode:disabled{opacity:1;cursor:default}.portal-mode:disabled strong{color:#eee}
.portal-project-section{margin-top:30px}.portal-project-section>h2{font-size:18px;font-weight:650;margin:0 0 16px;color:#fff}
.portal-status-tabs{display:inline-flex;padding:4px;border:1px solid #383838;border-radius:30px;background:#292929;gap:4px}
.portal-status-tabs button{border:0;background:none;color:#999;font-size:14px;font-weight:600;border-radius:25px;padding:10px 16px;min-height:40px;cursor:pointer}
.portal-status-tabs [aria-selected=true]{background:#fff;color:#161616}.portal-status-tabs button>span{display:inline-block;font-size:11px;margin-left:5px;min-width:18px;text-align:center}
.portal-filters{display:flex;gap:10px;margin-top:14px;align-items:center;flex-wrap:wrap}
.portal-filters select,.portal-filters input{height:36px;border:1px solid #777;background:#1f1f1f;border-radius:10px;padding:7px 12px;color:#f5f5f5;min-width:0;max-width:100%}
.portal-filters select{width:172px;cursor:pointer}.portal-filters input{width:260px}.portal-filters input::placeholder{color:#858585}
.portal-project-count{margin-left:auto;color:#bbb;font-size:13px;white-space:nowrap}
.portal-project-list{margin-top:16px;min-width:0}.portal-empty{min-height:245px;border:1px dashed #333;border-radius:13px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;background:#040404;padding:30px;color:#aaa;text-align:center}
.portal-empty>.portal-icon{width:36px;height:36px;color:#aab7be}.portal-empty p{font-size:14px}.portal-start{display:flex;align-items:center;justify-content:center;background:#fff!important;color:#161616!important;border:0;border-radius:8px;min-height:34px;padding:7px 14px;font-weight:650!important;cursor:pointer}
.portal-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.portal-project{display:flex;flex-direction:column;align-items:flex-start;gap:12px;min-height:150px;padding:22px;border:1px solid #3b3b3b;border-radius:12px;background:#1f1f1f;text-align:left;cursor:pointer;overflow-wrap:anywhere;min-width:0}
.portal-project:hover{border-color:#aaa;background:#252525}.portal-project-meta{font-size:12px;color:#aaa}.portal-status{font-size:13px;color:#aaa;margin:12px 0;min-height:20px}
.portal-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.portal-collapsed{grid-template-columns:72px minmax(0,1fr)}.portal-collapsed .portal-brand{padding:0;justify-content:center}.portal-collapsed .portal-brand-logo,.portal-collapsed .portal-brand>strong,.portal-collapsed .portal-navigation>button>span:last-child,.portal-collapsed .portal-user{display:none}.portal-collapsed .portal-icon-button{margin:0}.portal-collapsed .portal-navigation>button{justify-content:center;padding:14px 8px}
@media(max-width:900px){.portal-main{padding:80px 24px 28px}.portal-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.portal-filters input{flex:1;width:auto;min-width:160px}.portal-project-count{width:100%;text-align:right}}
@media(max-width:640px){.portal-shell,.portal-collapsed{grid-template-columns:64px minmax(0,1fr)}.portal-sidebar{padding:16px 8px}.portal-brand{padding:0;justify-content:center}.portal-brand-logo,.portal-brand>strong,.portal-navigation>button>span:last-child,.portal-user{display:none}.portal-icon-button{margin:0}.portal-navigation>button{padding:12px 8px;justify-content:center}.portal-main{padding:72px 16px 24px}.portal-mode-grid{grid-template-columns:minmax(0,1fr)}.portal-mode{min-height:96px}.portal-filters select{width:100%}.portal-filters input{width:100%;min-width:0;flex:auto}.portal-project-grid{grid-template-columns:minmax(0,1fr)}.portal-status-tabs button{padding:9px 11px}.portal-empty{padding:24px 14px}.portal-points{right:16px}.portal-main>h1{font-size:23px}}
@media(prefers-reduced-motion:reduce){.portal-shell *{transition:none!important;animation:none!important}}
/* Neutralize legacy disabled-form colors inside the reference platform shell. */
.lab .portal-shell .portal-navigation>button:disabled{background:transparent;border:0;color:#b9b9b9;font-weight:500}
.lab .portal-shell .portal-mode:disabled{background:#222;border-color:#333;color:#f5f5f5;font-weight:500}
.portal-sidebar{padding-top:12px}.portal-navigation{margin-top:20px}

/* CR-133: the unconnected points display is information, not an action. */
.portal-points:not(button):not(a){border:0;border-radius:0;background:transparent;box-shadow:none;padding:0}
.portal-status-tabs button>span{background:transparent;border:0;border-radius:0}
