:root{color-scheme:light;--ink:#16233a;--muted:#778398;--subtle:#9aa5b6;--border:#e7ebf2;--bg:#f6f8fc;--surface:#fff;--brand:#5162e9;--brand-deep:#414fd2;--soft:#edf0ff;--sidebar:#10192b;--sidebar-muted:#8a97b2;--shadow:0 5px 22px rgba(24,41,78,.035);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}
*,*::before,*::after{box-sizing:border-box}
[hidden]{display:none!important}
html{min-width:320px;scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--ink)}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:not-allowed}
button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #b8c1ff;outline-offset:2px}
input,select{width:100%;min-width:0;border:1px solid #dce2ec;border-radius:10px;background:#fff;color:#243047;padding:11px 13px;min-height:44px;transition:border-color .2s,box-shadow .2s}
input:focus,select:focus{border-color:#8b98eb;box-shadow:0 0 0 3px rgba(81,98,233,.09);outline:0}
input::placeholder{color:#a3adbc}
input[type=search]{appearance:none}
svg.ico{width:19px;height:19px;flex:none;stroke:currentColor;stroke-width:1.8;fill:none;stroke-linecap:round;stroke-linejoin:round}
.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}
h1,h2,h3,p{margin-top:0}
h1,h2,h3{letter-spacing:-.035em;line-height:1.28}
h1{font-size:30px;font-weight:750}
h2{font-size:19px;font-weight:720}
h3{font-size:16px;font-weight:700}
p{line-height:1.7}
small{font-size:12px}
.sr-only{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.eyebrow{font-size:10px;font-weight:800;letter-spacing:.155em;color:#6674ba}
.eyebrow-light{color:#b7c5ff}
.muted,.section-intro{color:var(--muted)}
.section-intro{font-size:13px;margin:4px 0 0;line-height:1.6}
.brand{display:flex;align-items:center;gap:12px;font-size:15px;font-weight:850;letter-spacing:.025em;line-height:1.25;white-space:nowrap}
.brand-mark{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:linear-gradient(140deg,#7c8aff,#5062ef);color:#fff;box-shadow:0 5px 15px rgba(79,97,223,.25)}
.brand-mark .ico{width:22px;height:22px}
.brand-accent{color:#a2b1ff}
.btn{display:inline-flex;justify-content:center;align-items:center;gap:9px;min-height:42px;padding:10px 16px;border:1px solid transparent;border-radius:10px;font-size:13px;font-weight:700;white-space:nowrap;transition:background-color .15s,transform .15s,box-shadow .15s}
.btn .ico{width:17px;height:17px}
.btn:hover:not(:disabled){transform:translateY(-1px)}
.btn-primary{background:var(--brand);color:#fff;box-shadow:0 4px 12px rgba(79,97,223,.14)}
.btn-primary:hover:not(:disabled){background:var(--brand-deep)}
.btn-secondary{background:#fff;border-color:#dfe5ee;color:#35445f}
.btn-secondary:hover:not(:disabled){background:#f5f7fb}
.btn-ghost{border-color:#e2e6ee;background:#fff;color:#687588}
.btn-sm{min-height:34px;font-size:12px;padding:7px 11px}
.btn-danger{background:#d83e49;color:#fff}
.btn-danger:hover:not(:disabled){background:#be313c}
.btn-full{width:100%}
.icon-button{display:grid;place-items:center;background:transparent;border:0;border-radius:9px;color:#778397;width:37px;height:37px;padding:8px}
.icon-button:hover{background:#f2f5fa;color:#3b4b62}
.text-button{border:0;background:transparent;display:inline-flex;align-items:center;gap:8px;color:var(--brand);font-weight:750;padding:9px 0}
.text-button .ico{width:15px;height:15px}
.live-dot{width:8px;height:8px;display:inline-block;background:#35cfa5;border-radius:99px;box-shadow:0 0 0 4px rgba(53,207,165,.13);flex:none}
/* Authentication */
.auth-shell{display:grid;grid-template-columns:minmax(380px,48%) 1fr;min-height:100vh;background:#fff}
.auth-visual{background:radial-gradient(circle at 88% 19%,rgba(107,129,237,.28),transparent 38%),linear-gradient(145deg,#182747 0%,#0d1831 53%,#14264d 100%);color:#fff;position:relative;overflow:hidden;display:flex;align-items:center;padding:88px clamp(36px,6vw,106px)}
.auth-visual-inner{z-index:1;max-width:570px;width:100%}
.brand-large{font-size:18px;margin-bottom:100px}
.auth-visual h1{font-size:clamp(38px,4.4vw,64px);line-height:1.11;letter-spacing:-.055em;margin:23px 0 20px;font-weight:770}
.auth-visual h1 span{color:#a8b5ff}
.auth-visual p{max-width:455px;font-size:15px;line-height:1.85;color:#adbcd5}
.auth-visual-card{display:flex;gap:14px;align-items:center;border:1px solid rgba(205,221,255,.13);background:rgba(255,255,255,.055);padding:17px 19px;border-radius:16px;margin-top:56px;backdrop-filter:blur(8px);max-width:425px}
.auth-visual-card div{display:grid;gap:3px;flex:1}
.auth-visual-card strong{font-size:13px}
.auth-visual-card small{color:#aab9d4}
.auth-visual-card>.ico{color:#9dabfb;width:22px;height:22px}
.auth-orbit{position:absolute;border:1px solid rgba(180,200,255,.07);border-radius:50%;pointer-events:none}
.auth-orbit-one{width:560px;height:560px;bottom:-330px;right:-155px}
.auth-orbit-two{width:760px;height:760px;bottom:-480px;right:-255px}
.auth-visual-footer{position:absolute;bottom:38px;left:clamp(36px,6vw,106px);font-size:10px;letter-spacing:.16em;color:#7890b7}
.auth-main{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:60px 28px;position:relative}
.auth-card{max-width:412px;width:100%}
.auth-card h2{font-size:34px;margin:13px 0 8px;letter-spacing:-.055em}
.auth-card>.section-intro{font-size:14px;margin-bottom:31px}
.auth-tabs{display:grid;grid-template-columns:1fr 1fr;background:#f3f5f9;border:1px solid #edf0f5;padding:5px;border-radius:12px;margin-bottom:29px}
.auth-tab{border:0;border-radius:8px;background:transparent;font-weight:650;color:#8590a0;padding:10px}
.auth-tab.active{background:white;color:#35445c;box-shadow:0 2px 8px rgba(29,47,87,.09)}
.auth-recovery-link{width:100%;border:0;background:transparent;color:#5265d4;cursor:pointer;padding:2px 6px;text-align:center;font-size:12px;font-weight:650}
.auth-recovery-link:hover{text-decoration:underline}
.auth-recovery-link:focus-visible{outline:2px solid #5265d4;outline-offset:3px;border-radius:6px}
.stacked-form{display:grid;gap:18px}
.stacked-form label{display:grid;gap:8px;font-size:12px;font-weight:700;color:#34445e}
.required{color:#ed5961}
.password-field{display:flex;position:relative;align-items:center}
.password-field input{padding-right:48px}
.password-field button{position:absolute;right:4px;width:39px;height:38px;border:0;background:transparent;color:#9aa6b9;border-radius:8px;display:grid;place-items:center}
.password-field button:hover{color:#5969ca;background:#f4f5fa}
.field-hint{font-weight:450;color:#8994a5;line-height:1.6}
.stacked-form>.btn{margin-top:5px}
.helper{font-size:12px;color:#687990;display:flex;gap:8px;align-items:flex-start;margin:0}
.helper .ico{width:16px;height:16px;color:#6575d7}
.auth-trust{margin-top:35px;display:flex;justify-content:center;align-items:center;gap:8px;font-size:11px;color:#98a2b2;text-align:center}
.auth-trust .ico{width:16px;height:16px}
.auth-small-footer{position:absolute;bottom:20px;text-align:center;font-size:11px;color:#a8b1bf}
.auth-mobile-brand{display:none}
/* Shell */
.app-shell{display:flex;min-height:100vh}
.sidebar{width:250px;flex:none;background:var(--sidebar);color:#fff;min-height:0;display:flex;flex-direction:column;padding:20px 16px 14px;position:sticky;top:0;height:100vh;height:100dvh;overflow:hidden;z-index:30}
.sidebar-brand{padding:1px 8px 22px;font-size:14px;flex:none}
.sidebar-menu{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:0 4px 12px 0;scrollbar-width:thin;scrollbar-color:#40506c transparent}
.sidebar-menu::-webkit-scrollbar{width:5px}
.sidebar-menu::-webkit-scrollbar-thumb{background:#40506c;border-radius:8px}
.sidebar-menu:focus-visible{outline:2px solid #889aff;outline-offset:-2px;border-radius:8px}
.sidebar-brand small{display:block;margin-top:6px;color:#667690;font-size:9px;letter-spacing:.19em;font-weight:750}
.sidebar-group-label{color:#65738d;font-size:10px;letter-spacing:.13em;font-weight:750;padding:0 16px;margin-bottom:13px}
.sidebar-group-second{margin-top:37px}
.sidebar-nav{display:grid;gap:5px}
.nav-link{display:flex;align-items:center;gap:13px;text-align:left;padding:12px 14px;background:transparent;color:var(--sidebar-muted);border:1px solid transparent;border-radius:10px;min-height:45px;width:100%;font-size:13px;font-weight:600;transition:background .15s,color .15s}
.nav-link .ico{width:19px;height:19px}
.nav-link>span:nth-child(2){flex:1}
.nav-link:hover{color:#e0e6fa;background:#1c2a43}
.nav-link.active{background:#303e76;color:#fff;border-color:#4a5794}
.nav-link.active .ico{color:#b6c3ff}
.nav-count{min-width:22px;border-radius:20px;padding:2px 6px;text-align:center;background:#bc623c;color:white;font-size:10px;font-weight:800}
.sidebar-bottom{flex:none;margin-top:0;padding-top:12px;border-top:1px solid #27364e}
.sidebar-security{border:1px solid #2a3951;background:#19263b;border-radius:11px;padding:13px 11px;display:flex;align-items:center;gap:10px}
.security-icon{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;color:#a8b9ff;background:#2a3857;flex:none}
.security-icon .ico{width:17px;height:17px}
.sidebar-security strong{font-size:11px;display:block;font-weight:700}
.sidebar-security small{display:block;color:#8597b4;font-size:10px;margin-top:2px}
.sidebar-logout{border:0;background:transparent;color:#b9c8e3;display:flex;align-items:center;gap:13px;min-height:42px;margin-top:4px;padding:9px 13px;font-weight:650;width:100%;text-align:left;border-radius:9px}
.sidebar-logout:hover{color:white;background:#253550}
.workspace{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{background:#fff;height:74px;border-bottom:1px solid var(--border);padding:0 clamp(22px,3.2vw,52px);display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:20}
.topbar-left,.topbar-actions{display:flex;gap:12px;align-items:center}
.topbar-breadcrumb{color:#91a0b2;font-size:13px}
.breadcrumb-icon{width:15px!important;height:15px!important;color:#b2bdca}
.topbar-left strong{font-weight:750;font-size:13px}
.topbar-actions{gap:11px}
.topbar-secure{display:flex;align-items:center;gap:10px;margin-right:17px;border-right:1px solid #e6eaf0;padding-right:25px;color:#7a899e;font-size:11px}
.topbar-secure .live-dot{width:7px;height:7px}
.avatar{width:36px;height:36px;border-radius:12px;background:#e9edff;color:#5160c9;font-weight:850;display:grid;place-items:center}
.topbar-user{display:grid;line-height:1.4;min-width:70px}
.topbar-user strong{font-size:12px}
.topbar-user small{color:#8b96a6;font-size:11px}
.top-logout{margin-left:6px}
.mobile-menu{display:none}
.content{max-width:1600px;width:100%;margin:0 auto;padding:32px clamp(22px,3.2vw,52px) 44px;flex:1}
.page{animation:page-fade .16s ease-out}
@keyframes page-fade{from{opacity:.6;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
.page-header{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:3px 0 28px}
.page-header h1{margin:7px 0 3px;font-size:28px}
.page-count{border-radius:99px;border:1px solid #dce3f1;background:#fff;padding:8px 13px;white-space:nowrap;font-size:12px;font-weight:700;color:#56657c}
.workspace-footer{display:flex;justify-content:space-between;border-top:1px solid var(--border);padding:17px clamp(22px,3.2vw,52px);color:#a0aabd;font-size:11px;background:#fff}
/* Dashboard */
.welcome-band{background:linear-gradient(110deg,#394f9c,#374f9c 60%,#263d88);color:#fff;border-radius:18px;min-height:185px;padding:33px 41px;position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;margin-bottom:32px}
.welcome-band:before,.welcome-band:after{content:"";border-radius:50%;position:absolute;pointer-events:none;border:1px solid rgba(255,255,255,.09)}
.welcome-band:before{width:290px;height:290px;right:-20px;top:-135px}
.welcome-band:after{width:420px;height:420px;right:-85px;top:-220px}
.welcome-band h1{font-size:32px;margin:14px 0 7px;position:relative;z-index:1}
.welcome-band p{margin:0;font-size:13px;color:#cbd5fa;position:relative;z-index:1}
.welcome-art{border:1px solid rgba(255,255,255,.2);width:91px;height:91px;border-radius:26px;display:grid;place-items:center;background:rgba(255,255,255,.09);position:relative;z-index:1;transform:rotate(-8deg);margin:0 46px}
.welcome-art .ico{width:47px;height:47px;color:#c7d1ff}
.section-heading,.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:14px}
.section-heading{margin-bottom:20px}
.section-heading h2{margin:6px 0 0;font-size:21px}
.stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:24px}
.stat-card{background:#fff;border:1px solid var(--border);box-shadow:var(--shadow);padding:21px 23px;min-height:173px;border-radius:14px;display:flex;flex-direction:column;align-items:flex-start}
.stat-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:10px;margin-bottom:15px}
.stat-icon .ico{width:19px;height:19px}
.stat-indigo{color:#5c62cc;background:#eeefff}
.stat-cyan{color:#178dad;background:#e6f8fd}
.stat-amber{color:#cd913d;background:#fff4e6}
.stat-green{color:#1c9b79;background:#e4f8ef}
.stat-label{font-size:12px;font-weight:650;color:#758197}
.stat-card strong{font-size:29px;font-weight:780;letter-spacing:-.07em;line-height:1.5;margin:2px 0}
.stat-foot{font-size:11px;color:#9ca7b7}
.overview-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.panel{background:#fff;border:1px solid var(--border);border-radius:15px;box-shadow:var(--shadow);padding:25px;min-width:0}
.panel-heading{margin-bottom:22px}
.panel-heading h2,.panel-heading h3{margin:0;font-size:17px}
.quick-list{display:grid}
.quick-step{background:transparent;border:0;border-top:1px solid #edf0f5;padding:19px 0;display:flex;gap:15px;text-align:left;align-items:center;width:100%;color:var(--ink)}
.quick-step:hover strong{color:var(--brand)}
.quick-step:last-child{padding-bottom:5px}
.quick-index{width:34px;height:34px;display:grid;place-items:center;border-radius:9px;background:#f1f3fd;color:#6c78cd;flex:none;font-size:11px;font-weight:850}
.quick-step div{display:grid;gap:4px;flex:1;min-width:0}
.quick-step strong{font-size:13px}
.quick-step small{color:#8b98aa;font-size:11px;line-height:1.65}
.quick-step>.ico{width:17px;height:17px;color:#9eabc0}
.recent-list{display:grid;min-height:170px}
.recent-item{display:flex;align-items:center;gap:13px;padding:14px 0;border-top:1px solid #edf0f5}
.recent-item .recent-icon{width:34px;height:34px;border-radius:10px;background:#eef1ff;color:#6976db;display:grid;place-items:center;flex:none}
.recent-item .recent-icon .ico{width:17px;height:17px}
.recent-item div{display:grid;gap:2px;min-width:0}
.recent-item strong{font-size:12px;overflow-wrap:anywhere}
.recent-item small{color:#8e9aae;overflow-wrap:anywhere}
.panel-bottom{border-top:1px solid #edf0f5;margin-top:11px;padding-top:13px}
/* Forms and resources */
.two-col-layout{display:grid;grid-template-columns:minmax(335px,.86fr) minmax(400px,1.14fr);gap:22px;align-items:start}
.panel-form{position:relative}
.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}
.inline-note{display:flex;align-items:flex-start;gap:10px;border-radius:11px;background:#f5f7fc;color:#67768f;padding:15px 14px;margin-top:20px;font-size:11px;line-height:1.65}
.inline-note .ico{width:17px;height:17px;flex:none;color:#6271ca}
.key-list-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:-3px 0 16px}
.key-list-tools label{font-size:12px;font-weight:700;color:var(--muted)}
.key-list-tools select{width:auto;max-width:100%;min-height:36px;padding:7px 10px;font-size:12px}
.key-list-tools small{color:var(--muted);margin-left:auto}
.resource-list{display:grid;gap:12px}
.resource-card{border:1px solid #e9edf3;padding:17px;border-radius:12px;background:#fff;display:grid;gap:15px;transition:border-color .15s,box-shadow .15s;min-width:0}
.resource-card:hover{border-color:#d3dbee;box-shadow:0 5px 16px #14274208}
.resource-head{display:flex;gap:10px;align-items:flex-start;justify-content:space-between}
.resource-identity{display:flex;align-items:flex-start;gap:12px;min-width:0;flex:1}
.resource-avatar{width:38px;height:38px;flex:none;border-radius:11px;display:grid;place-items:center;background:#eff1fe;color:#6574d7}
.resource-avatar .ico{width:19px;height:19px}
.resource-avatar.planner{background:#e8f8fb;color:#1f99ae}
.resource-avatar.key{background:#fff5ea;color:#ba873f}
.resource-avatar.alias{background:#eaf5ef;color:#369a70}
.resource-info{display:grid;gap:3px;min-width:0}
.resource-info strong{font-size:13px;overflow-wrap:anywhere}
.resource-info small{color:#919daf;font-size:11px;overflow-wrap:anywhere}
.pill{display:inline-flex;align-items:center;gap:6px;width:max-content;max-width:100%;border-radius:99px;padding:4px 9px;font-size:10px;font-weight:750;background:#edf0ff;color:#5d67cc;white-space:nowrap}
.pill.green{background:#e5f8ed;color:#228660}
.pill.orange{background:#fff3df;color:#b17d28}
.pill.red{background:#fff0f1;color:#c34c57}
.pill.gray{background:#f0f2f6;color:#7c8699}
.pill .live-dot{width:5px;height:5px;box-shadow:none}
.resource-meta{display:flex;flex-wrap:wrap;gap:8px}
.resource-meta span{font-size:11px;color:#7c8ba0;background:#f6f8fb;border-radius:6px;padding:5px 9px;overflow-wrap:anywhere;max-width:100%}
.resource-actions{display:flex;flex-wrap:wrap;gap:9px;border-top:1px solid #f0f2f6;padding-top:13px}
.action-btn{display:inline-flex;align-items:center;gap:6px;border:1px solid #e3e8f0;border-radius:8px;background:#fff;color:#53617a;font-size:11px;font-weight:700;padding:7px 10px;min-height:33px}
.action-btn:hover{background:#f7f8fc}
.action-btn .ico{width:14px;height:14px}
.action-btn.danger{color:#c54853;border-color:#f0dbde}
.action-btn.danger:hover{background:#fff3f4}
.empty-state{text-align:center;border:1px dashed #e1e6ef;border-radius:12px;min-height:180px;display:grid;justify-items:center;align-content:center;gap:9px;padding:24px}
.empty-state .ico{height:25px;width:25px;color:#a1acd1}
.empty-state strong{font-size:13px}
.empty-state p{color:#98a3b5;font-size:11px;max-width:280px;margin:0}
/* Keys */
.generated-key{background:#fff9ec;border:1px solid #f3dfb3;border-radius:12px;padding:17px;margin-top:20px}
.generated-header{display:flex;justify-content:space-between;gap:12px;align-items:center}
.generated-header strong{font-size:12px;color:#8c6524;display:flex;align-items:center;gap:8px}
.generated-header .ico{width:16px;height:16px}
.generated-key>p{font-size:11px;color:#957441;margin:10px 0}
.key-value{display:block;background:#fff;border:1px solid #e9dfc9;color:#49556d;padding:12px;border-radius:8px;margin-bottom:11px;font-size:11px;line-height:1.6;overflow-wrap:anywhere;user-select:all}
/* Account table */
.search-wrap{width:205px;max-width:100%}
.search-wrap input{min-height:36px;padding:7px 11px;font-size:12px}
.table-scroll{overflow-x:auto}
.data-table{width:100%;border-collapse:collapse;min-width:620px;text-align:left;font-size:12px}
.data-table th{background:#f8f9fc;color:#8995a7;text-transform:uppercase;letter-spacing:.09em;font-size:10px;font-weight:750;padding:13px 17px;white-space:nowrap}
.data-table th:first-child{border-radius:8px 0 0 8px}
.data-table th:last-child{border-radius:0 8px 8px 0}
.data-table td{border-bottom:1px solid #eff2f6;padding:15px 17px;vertical-align:middle}
.data-table tr:last-child td{border-bottom:0}
.data-table .action-col{text-align:right}
.cell-user{display:flex;gap:10px;align-items:center;min-width:0}
.cell-user .mini-avatar{width:31px;height:31px;background:#eef1ff;color:#6572c8;display:grid;place-items:center;border-radius:9px;font-weight:800}
.cell-user strong{font-size:12px;overflow-wrap:anywhere}
.table-actions{display:flex;justify-content:flex-end;gap:8px}
.table-empty{text-align:center;color:#8491a5;padding:28px!important}
/* Connection info */
.settings-grid{display:grid;grid-template-columns:1fr 1fr;align-items:start;gap:22px}
.details-list{margin:0}
.details-list>div{display:grid;gap:5px;border-top:1px solid #edf0f4;padding:15px 0}
.details-list dt{font-size:11px;font-weight:650;color:#9aa5b5}
.details-list dd{margin:0;font-size:13px;overflow-wrap:anywhere;font-weight:650}
.details-list dd .icon-button{display:inline-grid;vertical-align:middle}
.details-list code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:12px;background:#f4f6fb;padding:4px 7px;border-radius:6px;overflow-wrap:anywhere}
/* Feedback & confirmation */
.toast{position:fixed;top:89px;right:24px;z-index:100;background:#fff;border:1px solid #e2e8f0;border-radius:13px;box-shadow:0 15px 50px rgba(25,44,82,.17);display:flex;align-items:center;gap:12px;max-width:min(440px,calc(100vw - 32px));min-width:270px;padding:13px 14px;color:#3a4860;font-size:12px;font-weight:650}
.toast.error{border-color:#f4d4da}
.toast-symbol{display:grid;place-items:center;flex:none;width:27px;height:27px;background:#e3f8ed;color:#268b62;border-radius:8px}
.toast.error .toast-symbol{background:#fff0f0;color:#ca4654}
.toast-symbol .ico{width:16px;height:16px}
.toast-close{border:0;background:transparent;color:#94a0ae;margin-left:auto;display:grid;place-items:center;padding:4px}
.toast-close .ico{width:15px;height:15px}
.confirm-dialog{border:1px solid #e9edf2;border-radius:17px;box-shadow:0 30px 100px rgba(8,23,45,.23);max-width:420px;width:calc(100% - 32px);padding:28px;color:var(--ink)}
.confirm-dialog::backdrop{background:rgba(11,23,45,.52);backdrop-filter:blur(3px)}
.confirm-icon{width:43px;height:43px;border-radius:13px;display:grid;place-items:center;background:#fff0f1;color:#db5363;margin-bottom:17px}
.confirm-dialog h2{font-size:21px;margin-bottom:10px}
.confirm-dialog p{font-size:13px;color:#718198;line-height:1.75}
.confirm-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.sidebar-overlay{position:fixed;inset:0;background:rgba(7,16,34,.6);z-index:25}
/* Responsive */
@media(max-width:1250px){.stat-grid{gap:12px}.stat-card{padding:18px}.two-col-layout{grid-template-columns:minmax(300px,.9fr) minmax(335px,1.1fr)}.sidebar{width:230px}.overview-grid{gap:16px}}
@media(max-width:1060px){.stat-grid{grid-template-columns:repeat(2,1fr)}.overview-grid,.two-col-layout,.settings-grid{grid-template-columns:1fr}.auth-visual{padding-left:35px;padding-right:35px}.brand-large{margin-bottom:80px}.auth-visual-footer{left:35px}}
@media(max-width:800px){.sidebar{position:fixed;left:0;top:0;bottom:0;transform:translateX(-100%);transition:transform .2s;box-shadow:0 12px 40px rgba(6,18,43,.15)}.sidebar.open{transform:translateX(0)}.mobile-menu{display:grid}.topbar{padding:0 20px}.content{padding:24px 19px 40px}.topbar-secure{display:none}.auth-shell{grid-template-columns:1fr}.auth-visual{display:none}.auth-main{min-height:100vh;padding:70px 25px}.auth-mobile-brand{display:flex;position:absolute;top:25px;left:25px;font-size:14px}.auth-small-footer{bottom:12px}}
@media(max-width:560px){.topbar-breadcrumb,.breadcrumb-icon,.topbar-user,.top-logout{display:none!important}.topbar{height:63px}.page-header{align-items:flex-start}.page-header h1{font-size:25px}.page-count{font-size:10px;padding:6px 8px}.welcome-band{padding:27px 23px;min-height:165px}.welcome-band h1{font-size:25px}.welcome-art{display:none}.stat-grid{gap:11px}.stat-card{min-height:152px;padding:16px}.stat-card strong{font-size:26px}.stat-label{font-size:11px}.panel{padding:18px}.field-grid{grid-template-columns:1fr}.panel-heading{align-items:flex-start}.search-wrap{width:155px}.resource-head{gap:8px}.auth-card h2{font-size:29px}.workspace-footer{padding:18px;gap:10px}.toast{top:72px;right:16px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* R85 account profile and expanded admin controls */
.warning-note{background:#fff6e7;color:#895d19;border:1px solid #f3e0b9;margin:0 0 20px}
.warning-note .ico{color:#b78023}
.profile-grid{margin-top:4px}
.profile-readonly{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid #edf0f4;color:#8a96a8;font-size:12px}
.profile-readonly strong{color:#35445f;overflow-wrap:anywhere;text-align:right;font-size:12px}
.input-suffix{position:absolute;right:13px;display:grid;place-items:center;color:#9aa6b9;pointer-events:none}
.input-suffix .ico{width:17px;height:17px}
.admin-stat-grid .stat-card{min-height:150px}
.admin-filter-heading{align-items:flex-end}
.admin-filters{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}
.admin-filters .search-wrap{width:230px}
.admin-filters select{width:auto;min-width:145px;min-height:36px;padding:7px 30px 7px 10px;font-size:12px}
.admin-data-table{min-width:1040px}
.admin-data-table td{vertical-align:top}
.admin-data-table .table-actions{justify-content:flex-start;flex-wrap:wrap;max-width:390px}
.admin-data-table .action-btn{font-size:10px;padding:6px 8px;min-height:30px}
.cell-user-detail{display:grid;gap:3px;min-width:150px}
.cell-user-detail small{font-size:10px;color:#8f9bad;overflow-wrap:anywhere}
.cell-user-detail .secondary-line{color:#9ca7b6}
.account-resource-count{display:grid;gap:3px;color:#75839a;font-size:10px;white-space:nowrap}
.audit-panel{margin-top:22px}
.audit-table{min-width:680px}
.audit-table td{font-size:11px}
.audit-table .audit-action{font-weight:750;color:#4c5a71}
.heading-icon{width:19px;height:19px;vertical-align:middle;margin-right:5px;color:#6875ce}
#reset-password-result{margin:0 0 20px}
@media(max-width:1060px){.admin-filter-heading{align-items:flex-start;flex-direction:column}.admin-filters{width:100%;justify-content:flex-start}.admin-filters .search-wrap{flex:1;min-width:180px}.admin-filters select{flex:1;min-width:130px}}
@media(max-width:560px){.admin-filters{display:grid;grid-template-columns:1fr 1fr;width:100%}.admin-filters .search-wrap{grid-column:1/-1;width:100%;min-width:0}.admin-filters select{width:100%;min-width:0}.profile-readonly{align-items:flex-start;flex-direction:column;gap:5px}.profile-readonly strong{text-align:left}}

/* R86 Usage & observability dashboard */
.usage-page-header{align-items:flex-end;gap:24px;flex-wrap:wrap}
.usage-toolbar{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}
.usage-toolbar label{display:grid;gap:6px;color:#6d7a91;font-size:11px;font-weight:750;min-width:145px}
.usage-toolbar select{min-height:40px;padding:8px 30px 8px 11px;font-size:12px}
.usage-account-label{min-width:190px}
.usage-stat-grid{margin-bottom:18px}
.usage-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(340px,.8fr);gap:22px;margin-bottom:22px;align-items:stretch}
.usage-grid>.panel{margin:0;min-width:0}
.usage-chart{width:100%;min-height:230px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.usage-chart-svg{display:block;width:100%;height:auto;min-height:210px;max-height:300px;overflow:visible}
.chart-grid-line{stroke:#edf0f6;stroke-width:1}
.chart-axis-text{font-size:10px;fill:#8793a5;font-family:inherit}
.reported-bar{fill:#5668e9;opacity:.9}
.estimated-bar{fill:#45b9bc;opacity:.9}
.usage-chart rect:hover{opacity:1;stroke:#263d63;stroke-width:.7}
.chart-legend{display:flex;gap:18px;flex-wrap:wrap;justify-content:center;color:#748198;font-size:11px;padding-top:8px}
.chart-legend span{display:inline-flex;align-items:center;gap:7px}
.legend-dot{width:9px;height:9px;border-radius:3px;display:inline-block}
.legend-dot.reported{background:#5668e9}
.legend-dot.estimated{background:#45b9bc}
.quality-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.quality-tile{min-width:0;min-height:78px;padding:13px 14px;border:1px solid #edf0f5;background:#fbfcff;border-radius:12px;display:flex;flex-direction:column;justify-content:space-between;gap:8px}
.quality-tile span{font-size:11px;line-height:1.4;color:#748198}
.quality-tile strong{font-size:20px;letter-spacing:-.025em;overflow-wrap:anywhere}
.usage-caveat{background:#f6f8fd;border:1px solid #e9edf6;color:#7c879a;padding:12px 13px;border-radius:10px;font-size:11px;line-height:1.65;margin:15px 0 0}
.usage-table-panel{margin-top:20px;min-width:0}
.usage-table{min-width:950px}
.usage-table td{font-variant-numeric:tabular-nums;vertical-align:top}
.usage-table td:first-child{font-weight:700;color:#40506b}
.cell-subline{display:block;font-size:10px;color:#93a0b1;font-weight:450;margin-top:3px;overflow-wrap:anywhere}
#usage-account-panel .usage-table{min-width:650px}
#usage-daily-chart .empty-state{padding:38px 10px}
@media(max-width:1120px){.usage-grid{grid-template-columns:1fr}.usage-grid>.panel{width:100%}.usage-page-header{align-items:flex-start;flex-direction:column}.usage-toolbar{width:100%}}
@media(max-width:800px){.usage-toolbar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.usage-toolbar label{min-width:0}.usage-toolbar button{grid-column:1/-1;width:100%}.usage-account-label{grid-column:1/-1}}
@media(max-width:560px){.usage-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.usage-grid{gap:14px}.quality-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quality-tile{padding:11px}.quality-tile strong{font-size:17px}.usage-chart{min-height:190px}.usage-chart-svg{min-height:180px}.usage-toolbar{grid-template-columns:1fr}.usage-toolbar label,.usage-account-label,.usage-toolbar button{grid-column:auto}}

/* R89: administrator-only non-secret runtime controls */
.runtime-options-list{display:grid;gap:12px;margin:10px 0 22px}
.runtime-option{padding:15px;border:1px solid #e7ebf4;border-radius:12px;display:flex;justify-content:space-between;gap:18px;align-items:center;background:#fcfdff}
.runtime-option-info{display:grid;gap:4px;min-width:0}
.runtime-option-info strong{font-size:13px;color:#35445d}
.runtime-option-info small{color:#8b96ab;font-size:10px;overflow-wrap:anywhere}
.runtime-option-info p{color:#63738d;font-size:11px;margin:2px 0;line-height:1.5}
.runtime-option-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.runtime-option-actions select,.runtime-option-actions input{min-height:36px;max-width:180px;padding:7px 10px}
@media(max-width:850px){.runtime-option{align-items:stretch;flex-direction:column}.runtime-option-actions{justify-content:flex-start}}

/* Embedded Nexus operator control */
.nexus-model-section{margin-bottom:18px}
.nexus-model-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}
.nexus-model-grid fieldset{display:grid;gap:14px;border:1px solid #e4e9f2;border-radius:14px;padding:20px;min-width:0}
.nexus-model-grid legend{font-size:14px;font-weight:750;color:#34445e;padding:0 7px}
.nexus-model-grid label{display:grid;gap:7px;font-size:12px;font-weight:650;color:#34445e}
.nexus-model-grid .nexus-check{display:flex;align-items:center;gap:8px}
.nexus-check input{min-width:unset;width:auto;min-height:unset}
.nexus-actions{display:flex;gap:12px;justify-content:flex-end;flex-wrap:wrap}
.nexus-frame{width:100%;height:780px;border:1px solid #e1e8f0;border-radius:12px;background:white}
@media(max-width:800px){.nexus-model-grid{grid-template-columns:1fr}.nexus-frame{height:680px}}

.nexus-confirm{display:flex;align-items:center;gap:9px;color:#46516b;font-size:12px}
.nexus-confirm input{min-width:unset;min-height:unset;width:auto;flex:none}

/* R114: Portal respects style-src self; no runtime/inline style attributes. */
.provider-probe-result{white-space:pre-wrap;overflow:auto;max-height:17rem;font-size:.8rem}
.clipboard-fallback{position:fixed;left:-9999px;top:0;width:1px;height:1px;opacity:0}

/* R115 Operator field guide: accessible hover, keyboard focus and touch click.
   All styling is in the same-origin stylesheet; CSP style-src 'self' stays intact. */
.runtime-group-heading{font-size:13px;letter-spacing:.03em;color:#375071;margin:12px 0 0;padding:3px 2px 6px;border-bottom:1px solid #e6ecf5}
.runtime-option-label-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.runtime-option-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace}
.runtime-help-wrap{position:relative;display:inline-flex;vertical-align:middle;z-index:1}
.runtime-help-wrap:hover,.runtime-help-wrap:focus-within,.runtime-help-wrap.runtime-help-open{z-index:30}
.runtime-help-button{appearance:none;background:#e8f0fc;color:#315e9f;border:1px solid #afc9ed;border-radius:50%;width:23px;height:23px;padding:0;font-size:13px;font-weight:800;cursor:help;line-height:1;display:grid;place-items:center}
.runtime-help-button:hover,.runtime-help-button:focus-visible{background:#d5e5ff;outline:2px solid #86aee6;outline-offset:2px}
.runtime-help-popover{position:absolute;left:0;top:calc(100% + 9px);width:min(450px,calc(100vw - 52px));max-height:min(66vh,550px);overflow:auto;background:#fff;color:#30405a;padding:17px 18px;border:1px solid #b8c9e2;border-radius:12px;box-shadow:0 14px 35px rgba(25,49,80,.22);display:none;font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.runtime-help-wrap:hover .runtime-help-popover,.runtime-help-wrap:focus-within .runtime-help-popover,.runtime-help-wrap.runtime-help-open .runtime-help-popover{display:block}
.runtime-help-title{display:block;font-size:14px;line-height:1.4;margin-bottom:10px;color:#21385a}
.runtime-guide-section{margin:8px 0}
.runtime-guide-section b{display:block;color:#365d8a;font-size:11px}
.runtime-guide-section p{font-size:12px!important;line-height:1.6!important;margin:3px 0 8px!important;color:#405574!important}
.runtime-help-risk{display:inline-block;margin-top:4px;padding:4px 9px;border-radius:9px;background:#ebf2fc;color:#295280;font-weight:600}
.runtime-risk-high{background:#fff1e8;color:#934b14}
.runtime-risk-medium{background:#fff7e0;color:#6f541d}
.runtime-option-warning{display:block;color:#825b20;background:#fff8e8;padding:5px 9px;border-radius:8px;font-size:11px;line-height:1.5}
.runtime-option-origin{margin-top:3px}
@media(max-width:650px){.runtime-help-popover{left:-80px;width:min(340px,calc(100vw - 44px))}.runtime-option-actions select{max-width:100%}}

/* R123 Project Context: readable bindings and partial-source health */
.project-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin:16px 0 22px}
.project-metric{display:flex;flex-direction:column;gap:6px;padding:17px 19px;background:#fff;border:1px solid var(--border);border-radius:13px;min-width:0}
.project-metric span{color:#65758e;font-size:12px;font-weight:650}.project-metric strong{font-size:26px;color:#273e66;line-height:1.25}
.project-metric small{font-size:11px;color:#8190a5;line-height:1.4}
.project-binding-current{font-size:12px;line-height:1.6;color:#536785;background:#f4f7fd;border:1px solid #e3eafa;border-radius:10px;padding:11px 13px;margin:0}
.project-toolbar{display:flex;align-items:end;gap:14px;flex-wrap:wrap;margin:0 0 17px}
.project-toolbar label{font-size:11px;color:#6d7a91;font-weight:700;display:grid;gap:6px;min-width:170px}
.project-toolbar .project-toolbar-search{flex:1;min-width:230px}
.project-toolbar input,.project-toolbar select{min-height:38px}
.project-result-count{font-size:11px;color:#748198;white-space:nowrap;margin-left:auto;padding-bottom:10px}
.project-binding-table{min-width:870px}
.project-binding-table td{vertical-align:middle;overflow-wrap:anywhere;max-width:300px}
.project-binding-table td small{display:block;color:#8491a6;margin-top:5px;font-size:10px}
.project-status{display:inline-flex;align-items:center;border-radius:30px;padding:5px 9px;white-space:nowrap;font-size:11px;font-weight:700;background:#edf0f6;color:#56657c}
.project-status.good{background:#e4f7ed;color:#1a7952}.project-status.warn{background:#fff3df;color:#8a631c}
.project-status.error{background:#fef0f1;color:#ad3d4a}
.project-mono{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:11px;overflow-wrap:anywhere}
.project-catalog{padding-top:19px}.project-catalog summary{display:flex;align-items:center;justify-content:space-between;gap:15px;cursor:pointer;list-style:none}
.project-catalog summary::-webkit-details-marker{display:none}.project-catalog summary strong{font-size:17px;color:#33415a}
.project-catalog summary span{color:#78859b;font-size:11px}.project-catalog[open] summary{margin-bottom:20px}
@media(max-width:1050px){.project-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.project-toolbar{display:grid;grid-template-columns:1fr}.project-toolbar label,.project-toolbar .project-toolbar-search{width:100%;min-width:0}.project-result-count{margin:0;padding:0}.project-metrics{gap:9px}.project-metric{padding:14px}.project-metric strong{font-size:22px}#manual-project-bind-form .field-grid{grid-template-columns:1fr}}

/* R124: release diagnosis and quick access to scoped key bindings. */
.project-release-label{display:inline-block;margin-top:.45rem;color:#5c649b;font-size:.75rem;font-weight:600}
.project-shortcuts{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:14px}
.project-shortcuts span{font-size:.81rem;color:#63708b}
#model-provider-status{font-size:.85rem;line-height:1.5;white-space:pre-line}
#model-provider-retry{align-self:start}

/* R125 Project Operations Center: scoped, non-sensitive evidence dashboard. */
.pc-control-panel{border:1px solid #dbe2f5;border-radius:18px;padding:24px;background:linear-gradient(135deg,#f8faff 0%,#fff 62%,#f4f7ff 100%);box-shadow:0 8px 24px rgba(43,62,114,.045);margin:10px 0 19px}
.pc-control-top{display:flex;gap:24px;justify-content:space-between;align-items:flex-start}
.pc-control-heading{max-width:630px}.pc-kicker{font-size:10px;letter-spacing:.16em;font-weight:800;color:#6476b5}
.pc-control-heading h2{font-size:23px;color:#25385f;margin:6px 0 7px}.pc-control-heading p{color:#73819a;font-size:12px;line-height:1.7;margin:0}
.pc-control-actions{display:flex;gap:12px;align-items:end;flex-wrap:wrap}.pc-control-actions label{display:grid;gap:7px;font-size:11px;font-weight:750;color:#586987;min-width:240px}.pc-control-actions select{height:44px;max-width:350px}
.pc-control-actions .btn{min-height:44px}
.pc-health-banner{display:flex;gap:15px;align-items:center;border-radius:13px;padding:19px;margin:21px 0 16px;border:1px solid #dfe6f1;background:#f4f7fc}
.pc-health-banner.good{border-color:#caecdd;background:#effaf4}.pc-health-banner.warn{border-color:#f2dda9;background:#fff9eb}.pc-health-banner.error{border-color:#f1c7d0;background:#fff2f4}
.pc-health-banner strong{color:#243652;font-size:15px;display:block}.pc-health-banner p{color:#66778c;font-size:12px;line-height:1.6;margin:5px 0 0}
.pc-health-indicator{width:13px;height:13px;border-radius:50%;flex:none;background:#98a7bb;box-shadow:0 0 0 6px rgba(135,150,173,.14)}
.pc-health-banner.good .pc-health-indicator{background:#2eaf78;box-shadow:0 0 0 6px rgba(46,175,120,.13)}
.pc-health-banner.warn .pc-health-indicator{background:#e3a73c;box-shadow:0 0 0 6px rgba(227,167,60,.15)}
.pc-health-banner.error .pc-health-indicator{background:#d25262;box-shadow:0 0 0 6px rgba(210,82,98,.13)}
.pc-pipeline{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.pc-stage{background:#fff;border:1px solid #e7ebf4;border-radius:12px;padding:14px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.pc-stage-index{font-size:10px;font-weight:800;color:#abb5ca;letter-spacing:.11em}.pc-stage strong{font-size:13px;color:#24385a}.pc-stage small{font-size:11px;color:#8795a9;line-height:1.4}
.pc-stage .project-status{max-width:100%;white-space:normal;line-height:1.4}
.pc-health-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:15px;color:#8290a6;font-size:11px}
.pc-events-panel{margin-bottom:20px}.pc-log-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:19px 0 23px}
.pc-log-stats>div{padding:15px;background:#f7f9fd;border:1px solid #edf1f7;border-radius:12px;min-width:0;display:flex;flex-direction:column;gap:8px}
.pc-log-stats small{color:#75839b;font-size:11px}.pc-log-stats strong{font-size:20px;color:#2a3f65;overflow-wrap:anywhere}
.pc-log-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.pc-log-column{padding:18px;border-radius:13px;border:1px solid #e7edf6;background:#fff;min-width:0}
.pc-log-column h3{margin:0 0 5px;color:#293c5c}.pc-log-column>p{color:#8291a5;font-size:11px;margin:0 0 13px;line-height:1.65}
.pc-log-feed{max-height:350px;overflow:auto;display:grid;align-content:start;gap:9px;padding-right:4px}
.pc-log-entry{padding:12px 13px;border:1px solid #eef1f7;border-radius:10px;background:#fafbfe;min-width:0}
.pc-log-entry-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}.pc-log-entry-head strong{font-size:12px;color:#354763}
.pc-log-entry-head .project-status{flex:none}.pc-log-entry small{display:block;color:#7b8ba3;font-size:10px;line-height:1.65;overflow-wrap:anywhere}
.pc-empty{color:#8d99ad;font-size:12px;line-height:1.6;text-align:center;padding:16px 6px}
.pc-explain{margin-top:18px;border:1px dashed #dce3f0;border-radius:12px;padding:12px 15px;background:#f9faff}.pc-explain summary{cursor:pointer;font-weight:720;color:#445777;font-size:12px}
.pc-explain-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 17px;margin-top:12px}.pc-explain-grid p{font-size:11px;line-height:1.7;color:#73829a;margin:0}
.pc-explain-grid strong{color:#4f6281}
@media(max-width:1150px){.pc-control-top{flex-wrap:wrap}.pc-control-actions{width:100%}.pc-control-actions label{flex:1}.pc-log-grid{grid-template-columns:1fr}}
@media(max-width:730px){.pc-control-panel{padding:17px}.pc-pipeline,.pc-log-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.pc-control-actions label{min-width:0;width:100%}.pc-control-actions select{max-width:none}.pc-control-actions .btn{width:100%}.pc-explain-grid{grid-template-columns:1fr}.pc-health-banner{align-items:flex-start}}

/* R126 Project Handoff: scoped, reviewable human notes, no workspace attestation. */
.pc-handoff-panel{margin:0 0 19px;border:1px solid #dbe4f5;background:linear-gradient(180deg,#fff,#fafcff)}
.pc-handoff-panel .panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.pc-handoff-summary{margin:12px 0 14px;padding:12px 15px;background:#eef5ff;border-radius:11px;color:#426083;font-size:12px;line-height:1.65}
.pc-handoff-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 19px}
.pc-handoff-actions .project-mono{color:#7d8ba4}
.pc-handoff-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px 17px}
.pc-handoff-grid label,.pc-git-grid label{display:grid;gap:7px;font-size:12px;font-weight:680;color:#344b70;min-width:0}
.pc-handoff-grid textarea{resize:vertical;min-width:0;width:100%;line-height:1.55}
.pc-git-section{padding:18px;margin-top:18px;background:#f6f8fd;border:1px solid #e5ebf6;border-radius:12px}
.pc-git-section h3{display:flex;align-items:center;gap:6px;font-size:14px;margin:0 0 14px;color:#2d456d}
.pc-git-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}
.pc-git-grid input{width:100%;min-width:0}
.pc-handoff-caution{font-size:11px;line-height:1.6;padding:12px 14px;border:1px solid #f0deaf;border-radius:10px;background:#fffbef;color:#876329}
#pc-handoff-save{align-self:flex-start}
@media(max-width:850px){.pc-handoff-grid{grid-template-columns:1fr}.pc-git-grid{grid-template-columns:1fr}}

/* R127 automatic, read-only project continuity overview */
#pc-auto-handoff-summary { white-space: pre-line; overflow-wrap: anywhere; margin-bottom: 0.65rem; }
.pc-handoff-advanced { margin-top: 1rem; }
.pc-handoff-advanced > summary { cursor: pointer; font-weight: 600; margin-bottom: 0.75rem; }

/* R134: obsolete key-to-project routing controls are not part of the Portal UI. */
#project-routing-legacy-controls[hidden] { display: none !important; }

/* R157 user-scoped operator diagnostics */
.operator-account-summary{border:1px solid var(--border);border-radius:14px;padding:16px;margin:18px 0;background:var(--surface)}
.operator-project-controls{display:flex;gap:10px;align-items:center;margin:12px 0}
.operator-project-controls select{flex:1}
.operator-project-status{padding:12px;background:var(--bg);border-radius:9px;color:var(--ink);line-height:1.8;font-size:13px}
@media(max-width:600px){.operator-project-controls{flex-direction:column;align-items:stretch}}

/* R158: independent, accessible Planner and Embedding verification states */
.nexus-model-check{font-size:12px;line-height:1.5;padding:10px 12px;border-radius:9px;background:#f1f5f9;color:#4b5970;border:1px solid #dbe3eb;min-height:38px;white-space:normal;overflow-wrap:anywhere}
.nexus-model-check.is-ok{color:#166534;background:#f0fdf4;border-color:#86efac}
.nexus-model-check.is-fail{color:#991b1b;background:#fef2f2;border-color:#fca5a5}
.nexus-model-check.is-pending{color:#854d0e;background:#fffbeb;border-color:#fde68a}

.nexus-model-grid select{width:100%;min-height:40px;border:1px solid #cad5e2;border-radius:8px;padding:8px;color:#243047;background:#fff}

/* R160: model registry lives in AI Providers / Model Gateway; old duplicated form hidden. */
#page-nexus .nexus-model-section[hidden]{display:none!important}





/* R166: language preferences available before and after authentication. */
.portal-language-picker{display:inline-flex;align-items:center;gap:8px;flex-shrink:0}
.portal-language-picker label{font-size:12px;color:var(--text-muted,#64748b);font-weight:650}
.portal-language-picker select{max-width:150px;min-height:34px;padding:5px 26px 5px 10px;font-size:12px;line-height:1.35;color:var(--text,#203047);background:var(--surface,#fff);border:1px solid var(--border,#d9e2eb);border-radius:8px;cursor:pointer}
.portal-language-picker select:focus-visible{outline:2px solid #3977ee;outline-offset:2px}
.auth-language-picker{width:100%;max-width:412px;justify-content:flex-end;margin-bottom:14px}
.topbar-language-picker{margin-right:6px}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:560px){.topbar-language-picker select{max-width:108px;min-height:33px;padding-left:5px;font-size:11px}.topbar-language-picker{margin-right:0}}

/* R174 authenticated, read-only Nexus health and admin backup table */
.nexus-health-parts{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:10px;margin:12px 0}
.nexus-health-item{border:1px solid var(--border,#dce2ed);border-radius:9px;padding:10px;display:flex;justify-content:space-between;gap:8px;align-items:center}
.health-ok{color:#14905a}.health-error{color:#bc3333}.health-unknown{color:var(--muted,#697386)}
#nexus-health-summary[data-status="online"]{color:#14905a}
#nexus-health-summary[data-status="offline"],#nexus-health-summary[data-status="degraded"]{color:#bc3333}

/* R178 Live workspace telemetry: all values are operational metadata, not source files. */
.ws-live-panel{margin:0 0 20px}.ws-live-top{align-items:start;gap:12px;flex-wrap:wrap}
.ws-live-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.ws-live-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:14px 0 20px}
.ws-live-metrics>div{padding:13px;background:var(--bg,#f7f9fd);border:1px solid var(--border,#e7edf5);border-radius:11px;min-width:0;display:grid;gap:6px}
.ws-live-metrics small{font-size:11px;color:var(--text-muted,#64748b)}
.ws-live-metrics strong{font-size:23px;font-weight:750;color:var(--text,#263959)}
.ws-live-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.ws-live-columns h3{font-size:14px;margin-bottom:12px}
.ws-live-feed{border:1px solid var(--border,#e5eaf1);border-radius:10px;padding:10px;max-height:390px;overflow:auto;display:grid;align-content:start;gap:9px;min-height:85px}
.ws-live-row{padding:10px 11px;border:1px solid var(--border,#e5eaf1);border-radius:9px;display:flex;gap:10px;justify-content:space-between;align-items:center;min-width:0}
.ws-live-row strong{display:block;font-size:12px;overflow-wrap:anywhere}
.ws-live-row small{font-size:11px;color:var(--text-muted,#64748b);overflow-wrap:anywhere}
.ws-live-row .project-status{flex:none}
.ws-live-empty{font-size:12px;color:var(--text-muted,#64748b);padding:10px}
@media(max-width:860px){.ws-live-columns{grid-template-columns:1fr}.ws-live-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Workspace Sync device-side managed folder picker (names only). */
.ws-folder-field{display:flex;flex-direction:column;gap:6px}
.ws-folder-field>label{font-weight:650;font-size:13px}
.ws-folder-input-row{display:flex;align-items:stretch;gap:8px}
.ws-folder-input-row input{flex:1;min-width:0}
@media(max-width:560px){.ws-folder-input-row{flex-direction:column}.ws-folder-input-row button{width:100%}}

/* R181 Project Context information architecture: eight compact subviews. */
.project-subnav{display:grid;gap:3px;margin:0 0 6px 21px;padding:5px 0 7px 13px;border-left:1px solid #3f4c68}
.project-subnav[hidden],.pc-subview[hidden],.pc-mobile-navigation[hidden]{display:none!important}
.project-subnav-link{width:100%;min-height:32px;padding:7px 10px;text-align:left;border:0;border-radius:8px;background:transparent;color:#a9b8d3;font-size:11px;font-weight:650;line-height:1.3}
.project-subnav-link:hover{background:#233553;color:#fff}
.project-subnav-link.active{background:#2c3b6d;color:#fff;box-shadow:inset 3px 0 0 #a6b6ff}
.pc-subview-heading{border-bottom:1px solid #e5eaf3;margin:6px 0 20px;padding:0 0 17px}
.pc-subview-heading h2{font-size:22px;line-height:1.3;margin:5px 0 4px;color:#263652}
.pc-subview-heading p{margin:0;max-width:850px}
.pc-subview>.panel,.pc-subview>.pc-control-panel{margin-bottom:22px}
.pc-mobile-navigation{display:none;margin:8px 0 18px}
.pc-mobile-navigation label{display:grid;gap:6px;font-weight:750;font-size:12px;color:#59677c}
.pc-mobile-navigation select{min-height:42px;background:white}
@media(max-width:900px){.pc-mobile-navigation{display:block}}

/* R183.4.2: audit-friendly Gateway orchestration setting filters */
.runtime-options-filter{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:12px 0 16px}
.runtime-options-filter label{display:flex;flex-direction:column;gap:6px;min-width:190px;flex:1 1 190px}
.runtime-options-filter input,.runtime-options-filter select{max-width:100%;min-height:38px}
.runtime-options-filter #runtime-options-count{flex:1 1 100%;margin:0}
.runtime-option[hidden],.runtime-group-heading[hidden]{display:none!important}

/* R183.4.25 – Progressive disclosure for everyday Gateway orchestration. */
.orchestration-presets{margin:10px 0 18px}
.orchestration-preset-status{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 14px;border:1px solid #d7e2f4;border-radius:12px;background:#f8faff;color:#344765}
.orchestration-preset-status strong{font-size:13px}
.orchestration-preset-status small{font-size:11px;color:#5a6880}
.orchestration-preset-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:14px 0}
.orchestration-preset-card{display:flex;flex-direction:column;align-items:flex-start;gap:11px;border:1px solid #dce3ed;border-radius:14px;background:#fff;padding:18px}
.orchestration-preset-card h3{margin:0;font-size:16px;color:#243751}
.orchestration-preset-card p{font-size:12px;line-height:1.6;color:#536580;margin:0;flex:1}
.orchestration-preset-card .btn{min-height:38px}
.orchestration-preset-kicker{font-size:11px;letter-spacing:.04em;color:#4e688d;font-weight:700;text-transform:uppercase}
.orchestration-preset-selected{border-color:#7898ca;background:#f8fbff}
.orchestration-preset-selected .btn{opacity:.8;cursor:default}
.orchestration-effective-overview{padding:15px 16px;border:1px solid #e4e9f1;border-radius:12px;margin-bottom:12px}
.orchestration-effective-overview h3{font-size:13px;margin:0 0 12px;color:#2a3b56}
.orchestration-feature-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.orchestration-feature{display:flex;flex-direction:column;gap:4px;padding:10px 12px;border:1px solid #edf0f6;border-radius:9px;background:#fbfcfe}
.orchestration-feature strong{font-size:12px;color:#3d4d67}
.orchestration-feature span{font-size:11px;color:#63718c;line-height:1.45}
.orchestration-preset-footnote{margin-top:9px;line-height:1.6}
.orchestration-disclosure{border:1px solid #e1e7f0;border-radius:13px;margin:12px 0;overflow:visible;background:#fff}
.orchestration-disclosure summary{padding:16px 18px;cursor:pointer;font-weight:650;color:#2b3b56;list-style-position:inside}
.orchestration-disclosure summary span{font-size:12px;color:#77869d;font-weight:400;margin-left:7px}
.orchestration-disclosure summary:focus-visible{outline:2px solid #5581bf;outline-offset:3px}
.orchestration-disclosure[open] summary{border-bottom:1px solid #e8edf5}
.orchestration-disclosure-content{padding:16px 18px}
@media(max-width:700px){.orchestration-preset-grid,.orchestration-feature-grid{grid-template-columns:1fr}.orchestration-preset-card{padding:15px}.orchestration-disclosure-content{padding:12px}.orchestration-disclosure summary span{display:block;margin-left:0;margin-top:4px}}
@media(max-width:700px){
  .orchestration-presets>.panel-heading{flex-direction:column;align-items:stretch;gap:12px}
  .orchestration-presets>.panel-heading>.btn{align-self:flex-start}
}

/* R183.4.26 — account registration experience (no third-party assets) */
.auth-card:has(.registration-form:not([hidden])){max-width:530px}
.auth-main:has(.registration-form:not([hidden])){justify-content:flex-start;padding-top:clamp(50px,6vh,86px);padding-bottom:65px}
.registration-form{gap:16px}
.registration-field-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.registration-steps{display:flex;gap:8px;align-items:center;justify-content:space-between;padding:12px 13px;background:#f6f8fe;border:1px solid #e9edfa;border-radius:12px}
.registration-step{color:#9aa5b7;font-size:11px;display:flex;align-items:center;gap:5px}
.registration-step strong{font-size:11px;font-weight:700}
.registration-step.is-active{color:#4358b8}
.signup-password-strength{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;margin-top:-9px}
.signup-password-strength span{height:5px;background:#e9edf3;border-radius:20px;transition:background .2s}
.signup-password-strength[data-level="1"] span:nth-child(-n+1){background:#d95657}
.signup-password-strength[data-level="2"] span:nth-child(-n+2){background:#e4a44b}
.signup-password-strength[data-level="3"] span:nth-child(-n+3){background:#5e8fd5}
.signup-password-strength[data-level="4"] span:nth-child(-n+4){background:#249a73}
.signup-password-help{font-size:12px;line-height:1.5;color:#758397;margin-top:-8px}
.registration-consent{display:flex!important;flex-direction:row;align-items:flex-start;gap:10px!important;line-height:1.6!important;font-weight:500!important}
.registration-consent input{width:17px;height:17px;flex:none;margin-top:3px;accent-color:#506bd8}
.registration-result{text-align:center;padding:14px 0;max-width:475px}
.registration-result-icon{width:56px;height:56px;margin:0 auto 16px;background:#e7f8f0;color:#167c59;display:grid;place-items:center;border-radius:18px}
.registration-result-icon .ico{width:29px;height:29px}
.registration-result[data-stage="verification_pending"] .registration-result-icon,.registration-result[data-stage="verification_in_progress"] .registration-result-icon{background:#eef3ff;color:#4459c5}
.registration-result[data-stage="verification_failed"] .registration-result-icon{background:#fff0ed;color:#b5483c}
.registration-result h3{font-size:22px;letter-spacing:-.035em}
.registration-result p{font-size:13px;color:#6e7b90;line-height:1.8}
.registration-result ol{text-align:left;background:#f6f8fd;padding:17px 22px 17px 37px;border-radius:12px;margin:18px 0 23px;font-size:12px;color:#485c78;line-height:2}
.registration-resend{padding-top:14px;border-top:1px solid #edf0f6;margin-top:20px}
.registration-resend h3{font-size:14px}
#registration-closed{margin-top:14px}
@media(max-width:560px){.registration-field-row{grid-template-columns:1fr}.registration-steps{padding:9px 8px}.registration-step strong{font-size:10px}.auth-main:has(.registration-form:not([hidden])){padding-top:72px}}

/* R183.4.28 — registration field alignment and explicit deletion confirmation */
.registration-field-row{align-items:start}
.registration-field-row>label{align-self:start;align-content:start;grid-auto-rows:max-content;min-width:0}
.registration-field-row>label>input{width:100%;min-width:0}
.registration-hint-spacer{visibility:hidden;user-select:none}
.account-delete-dialog .stacked-form{margin-top:16px;gap:12px}
.account-delete-dialog .confirm-actions{margin-top:8px}
.account-delete-dialog .delete-error{color:#b43636;font-size:12px;margin:0}
@media(max-width:560px){.registration-hint-spacer{display:none}}
/* R183.4.29 Portal foundation: shared evidence/layout tokens and non-destructive navigation. */
:root{--space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--scope-bg:#f8f9fe;--scope-edge:#e0e5f3;--focus-ring:#5564e8}
.sidebar-inline-label{margin:13px 14px 3px;padding-top:9px;border-top:1px solid #2b3851;color:#8e9db9;font-size:10px;letter-spacing:.13em;font-weight:700}
.project-scope-strip{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:16px 18px;margin:0 0 17px;border:1px solid var(--scope-edge);border-radius:12px;background:var(--scope-bg)}
.project-scope-strip>div{display:grid;gap:3px;min-width:0}
.project-scope-strip small{color:#65728c}
.project-scope-strip strong{font-size:15px;overflow-wrap:anywhere}
.project-scope-strip span{font-size:12px;color:#67748a}
.project-scope-strip .btn{flex-shrink:0}
.usage-pagination{display:flex;justify-content:flex-end;align-items:center;flex-wrap:wrap;gap:12px;padding:15px 6px 2px;color:var(--muted);font-size:12px}
.usage-pagination label{display:flex;align-items:center;gap:7px;white-space:nowrap}
.usage-pagination select{width:79px;min-height:36px;padding:6px 9px}
.usage-pagination-actions{display:flex;gap:8px}
.usage-pagination #usage-recent-page-status{margin-left:auto}
.onboarding-done{margin:10px 16px 15px;color:#2a7157;background:#edfbf5;border:1px solid #d3eddf;padding:12px;border-radius:10px}
/* Avoid hiding focus outlines behind the sticky header. */
:target{scroll-margin-top:90px}
@media(max-width:600px){.project-scope-strip{flex-direction:column;align-items:stretch}.project-scope-strip .btn{align-self:flex-start}.usage-pagination{justify-content:space-between}.usage-pagination #usage-recent-page-status{margin-left:0;width:100%}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.btn,.nav-link{transition:none}}

.provider-filters{display:grid;grid-template-columns:minmax(0,1fr) minmax(120px,165px);gap:12px;margin:14px 0 4px}
.provider-filters label{display:grid;gap:5px;font-size:12px;color:var(--muted)}
.provider-filter-summary{color:var(--muted);font-size:12px;margin:3px 0 14px}
@media(max-width:530px){.provider-filters{grid-template-columns:minmax(0,1fr)}}

/* R183470: readable quick controls, inline preview and saved-state summary. */
.orchestration-quick-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:20px 0 10px}
.orchestration-quick-controls label{display:flex;flex-direction:column;gap:9px;min-width:0;font-size:13px;font-weight:600}
.orchestration-quick-controls select{width:100%;min-width:0;min-height:44px;font-weight:400}
.orchestration-quick-controls small{font-size:12px;line-height:1.65;font-weight:400;color:var(--muted,#5a6880)}
.orchestration-benefits{padding-left:18px;margin:0;font-size:12px;line-height:1.8;color:var(--muted,#536580)}
.orchestration-change-preview{width:100%;margin-top:auto}
.orchestration-change-preview p{font-weight:600}
.orchestration-change-details{margin-top:10px;font-size:12px;max-width:100%}
.orchestration-change-details summary{cursor:pointer;line-height:1.7}
.orchestration-change-details ul{list-style:none;margin:8px 0;padding:0;max-height:260px;overflow:auto}
.orchestration-change-details li{display:flex;flex-direction:column;gap:3px;padding:8px 0;border-bottom:1px solid #75839126;overflow-wrap:anywhere}
.orchestration-change-details small{font-size:11px;color:var(--muted,#536580)}
.orchestration-setup-readiness{margin-top:16px;padding:14px;border:1px solid #75839130;border-radius:12px;font-size:12px;line-height:1.7}
.orchestration-setup-readiness p{margin:6px 0 10px}.orchestration-setup-readiness .btn{margin:4px 8px 0 0}
.orchestration-preset-card .btn{white-space:normal;overflow-wrap:anywhere;max-width:100%}
@media(max-width:700px){.orchestration-quick-controls{grid-template-columns:1fr}.orchestration-preset-status{align-items:flex-start;flex-direction:column}}

.orchestration-preset-card>p,.orchestration-change-preview p{flex:none}

/* R183471: visible deletion eligibility with bounded, keyboard-friendly dialogs. */
.account-delete-dialog{max-height:calc(100dvh - 32px);overflow-y:auto;overflow-wrap:anywhere}
.account-delete-identity strong{color:var(--ink);font-weight:700}
.account-delete-blockers{border:1px solid #bd78514d;border-radius:12px;background:#fff9f3;padding:14px;margin:12px 0;font-size:13px;line-height:1.7}
.account-delete-blockers ul{margin:8px 0;padding-left:20px}.account-delete-blockers p{margin-bottom:0}
.account-delete-dialog .confirm-actions{flex-wrap:wrap}.account-delete-dialog .btn{white-space:normal}

/* R183472: verification progress and an explicit exit from a stale signup tab. */
.registration-status-controls{display:grid;gap:10px;margin-top:16px}.registration-status-controls p{margin:0;line-height:1.65}.registration-status-controls .btn{white-space:normal}

/* R183480: scoped Team controls, responsive forms and readable task progress. */
.team-workspace{min-width:0}
.team-workspace details{margin:1rem 0;border:1px solid var(--border,#dce2ec);border-radius:12px;padding:.85rem 1rem}
.team-workspace summary{cursor:pointer;font-weight:650;line-height:1.5}
.team-workspace details[open]>summary{margin-bottom:1rem}
.team-workspace .stacked-form{margin:1rem 0;max-width:none}
.team-workspace .field-grid>label{min-width:0}
.team-workspace input,.team-workspace select{min-width:0;max-width:100%}
.team-overview{display:grid;grid-template-columns:repeat(auto-fit,minmax(125px,1fr));gap:.65rem;margin:1rem 0}
.team-metric{display:flex;flex-direction:column;gap:.4rem;background:var(--surface-alt,#f3f6fc);border:1px solid var(--border,#dce2ec);border-radius:12px;padding:.85rem}
.team-metric>span{font-size:.82rem;color:var(--muted,#59677a)}
.team-metric>strong{font-size:1.5rem;font-variant-numeric:tabular-nums}
.team-role-guide{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem}
.team-toolbar,.team-pagination,.team-workspace .button-row{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin:1rem 0}
.team-filters{display:flex;gap:.75rem;align-items:end;flex-wrap:wrap;margin:1rem 0}
.team-filters>label{display:flex;flex:1 1 160px;flex-direction:column;gap:.4rem}
.team-workspace .team-consent{display:flex;flex-direction:row;align-items:center;gap:.6rem;line-height:1.55}
.team-consent input[type=checkbox]{width:auto;flex:0 0 auto}
.team-actions{min-width:170px}
.team-actions .btn,.team-actions select{margin:.2rem .25rem .2rem 0}
.team-task-table td{max-width:280px;overflow-wrap:anywhere;white-space:normal}
.team-task-table progress{display:block;max-width:110px;width:100%;height:.6rem;margin:.3rem 0;accent-color:var(--accent,#4f63e4)}
.team-empty{text-align:center;padding:1.4rem!important;color:var(--muted,#59677a)}
.team-editor{border:1px solid var(--border,#dce2ec);border-radius:12px;padding:1rem;background:var(--surface-alt,#f3f6fc)}
.team-activity{list-style:none;margin:0;padding:0;display:grid;gap:.75rem}
.team-activity>li{display:flex;gap:.7rem;align-items:baseline;flex-wrap:wrap;border-bottom:1px solid var(--border,#dce2ec);padding-bottom:.65rem}
.team-activity time{margin-left:auto}
@media(max-width:640px){.team-role-guide,.team-workspace .field-grid{grid-template-columns:1fr}.team-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.team-pagination{justify-content:center}.team-filters>label{flex-basis:100%}.team-actions{min-width:150px}.team-workspace .team-activity time{margin-left:0}}
