/* Superluck V7: single layout source. Loaded after ai-v2.css. */
body.ai-portal{margin:0;background:#f6f8fd;color:#172647;direction:ltr;overflow-x:hidden}
body.ai-portal *,body.ai-portal *::before,body.ai-portal *::after{box-sizing:border-box}
body.ai-portal .site-header{position:relative;top:auto;z-index:30;margin:0;background:#fff;border-bottom:1px solid #e6ecf5}
body.ai-portal .site-header .head-inner{width:calc(100% - 40px);max-width:1220px;margin:0 auto;min-height:76px;padding:0;display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:24px}
body.ai-portal .site-header .top-nav{display:flex;align-items:center;gap:24px}
body.ai-portal .site-header .header-actions{display:flex;align-items:center;gap:12px}
body.ai-portal .ai-workspace.container{display:grid!important;grid-template-columns:236px minmax(0,1fr)!important;grid-template-areas:"sidebar main"!important;gap:28px!important;align-items:start!important;direction:ltr!important;float:none!important;position:relative!important;width:calc(100% - 40px)!important;max-width:1220px!important;min-width:0!important;margin:32px auto 72px!important;padding:0!important;clear:both!important}
body.ai-portal .ai-workspace>.dash-side{grid-area:sidebar!important;grid-column:1!important;grid-row:1!important;display:block!important;position:sticky!important;top:24px!important;float:none!important;width:236px!important;min-width:0!important;max-width:100%!important;margin:0!important;padding:16px!important;height:auto!important;align-self:start!important;border-radius:18px;background:#fff;border:1px solid #e5eaf5}
body.ai-portal .ai-workspace>.dash-main{grid-area:main!important;grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important;max-width:100%!important;display:block!important;float:none!important;margin:0!important;padding:0!important}
body.ai-portal .ai-workspace .dash-title{margin:0 0 12px;font-size:30px;line-height:1.35}
body.ai-portal .ai-workspace .stats{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:18px!important;margin:24px 0!important;min-width:0!important}
body.ai-portal .ai-workspace .stats>.stat{display:block!important;min-width:0!important;max-width:none!important;width:auto!important;padding:24px!important;overflow:visible!important;word-break:normal!important;overflow-wrap:normal!important;white-space:normal!important}
body.ai-portal .ai-workspace .stat small{display:block;white-space:normal;word-break:normal}
body.ai-portal .ai-workspace .stat strong{display:block;font-size:clamp(22px,2.3vw,30px);white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;line-height:1.4;font-variant-numeric:tabular-nums}
body.ai-portal .ai-workspace .panel{min-width:0;width:100%;margin-top:20px}
body.ai-portal .ai-workspace .cards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;min-width:0!important}
body.ai-portal .ai-workspace .step{display:flex!important;flex-direction:row!important;align-items:flex-start!important;gap:12px!important;min-width:0!important;word-break:normal!important}
body.ai-portal .ai-workspace .step>div{flex:1;min-width:0}
body.ai-portal .ai-workspace .step b,body.ai-portal .ai-workspace .step p{word-break:normal;overflow-wrap:break-word;white-space:normal}
body.ai-portal .ai-workspace .step-number{flex:0 0 38px;min-width:38px}
body.ai-portal .ai-workspace .table-wrap{width:100%;max-width:100%;overflow-x:auto}
/* Homepage has its own namespace, never inherit dashboard grid. */
body.ai-portal .ai-home-hero{width:100%;overflow:hidden;background:radial-gradient(ellipse at 85% 10%,#e9eaff 0,transparent 45%),linear-gradient(135deg,#fff,#f4f6ff)}
body.ai-portal .ai-home-hero .ai-home-shell{width:calc(100% - 40px);max-width:1220px;margin:0 auto;padding:74px 0}
body.ai-portal .ai-home-hero .ai-home-hero-grid{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-areas:"copy demo"!important;align-items:center!important;gap:64px!important;direction:ltr!important}
body.ai-portal .ai-home-hero .ai-home-hero-copy{grid-area:copy!important;grid-column:1!important;grid-row:1!important;width:100%!important;min-width:0!important;float:none!important;margin:0!important}
body.ai-portal .ai-home-hero .ai-home-preview{grid-area:demo!important;grid-column:2!important;grid-row:1!important;min-width:0!important;width:100%!important;max-width:100%!important;float:none!important;margin:0!important;position:relative!important;background:white;border:1px solid #e5eaf6;border-radius:20px;padding:24px;box-shadow:0 25px 60px #263e741a;transform:none!important}
body.ai-portal .ai-home-hero .ai-home-hero-copy h1{font-size:clamp(36px,3.5vw,54px);line-height:1.3;letter-spacing:-1px}
body.ai-portal .ai-home-hero .ai-home-actions{display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;gap:14px;justify-content:flex-start!important}
body.ai-portal .ai-home-hero .preview-code{overflow-x:auto;max-width:100%;white-space:nowrap}
@media(max-width:1050px){body.ai-portal .ai-workspace .stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.ai-portal .ai-workspace .cards{grid-template-columns:1fr!important}body.ai-portal .ai-home-hero .ai-home-hero-grid{gap:28px!important}}
@media(max-width:760px){body.ai-portal .site-header .head-inner{width:calc(100% - 32px);flex-wrap:wrap;padding:12px 0}body.ai-portal .site-header .top-nav{order:3;width:100%;overflow-x:auto;gap:18px}body.ai-portal .ai-workspace.container{width:calc(100% - 32px)!important;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"sidebar" "main"!important;gap:20px!important;margin:20px auto 50px!important}body.ai-portal .ai-workspace>.dash-side{grid-column:1!important;grid-row:1!important;position:static!important;width:100%!important;display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:4px!important;padding:10px!important}body.ai-portal .ai-workspace>.dash-side .side-label{display:none}body.ai-portal .ai-workspace>.dash-side a{flex:0 0 auto;white-space:nowrap}body.ai-portal .ai-workspace>.dash-main{grid-column:1!important;grid-row:2!important}body.ai-portal .ai-home-hero .ai-home-hero-grid{grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"copy" "demo"!important;gap:30px!important}body.ai-portal .ai-home-hero .ai-home-hero-copy{grid-column:1!important;grid-row:1!important}body.ai-portal .ai-home-hero .ai-home-preview{grid-column:1!important;grid-row:2!important}body.ai-portal .ai-home-hero .ai-home-shell{padding:48px 0}}
@media(max-width:520px){body.ai-portal .ai-workspace .stats{grid-template-columns:1fr!important}body.ai-portal .ai-workspace .stat strong{font-size:28px}body.ai-portal .ai-home-hero .ai-home-hero-copy h1{font-size:35px}}
