
:root{
  --bg:#f6f8fa;
  --panel:#ffffff;
  --ink:#101522;
  --muted:#637083;
  --line:#dfe5ea;
  --cyan:#27dfda;
  --cyan2:#e9fffe;
  --pink:#ff2f55;
  --navy:#151823;
  --ok:#0aae73;
  --warn:#f59e0b;
  --bad:#dc3545;
  --soft:#eef2f5;
  --shadow:0 8px 28px rgba(16,21,34,.05);
}
*{box-sizing:border-box}
html{background:var(--bg)}
body{
  margin:0;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial;
  color:var(--ink);
  background:var(--bg);
}
button,input,select,textarea{font:inherit}
button{touch-action:manipulation}
a{text-decoration:none;color:inherit}
.layout{display:flex;min-height:100vh}
.sidebar{
  position:fixed;inset:0 auto 0 0;width:244px;background:#fff;border-right:1px solid var(--line);
  padding:16px 10px 18px;display:flex;flex-direction:column;z-index:20
}
.brand{
  height:54px;border-radius:12px;background:var(--navy);color:white;display:flex;align-items:center;
  padding:0 14px;font-weight:800;margin-bottom:14px
}
.brandmark{
  width:28px;height:28px;border-radius:8px;background:linear-gradient(135deg,#57efe9,#ff3761);
  display:grid;place-items:center;margin-right:9px;font-size:13px
}
.nav{display:grid;gap:10px}
.nav-group{display:grid;gap:3px}
.nav-group-label{
  font-size:10px;letter-spacing:.12em;color:#98a1ae;font-weight:800;padding:5px 12px 2px
}
.nav a{
  display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:9px;color:#4d596a;font-size:13px
}
.nav a:hover{background:#f3f6f8}
.nav a.active{background:var(--cyan);color:#061317;font-weight:800}
.nav .icon{width:19px;text-align:center}
.sidebar-foot{margin-top:auto;font-size:11px;color:#667180;padding:10px 12px;display:grid;gap:4px}
.tiny-status{font-weight:700;color:#358b72}
.main{margin-left:244px;width:calc(100% - 244px);min-height:100vh}
.topbar{
  min-height:76px;display:flex;align-items:center;justify-content:space-between;padding:12px 28px;
  background:rgba(246,248,250,.92);backdrop-filter:blur(10px);position:sticky;top:0;z-index:12
}
.eyebrow{font-size:9px;letter-spacing:.14em;font-weight:900;color:#8c96a3;margin-bottom:3px}
.title{font-size:25px;font-weight:850;letter-spacing:-.035em}
.userbar{display:flex;align-items:center;gap:10px}
.avatar{
  width:36px;height:36px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;
  font-weight:850;cursor:pointer
}
.content{padding:6px 28px 48px;max-width:1440px;margin:0 auto}
.page-intro{font-size:13px;color:var(--muted);margin:2px 0 14px}
.page-guide{
  background:#fff;border:1px solid var(--line);border-radius:11px;padding:12px 14px;margin-bottom:14px;
  font-size:13px;color:#566174
}
.narrow{max-width:760px;margin:0 auto}
.grid{display:grid;gap:16px}
.cards4{grid-template-columns:repeat(4,minmax(0,1fr))}
.cards3{grid-template-columns:repeat(3,minmax(0,1fr))}
.cards2{grid-template-columns:repeat(2,minmax(0,1fr))}
.card{
  background:#fff;border:1px solid var(--line);border-radius:14px;padding:22px 24px;box-shadow:0 1px 1px rgba(16,21,34,.02)
}
.card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}
.card-eyebrow,.hero-kicker{
  font-size:10px;letter-spacing:.12em;font-weight:900;color:#8994a3;margin-bottom:6px
}
.section-title{font-size:17px;font-weight:850;margin:0 0 8px}
.subtle{color:var(--muted);font-size:13px;line-height:1.55}
.small{font-size:12px}
.btn{
  border:0;border-radius:9px;padding:10px 16px;font-weight:800;cursor:pointer;min-height:42px
}
.btn-lg{min-height:48px;padding:12px 18px}
.btn-block{width:100%}
.btn.primary{background:var(--pink);color:white}
.btn.secondary{background:var(--navy);color:#fff}
.btn.cyan{background:var(--cyan);color:#072025}
.btn.ghost{background:#fff;border:1px solid var(--line);color:var(--ink)}
.btn.warn{background:#fff5dc;color:#9d5e00;border:1px solid #f4d181}
.btn:disabled{opacity:.42;cursor:not-allowed}
.danger-text{color:#b8233d!important}
.actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.field{display:grid;gap:6px}
.field label{font-size:12px;color:#566174;font-weight:700}
input,select,textarea{
  width:100%;border:1px solid var(--line);border-radius:9px;padding:10px 12px;background:#fff;outline:none;min-height:42px
}
input:focus,select:focus,textarea:focus{border-color:#4ddbd6;box-shadow:0 0 0 3px rgba(39,223,218,.12)}
.status{
  display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 9px;font-size:11px;font-weight:800;white-space:nowrap
}
.status.ok{background:#e8f9f1;color:#087b51}
.status.warn{background:#fff4d8;color:#a45d00}
.status.bad{background:#ffe9ed;color:#b8233d}
.status.info{background:#e9f8ff;color:#0a6688}
.install-btn{
  border:1px solid var(--line);background:#fff;border-radius:999px;padding:6px 10px;font-size:11px;font-weight:800;color:var(--ink);cursor:pointer
}
.journey{
  display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:0 0 14px
}
.journey-step{
  border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 7px;display:flex;align-items:center;gap:7px;
  color:#667180;cursor:pointer
}
.journey-step.done{border-color:#bfe9d9;background:#f5fffb;color:#087b51}
.journey-step.current{border-color:#71e6e1;background:#f1ffff;color:#087b77;font-weight:800}
.journey-step.locked{opacity:.45}
.journey-num{
  width:22px;height:22px;display:grid;place-items:center;border-radius:50%;background:#eef2f5;font-size:10px;font-weight:900;flex:none
}
.journey-step.current .journey-num{background:var(--cyan)}
.journey-step.done .journey-num{background:#dcf8ec}
.journey-label{font-size:11px;font-weight:800;overflow:hidden;text-overflow:ellipsis}
.hero-card{
  background:linear-gradient(135deg,#151823 0%,#20283a 100%);color:#fff;border-radius:16px;padding:26px 28px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:16px
}
.hero-card h2{font-size:25px;margin:0 0 6px;letter-spacing:-.02em}
.hero-card p{margin:0;color:#cfd6e0;max-width:620px}
.hero-card .hero-kicker{color:#6ff1ec}
.metric-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:16px}
.metric-card{background:#fff;border:1px solid var(--line);border-radius:13px;padding:18px 20px}
.metric-label{font-size:12px;color:#657181;margin-bottom:5px}
.metric-value{font-size:24px;font-weight:850}
.metric-caption{font-size:10px;color:#8e98a5;margin-top:3px}
.simple-status-list{display:grid;gap:0}
.simple-status-list>div{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.simple-status-list>div:last-child{border-bottom:0}
.choice-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:14px}
.choice-tab{
  border:1px solid var(--line);background:#fff;border-radius:12px;padding:14px 12px;font-weight:800;color:#536071;
  display:flex;align-items:center;justify-content:center;gap:9px;cursor:pointer
}
.choice-tab.active{border-color:var(--navy);background:var(--navy);color:#fff}
.choice-icon{font-size:18px}
.simple-form{display:grid;grid-template-columns:minmax(260px,1fr) 180px auto;gap:10px;align-items:end}
.stack-form{display:grid;gap:12px}
.grow{min-width:0}
.protection-details{margin-top:16px;border-top:1px solid var(--line);padding-top:12px}
.protection-details summary,.advanced summary{
  cursor:pointer;font-size:12px;font-weight:800;color:#586475;list-style:none
}
.protection-details summary::-webkit-details-marker,.advanced summary::-webkit-details-marker{display:none}
.protection-body{margin-top:10px;background:#f8fbfc;border-radius:9px;padding:10px 12px}
.protection-line{font-size:12px;color:#5d6878;padding:4px 0}
.selection-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:12px}
.product-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.product-card{
  background:#fff;border:1px solid var(--line);border-radius:13px;padding:17px;display:grid;gap:14px
}
.product-card.selected{border-color:#5fdad5;box-shadow:0 0 0 2px rgba(39,223,218,.10)}
.product-card.rejected{opacity:.68}
.product-top,.product-foot{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.product-name{font-weight:850}
.product-meta{font-size:11px;color:#818b99;margin-top:3px}
.product-numbers{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.product-numbers>div{background:#f7f9fb;border-radius:9px;padding:9px}
.product-numbers span{display:block;font-size:10px;color:#828c99;margin-bottom:2px}
.product-numbers b{font-size:13px}
.confidence{font-size:11px;color:#667180}
.sticky-next{
  position:sticky;bottom:12px;margin-top:16px;background:rgba(255,255,255,.94);backdrop-filter:blur(9px);
  border:1px solid var(--line);border-radius:12px;padding:10px 12px;display:flex;align-items:center;justify-content:space-between;gap:10px;
  box-shadow:var(--shadow);z-index:8
}
.selected-list{display:grid;gap:8px}
.selected-row{display:flex;gap:10px;align-items:center;padding:10px;background:#f8fafb;border-radius:9px}
.selected-num{width:26px;height:26px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:11px;font-weight:800}
.advanced{margin:16px 0;border:1px dashed #cdd5dd;border-radius:10px;padding:11px 13px}
.advanced-body{margin-top:12px}
.production-head,.review-hero{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}
.process-list{display:grid;grid-template-columns:repeat(7,1fr);gap:8px;margin:18px 0}
.process-item{border:1px solid var(--line);border-radius:10px;padding:10px 8px;text-align:center;display:grid;gap:5px}
.process-item.done{border-color:#bfe9d9;background:#f5fffb}
.process-dot{width:25px;height:25px;margin:auto;border-radius:50%;display:grid;place-items:center;background:#eef2f5;font-size:10px;font-weight:900}
.process-item.done .process-dot{background:#dcf8ec;color:#087b51}
.process-item span:nth-child(2){font-size:11px;font-weight:800}
.process-item small{font-size:9px;color:#8b95a3}
.review-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:8px;margin:16px 0}
.review-row{display:flex;align-items:center;justify-content:space-between;gap:10px;background:#f8fafb;padding:10px 12px;border-radius:9px;font-size:12px}
.rubric{display:grid;grid-template-columns:1.3fr .3fr 2fr;border:1px solid var(--line);border-radius:9px;overflow:hidden}
.rubric>div{padding:9px;border-bottom:1px solid var(--line);font-size:11px}
.rubric .head{background:var(--navy);color:#fff;font-weight:800}
.decision-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}
.timeline{display:grid;gap:0}
.timeline-row{display:flex;align-items:center;gap:12px;padding:9px 0;border-bottom:1px solid var(--line)}
.timeline-row:last-child{border-bottom:0}
.timeline-dot{width:28px;height:28px;border-radius:50%;background:#edf1f4;display:grid;place-items:center;font-size:11px;font-weight:900;flex:none}
.timeline-row.done .timeline-dot{background:#dcf8ec;color:#087b51}
.action-card{display:flex;flex-direction:column;justify-content:center}
.demo-warning{font-size:10px;color:#8b6570;margin-top:12px}
.learning-card{background:#f8fafb;border-radius:10px;padding:14px;display:grid;gap:10px}
.settings-list{display:grid;gap:10px}
.settings-item{
  background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px 18px;display:flex;justify-content:space-between;align-items:center;gap:16px
}
.account-list{display:grid}
.account-list>div{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line)}
.account-list>div:last-child{border-bottom:0}
.notice{border:1px solid #b9e9e7;background:#f3ffff;color:#126f6c;border-radius:10px;padding:12px 14px;font-size:13px}
.notice.warn{border-color:#f3d796;background:#fffaf0;color:#855000}
.empty-state{text-align:center;padding:30px 20px;color:#5d6878}
.empty-state h3{margin:5px 0 6px;color:var(--ink)}
.empty-icon{font-size:28px}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:24px}
.login-card{width:min(430px,100%);background:#fff;border:1px solid var(--line);border-radius:18px;padding:28px;box-shadow:var(--shadow)}
.login-brand{margin:0 0 22px}
.login-eyebrow{font-size:10px;letter-spacing:.15em;color:#929ba7;font-weight:900}
.login-card h1{margin:4px 0 6px}
.login-card .field{margin-top:12px}
.link-btn{border:0;background:none;color:#596576;font-weight:700;font-size:12px;cursor:pointer;margin:10px auto 0;display:block}
.demo-foot{font-size:10px;color:#9aa3ae;text-align:center;margin-top:20px}
.checkline{display:flex;align-items:flex-start;gap:8px;margin:12px 0}
.checkline input{width:auto;min-height:0;margin-top:3px}
hr{border:0;border-top:1px solid var(--line);margin:18px 0}
.mobile-nav{display:none}

@media(max-width:1100px){
  .sidebar{width:210px}.main{margin-left:210px;width:calc(100% - 210px)}
  .product-grid{grid-template-columns:1fr}
  .process-list{grid-template-columns:repeat(4,1fr)}
  .journey-label{display:none}
}

@media(max-width:760px){
  body{padding-bottom:74px}
  .sidebar{display:none}
  .main{margin-left:0;width:100%}
  .topbar{
    min-height:68px;padding:10px 13px;align-items:flex-start;background:rgba(246,248,250,.96);
    border-bottom:1px solid var(--line)
  }
  .eyebrow{font-size:8px}
  .title{font-size:20px;line-height:1.15}
  .userbar .badge{display:none}
  .install-btn{padding:5px 8px;font-size:10px}
  .avatar{width:32px;height:32px}
  .content{padding:8px 12px 94px}
  .page-intro{margin-top:4px}
  .journey{display:flex;overflow-x:auto;gap:6px;padding-bottom:3px}
  .journey-step{min-width:44px;padding:6px}
  .journey-label{display:none}
  .journey-num{width:25px;height:25px;margin:auto}
  .hero-card{padding:20px;display:grid;gap:16px}
  .hero-card h2{font-size:22px}
  .metric-grid,.cards4,.cards3,.cards2{grid-template-columns:1fr 1fr}
  .choice-tabs{grid-template-columns:repeat(3,1fr)}
  .choice-tab{padding:11px 7px;font-size:11px;gap:5px}
  .simple-form{grid-template-columns:1fr}
  .product-grid{grid-template-columns:1fr}
  .product-card{padding:14px}
  .sticky-next{bottom:82px}
  .process-list{grid-template-columns:repeat(2,1fr)}
  .review-summary{grid-template-columns:1fr}
  .production-head,.review-hero,.card-head,.selection-head{display:grid;gap:10px}
  .rubric{grid-template-columns:1fr .28fr 1.6fr;overflow-x:auto}
  .settings-item{align-items:flex-start}
  .mobile-nav{
    display:grid;grid-template-columns:repeat(5,1fr);position:fixed;left:0;right:0;bottom:0;height:72px;
    background:#fff;border-top:1px solid var(--line);z-index:30;padding:5px 6px calc(5px + env(safe-area-inset-bottom));gap:2px
  }
  .mobile-nav a{
    display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;border-radius:9px;color:#657181;font-size:16px
  }
  .mobile-nav small{font-size:9px}
  .mobile-nav a.active{background:var(--cyan2);color:#087b77;font-weight:850}
  .btn{min-height:44px}
  input,select,textarea{min-height:44px;font-size:16px}
}

@media(max-width:480px){
  .metric-grid,.cards4,.cards3,.cards2{grid-template-columns:1fr}
  .choice-tabs{grid-template-columns:1fr}
  .choice-tab{justify-content:flex-start}
  .product-numbers{grid-template-columns:repeat(3,1fr)}
  .sticky-next{display:grid}
  .sticky-next .btn{width:100%}
}
