/* KHAOS · Azure Rail App Shell. Inspired by sculptural navigation, not a copied layout.
   Every authenticated app page shares these controls and retains its existing content. */
:root{--shell-blue:#00638e;--shell-deep:#004a6b;--shell-ice:#bfd8e3;--shell-bg:#141619;--shell-card:#222629;--shell-border:#37434b;--shell-muted:#a4b3bb}
.k-azure-rail,.k-azure-dock{display:none}
.k-app-shell{background:radial-gradient(ellipse 900px 550px at 88% -140px,#18333f35,transparent 65%),#141619}
.k-app-shell .k-top,.k-app-shell .builder-top{background:transparent;border-bottom:1px solid #303a41}
.k-app-shell .k-hero,.k-app-shell .ch-hero{border-color:#36586b;background:radial-gradient(ellipse at 95% 4%,#08769e 0%,#004a6b 24%,#1c2931 61%,#1a1e22 100%);box-shadow:0 18px 60px #00000026}
.k-app-shell .card,.k-app-shell .ch-card,.k-app-shell .builder-panel{background:linear-gradient(145deg,#24282b,#1f2326);border:1px solid #38464f;box-shadow:0 6px 28px #00000014}
.k-app-shell .card:hover,.k-app-shell .ch-card:hover{border-color:#537080}
.k-app-shell .k-dashboard-actions{gap:11px}
.k-app-shell .k-dashboard-actions .btn{border-radius:12px}
.k-app-shell .k-empty-campaign{background:linear-gradient(145deg,#24292c,#1d2327);border-style:solid}
.k-app-shell .builder-steps button.active{background:#24495c}
.k-app-shell .builder-sidebar{background:#1b2227;border:1px solid #374850;border-radius:18px;padding:16px}
.k-app-shell .builder-shell,.k-app-shell .character-app{width:100%}
.k-app-shell .k-top .eyebrow,.k-app-shell .builder-top>.eyebrow{color:#9bb5c4}
.k-app-shell .btn{border-radius:11px}
.k-app-shell .k-head h1,.k-app-shell .builder-heading h1{letter-spacing:-.075em}
.k-app-shell .ch-ability{background:#1c2a32}
.k-app-shell .ch-tabs button.active{background:#28536a}
/* Desktop: slim azure sculpted rail that floats above the content canvas. */
@media(min-width:961px){
 body.k-app-shell{padding-left:126px;min-height:100vh}
 .k-app-shell .shell{display:block;min-height:100vh}
 .k-app-shell .shell>.sidebar{display:none!important}
 .k-app-shell .shell>.workspace{min-width:0;width:100%}
 .k-app-shell .workspace>main{max-width:1420px}
 .k-app-shell .k-top,.k-app-shell .builder-top{padding-left:clamp(24px,4vw,58px);padding-right:clamp(24px,4vw,58px)}
 .k-azure-rail{display:flex;position:fixed;z-index:80;top:20px;left:15px;bottom:20px;width:90px;align-items:center;flex-direction:column;gap:28px;padding:23px 8px;background:linear-gradient(165deg,#1285b2 0%,#00638e 30%,#004a6b 73%,#07394e 100%);border:1px solid #368bb09e;border-radius:44px 31px 44px 31px;box-shadow:0 19px 50px #0009,inset 1px 1px #ffffff34;isolation:isolate}
 /* The asymmetric middle bulge creates the same shaped-nav feeling as the reference. */
 .k-azure-rail::after{content:"";position:absolute;z-index:-1;right:-12px;top:39%;width:24px;height:135px;background:#005c83;border-radius:0 24px 24px 0;box-shadow:12px 8px 19px #00000020}
 .k-rail-mark{display:grid;place-items:center;width:53px;height:53px;border:1px solid #f1fbff45;border-radius:18px;color:#fff;font:800 35px/1 Poppins,Inter,sans-serif;letter-spacing:-.11em;background:#ffffff18}
 .k-rail-mark span{color:#bfd8e3}
 .k-rail-links{display:flex;flex-direction:column;gap:10px;width:100%;align-items:center}
 .k-rail-links a{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px;width:70px;min-height:70px;border-radius:22px;color:#e3f0f7d9;transition:background .18s,color .18s,transform .18s}
 .k-rail-links a svg{width:23px;height:23px}
 .k-rail-links a span{font-size:9px;font-weight:700;line-height:1.1;text-align:center}
 .k-rail-links a:hover,.k-rail-links a:focus-visible{background:#ffffff24;color:#fff}
 .k-rail-links a.active{background:#d6ecf4;color:#082d40;box-shadow:0 8px 20px #042a4770}
 .k-rail-links a:active{transform:scale(.96)}
 .k-rail-end{margin-top:auto;display:flex;flex-direction:column;gap:7px;padding-bottom:6px}
 .k-rail-end span{width:4px;height:4px;border-radius:100%;background:#b9dce9aa}
 .k-app-shell .builder-shell{max-width:1450px}
 .k-app-shell .k-main{max-width:1420px}
}
/* Mobile/tablet: floating azure capsule fixed above the home-indicator region. */
@media(max-width:960px){
 .k-app-shell .shell>.sidebar{display:none!important}
 .k-app-shell .shell{display:block}
 .k-app-shell .shell>.workspace{width:100%}
 .k-app-shell .topbar{padding:0 24px;justify-content:space-between}
 .k-app-shell .mobile-brand{display:block!important}
 body.k-app-shell{padding-bottom:calc(112px + env(safe-area-inset-bottom,0px))}
 .k-azure-dock{display:grid;position:fixed;z-index:100;bottom:calc(14px + env(safe-area-inset-bottom,0px));left:12px;right:12px;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;padding:9px 8px;background:linear-gradient(110deg,#00435f 0%,#00638e 50%,#004661 100%);border:1px solid #4a9bbc95;border-radius:25px 25px 29px 29px;box-shadow:0 12px 38px #000b,inset 0 1px #ffffff3b;backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
 .k-azure-dock a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:0;min-height:54px;padding:7px 0;border-radius:17px;color:#e2f0f6dd;font-size:10px;font-weight:700;text-align:center;line-height:1.1;text-decoration:none}
 .k-azure-dock a svg{width:22px;height:22px;flex:none}
 .k-azure-dock a span{display:block;overflow:hidden;text-overflow:ellipsis;max-width:100%}
 .k-azure-dock a.active{background:#d2eaf2;color:#0a3346;box-shadow:0 3px 12px #062f4966}
 .k-azure-dock a:focus-visible{outline:2px solid #fff;outline-offset:2px}
 .k-azure-dock a:active{transform:scale(.97)}
 .k-app-shell .k-main,.k-app-shell .builder-shell,.k-app-shell .character-app{padding-bottom:85px}
 .k-app-shell #notice,.k-app-shell .ch-notice{bottom:calc(105px + env(safe-area-inset-bottom,0px))}
 .k-app-shell .k-top,.k-app-shell .builder-top{min-height:72px}
}
@media(max-width:420px){
 .k-azure-dock{left:9px;right:9px;padding:8px 5px}
 .k-azure-dock a{font-size:9px;min-height:50px}
 .k-azure-dock a svg{width:21px;height:21px}
 .k-app-shell .k-hero h1{font-size:clamp(30px,9vw,39px)}
 .k-app-shell .k-main{padding-left:15px;padding-right:15px}
}
@media(prefers-reduced-motion:reduce){.k-rail-links a,.k-azure-dock a{transition:none}}

/* Dashboard: editorial hierarchy, purposeful cards, no invented data. */
.k-home-header{margin:6px 0 26px}
.k-home-header h1{font-size:clamp(31px,4vw,50px);margin:10px 0 8px;letter-spacing:-.075em}
.k-home-header .muted{margin:0;color:#b2c3cd;font-size:14px}
.k-home-section-title{margin:38px 0 16px;display:flex;justify-content:space-between;gap:12px;align-items:end}
.k-home-section-title h2{font-size:25px;margin:7px 0 0}
.k-home-counter{border:1px solid #455864;color:#afc7d2;border-radius:99px;padding:7px 12px;font-size:11px;white-space:nowrap}
.k-home-campaigns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:0}
.k-home-campaigns>.k-empty-campaign{grid-column:1/-1}
.k-home-campaign-card{display:flex;flex-direction:column;gap:14px}
.k-home-campaign-card .k-between{align-items:start;flex:1}
.k-home-campaign-card .k-between>div{min-width:0}
.k-home-campaign-card h2{margin-top:13px}
.k-home-campaign-card .k-dashboard-actions{margin-top:auto}

@media(max-width:720px){.k-home-campaigns{grid-template-columns:1fr}.k-home-header{margin-bottom:20px}.k-home-section-title{margin-top:24px}}

/* The account dashboard is a campaign workspace, not a second navigation menu. */
.k-app-shell .k-home-header{padding-top:10px;margin-bottom:24px}
.k-app-shell .k-home-header h1{line-height:1.13;overflow-wrap:break-word}
.k-app-shell .k-home-section-title{margin-top:18px}
@media(max-width:960px){.k-app-shell .k-main#account{padding-top:30px}}
