/* Compact local portal integration. Existing product sources stay unchanged. */
.kt-portal-invite{display:flex;align-items:center;gap:10px;min-height:56px;padding:10px 12px;border:1px solid #303441;border-radius:10px;background:rgba(255,255,255,.025);color:#f5f5f5;text-decoration:none;font:13px/1.35 system-ui,sans-serif;box-sizing:border-box}
.kt-portal-invite:hover{border-color:#737fe0;background:rgba(88,101,242,.08)}
.kt-portal-invite:focus-visible{outline:3px solid #e0b15a;outline-offset:3px}
.kt-portal-invite-icon{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:#5865f2;flex:none}
.kt-portal-invite-icon svg{width:18px;height:18px}
.kt-portal-invite-copy{display:flex;flex-direction:column;gap:2px;min-width:0}
.kt-portal-invite strong{font-size:13px;font-weight:600}
.kt-portal-invite small{font-size:11px;color:#a0a4b8}
.kt-portal-invite-arrow{margin-left:auto;font-size:16px;color:#a0a4b8}
nav.sidebar .kt-portal-invite{margin:16px 16px 0;padding:9px 10px;gap:8px}
body[data-portal-screen="login"] .feature-stack .kt-portal-invite{margin:0}
.login-shell details.feature-card summary{cursor:pointer;font-size:13px;font-weight:600;color:#f5f5f5}
.login-shell details.feature-card summary:focus-visible{outline:3px solid #e0b15a;outline-offset:4px;border-radius:3px}
.login-shell details.feature-card[open] summary{margin-bottom:10px}
body.kt-portal .kt-header-discord{height:32px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.35;border-radius:7px}
body.kt-portal .kt-header-discord svg{width:17px;height:17px}
body[data-portal-screen="manuals"] .topbar-actions a{height:32px;min-height:32px;padding:6px 10px;line-height:1.25}
@media(max-width:860px){body[data-portal-screen="manuals"]{--topbar-h:95px}}
@media(min-width:861px){
 body[data-portal-screen="login"] .page-shell{padding:20px;min-height:100dvh}
 .login-shell{width:min(1040px,100%);grid-template-columns:minmax(0,1.1fr) minmax(320px,.9fr);border-radius:22px}
 .login-shell .brand-panel{padding:26px;gap:16px;border-bottom:0;border-right:1px solid rgba(255,255,255,.04)}
 .login-shell .brand-mark{width:44px;height:44px}
 .login-shell .hero-title{font-size:34px;line-height:1.12}
 .login-shell .hero-copy{font-size:14px;line-height:1.55;margin-top:10px}
 .login-shell .feature-stack{gap:10px;margin-top:0}
 .login-shell .feature-card{padding:13px 14px;border-radius:12px}
 .login-shell .feature-list{gap:7px}
 .login-shell .brand-note{font-size:11px;line-height:1.5}
 .login-shell .auth-panel{padding:26px}
 .login-shell .auth-card{padding:24px;border-radius:18px}
 body[data-portal-screen="dashboard"]{min-height:100dvh;display:flex;flex-direction:column}
 body[data-portal-screen="dashboard"] .app-main{flex:1;min-height:0}
}
@media(min-width:769px) and (max-height:720px){
 body[data-portal-screen="manuals"] .sidebar{padding-top:12px;padding-bottom:16px}
 body[data-portal-screen="manuals"] .sidebar-title{padding-bottom:8px}
 body[data-portal-screen="manuals"] .sidebar-group-label{padding-top:9px;padding-bottom:4px}
 body[data-portal-screen="manuals"] .snav{padding-top:7px;padding-bottom:7px}
}
@media(min-width:861px) and (max-height:640px){
 body[data-portal-screen="login"] .page-shell{padding:14px}
 .login-shell .brand-panel,.login-shell .auth-panel{padding:22px}
 .login-shell .brand-panel{gap:12px}
 .login-shell .hero-title{font-size:30px}
 .login-shell .feature-card{padding:10px 12px}
 .login-shell .feature-list{gap:5px}
 .login-shell .auth-card{padding:20px}
}
@media(min-width:861px) and (max-height:520px){
 body[data-portal-screen="login"] .page-shell{padding:10px}
 .login-shell .brand-panel,.login-shell .auth-panel{padding:16px}
 .login-shell .brand-panel{gap:12px}
 .login-shell .brand-mark{width:36px;height:36px}
 .login-shell .brand-title{font-size:12px}
 .login-shell .brand-subtitle{font-size:10px}
 .login-shell .hero-title{font-size:26px}
 .login-shell .hero-copy{font-size:13px;line-height:1.45}
 .login-shell .auth-card{padding:16px}
 .login-shell .auth-title{font-size:25px}
 .login-shell .auth-copy{font-size:13px;margin-top:8px}
 .login-shell .form-stack{margin-top:12px;gap:10px}
 .login-shell .form-grid{gap:10px}
 .login-shell label{font-size:12px;gap:5px}
 .login-shell input{padding:9px 11px;font-size:14px;min-height:40px}
 .login-shell .btn-primary{min-height:40px;padding:10px 12px;font-size:12px}
 .login-shell .helper-links{margin-top:12px;font-size:11px;gap:8px 12px}
 body[data-portal-screen="dashboard"] .sidebar .snav{padding-top:7px;padding-bottom:7px;font-size:13px}
 body[data-portal-screen="dashboard"] .sidebar .kt-portal-invite{margin-top:12px}
 body[data-portal-screen="dashboard"] .content{padding:16px 24px}
 body[data-portal-screen="dashboard"] .content-sub{margin-bottom:14px}
 body[data-portal-screen="dashboard"] .quick-stats{margin-bottom:12px}
 body[data-portal-screen="manuals"] .sidebar{padding-top:8px;padding-bottom:8px}
 body[data-portal-screen="manuals"] .sidebar-title{padding:0 18px 6px;font-size:10px;line-height:1.4}
 body[data-portal-screen="manuals"] .sidebar-group-label{padding:6px 18px 3px;font-size:9px;line-height:1.4}
 body[data-portal-screen="manuals"] .snav{padding:4px 18px;font-size:12px;line-height:1.4}
 body[data-portal-screen="manuals"] .sidebar .kt-portal-invite{margin-top:10px;min-height:48px;padding-top:6px;padding-bottom:6px}
}
@media(max-width:720px){body.kt-portal .kt-header-discord{width:34px;padding:6px}body.kt-portal .kt-header-discord .kt-link-label{display:none}body.kt-portal .topbar-right #userEmail{display:none}body.kt-portal .topbar-right{gap:9px}}
