
:root{--bg:#f6f7f9;--card:#fff;--ink:#161b29;--muted:#697184;--line:#e5e8ee;--accent:#635cf6;--lilac:#efeeff;--shadow:0 16px 50px rgba(27,31,58,.055);--r:24px;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-synthesis:none}
*{box-sizing:border-box}body{margin:0;color:var(--ink);background:var(--bg);-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #a3a0ff;outline-offset:3px}button{border:0}a{text-decoration:none;color:inherit}svg{display:block}input{outline:none}.app{min-height:100dvh;display:grid;grid-template-columns:264px minmax(0,1fr)}.side{background:#141722;color:#f9f9fc;padding:30px 18px;display:flex;flex-direction:column;gap:36px}.brand{display:flex;align-items:center;gap:12px;padding:0 14px}.logo{width:48px;height:48px;background:#a5f4ce;color:#111f1c;border-radius:16px;display:grid;place-items:center;font-weight:950;font-size:22px;letter-spacing:-.09em}.brand h1{font-size:21px;letter-spacing:-.055em;margin:0;line-height:1}.brand span{color:#a3a9b6;font-size:11px;font-weight:650;letter-spacing:.13em}.side-label{color:#858e9e;letter-spacing:.15em;font-size:10px;font-weight:850;margin:0 15px 14px}.nav{display:grid;gap:6px}.nav button{display:flex;width:100%;gap:15px;align-items:center;padding:14px 16px;text-align:left;border-radius:14px;background:transparent;color:#a5afc2;font-weight:680;font-size:15px;transition:.16s}.nav button svg{width:23px;height:23px}.nav button:hover{background:#242a3a;color:#fff}.nav button.active{background:#2d3048;color:white}.nav button.active svg{color:#a5f4ce}.side-foot{margin-top:auto;display:grid;gap:14px;padding:17px 15px;border:1px solid #373e4c;border-radius:19px;background:#1d2230}.side-foot .dot{width:9px;height:9px;background:#88e7b8;border-radius:50%;display:inline-block;margin-right:7px}.side-foot b{font-size:13px}.side-foot p{font-size:12px;line-height:1.6;margin:0;color:#a6b1c0}.side-caption{font-size:11px;color:#858fa2;margin:0 12px}.workspace{min-width:0;padding:24px clamp(20px,4.25vw,72px) 38px}.top{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:44px}.breadcrumb{display:flex;align-items:center;gap:11px;font-size:13px;color:#8c94a2;font-weight:700}.breadcrumb b{color:#272d3b}.top-actions{display:flex;align-items:center;gap:10px}.icon-btn{border:1px solid var(--line);background:var(--card);color:var(--ink);width:45px;height:45px;display:grid;place-items:center;border-radius:15px}.icon-btn svg{width:21px;height:21px}.avatar{width:43px;height:43px;display:grid;place-items:center;border-radius:16px;background:#e2dcff;color:#5442be;font-size:17px;font-weight:900}.content{max-width:1320px;margin:auto}.primary{border-radius:16px;background:#665bf0;color:white;padding:16px 22px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:15px;font-weight:800;white-space:nowrap;box-shadow:0 8px 18px rgba(91,81,233,.18)}.primary svg{width:21px;height:21px}.primary:hover{background:#5149d7}.searchbar{display:flex;align-items:center;gap:13px;background:var(--card);border:1px solid var(--line);padding:10px 12px 10px 18px;border-radius:19px;box-shadow:var(--shadow);margin-bottom:26px}.searchbar svg{width:24px;height:24px;color:#8c92a3;flex-shrink:0}.searchbar input{flex:1;min-width:0;border:0;background:none;color:var(--ink);font-size:16px;padding:11px 0}.searchbar kbd{border-radius:9px;padding:8px;background:#f4f5f9;color:#8c93a6;font-size:12px;font-family:inherit}.section-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:15px}.section-title h3{font-size:22px;letter-spacing:-.05em;margin:0}.section-title span{font-size:13px;color:var(--muted);font-weight:650}.feature{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(300px,.8fr);gap:18px;margin-bottom:27px}.spotlight{position:relative;border-radius:27px;padding:28px;background:#202440;color:white;overflow:hidden;min-height:300px;display:flex;flex-direction:column;justify-content:space-between}.spotlight:before{content:"";position:absolute;width:340px;height:340px;border-radius:50%;right:-100px;top:-140px;background:radial-gradient(circle at 30% 35%,#807cf7,#43448d 60%,transparent 70%);opacity:.75}.spotlight:after{content:"";position:absolute;width:190px;height:190px;right:16px;bottom:-100px;border:45px solid #464b7d;border-radius:50%;opacity:.5}.spotlight>*{position:relative;z-index:1}.spot-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.spot-icon{width:65px;height:65px;display:grid;place-items:center;background:#f6f6ff;color:#1d2233;border-radius:21px;font-size:27px;font-weight:950;letter-spacing:-.065em}.spot-badge{border-radius:999px;color:#c6ffdf;background:#354c51;padding:9px 13px;font-size:12px;font-weight:800}.spotlight h3{font-size:34px;letter-spacing:-.06em;margin:24px 0 8px}.spotlight p{font-size:14px;line-height:1.6;color:#c9cce2;margin:0 0 22px}.spot-bottom{display:flex;align-items:center;justify-content:space-between;gap:10px}.spot-btn{padding:13px 17px;border-radius:12px;background:#a5f4ce;color:#162422;font-weight:850;font-size:14px;display:flex;align-items:center;gap:8px}.spot-btn svg{width:18px;height:18px}.stack{display:flex;align-items:center}.bubble{display:grid;place-items:center;width:38px;height:38px;margin-left:-9px;border:3px solid #202440;border-radius:50%;background:#d9d1ff;color:#3a2c7d;font-size:13px;font-weight:850}.bubble:first-child{margin-left:0}.stack small{font-size:12px;color:#d6d9e5;margin-left:8px}.assistant-card{border:1px solid var(--line);background:var(--card);border-radius:27px;padding:27px;display:flex;flex-direction:column;justify-content:space-between;min-height:300px;box-shadow:var(--shadow)}.assistant-icon{width:59px;height:59px;display:grid;place-items:center;background:#e8f7ef;color:#246a4c;border-radius:19px}.assistant-icon svg{width:29px;height:29px}.assistant-card h3{font-size:26px;letter-spacing:-.055em;line-height:1.18;margin:22px 0 10px}.assistant-card p{font-size:14px;color:var(--muted);line-height:1.6;margin:0}.recommend{display:flex;gap:8px;align-items:center;color:#167853;background:#ecfaf3;padding:12px 14px;border-radius:12px;font-weight:780;font-size:12px;margin-top:24px}.recommend svg{width:18px;height:18px}.portal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.portal{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:20px;min-height:210px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:10px;transition:transform .18s,box-shadow .18s;box-shadow:var(--shadow);color:var(--ink)}.portal:hover{transform:translateY(-3px);box-shadow:0 20px 45px rgba(25,25,40,.1)}.portal-icon{width:65px;height:65px;border-radius:20px;display:grid;place-items:center;font-size:25px;font-weight:950;letter-spacing:-.08em}.portal-icon.github{background:#f0efff;color:#333155}.portal-icon.google{background:#e9f7ee;color:#28734b}.portal-icon.cloudflare{background:#fff0e0;color:#e68224}.portal-icon.vercel{background:#e9edf6;color:#1a243a}.portal strong{font-size:19px;letter-spacing:-.04em;margin-top:8px}.portal span{font-size:13px;color:var(--muted)}.portal .arrow{margin-top:auto;color:#7566ec;font-size:13px;font-weight:800;display:flex;align-items:center;gap:7px}.notice{margin-top:22px;border-radius:18px;border:1px solid #dad9fa;background:#f0efff;padding:16px 19px;display:flex;align-items:center;gap:14px;color:#4d4794}.notice svg{width:25px;height:25px;flex-shrink:0}.notice p{font-size:13px;line-height:1.5;margin:0}.footer{margin-top:26px;display:flex;justify-content:space-between;gap:10px;color:#a0a5b1;font-size:12px}.mobile-nav{display:none}.modal-backdrop{position:fixed;inset:0;background:rgba(7,10,22,.58);backdrop-filter:blur(10px);z-index:100;display:grid;place-items:center;padding:16px;visibility:hidden;opacity:0;transition:.18s}.modal-backdrop.open{visibility:visible;opacity:1}.modal{width:100%;max-width:520px;max-height:92dvh;overflow:auto;background:var(--card);border-radius:27px;padding:27px;box-shadow:0 30px 90px rgba(0,0,0,.23)}.modal-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.modal h3{font-size:31px;letter-spacing:-.07em;line-height:1.1;margin:15px 0 6px}.modal-desc{font-size:14px;color:var(--muted);line-height:1.55;margin:0 0 22px}.account-row{width:100%;display:flex;align-items:center;gap:13px;text-align:left;padding:15px;border:1.5px solid var(--line);background:var(--card);border-radius:16px;margin-top:10px;color:var(--ink)}.account-row.selected{border-color:#7a6af5;background:var(--lilac)}.account-avatar{width:48px;height:48px;background:#d8ddf7;border-radius:16px;display:grid;place-items:center;font-size:18px;font-weight:850;color:#474a80;flex-shrink:0}.account-meta{flex:1;min-width:0}.account-meta strong{display:block;font-size:16px;overflow:hidden;text-overflow:ellipsis}.account-meta small{color:var(--muted);font-size:12px;display:block;margin-top:5px}.radio-ring{height:23px;width:23px;border-radius:50%;border:2px solid #c5c8d3;display:grid;place-items:center;flex-shrink:0}.selected .radio-ring{border-color:#665cf0}.selected .radio-ring:after{content:"";width:11px;height:11px;border-radius:50%;background:#665cf0}.modal-bottom{display:flex;gap:10px;margin-top:22px}.modal-bottom .primary{flex:1}.secondary{color:var(--ink);background:var(--bg);border:1px solid var(--line);padding:13px 17px;border-radius:15px;font-weight:750}.toast{position:fixed;left:50%;bottom:30px;transform:translate(-50%,30px);background:#22293c;color:white;padding:13px 20px;border-radius:14px;box-shadow:0 16px 42px rgba(5,9,25,.2);font-size:13px;font-weight:700;opacity:0;pointer-events:none;transition:.2s;z-index:150;max-width:calc(100vw - 32px);text-align:center}.toast.visible{opacity:1;transform:translate(-50%,0)}.empty{padding:35px;text-align:center;color:var(--muted);background:var(--card);border:1px dashed var(--line);border-radius:18px;grid-column:1/-1}.subpage{background:var(--card);border:1px solid var(--line);border-radius:25px;padding:25px;min-height:280px}.subpage h3{font-size:27px;letter-spacing:-.055em;margin:0 0 12px}.subpage p{color:var(--muted);line-height:1.7;margin:0 0 16px}.rule{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 0;border-bottom:1px solid var(--line);font-weight:700}.rule:last-child{border-bottom:0}.tag{font-size:12px;color:#6760de;background:var(--lilac);padding:7px 10px;border-radius:100px}.hidden{display:none!important}
body.dark{--bg:#111521;--card:#1c2333;--ink:#f5f6fa;--muted:#abb3c3;--line:#323a4c;--lilac:#323052;--shadow:none}body.dark .searchbar kbd{background:#2b3242}body.dark .assistant-icon{background:#23443d;color:#c0f4de}body.dark .recommend{background:#23473e;color:#c0f4de}body.dark .notice{border-color:#37335d;background:#292647;color:#d0cdfa}body.dark .account-avatar{background:#393758;color:#e0dcff}body.dark .portal-icon.vercel{background:#2d3648;color:white}
@media(max-width:1190px){.portal-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.feature{grid-template-columns:1fr 1fr}.spotlight,.assistant-card{min-height:315px}.workspace{padding-left:28px;padding-right:28px}}
@media(max-width:820px){.app{grid-template-columns:1fr}.side{display:none}.workspace{padding:20px 20px 110px}.top{margin-bottom:30px}.mobile-nav{position:fixed;bottom:0;left:0;right:0;z-index:30;display:flex;justify-content:space-around;gap:4px;padding:9px 10px max(12px,env(safe-area-inset-bottom));background:var(--card);border-top:1px solid var(--line)}.mobile-nav button{background:none;color:var(--muted);padding:7px;min-width:68px;display:grid;place-items:center;gap:3px;font-size:10px;font-weight:750}.mobile-nav button.active{color:#786df0}.mobile-nav svg{width:25px;height:25px}.feature{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.workspace{padding:18px 17px 100px}.top{margin-bottom:30px}.top-actions .avatar{display:none}.feature{grid-template-columns:1fr}.spotlight{min-height:280px;padding:24px}.assistant-card{min-height:0;padding:23px}.assistant-card h3{margin:13px 0 8px}.recommend{margin-top:15px}.portal-grid{gap:12px}.portal{padding:17px;min-height:190px}.portal-icon{width:58px;height:58px;border-radius:18px}.portal strong{font-size:18px}.searchbar kbd{display:none}.modal{padding:20px}.modal h3{font-size:27px}.footer{font-size:11px;flex-wrap:wrap}.spotlight h3{font-size:31px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}
svg{fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.portal .arrow svg{width:17px;height:17px;flex-shrink:0}.top svg,.side svg,.mobile-nav svg{flex-shrink:0}
/* CP-02: identity preferences and supplied MAT LOGIN brand */

:root{--accent:#075bff;--lilac:#eaf4ff}
.logo{background:transparent;width:53px;height:53px;border-radius:14px;overflow:hidden;flex-shrink:0}
.logo img{width:100%;height:100%;object-fit:cover;border-radius:14px;display:block}
.brand h1{font-size:20px;letter-spacing:-.055em}.primary{background:#075cf0;box-shadow:0 8px 18px rgba(16,105,240,.16)}
.primary:hover{background:#034cc8}.portal .arrow{color:#075bda}
.spotlight{background:linear-gradient(128deg,#081f77,#034bdb 62%,#09a9e7)}
.spotlight:before{background:radial-gradient(circle at 30% 35%,#01c9f0,#0252cf 65%,transparent 75%)}.spotlight:after{border-color:#a0d7fa}
.spot-icon{background:rgba(255,255,255,.96)}.spot-badge{background:#084f88}
.spot-btn{background:#d9f9ff;color:#07335d}
.nav button.active svg{color:#76d9ff}
.account-row.selected{border-color:#076bff;background:#eaf4ff}
body.dark .account-row.selected{background:#16385a}
.selected .radio-ring{border-color:#086dfe}.selected .radio-ring:after{background:#086dfe}
.account-label{font-size:11px;background:#dceeff;color:#1358a5;border-radius:99px;padding:5px 9px;font-weight:800;white-space:nowrap}
.default-setting{margin-top:16px;border-radius:16px;display:flex;align-items:center;gap:13px;padding:15px;background:var(--bg);cursor:pointer}
.default-setting input{height:22px;width:22px;accent-color:#075cf0;flex-shrink:0}
.default-setting strong{display:block;font-size:14px;color:var(--ink)}
.default-setting small{display:block;font-size:12px;color:var(--muted);line-height:1.5;margin-top:5px}
.identity-rules{display:grid;gap:10px;margin:22px 0}
.identity-rule{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:17px;padding:15px}
.identity-rule .portal-icon{width:50px;height:50px;font-size:20px;flex-shrink:0;border-radius:15px}
.identity-rule .identity-text{flex:1;min-width:0}
.identity-rule b{display:block;font-size:16px}
.identity-rule small{display:block;font-size:12px;color:var(--muted);margin-top:5px;overflow-wrap:anywhere}
.identity-rule button{border-radius:13px;border:1px solid var(--line);background:var(--bg);color:var(--ink);padding:11px 13px;font-size:13px;font-weight:800;white-space:nowrap}
#reset-defaults{width:100%;margin-top:3px;font-size:14px}
.small-note{font-size:12px!important;margin-top:17px!important}
.recommended-info{color:#0a69b3!important;font-size:12px!important;font-weight:750}
body.dark .recommended-info{color:#80bcff!important}
@media(max-width:620px){.identity-rule{gap:9px;padding:12px}.identity-rule .portal-icon{width:44px;height:44px;font-size:16px}.identity-rule button{padding:10px;font-size:12px}.brand h1{font-size:20px}}

/* CP-02: simulated portal recognition, no external URL fetching */
.detect-panel{display:flex;gap:20px;align-items:flex-start;border:1px solid var(--line);background:var(--card);border-radius:24px;padding:24px;margin:0 0 27px;box-shadow:var(--shadow)}
.detect-symbol{width:62px;height:62px;border-radius:19px;background:#e4f1ff;color:#0967ef;display:grid;place-items:center;flex:none}
.detect-symbol svg{width:31px;height:31px}.detect-body{flex:1;min-width:0}
.detect-head{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.detect-head h3{font-size:23px;letter-spacing:-.05em;margin:0}
.detect-pill{font-size:10px;letter-spacing:.10em;font-weight:850;color:#17539b;background:#e4f1ff;border-radius:99px;padding:6px 9px}
.detect-body>p{font-size:14px;color:var(--muted);line-height:1.6;margin:9px 0 15px}
.detect-form{display:flex;align-items:stretch;gap:9px}.detect-form input{min-width:0;flex:1;padding:15px;border-radius:14px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font-size:15px;outline:none}
.detect-form input:focus-visible{outline:3px solid #8bbdff;outline-offset:1px;border-color:#307fff}
.detect-submit{display:flex;align-items:center;gap:9px;justify-content:center;border-radius:14px;background:#075cf0;color:white;font-weight:800;padding:13px 18px;min-height:50px;white-space:nowrap}
.detect-submit:hover{background:#064cc5}.detect-submit svg{width:20px;height:20px}
.detect-result{margin-top:13px;border-radius:15px;background:#edf7f1;border:1px solid #b5e8ca;padding:16px;color:#12633e}
.detect-result:not([hidden]){display:flex;gap:12px;align-items:center;flex-wrap:wrap}
.detect-result.warning{background:#fff5ee;border-color:#f0cbb5;color:#9c4421}
.detect-result .detect-result-info{flex:1;min-width:180px}.detect-result strong{display:block;font-size:15px;line-height:1.35}
.detect-result small{display:block;font-size:12px;margin-top:5px;line-height:1.5;overflow-wrap:anywhere}
.detect-result button{background:#fff;border:1px solid #b4d8c5;color:#125f3e;border-radius:12px;padding:12px 14px;font-size:13px;font-weight:800;min-height:44px}
.detect-hint{display:flex;align-items:center;gap:7px;margin-top:13px;color:var(--muted);font-size:12px;line-height:1.4}
.detect-hint svg{width:16px;height:16px;flex-shrink:0}
.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}
body.dark .detect-symbol,body.dark .detect-pill{background:#193e63;color:#b6d9ff}
body.dark .detect-result{background:#183c32;color:#bff7d9;border-color:#356b57}
body.dark .detect-result.warning{background:#483022;color:#ffdabf;border-color:#835239}
@media(max-width:620px){.detect-panel{padding:18px;gap:11px;flex-direction:column}.detect-symbol{height:50px;width:50px;border-radius:15px}.detect-symbol svg{width:26px;height:26px}.detect-head h3{font-size:22px}.detect-form{flex-direction:column}.detect-submit{width:100%}.detect-form input{width:100%}.detect-result:not([hidden]){align-items:stretch;flex-direction:column}.detect-result button{width:100%}}
.account-advice{margin:4px 0 16px;color:#0858ae;background:#e7f2ff;font-size:13px;font-weight:750;line-height:1.55;border-radius:12px;padding:12px 14px}
.modal-bottom .primary:disabled{background:#a4b0c5;box-shadow:none;cursor:not-allowed}
body.dark .account-advice{color:#d0e8ff;background:#1b3854}
@media(max-width:620px){
 .top-actions{gap:7px}
 .top-actions>.tag{display:none}
 .modal-backdrop{align-items:end;padding:0}
 .modal{max-width:none;max-height:90dvh;border-radius:26px 26px 0 0;padding:22px 18px max(22px,env(safe-area-inset-bottom));}
 .account-row{padding:13px;min-height:75px}
 .account-avatar{width:51px;height:51px;font-size:20px}
 .modal-bottom .primary{min-width:0;white-space:normal}
}
.account-row:focus-visible{outline:3px solid #5ca6ff;outline-offset:2px}
.account-row:hover{border-color:#4289ef}
.modal-backdrop[aria-hidden="true"]{pointer-events:none}
.mobile-nav button{min-width:44px;min-height:44px}
@media(max-width:380px){.top{gap:6px}.top-actions{gap:5px}.breadcrumb{font-size:11px;gap:5px}.workspace{padding-left:14px;padding-right:14px}.portal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.portal{padding:13px;min-width:0}.modal-bottom{gap:7px}.modal-bottom .primary,.modal-bottom .secondary{font-size:13px;padding:13px 10px}}

/* CP-02 schema clarification: Portal=apps, Identity=user accounts */
.portal-icon img,.spot-icon img{height:62%;width:62%;object-fit:contain;display:block}
.portal-icon.github img,.portal-icon.vercel img,.portal-icon.notion img{filter:brightness(0)}
body.dark .portal-icon.github img,body.dark .portal-icon.vercel img,body.dark .portal-icon.notion img{filter:none}
.portal-static{cursor:default;min-width:0}.portal-static:hover{transform:none}.portal-unavailable{font-size:12px;color:var(--muted);background:var(--bg);border-radius:12px;padding:8px;margin-top:3px}
.identity-rules{display:grid;gap:10px;margin:18px 0}.directory-count{font-size:13px;color:var(--muted);font-weight:700;margin:16px 0 6px}
.identity-account{display:flex;gap:14px;align-items:center;border-radius:18px;border:1px solid var(--line);background:var(--card);padding:14px;min-width:0}
.identity-account .portal-icon{width:48px;height:48px;min-width:48px;flex:none;border-radius:14px}
.identity-account-body{min-width:0;flex:1}.identity-account-body strong{display:block;font-size:15px;overflow-wrap:anywhere}
.identity-account-body small{display:block;font-size:12px;color:var(--muted);margin-top:4px;overflow-wrap:anywhere}
.identity-account-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.identity-account-meta span{font-size:11px;padding:3px 8px;background:var(--bg);border:1px solid var(--line);border-radius:99px;color:var(--muted)}
.identity-account-meta .identity-primary{color:#175fa7;background:#e0f0ff;border-color:#a2c9f5}
.identity-manage{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:11px 13px;color:var(--ink);font-size:13px;font-weight:800}
.method-choice{display:grid;gap:8px;margin-top:16px;color:var(--ink)}
.method-choice strong{font-size:13px}.method-choice select{background:var(--bg);color:var(--ink);border:1px solid var(--line);padding:12px;border-radius:13px;width:100%;font:inherit}
.method-choice small{color:var(--muted);font-size:12px;line-height:1.5}
.feature-placeholder{display:flex;align-items:center;gap:14px;padding:18px;background:var(--card);border:1px solid var(--line);border-radius:19px;margin-top:20px}
.feature-placeholder-icon{width:48px;height:48px;flex:none;border-radius:15px;display:grid;place-items:center;background:var(--bg);color:var(--ink)}
.feature-placeholder-icon svg{width:25px;height:25px}.feature-placeholder strong{font-size:16px}
.feature-placeholder p{font-size:12px!important;margin:7px 0 0!important;line-height:1.5}
.feature-stage{margin-left:auto;font-size:11px;white-space:nowrap;font-weight:800;color:var(--muted);padding:8px;border-radius:99px;background:var(--bg)}
.sample-credential{display:grid;gap:8px;border:1px dashed var(--line);border-radius:17px;padding:18px;margin-top:16px;color:var(--ink);max-width:500px}
.sample-credential>span,.sample-credential small{color:var(--muted);font-size:12px}.sample-credential code{letter-spacing:.22em;font-size:19px}
.mobile-nav{overflow-x:auto;justify-content:space-between;scrollbar-width:none}.mobile-nav::-webkit-scrollbar{display:none}
.mobile-nav button{flex:1 0 auto;min-width:50px;font-size:10px;padding:8px 4px}
@media(max-width:620px){.identity-account{gap:9px;padding:11px}.identity-account .portal-icon{width:41px;height:41px;min-width:41px}.identity-manage{padding:9px}.feature-placeholder{align-items:flex-start;flex-wrap:wrap}.feature-stage{margin-left:0}}
@media(max-width:370px){.mobile-nav button{min-width:56px}.identity-account-meta span{font-size:10px}}

/* MAT-LOGIN v0.7: readable text and prominent icon-first controls */
body{font-size:16px;line-height:1.55}
.nav{gap:8px}.nav button{font-size:17px;min-height:56px;font-weight:750;gap:15px}
.nav button svg{width:29px;height:29px;flex-shrink:0}
.section-title h3{font-size:clamp(23px,2.5vw,28px);line-height:1.25;letter-spacing:-.035em}
.section-title span,.directory-count,.portal span,.portal .arrow{font-size:15px;line-height:1.45}
.portal{min-height:224px;padding:22px;gap:12px}
.portal-icon{width:78px;height:78px;border-radius:21px;flex:none}
.portal-icon img,.spot-icon img{width:74%;height:74%;object-fit:contain}
.portal strong{font-size:22px;line-height:1.2;letter-spacing:-.03em}
.portal-unavailable{font-size:14px}
.identity-account{gap:16px;padding:17px}
.identity-account .portal-icon{width:60px;height:60px;min-width:60px}
.identity-account-body strong{font-size:18px;line-height:1.4}
.identity-account-body small,.identity-account-meta span{font-size:14px}
.identity-manage{font-size:16px;min-height:48px;min-width:64px}
.primary,.secondary,.detect-submit,.history-clear{min-height:48px;font-size:16px}
.searchbar input,.detect-form input{font-size:17px}
.account-row{min-height:76px;padding:17px}
.account-avatar{width:56px;height:56px;font-size:22px}
.account-meta strong{font-size:18px}.account-meta small{font-size:14px;line-height:1.45}
.modal-desc,.method-choice strong,.method-choice small,.default-setting small{font-size:15px;line-height:1.5}
.feature-placeholder strong{font-size:19px}.feature-placeholder p{font-size:15px!important}
.feature-placeholder-icon{width:62px;height:62px}.feature-placeholder-icon svg{width:32px;height:32px}
.feature-stage{font-size:14px}
.subpage>p,.history-note{font-size:16px;line-height:1.6}
.home-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:0 0 24px}
.home-stat{background:var(--card);border:1px solid var(--line);border-radius:22px;padding:21px;display:flex;flex-direction:column;align-items:flex-start;gap:7px;min-width:0}
.home-stat-icon{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:#dcedff;color:#0962c3}
.home-stat-icon svg{width:32px;height:32px}
.home-stat strong{font-size:clamp(27px,3vw,39px);font-weight:850;line-height:1.15;color:var(--ink)}
.home-stat span{font-size:17px;font-weight:750;color:var(--muted)}
.home-history{margin:0 0 27px;padding:21px;border:1px solid var(--line);border-radius:24px;background:var(--card)}
.home-history .section-title{margin-bottom:14px}
.history-clear{background:var(--bg);border:1px solid var(--line);border-radius:12px;padding:10px 16px;color:var(--ink);font-weight:750}
.history-clear:disabled{opacity:.45;cursor:not-allowed}
.history-empty{font-size:16px;line-height:1.5;color:var(--muted);padding:24px 8px;margin:0}
.history-list{display:grid;gap:9px}
.activity-row{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid var(--line);border-radius:16px;min-width:0}
.activity-row .portal-icon{width:56px;height:56px;border-radius:16px}
.activity-info{flex:1;min-width:0;display:grid;gap:3px}
.activity-info strong{font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.activity-info span,.activity-row time{font-size:14px;color:var(--muted);line-height:1.4}
.activity-row time{text-align:right;flex-shrink:0}
.history-note{margin:13px 0 0;color:var(--muted)}
.portal-detector{margin-top:24px}
body.dark .home-stat-icon{background:#183d65;color:#a8d4ff}
@media(max-width:820px){
 .workspace{padding-bottom:125px}
 .mobile-nav{justify-content:space-between;gap:2px;padding:9px 7px max(12px,env(safe-area-inset-bottom));overflow-x:auto}
 .mobile-nav button{min-width:60px;min-height:64px;font-size:12px;font-weight:800;gap:5px;padding:7px 3px;flex:1 0 auto}
 .mobile-nav svg{width:29px;height:29px}
 .portal{min-height:218px}
}
@media(max-width:620px){
 .home-overview{gap:9px}
 .home-stat{padding:15px 12px;align-items:center;text-align:center;border-radius:17px}
 .home-stat-icon{height:49px;width:49px;border-radius:14px}
 .home-stat-icon svg{height:28px;width:28px}
 .home-stat strong{font-size:29px}
 .home-stat span{font-size:14px}
 .home-history{padding:15px;border-radius:20px}
 .home-history .section-title{align-items:flex-start;gap:8px}
 .history-clear{padding:10px 12px;min-width:0;font-size:14px}
 .portal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .portal{padding:16px;min-height:222px}
 .portal-icon{height:65px;width:65px;border-radius:18px}
 .portal-icon img{height:75%;width:75%}
 .portal strong{font-size:19px}
 .portal span,.portal .arrow{font-size:14px}
 .identity-account .portal-icon{height:52px;width:52px;min-width:52px}
 .identity-account-body strong{font-size:17px}
 .identity-account-body small,.identity-account-meta span{font-size:13px}
 .activity-row{gap:10px;flex-wrap:wrap}
 .activity-row .portal-icon{width:50px;height:50px}
 .activity-row time{margin-left:60px;text-align:left;flex-basis:100%}
 .mobile-nav button{font-size:12px;min-width:60px}
 .mobile-nav svg{width:29px;height:29px}
 .feature-placeholder-icon{width:54px;height:54px}
 .feature-placeholder-icon svg{width:28px;height:28px}
 .modal-desc{font-size:15px}
 .method-choice select{font-size:16px;padding:14px}
 .account-meta strong{font-size:17px}
}
@media(max-width:350px){
 .home-stat{padding:12px 6px}.home-stat span{font-size:13px}
 .portal{padding:12px}.portal strong{font-size:18px}
 .portal span,.portal .arrow{font-size:13px}
}

/* Save Login: dashboard totals are icon + number of equal visual size; centered label below */
.home-stat{align-items:center;justify-content:center;text-align:center;min-height:156px;gap:13px}
.home-stat-value{display:flex;justify-content:center;align-items:center;gap:12px;width:100%;min-width:0}
.home-stat-value .home-stat-icon{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:12px}
.home-stat-value .home-stat-icon svg{width:36px;height:36px}
.home-stat-value strong{font-size:36px;line-height:1;font-weight:850;letter-spacing:-.04em;min-width:1ch;font-variant-numeric:tabular-nums}
.home-stat>span{font-size:17px;font-weight:750;line-height:1.3;color:var(--muted)}
@media(max-width:620px){
 .home-stat{min-height:119px;padding:15px 6px;gap:10px}
 .home-stat-value{gap:6px}
 .home-stat-value .home-stat-icon{height:32px;width:32px;flex-basis:32px;border-radius:9px}
 .home-stat-value .home-stat-icon svg{height:28px;width:28px}
 .home-stat-value strong{font-size:28px;line-height:1}
 .home-stat>span{font-size:14px;line-height:1.3}
}
@media(max-width:350px){
 .home-stat{min-height:110px;padding:12px 4px}
 .home-stat-value .home-stat-icon{height:29px;width:29px;flex-basis:29px}
 .home-stat-value .home-stat-icon svg{height:26px;width:26px}
 .home-stat-value strong{font-size:26px}
 .home-stat>span{font-size:13px}
}

/* Approved Save Login identity with white launcher breathing room. */
.logo{background:#fff;overflow:hidden;border-radius:14px}
.logo img{object-fit:contain}
.brand h1{white-space:nowrap;letter-spacing:-.035em}


/* Save Login: direct-to-content layout and blue/turquoise brand palette. */
:root{--bg:#f4f8fc;--ink:#112b48;--muted:#536b80;--line:#dce8f0;--accent:#087bd5;--lilac:#e1f4f7}
.side{background:#0c2745}.side-foot{background:#123452;border-color:#28516d}
.nav button.active{background:#164c72}.nav button.active svg{color:#67e0db}
.nav button:hover{background:#164363}.side-foot .dot{background:#21c5bf}
.brand span{color:#b6cddc}.logo{background:transparent;overflow:visible}
.logo img{object-fit:contain;border-radius:0}
.top{margin-bottom:20px}.avatar{background:#def5f4;color:#087478}
.primary{background:#087bd5;box-shadow:none}.primary:hover{background:#075ab5}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline-color:#0b92b8}
.tag{background:#e2f3f8;color:#075b8c}.mobile-nav button.active{color:#087b9b}
.account.selected{border-color:#078aad;background:#edf9fa}.radio:after{background:#087bd5}
.section-actions{display:flex;align-items:center;gap:12px}.section-actions .primary{padding:10px 15px;min-height:44px}
body.dark{--bg:#071e31;--card:#0e2c44;--ink:#e7f5fc;--muted:#a4bfce;--line:#26495e;--lilac:#153e52}
body.dark .tag{background:#153e52;color:#7cdded}body.dark .avatar{background:#174d5d;color:#82e4df}
@media(max-width:620px){.top{margin-bottom:18px}.section-actions{gap:8px}.section-actions .primary{padding:9px 12px;font-size:14px}.section-title{flex-wrap:wrap}}

.logo img{color-scheme:light}body.dark .logo img{color-scheme:dark}
