/* Loading skeletons (see assets/skeleton.js). Sizes mirror the real layouts so
   content replaces them without layout shift. */
.sk{--sk-base:#e2e8ee;--sk-shine:rgba(255,255,255,.75);position:relative;display:block;overflow:hidden;background:var(--sk-base);border-radius:8px;flex:none}
.sk::after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent 0,var(--sk-shine) 50%,transparent 100%);animation:sk-shimmer 1.5s ease-in-out infinite}
@keyframes sk-shimmer{100%{transform:translateX(100%)}}
@media (prefers-reduced-motion:reduce){.sk::after{display:none}}
.sk-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.sk-screen,.sk-page{animation:sk-fade-in .2s ease-out both}
@keyframes sk-fade-in{from{opacity:0}to{opacity:1}}

/* primitives */
.sk-line{height:12px;margin:0 0 10px;border-radius:6px}
.sk-line.sk-small{height:9px;margin-bottom:8px}
.sk-line:last-child{margin-bottom:0}
.sk-title{height:22px;border-radius:7px;margin:0 0 10px}
.sk-display{height:34px;border-radius:9px;margin:0 0 12px}
.sk-figure{height:24px;border-radius:7px;margin:4px 0 0}
.sk-icon{width:42px;height:42px;border-radius:12px}
.sk-avatar{width:38px;height:38px;border-radius:50%}
.sk-round{width:36px;height:36px;border-radius:50%}
.sk-pill{width:68px;height:24px;border-radius:999px}
.sk-btn{width:112px;height:40px;border-radius:10px}
.sk-btn-primary{--sk-base:#cfeadb}
.sk-block{width:100%}
.sk-input{height:42px;border-radius:10px;width:100%}
.sk-grow{flex:1 1 auto;min-width:0}
.sk-card{background:#fff;border:1px solid var(--border,#e2e8f0);border-radius:16px;padding:20px;box-shadow:0 2px 10px rgba(15,23,42,.025);min-width:0}
.sk-card-title{height:14px;margin-bottom:18px}
.sk-gap{margin-top:18px}
.sk-flush{padding:6px 20px}
.sk-centered{margin-left:auto;margin-right:auto}

/* dashboard bodies */
.sk-heading{margin:0 0 22px}
.sk-heading .sk-sub{margin-top:6px}
.sk-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}
.sk-stat{display:flex;align-items:center;gap:14px}
.sk-two{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(0,1fr);gap:18px}
.sk-chart{height:250px;border-radius:12px}
.sk-row{display:flex;align-items:center;gap:12px;padding:13px 0;border-top:1px solid var(--border,#e2e8f0)}
.sk-row:first-of-type{border-top:0}
.sk-row .sk-line{margin-bottom:7px}
.sk-toolbar{display:flex;gap:12px;margin-bottom:16px}
.sk-search{flex:1 1 auto;max-width:420px}
.sk-filter{width:170px;flex:none}
.sk-table{width:100%}
.sk-tr{display:grid;grid-template-columns:2fr 1.2fr 1fr 1fr 80px;gap:18px;align-items:center;padding:15px 0;border-top:1px solid var(--border,#e2e8f0)}
.sk-tr .sk-line{margin:0}
.sk-th{border-top:0;padding:12px 0}
.sk-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.sk-field .sk-line{margin-bottom:9px}
.sk-wide{grid-column:1/-1}
.sk-actions{display:flex;gap:12px;margin-top:22px}
.sk-media{height:150px;border-radius:12px;margin-top:16px}

/* generic signed-in shell for the first paint */
.sk-shell{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh;background:var(--soft,#f8fafc)}
.sk-sidebar{position:sticky;top:0;height:100vh;background:#fff;border-right:1px solid var(--border,#e2e8f0);padding:22px 14px;display:flex;flex-direction:column}
.sk-brand{display:flex;align-items:center;gap:10px;padding:0 10px}
.sk-logo{width:32px;height:32px;border-radius:10px;--sk-base:#d7eedd}
.sk-brand-text{width:96px;height:14px;margin:0}
.sk-nav{display:grid;gap:6px;margin-top:34px}
.sk-nav-item{display:flex;align-items:center;gap:11px;padding:10px}
.sk-nav-item .sk-line{margin:0;height:11px}
.sk-nav-icon{width:20px;height:20px;border-radius:6px}
.sk-user{display:flex;align-items:center;gap:10px;margin-top:auto;padding:12px 10px 0;border-top:1px solid var(--border,#e2e8f0)}
.sk-main{min-width:0}
.sk-topbar{height:72px;background:#fff;border-bottom:1px solid var(--border,#e2e8f0);display:flex;align-items:center;gap:12px;padding:0 30px}
.sk-topbar .sk-small{margin-bottom:7px}
.sk-topbar-title{height:18px;margin:0}
.sk-menu{display:none;width:36px;height:36px;border-radius:10px}
.sk-content{padding:28px 30px 48px;max-width:1500px;margin:auto}

/* public site */
.sk-site{min-height:100vh;background:#fff}
.sk-site-nav{height:76px;border-bottom:1px solid var(--border,#e2e8f0);display:flex;align-items:center;justify-content:space-between;gap:20px;padding:0 max(24px,calc((100vw - 1180px)/2))}
.sk-site-links{display:flex;gap:28px;flex:0 1 420px}
.sk-site-links .sk-line{margin:0;height:11px}
.sk-nav-cta{width:118px;height:40px}
.sk-hero{max-width:1180px;margin:auto;padding:74px 24px 60px;display:grid;grid-template-columns:1.02fr .98fr;gap:54px;align-items:center}
.sk-eyebrow{width:170px;height:28px;margin-bottom:22px}
.sk-hero-copy .sk-display{height:48px}
.sk-hero-actions{display:flex;gap:12px;margin-top:26px}
.sk-hero-visual{height:380px;border-radius:24px}
.sk-features{max-width:1180px;margin:auto;padding:10px 24px 70px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.sk-features .sk-icon{margin-bottom:18px}
.sk-center{min-height:calc(100vh - 76px);display:grid;place-items:center;padding:40px 20px;background:linear-gradient(180deg,#f0fdf4,#fff 45%)}
.sk-auth{width:min(100%,440px);padding:30px;border-radius:18px}
.sk-auth .sk-field{margin-top:18px}
.sk-auth .sk-btn{margin-top:22px;height:44px}
.sk-center-line{margin:18px auto 0}
.sk-article-wrap{padding:36px 20px 72px;background:#f8faf9;min-height:calc(100vh - 76px)}
.sk-article{width:min(100%,900px);margin:0 auto;padding:0;overflow:hidden;border-radius:20px}
.sk-cover{height:320px;border-radius:0}
.sk-article-body{padding:34px 44px 44px}
.sk-author{display:flex;align-items:center;gap:12px;margin:18px 0 28px}
.sk-author .sk-line{margin-bottom:7px}
.sk-spacer{display:block;height:18px}

/* link tree */
.sk-tree-page{min-height:100vh;background:linear-gradient(180deg,#edf3f0,#f8fafc);padding:30px 16px}
.sk-tree{width:min(100%,560px);margin:0 auto;background:rgba(255,255,255,.78);border:1px solid #fff;border-radius:29px;padding:30px 24px;box-shadow:0 20px 45px rgba(18,35,26,.12)}
.sk-tree-avatar{width:94px;height:94px;border-radius:50%;margin:0 auto 18px}
.sk-socials{display:flex;justify-content:center;gap:10px;margin:18px 0 22px}
.sk-tree-link{height:52px;border-radius:15px;margin-top:11px}

/* unlock page */
.sk-unlock-page{min-height:100vh;background:linear-gradient(180deg,#f0fdf4 0,#f8fafc 45%,#f8fafc);padding:25px 18px 40px}
.sk-unlock{max-width:670px;margin:0 auto}
.sk-unlock-head{display:flex;align-items:center;justify-content:space-between;margin:4px 0 22px}
.sk-unlock-card{padding:27px;border-radius:20px}
.sk-unlock-title{display:flex;align-items:center;justify-content:space-between;gap:16px}
.sk-unlock-title .sk-pill{width:140px;height:28px}
.sk-progress{height:10px;border-radius:999px;margin:18px 0 8px}
.sk-step{display:flex;align-items:center;gap:14px;padding:15px 0;border-top:1px solid var(--border,#e2e8f0)}
.sk-step .sk-line{margin-bottom:7px}
.sk-step-num{width:34px;height:34px;border-radius:50%}
.sk-step-btn{width:86px;height:34px}
.sk-unlock-card>.sk-block{margin-top:18px;height:46px}

/* existing page being refreshed in place (filters, pagination) */
.page-content.is-refreshing{opacity:.55;pointer-events:none;transition:opacity .15s ease}

/* responsive */
@media (max-width:1100px){.sk-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:980px){
  .sk-two,.sk-hero{grid-template-columns:minmax(0,1fr)}
  .sk-hero-visual{height:260px}
  .sk-features{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:760px){
  .sk-shell{display:block}
  .sk-sidebar{display:none}
  .sk-menu{display:block}
  .sk-topbar{height:50px;padding:0 8px}
  .sk-topbar .sk-small{display:none}
  .sk-content{padding:12px 8px 28px}
  .sk-hide-sm{display:none}
  .sk-site-nav{height:56px;padding:0 12px}
  .sk-nav-cta{width:92px;height:34px}
  .sk-hero{padding:30px 12px 36px;gap:28px}
  .sk-hero-copy .sk-display{height:36px}
  .sk-hero-actions{flex-direction:column}
  .sk-hero-actions .sk-btn{width:100%}
  .sk-features{padding:0 12px 40px}
  .sk-center{padding:20px 8px;min-height:calc(100vh - 56px)}
  .sk-auth{padding:18px 12px}
  .sk-article-wrap{padding:12px 6px 40px}
  .sk-cover{height:190px}
  .sk-article-body{padding:20px 14px 28px}
  .sk-display{height:28px}
  .sk-card{padding:12px;border-radius:14px}
  .sk-flush{padding:4px 12px}
  .sk-stats{gap:8px;margin-bottom:10px}
  .sk-stat{gap:10px}
  .sk-stat .sk-icon{width:34px;height:34px;border-radius:10px}
  .sk-two{gap:10px}
  .sk-chart{height:180px}
  .sk-tr{grid-template-columns:2fr 1fr 1fr;gap:12px}
  .sk-form{grid-template-columns:minmax(0,1fr);gap:14px}
  .sk-aside{display:none}
  .sk-toolbar{gap:8px}
  .sk-toolbar .sk-btn{width:84px}
  .sk-heading{margin-bottom:14px}
  .sk-unlock-page{padding:15px 4px 28px}
  .sk-unlock-card{padding:16px 10px}
  .sk-tree{padding:24px 14px}
}
@media (max-width:320px){.sk-stats{grid-template-columns:minmax(0,1fr)}}
