/* ================= 设计变量 ================= */
:root{
  --brand:#3a5bfd;
  --brand-2:#6f8cff;
  --brand-soft:#eef1ff;
  --brand-ink:#233a9e;
  --ink:#151b2e;
  --ink-2:#3b4560;
  --muted:#7c86a0;
  --line:#e9ecf4;
  --line-2:#f1f3f9;
  --bg:#f5f7fc;
  --card:#ffffff;
  --ok:#0e9f76;
  --ok-soft:#e5f7f1;
  --warn:#b97712;
  --warn-soft:#fdf3e2;
  --danger:#dc3550;
  --danger-soft:#fdecef;
  --orange:#f2762e;
  --radius:16px;
  --shadow-sm:0 2px 10px rgba(23,33,74,.05);
  --shadow:0 10px 28px rgba(23,33,74,.07);
  --shadow-lg:0 24px 60px rgba(15,24,60,.16);
}

*,*::before,*::after{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  font-size:14px;
}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;border:0;background:none;cursor:pointer}
ul,ol{margin:0;padding:0;list-style:none}
h1,h2,h3,h4,p{margin:0}
svg{display:block}
table{border-collapse:collapse}
input,select,textarea{font-family:inherit}

.muted{color:var(--muted)}
.small{font-size:12px}
.strong{font-weight:700}
.row{display:flex;align-items:center;gap:10px}
.between{display:flex;align-items:center;justify-content:space-between;gap:12px}
.grow{flex:1;min-width:0}
.hide{display:none !important}
.mt8{margin-top:8px}.mt12{margin-top:12px}.mt16{margin-top:16px}.mt20{margin-top:20px}
.mb8{margin-bottom:8px}.mb12{margin-bottom:12px}.mb16{margin-bottom:16px}

/* ================= 通用按钮 / 标签 ================= */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  height:42px;padding:0 18px;border-radius:11px;font-size:14px;font-weight:600;
  background:linear-gradient(135deg,var(--brand),#5579ff);color:#fff;
  box-shadow:0 8px 18px rgba(58,91,253,.24);
  cursor:pointer;transition:.16s;
}
.btn:hover{filter:brightness(1.04)}
.btn:active{transform:translateY(1px)}
.btn.line{background:#fff;color:var(--ink-2);border:1px solid var(--line);box-shadow:none}
.btn.soft{background:var(--brand-soft);color:var(--brand);box-shadow:none}
.btn.danger{background:linear-gradient(135deg,#e64a63,#f0667d)}
.btn.danger-line{background:#fff;color:var(--danger);border:1px solid #f6c9d1;box-shadow:none}
.btn.sm{height:32px;padding:0 12px;font-size:12.5px;border-radius:8px;box-shadow:none}
.btn.block{width:100%;height:46px}
.btn:disabled{background:#eef1f8;color:#aab2c6;box-shadow:none;cursor:not-allowed}

.badge{
  display:inline-flex;align-items:center;gap:4px;height:22px;padding:0 8px;border-radius:6px;
  font-size:11.5px;font-weight:600;background:#f1f3f9;color:var(--muted);white-space:nowrap;
}
.badge.ok{background:var(--ok-soft);color:var(--ok)}
.badge.warn{background:var(--warn-soft);color:var(--warn)}
.badge.danger{background:var(--danger-soft);color:var(--danger)}
.badge.brand{background:var(--brand-soft);color:var(--brand)}
.badge.gray{background:#f2f4f9;color:#8790a6}

.tag{display:inline-flex;align-items:center;height:22px;padding:0 8px;border-radius:6px;font-size:11px;background:#f4f6fc;color:var(--ink-2)}

/* ================= 手机舞台 ================= */
.stage{
  min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:14px;padding:24px 16px 28px;
  background:
    radial-gradient(760px 420px at 16% 8%, #e5ebff 0%, rgba(229,235,255,0) 70%),
    radial-gradient(680px 460px at 88% 92%, #e8f7f2 0%, rgba(232,247,242,0) 72%),
    #f4f6fc;
}
.stage-head{display:flex;align-items:center;gap:10px;font-size:12px;color:#6b7590;letter-spacing:.2px}
.stage-head a{color:#5566a8;font-weight:600;border-bottom:1px dashed #b9c3e2;padding-bottom:1px}
.stage-dot{width:7px;height:7px;border-radius:50%;background:var(--brand);box-shadow:0 0 0 3px rgba(58,91,253,.16)}

.device{
  width:390px;height:min(820px,calc(100vh - 120px));min-height:620px;
  background:#0b1020;border-radius:44px;padding:9px;flex:none;
  box-shadow:0 40px 80px rgba(17,27,64,.24),0 0 0 1px rgba(255,255,255,.35) inset;
  position:relative;
}
.device::after{
  content:"";position:absolute;left:-3px;top:180px;width:3px;height:56px;border-radius:3px;
  background:linear-gradient(180deg,#2a3350,#151c33);
}
.notch{
  position:absolute;top:16px;left:50%;transform:translateX(-50%);
  width:104px;height:24px;border-radius:14px;background:#080c18;z-index:6;
}
.screen{
  width:100%;height:100%;border-radius:36px;overflow:hidden;background:var(--bg);
  display:flex;flex-direction:column;position:relative;
}

.statusbar{
  height:44px;flex:none;display:flex;align-items:center;justify-content:space-between;
  padding:0 22px;font-size:12.5px;font-weight:650;color:var(--ink);position:relative;z-index:5;
}
.sb-icons{display:flex;align-items:center;gap:6px;color:var(--ink)}
.sb-icons svg{display:block}

.navbar{height:52px;flex:none;display:flex;align-items:center;gap:10px;padding:0 16px;position:relative;z-index:4}
.navbar .nav-title{font-size:16px;font-weight:650;letter-spacing:.2px;flex:1;min-width:0}
.nav-back{
  width:32px;height:32px;border-radius:50%;background:#fff;border:1px solid var(--line-2);
  display:grid;place-items:center;color:var(--ink-2);flex:none;box-shadow:var(--shadow-sm);
}
.nav-back svg{width:18px;height:18px}
.nav-action{width:32px;height:32px;border-radius:50%;background:#fff;border:1px solid var(--line-2);display:grid;place-items:center;color:var(--ink-2);flex:none}
.nav-action svg{width:16px;height:16px}

.brandbar .brand-mini{width:28px;height:28px;border-radius:9px;background:linear-gradient(135deg,#5b7bff,#8aa2ff);color:#fff;display:grid;place-items:center;font-size:13px;font-weight:700;box-shadow:0 6px 14px rgba(58,91,253,.26)}
.brandbar .brand-name{font-size:15.5px;font-weight:700;letter-spacing:.3px;flex:1}
.bell-wrap{position:relative;width:34px;height:34px;border-radius:50%;background:#fff;display:grid;place-items:center;border:1px solid var(--line-2);color:var(--ink-2)}
.bell-wrap svg{width:17px;height:17px}
.bell-dot{position:absolute;top:8px;right:9px;width:6px;height:6px;border-radius:50%;background:var(--danger);box-shadow:0 0 0 2px #fff}

.view{flex:1;overflow-y:auto;overflow-x:hidden;padding:4px 16px 22px;scrollbar-width:none}
.view::-webkit-scrollbar{width:0;height:0}
.view.flush{padding:0 0 22px}

.tabbar{
  flex:none;height:62px;display:flex;align-items:center;padding-bottom:6px;
  background:rgba(255,255,255,.97);border-top:1px solid var(--line);backdrop-filter:blur(10px);
}
.tab-item{flex:1;display:flex;flex-direction:column;align-items:center;gap:3px;font-size:10.5px;color:#9aa2b8;font-weight:500;padding-top:3px}
.tab-ico{display:grid;place-items:center;height:23px}
.tab-item svg{width:22px;height:22px}
.tab-item.on{color:var(--brand);font-weight:650}

/* ================= 移动端通用组件 ================= */
.hero-card{
  margin:6px -16px 16px;padding:16px 18px 22px;color:#fff;position:relative;overflow:hidden;
  background:radial-gradient(120% 110% at 82% 0%, #7f9cff 0%, #4a6bff 46%, #2f49d6 100%);
  border-radius:0 0 26px 26px;
}
.hero-card::after{
  content:"";position:absolute;right:-46px;top:-66px;width:184px;height:184px;border-radius:50%;
  background:rgba(255,255,255,.13);
}
.hero-card::before{
  content:"";position:absolute;right:52px;bottom:-64px;width:130px;height:130px;border-radius:50%;
  background:rgba(255,255,255,.08);
}
.hero-top{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;position:relative;z-index:2}
.hero-greet{font-size:18px;font-weight:700;letter-spacing:.2px}
.hero-tip{font-size:11.5px;color:#d5deff;margin-top:6px}
.hero-avatar{
  width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.2);
  border:1px solid rgba(255,255,255,.4);display:grid;place-items:center;font-size:15px;font-weight:600;flex:none;
}
.searchbar{
  margin-top:18px;height:42px;border-radius:12px;background:rgba(255,255,255,.94);
  display:flex;align-items:center;gap:8px;padding:0 13px;color:#98a1b8;font-size:12.5px;
  position:relative;z-index:2;width:100%;text-align:left;
}
.searchbar svg{width:16px;height:16px;color:#8b96b1;flex:none}

.chips{display:flex;gap:8px;overflow-x:auto;padding:2px 0 6px;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chip{
  flex:none;height:30px;padding:0 13px;border-radius:99px;background:#fff;border:1px solid var(--line);
  font-size:12.5px;color:var(--ink-2);display:inline-flex;align-items:center;gap:4px;transition:.15s;
}
.chip.on{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 6px 14px rgba(58,91,253,.22);font-weight:600}

.section-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:16px 2px 10px}
.section-head h2{font-size:14.5px;font-weight:700;letter-spacing:.1px}
.section-head a{font-size:11.5px;color:var(--muted);display:inline-flex;align-items:center;gap:3px}

.card{
  background:var(--card);border-radius:16px;padding:16px;border:1px solid var(--line-2);
  box-shadow:var(--shadow-sm);margin-bottom:12px;
}
.card-title{font-size:14px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:10px}
.card-title .more{font-size:11.5px;color:var(--muted);font-weight:500}

/* 课程卡片 */
.course-card{
  display:flex;gap:12px;background:#fff;border-radius:18px;padding:14px;margin-bottom:12px;
  border:1px solid var(--line-2);box-shadow:var(--shadow-sm);transition:.18s;
}
.course-card:hover{transform:translateY(-1px);box-shadow:var(--shadow)}
.cc-cover{width:62px;height:62px;border-radius:15px;display:grid;place-items:center;font-size:19px;font-weight:700;flex:none}
.c1{background:linear-gradient(135deg,#e7edff,#d8e2ff);color:#3a5bfd}
.c2{background:linear-gradient(135deg,#e4f8f0,#d2f2e5);color:#0e9f76}
.c3{background:linear-gradient(135deg,#fdf0e3,#fbe4cf);color:#d97a22}
.c4{background:linear-gradient(135deg,#f3ebff,#e7d9ff);color:#7c4dd6}
.cc-body{flex:1;min-width:0}
.cc-title{font-size:14.5px;font-weight:700;display:flex;gap:8px;align-items:center;justify-content:space-between}
.cc-title span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cc-meta{font-size:11.5px;color:var(--muted);margin-top:3px}
.cc-info{font-size:12px;color:var(--ink-2);margin-top:7px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.cc-info i{width:3px;height:3px;border-radius:50%;background:#c6cde0;flex:none}
.cc-foot{display:flex;align-items:flex-end;justify-content:space-between;margin-top:9px}
.price{font-size:16.5px;font-weight:750;color:var(--orange);letter-spacing:-.2px}
.price em{font-style:normal;font-size:11px;color:var(--muted);font-weight:500;margin-left:2px}
.seat{font-size:10.5px;font-weight:600;color:var(--ok);background:var(--ok-soft);padding:3px 7px;border-radius:6px;flex:none}
.seat.low{color:var(--danger);background:var(--danger-soft)}
.cc-link{font-size:11.5px;color:var(--brand);font-weight:600}

/* 分段控件 */
.seg{display:flex;gap:4px;background:#eef1f9;padding:4px;border-radius:11px}
.seg button{flex:1;height:30px;border-radius:8px;font-size:12.5px;color:var(--muted);font-weight:500;white-space:nowrap;padding:0 6px;transition:.15s}
.seg button.on{background:#fff;color:var(--ink);font-weight:650;box-shadow:0 2px 6px rgba(20,30,70,.08)}

/* 详情页 */
.detail-top,.profile-top{
  flex:none;color:#fff;position:relative;
  background:radial-gradient(130% 140% at 85% 0%, #7f9cff 0%, #4a6bff 48%, #2e47cf 100%);
}
.detail-top .statusbar,.profile-top .statusbar{color:#fff}
.detail-hero{
  margin:0;padding:4px 18px 36px;color:#fff;position:relative;overflow:hidden;
}
.detail-hero::after{content:"";position:absolute;right:-40px;top:-30px;width:160px;height:160px;border-radius:50%;background:rgba(255,255,255,.12)}
.detail-top .navbar,.profile-top .navbar{color:#fff}
.view.sheeted{
  margin-top:-24px;border-radius:24px 24px 0 0;background:var(--bg);
  position:relative;z-index:3;padding-top:0;
}
.view.sheeted .sheet{margin:0;padding:18px 16px 0;background:transparent;border-radius:0}
.profile-top .profile-hero{margin:0;border-radius:0;padding:0 18px 22px;background:none}
.dh-tags{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:10px;position:relative;z-index:2}
.dh-tags span{font-size:10.5px;background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.28);padding:3px 8px;border-radius:6px;color:#eef2ff}
.dh-title{font-size:21px;font-weight:750;line-height:1.35;position:relative;z-index:2}
.dh-sub{font-size:12px;color:#d7e0ff;margin-top:8px;position:relative;z-index:2}
.dh-price{margin-top:16px;display:flex;align-items:flex-end;gap:8px;position:relative;z-index:2}
.dh-price b{font-size:26px;font-weight:750;letter-spacing:-.5px}
.dh-price small{font-size:11.5px;color:#ccd7ff;padding-bottom:4px}
.sheet{margin:-22px -16px 0;padding:18px 16px 0;background:var(--bg);border-radius:24px 24px 0 0;position:relative;z-index:3}

.detail-tabs{display:flex;gap:22px;padding:0 2px 2px;border-bottom:1px solid var(--line);margin-bottom:14px}
.detail-tabs button{padding:8px 0 12px;font-size:13.5px;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;font-weight:500}
.detail-tabs button.on{color:var(--ink);font-weight:700;border-color:var(--brand)}
.dpanel{animation:fade .22s ease}
@keyframes fade{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}

.info-row{display:flex;gap:12px;padding:10px 0;font-size:12.5px;border-bottom:1px dashed var(--line);align-items:flex-start}
.info-row:last-child{border-bottom:0;padding-bottom:0}
.info-row dt{width:64px;color:var(--muted);flex:none;margin:0}
.info-row dd{margin:0;color:var(--ink-2);font-weight:500;flex:1}

.lesson-list li{display:flex;gap:10px;padding:9px 0;font-size:12.5px;color:var(--ink-2)}
.lesson-list .idx{width:20px;height:20px;border-radius:6px;background:var(--brand-soft);color:var(--brand);font-size:10.5px;font-weight:700;display:grid;place-items:center;flex:none;margin-top:1px}
.lesson-list .idx.done{background:var(--ok-soft);color:var(--ok)}

.teacher-mini{display:flex;gap:12px;align-items:center}
.avatar-lg{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#e7edff,#d8e2ff);color:var(--brand);display:grid;place-items:center;font-weight:700;font-size:16px;flex:none}
.review{padding:11px 0;border-bottom:1px dashed var(--line);font-size:12.5px}
.review:last-child{border-bottom:0;padding-bottom:0}
.review .r-head{display:flex;align-items:center;gap:8px;font-size:12px}
.review .stars{color:#f6a623;letter-spacing:1px;font-size:11px}
.review p{color:var(--ink-2);margin-top:5px;line-height:1.6}

.cta-bar{
  flex:none;background:rgba(255,255,255,.98);border-top:1px solid var(--line);
  padding:10px 16px 14px;display:flex;gap:10px;align-items:center;
}

/* 周排课 */
.week-strip{display:grid;grid-template-columns:repeat(7,1fr);gap:5px;background:#fff;border-radius:14px;padding:9px 7px;border:1px solid var(--line-2);box-shadow:var(--shadow-sm)}
.wday{border-radius:10px;padding:6px 0 7px;text-align:center;color:var(--muted);font-size:10.5px;line-height:1.5}
.wday b{display:block;font-size:14px;color:var(--ink-2);font-weight:650;margin-top:2px}
.wday.on{background:var(--brand);color:#dfe6ff}
.wday.on b{color:#fff}

.sched-item{
  display:flex;gap:12px;background:#fff;border-radius:16px;padding:14px;margin-bottom:11px;
  border:2px solid transparent;box-shadow:var(--shadow-sm);transition:.16s;width:100%;text-align:left;cursor:pointer;
}
.sched-item.selected{border-color:var(--brand);box-shadow:0 10px 24px rgba(58,91,253,.16)}
.sched-time{width:56px;flex:none;border-right:1px dashed var(--line);padding-right:10px}
.sched-time b{font-size:13px;font-weight:700;display:block;font-variant-numeric:tabular-nums}
.sched-time small{font-size:10.5px;color:var(--muted);display:block;margin-top:3px}
.sched-body{flex:1;min-width:0}
.sched-title{font-size:13.5px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:8px}
.sched-meta{font-size:11.5px;color:var(--muted);margin-top:6px;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.sched-meta i{width:3px;height:3px;border-radius:50%;background:#c6cde0}
.pick-btn{width:24px;height:24px;border-radius:50%;border:1.5px solid #d5dbe9;display:grid;place-items:center;color:#fff;flex:none}
.sched-item.selected .pick-btn{background:var(--brand);border-color:var(--brand)}
.pick-btn svg{width:13px;height:13px}

/* 订单 */
.order-card{background:#fff;border-radius:16px;border:1px solid var(--line-2);box-shadow:var(--shadow-sm);padding:14px;margin-bottom:12px}
.oc-head{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;color:var(--muted);padding-bottom:10px;border-bottom:1px dashed var(--line)}
.oc-course{display:flex;gap:11px;padding:12px 0}
.oc-course .cc-cover{width:52px;height:52px;font-size:16px;border-radius:13px}
.oc-name{font-size:13.5px;font-weight:700}
.oc-meta{font-size:11.5px;color:var(--muted);margin-top:5px}
.oc-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;padding-top:11px;border-top:1px dashed var(--line)}
.oc-amount{font-size:12px;color:var(--muted)}
.oc-amount b{font-size:16px;color:var(--ink);margin-left:3px}
.oc-actions{display:flex;gap:8px}
.mini-btn{height:29px;padding:0 11px;border-radius:8px;border:1px solid var(--line);background:#fff;font-size:11.5px;color:var(--ink-2);display:inline-flex;align-items:center;justify-content:center}
.mini-btn.primary{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600;box-shadow:0 5px 12px rgba(58,91,253,.2)}

/* 移动端表单 */
.m-field{margin-bottom:15px}
.m-label{font-size:12px;color:var(--ink-2);font-weight:600;margin-bottom:7px;display:flex;align-items:center;justify-content:space-between}
.m-label .req{color:var(--danger)}
.m-input,.m-select,.m-textarea{
  width:100%;border:1px solid var(--line);border-radius:11px;background:#fff;
  height:44px;padding:0 13px;font-size:13px;color:var(--ink);outline:none;transition:.15s;
}
.m-textarea{height:auto;min-height:86px;padding:11px 13px;line-height:1.65;resize:vertical}
.m-input:focus,.m-select:focus,.m-textarea:focus{border-color:#a3b3ff;box-shadow:0 0 0 3px rgba(58,91,253,.1)}
.m-hint{font-size:11px;color:var(--muted);margin-top:6px;line-height:1.55}
.upload-box{
  border:1.5px dashed #ccd5ea;border-radius:12px;background:#fbfcff;padding:18px 10px;
  display:flex;flex-direction:column;align-items:center;gap:7px;color:var(--muted);font-size:12px;width:100%;
}
.upload-box svg{width:22px;height:22px;color:#a9b5d2}

/* 菜单 */
.menu{background:#fff;border-radius:16px;overflow:hidden;border:1px solid var(--line-2);box-shadow:var(--shadow-sm);margin-bottom:12px}
.menu-item{display:flex;align-items:center;gap:12px;padding:13px 14px;font-size:13px;border-bottom:1px solid var(--line-2);color:var(--ink);width:100%;text-align:left}
.menu-item:last-child{border-bottom:0}
.menu-ico{width:30px;height:30px;border-radius:9px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center;flex:none}
.menu-ico svg{width:16px;height:16px}
.menu-arrow{margin-left:auto;color:#c3cadd;flex:none}
.menu-arrow svg{width:15px;height:15px}

/* 个人中心 */
.profile-hero{
  margin:4px -16px 16px;padding:18px;color:#fff;border-radius:0 0 26px 26px;
  background:radial-gradient(120% 120% at 82% 0%, #7f9cff 0%, #4a6bff 48%, #2e47cf 100%);
  position:relative;overflow:hidden;
}
.profile-hero::after{content:"";position:absolute;right:-30px;top:-50px;width:150px;height:150px;border-radius:50%;background:rgba(255,255,255,.13)}
.p-user{display:flex;align-items:center;gap:13px;position:relative;z-index:2}
.p-avatar{width:54px;height:54px;border-radius:18px;background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.4);display:grid;place-items:center;font-size:20px;font-weight:700;flex:none}
.p-name{font-size:17px;font-weight:700}
.p-sub{font-size:11.5px;color:#d5deff;margin-top:5px}
.p-stats{display:flex;margin-top:18px;position:relative;z-index:2}
.p-stat{flex:1;text-align:center;border-right:1px solid rgba(255,255,255,.2)}
.p-stat:last-child{border-right:0}
.p-stat b{font-size:18px;font-weight:750;display:block}
.p-stat span{font-size:10.5px;color:#d3dcff;margin-top:3px;display:block}

.kv-list li{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px dashed var(--line);font-size:12.5px}
.kv-list li:last-child{border-bottom:0;padding-bottom:0}
.kv-list .k{color:var(--muted)}
.kv-list .v{color:var(--ink-2);font-weight:600;text-align:right}

/* 支付成功 */
.success-wrap{padding:30px 0 10px;text-align:center}
.success-ico{
  width:68px;height:68px;border-radius:50%;margin:0 auto 16px;display:grid;place-items:center;
  background:linear-gradient(135deg,#2fc294,#0e9f76);color:#fff;box-shadow:0 14px 30px rgba(14,159,118,.28);
}
.success-ico svg{width:32px;height:32px}
.success-title{font-size:19px;font-weight:750}
.success-sub{font-size:12px;color:var(--muted);margin-top:7px}
.success-amount{font-size:30px;font-weight:750;letter-spacing:-1px;margin-top:14px}
.voucher{background:linear-gradient(160deg,#fff,#fbfcff);border:1px solid var(--line);border-radius:16px;padding:16px;box-shadow:var(--shadow-sm)}
.voucher-top{display:flex;align-items:center;justify-content:space-between;padding-bottom:12px;border-bottom:1px dashed var(--line)}
.voucher-no{font-size:11px;color:var(--muted);font-variant-numeric:tabular-nums}
.qr-wrap{display:flex;justify-content:center;padding:16px 0 6px}
.qr{width:132px;height:132px;padding:8px;background:#fff;border:1px solid var(--line);border-radius:10px}

/* 步骤 */
.steps{display:flex;padding:6px 0 2px}
.step{flex:1;text-align:center;position:relative;font-size:10.5px;color:var(--muted)}
.step::before{content:"";position:absolute;top:9px;left:-50%;width:100%;height:2px;background:var(--line);z-index:0}
.step:first-child::before{display:none}
.step i{width:20px;height:20px;border-radius:50%;background:#eef1f8;color:#a9b2c7;display:grid;place-items:center;margin:0 auto 7px;position:relative;z-index:1;font-style:normal;font-size:10px;font-weight:700}
.step.on i{background:var(--brand);color:#fff;box-shadow:0 0 0 4px rgba(58,91,253,.12)}
.step.on::before{background:#b9c6f7}
.step b{display:block;font-weight:600;color:var(--ink-2);font-size:11px}
.step.on b{color:var(--brand)}

/* 日期时间槽 */
.slot-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.slot{height:34px;border-radius:9px;border:1px solid var(--line);background:#fff;font-size:11.5px;color:var(--ink-2);display:grid;place-items:center}
.slot.on{border-color:var(--brand);background:var(--brand-soft);color:var(--brand);font-weight:650}
.slot.off{background:#f7f8fc;color:#bcc4d6;text-decoration:line-through}

/* 考勤状态 */
.state-group{display:flex;gap:5px}
.state-chip{height:25px;padding:0 8px;border-radius:7px;font-size:10.5px;border:1px solid var(--line);background:#fff;color:var(--muted);display:inline-flex;align-items:center;justify-content:center}
.state-chip.on{background:var(--ok);border-color:var(--ok);color:#fff;font-weight:600}
.state-chip.on.leave{background:#e2a63a;border-color:#e2a63a}
.state-chip.on.absent{background:var(--danger);border-color:var(--danger)}

/* ================= 后台布局 ================= */
body.admin{background:var(--bg)}
.admin-shell{display:flex;min-height:100vh}
.sidebar{
  width:244px;flex:none;background:#0e1631;color:#c8d1e8;position:sticky;top:0;height:100vh;
  display:flex;flex-direction:column;padding:20px 14px 14px;
}
.brand{display:flex;align-items:center;gap:10px;padding:0 8px 18px;color:#fff}
.brand-mark{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,#5b7bff,#8aa2ff);display:grid;place-items:center;font-weight:700;font-size:15px;box-shadow:0 6px 16px rgba(58,91,253,.4);flex:none}
.brand-txt strong{display:block;font-size:14.5px;letter-spacing:.3px}
.brand-txt small{font-size:10px;color:#7f8cad;letter-spacing:1.2px}
.side-nav{flex:1;overflow:auto;margin-top:4px;scrollbar-width:none}
.side-nav::-webkit-scrollbar{width:0}
.nav-label{font-size:10px;color:#5d6a8c;letter-spacing:1.5px;padding:15px 10px 7px}
.nav-item{display:flex;align-items:center;gap:10px;height:40px;padding:0 12px;border-radius:9px;font-size:13px;color:#a8b3ce;margin-bottom:2px;transition:.15s}
.nav-item svg{width:18px;height:18px;opacity:.85;flex:none}
.nav-item:hover{background:rgba(255,255,255,.06);color:#fff}
.nav-item.on{background:rgba(90,120,255,.2);color:#fff;font-weight:600;box-shadow:inset 0 0 0 1px rgba(120,145,255,.25)}
.side-foot{border-top:1px solid rgba(255,255,255,.08);padding-top:12px;margin-top:8px}
.side-user{display:flex;gap:10px;align-items:center;padding:4px 6px 10px}
.avatar{width:34px;height:34px;border-radius:50%;background:linear-gradient(135deg,#5b7bff,#8aa2ff);display:grid;place-items:center;color:#fff;font-size:13px;font-weight:600;flex:none}
.side-user strong{display:block;font-size:12.5px;color:#fff;font-weight:600}
.side-user small{font-size:10.5px;color:#7f8cad}
.side-exit{display:flex;align-items:center;gap:8px;font-size:12px;color:#93a0bf;padding:8px}
.side-exit:hover{color:#fff}
.side-exit svg{width:14px;height:14px}

.admin-main{flex:1;min-width:0;display:flex;flex-direction:column}
.topbar{height:66px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 28px;position:sticky;top:0;z-index:20}
.crumb{font-size:13px;color:var(--muted)}
.crumb b{color:var(--ink);font-weight:600}
.crumb span{margin:0 6px;color:#cfd5e4}
.topbar-right{display:flex;align-items:center;gap:14px}
.icon-bell{width:36px;height:36px;border-radius:10px;background:#f5f7fc;display:grid;place-items:center;color:var(--ink-2);position:relative}
.icon-bell svg{width:17px;height:17px}
.bell-badge{position:absolute;top:-3px;right:-3px;min-width:15px;height:15px;border-radius:8px;background:var(--danger);color:#fff;font-size:9px;display:grid;place-items:center;padding:0 4px;box-shadow:0 0 0 2px #fff}
.top-user{display:flex;align-items:center;gap:9px;font-size:12.5px;padding-left:14px;border-left:1px solid var(--line)}
.top-user .avatar{width:30px;height:30px;font-size:11.5px}
.top-user small{display:block;font-size:10.5px;color:var(--muted);margin-top:1px}
.page{padding:26px 28px 60px;width:100%;max-width:1440px}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:20px;flex-wrap:wrap}
.page-head h1{font-size:21px;font-weight:700;letter-spacing:-.2px}
.page-head p{font-size:12.5px;color:var(--muted);margin-top:6px;line-height:1.6}
.page-head .actions{display:flex;gap:10px;flex-wrap:wrap}

.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:18px}
.kpi{background:#fff;border:1px solid var(--line);border-radius:14px;padding:16px 18px;box-shadow:var(--shadow-sm)}
.kpi-label{font-size:12px;color:var(--muted);display:flex;justify-content:space-between;align-items:center;gap:8px}
.kpi-value{font-size:26px;font-weight:750;letter-spacing:-.5px;margin-top:8px;font-variant-numeric:tabular-nums}
.kpi-value small{font-size:12px;font-weight:500;color:var(--muted);margin-left:4px}
.kpi-delta{font-size:11.5px;font-weight:600;color:var(--ok);background:var(--ok-soft);padding:2px 6px;border-radius:5px;white-space:nowrap}
.kpi-delta.down{color:var(--danger);background:var(--danger-soft)}
.kpi-foot{font-size:11.5px;color:var(--muted);margin-top:8px}

.panel{background:#fff;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-sm);overflow:hidden}
.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 18px;border-bottom:1px solid var(--line-2)}
.panel-head h2{font-size:14px;font-weight:650}
.panel-head .hint{font-size:11.5px;color:var(--muted)}
.panel-body{padding:18px}
.panel-body.tight{padding:6px 0}

.grid-2{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-bottom:18px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.grid-2-even{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}

.table-wrap{overflow:auto}
table.tb{width:100%;border-collapse:collapse;font-size:12.8px}
.tb th{text-align:left;font-weight:600;font-size:11.5px;color:var(--muted);padding:10px 14px;background:#fafbfe;border-bottom:1px solid var(--line);white-space:nowrap}
.tb td{padding:12px 14px;border-bottom:1px solid var(--line-2);color:var(--ink-2);vertical-align:middle}
.tb tr:last-child td{border-bottom:0}
.tb tbody tr:hover td{background:#fafbff}
.tb .strong{color:var(--ink);font-weight:600}
.tb .num{font-variant-numeric:tabular-nums}
.tb .ops{display:flex;gap:10px;white-space:nowrap;align-items:center}
.tb .ops a,.tb .ops button{font-size:12px;color:var(--brand);font-weight:500}
.tb .ops .danger{color:var(--danger)}
.tb .sub{font-size:11px;color:var(--muted);margin-top:3px}

.progress{height:6px;border-radius:99px;background:#eef0f7;overflow:hidden;width:92px;display:inline-block;vertical-align:middle}
.progress i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,#5b7bff,#8aa2ff)}
.progress.warn i{background:linear-gradient(90deg,#eda33c,#f7c56d)}
.progress.danger i{background:linear-gradient(90deg,#e0566c,#f38a9b)}

.chart{height:200px;display:flex;align-items:flex-end;gap:14px;padding:16px 4px 0}
.chart .col{flex:1;display:flex;flex-direction:column;align-items:center;gap:8px;height:100%;justify-content:flex-end}
.chart .bar{width:100%;max-width:42px;border-radius:7px 7px 3px 3px;background:linear-gradient(180deg,#6f8cff,#3a5bfd);position:relative}
.chart .bar.soft{background:linear-gradient(180deg,#dfe5f5,#cbd5ed)}
.chart .bar span{position:absolute;top:-20px;left:50%;transform:translateX(-50%);font-size:10.5px;color:var(--muted);white-space:nowrap}
.chart .lbl{font-size:11px;color:var(--muted);white-space:nowrap}

.hbar{margin-bottom:14px}
.hbar:last-child{margin-bottom:0}
.hbar-top{display:flex;justify-content:space-between;font-size:12px;margin-bottom:7px;gap:10px}
.hbar-top b{font-weight:600}
.hbar-top span{color:var(--muted)}
.hbar-track{height:8px;background:#eef1f8;border-radius:99px;overflow:hidden}
.hbar-fill{height:100%;border-radius:99px;background:linear-gradient(90deg,#5b7bff,#93aaff)}

.tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);padding:0 18px;flex-wrap:wrap}
.tabs button{padding:13px 12px;font-size:13px;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;font-weight:500}
.tabs button.on{color:var(--brand);border-color:var(--brand);font-weight:600}

.filter-bar{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.filter-bar .input,.filter-bar .select{width:auto;min-width:150px;height:38px;font-size:12.5px}
.filter-bar .spacer{flex:1}

.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px 18px}
.field{display:flex;flex-direction:column;gap:7px;min-width:0}
.field label{font-size:12px;color:var(--ink-2);font-weight:600}
.field .req{color:var(--danger);margin-left:2px}
.field.full{grid-column:1/-1}
.input,.select,.textarea{
  width:100%;height:40px;border:1px solid var(--line);border-radius:9px;background:#fff;
  padding:0 12px;font-size:13px;color:var(--ink);outline:none;transition:.15s;
}
.textarea{height:auto;padding:10px 12px;resize:vertical;min-height:88px;line-height:1.65}
.input:focus,.select:focus,.textarea:focus{border-color:#9fb2ff;box-shadow:0 0 0 3px rgba(58,91,253,.1)}
.field .tip{font-size:11px;color:var(--muted);line-height:1.5}
.form-foot{display:flex;gap:10px;justify-content:flex-end;padding-top:18px;margin-top:18px;border-top:1px solid var(--line-2)}

.alert{display:flex;gap:10px;padding:12px 14px;border-radius:10px;background:var(--brand-soft);color:#33478f;font-size:12px;line-height:1.6;align-items:flex-start;margin-bottom:16px}
.alert svg{width:16px;height:16px;flex:none;margin-top:1px;color:var(--brand)}
.alert.warn{background:var(--warn-soft);color:#8a5c12}
.alert.warn svg{color:var(--warn)}

.todo-list li{display:flex;align-items:center;gap:11px;padding:11px 0;border-bottom:1px dashed var(--line)}
.todo-list li:last-child{border-bottom:0;padding-bottom:0}
.todo-ico{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;flex:none;background:var(--brand-soft);color:var(--brand)}
.todo-ico.warn{background:var(--warn-soft);color:var(--warn)}
.todo-ico.ok{background:var(--ok-soft);color:var(--ok)}
.todo-ico.danger{background:var(--danger-soft);color:var(--danger)}
.todo-ico svg{width:16px;height:16px}
.todo-list .grow{font-size:12.5px;color:var(--ink-2)}
.todo-list .grow b{display:block;font-size:12.5px;color:var(--ink);font-weight:600;margin-bottom:2px}
.todo-list .grow small{font-size:11px;color:var(--muted)}
.todo-list .badge{flex:none}

.timeline{position:relative;padding-left:18px}
.timeline::before{content:"";position:absolute;left:4px;top:6px;bottom:6px;width:2px;background:var(--line)}
.tl-item{position:relative;padding:0 0 18px 8px}
.tl-item:last-child{padding-bottom:0}
.tl-item::before{content:"";position:absolute;left:-18px;top:4px;width:8px;height:8px;border-radius:50%;background:#c8d0e6;border:2px solid #fff;box-shadow:0 0 0 2px #e9edf7}
.tl-item.on::before{background:var(--brand);box-shadow:0 0 0 2px #dfe6ff}
.tl-item strong{font-size:12.5px;display:block;font-weight:600}
.tl-item small{font-size:11px;color:var(--muted);display:block;margin-top:3px;line-height:1.5}

.pagination{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-top:1px solid var(--line-2);font-size:12px;color:var(--muted)}
.pagination .pages{display:flex;gap:6px;align-items:center}
.page-btn{min-width:30px;height:30px;padding:0 8px;border-radius:8px;border:1px solid var(--line);background:#fff;font-size:12px;color:var(--ink-2);display:grid;place-items:center}
.page-btn.on{background:var(--brand);border-color:var(--brand);color:#fff;font-weight:600}

/* 权限勾选 */
.chk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.chk{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--ink-2);padding:10px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;cursor:pointer;transition:.15s}
.chk:hover{border-color:#c9d3f2}
.chk input{width:15px;height:15px;accent-color:var(--brand);margin:0;flex:none}
.chk.on{background:var(--brand-soft);border-color:#c5d0ff;color:var(--brand);font-weight:600}
.perm-group{margin-bottom:16px}
.perm-group:last-child{margin-bottom:0}
.perm-group-title{font-size:12px;color:var(--muted);margin-bottom:8px;font-weight:600}

.role-card{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fbfcff}
.role-card h3{font-size:13.5px;font-weight:700;display:flex;align-items:center;gap:8px}
.role-card p{font-size:11.5px;color:var(--muted);margin-top:6px;line-height:1.6}
.perm-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}

.empty{padding:32px 10px;text-align:center;color:var(--muted);font-size:12.5px}
.empty svg{width:40px;height:40px;margin:0 auto 10px;color:#ccd4e8}

/* ================= 登录页（后台） ================= */
.login-page{min-height:100vh;display:grid;grid-template-columns:1.05fr .95fr;background:#fff}
.login-left{
  position:relative;padding:56px 60px;color:#fff;overflow:hidden;
  background:radial-gradient(900px 600px at 80% 0%, #3d5bd9 0%, rgba(61,91,217,0) 70%), linear-gradient(150deg,#0d1533 0%,#17255a 55%,#22398f 100%);
  display:flex;flex-direction:column;justify-content:space-between;
}
.login-left::after{content:"";position:absolute;right:-120px;bottom:-140px;width:420px;height:420px;border-radius:50%;background:rgba(120,150,255,.16);filter:blur(10px)}
.login-brand{display:flex;align-items:center;gap:11px;font-size:15px;font-weight:600;position:relative;z-index:2}
.login-brand .brand-mark{width:38px;height:38px;border-radius:11px;font-size:16px}
.login-copy{position:relative;z-index:2;max-width:460px}
.login-copy h1{font-size:38px;line-height:1.28;font-weight:750;letter-spacing:-.6px}
.login-copy p{color:#b6c3e8;font-size:13.5px;margin-top:18px;line-height:1.9}
.login-feats{display:flex;gap:10px;flex-wrap:wrap;margin-top:30px}
.login-feats span{font-size:11.5px;color:#dbe4ff;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);border-radius:99px;padding:7px 13px}
.login-meta{position:relative;z-index:2;font-size:11.5px;color:#7f8db5}
.login-right{display:flex;align-items:center;justify-content:center;padding:40px 24px;background:#fbfcff}
.login-card{width:100%;max-width:360px}
.login-card h2{font-size:23px;font-weight:750;letter-spacing:-.3px}
.login-card .sub{font-size:12.5px;color:var(--muted);margin-top:8px;margin-bottom:26px}
.login-card .field{margin-bottom:15px}
.login-card .btn{width:100%;margin-top:6px}
.login-roles{display:flex;gap:6px;flex-wrap:wrap;margin-top:18px}
.login-note{font-size:11px;color:var(--muted);margin-top:22px;line-height:1.7;padding-top:16px;border-top:1px solid var(--line)}

/* Toast */
.toast{
  position:fixed;left:50%;bottom:48px;transform:translate(-50%,14px);
  background:rgba(18,25,45,.93);color:#fff;padding:11px 18px;border-radius:11px;
  font-size:13px;display:flex;align-items:center;gap:8px;opacity:0;pointer-events:none;
  transition:.22s;z-index:9999;backdrop-filter:blur(8px);box-shadow:0 12px 30px rgba(10,16,40,.3);
  max-width:min(88vw,420px);
}
.toast.show{opacity:1;transform:translate(-50%,0)}
.toast svg{width:17px;height:17px;flex:none;color:#9db1ff}

/* ================= 原型入口页 ================= */
.landing{min-height:100vh;background:#f6f8fd}
.land-hero{
  position:relative;padding:54px 24px 118px;color:#fff;overflow:hidden;
  background:
    radial-gradient(700px 420px at 82% 6%, rgba(84,120,255,.5) 0%, rgba(84,120,255,0) 66%),
    radial-gradient(600px 460px at 8% 92%, rgba(47,196,158,.24) 0%, rgba(47,196,158,0) 70%),
    linear-gradient(135deg,#0c142f 0%,#15235a 56%,#203a9c 100%);
}
.land-hero::after{
  content:"";position:absolute;left:0;right:0;bottom:0;height:1px;
  background:linear-gradient(90deg,transparent,rgba(150,175,255,.5),transparent);
}
.land-wrap{max-width:1180px;margin:0 auto;position:relative;z-index:2}
.land-top{display:flex;align-items:center;justify-content:space-between;gap:16px}
.land-logo{display:flex;align-items:center;gap:11px;font-size:14px;font-weight:600;letter-spacing:.2px}
.land-logo .brand-mark{width:38px;height:38px;border-radius:11px;font-size:16px}
.land-top .ver{font-size:11px;color:#9fb0da;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.05);border-radius:99px;padding:6px 12px}
.land-badge{display:inline-flex;align-items:center;gap:8px;margin-top:48px;font-size:11.5px;color:#cfdaff;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);padding:7px 13px;border-radius:99px}
.land-badge i{width:6px;height:6px;border-radius:50%;background:#5ce0b4;box-shadow:0 0 0 3px rgba(92,224,180,.18)}
.land-hero h1{font-size:clamp(30px,4.2vw,46px);line-height:1.24;letter-spacing:-.8px;margin:20px 0 16px;font-weight:750;max-width:820px}
.land-hero p{color:#b9c5e8;font-size:14.5px;line-height:1.9;max-width:680px}
.land-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:26px}
.land-pill{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);padding:7px 14px;border-radius:99px;font-size:12px;color:#dfe6ff}
.land-pill b{color:#fff;font-weight:600}
.entry-grid{
  max-width:1180px;margin:-76px auto 0;padding:0 24px 30px;
  display:grid;grid-template-columns:repeat(3,1fr);gap:20px;position:relative;z-index:3;
}
.entry-card{
  background:#fff;border-radius:20px;padding:24px;display:flex;flex-direction:column;
  box-shadow:0 20px 50px rgba(15,25,70,.11);border:1px solid rgba(255,255,255,.8);transition:.2s;
}
.entry-card:hover{transform:translateY(-4px);box-shadow:0 30px 60px rgba(15,25,70,.17)}
.entry-ico{width:48px;height:48px;border-radius:14px;display:grid;place-items:center;background:var(--brand-soft);color:var(--brand);margin-bottom:16px}
.entry-ico svg{width:24px;height:24px}
.entry-card.teacher .entry-ico{background:var(--ok-soft);color:var(--ok)}
.entry-card.admin .entry-ico{background:var(--warn-soft);color:var(--warn)}
.entry-card h2{font-size:18px;font-weight:700;display:flex;align-items:center;gap:8px}
.entry-card .sub{font-size:12px;color:var(--muted);margin-top:5px}
.entry-tags{display:flex;flex-wrap:wrap;gap:6px;margin:15px 0 18px}
.entry-tags span{font-size:11.5px;color:var(--ink-2);background:#f4f6fc;border-radius:6px;padding:4px 8px}
.entry-card .enter{
  margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding-top:16px;border-top:1px solid var(--line);font-size:13px;font-weight:600;color:var(--brand);
}
.entry-card.teacher .enter{color:var(--ok)}
.entry-card.admin .enter{color:var(--warn)}
.entry-card .enter small{font-weight:500;color:var(--muted);font-size:11.5px}
.entry-card .enter svg{width:17px;height:17px}
.land-note{max-width:1180px;margin:0 auto;padding:6px 24px 54px;font-size:12px;color:var(--muted);line-height:1.9}
.land-note b{color:var(--ink-2)}
.land-divider{height:1px;background:linear-gradient(90deg,transparent,#dfe5f2,transparent);margin:0 auto 26px;max-width:1132px}
.land-section{max-width:1180px;margin:0 auto;padding:6px 24px 56px}
.land-section h2{font-size:17px;font-weight:700;margin-bottom:16px}
.module-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.module{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px 16px}
.module b{font-size:12.5px;display:block;font-weight:650}
.module p{font-size:11.5px;color:var(--muted);line-height:1.7;margin-top:6px}
.module .phase{font-size:10px;font-weight:600;color:var(--brand);background:var(--brand-soft);border-radius:5px;padding:2px 6px;display:inline-block;margin-bottom:8px}
.module .phase.p2{color:var(--warn);background:var(--warn-soft)}

/* ================= 响应式 ================= */
@media (max-width:1200px){
  .module-grid{grid-template-columns:repeat(2,1fr)}
  .entry-grid{gap:16px}
}
@media (max-width:1024px){
  .sidebar{width:212px}
  .chk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .topbar{padding:0 20px}
  .page{padding:22px 20px 48px}
  .kpi-grid{grid-template-columns:repeat(2,1fr)}
  .grid-2{grid-template-columns:1fr}
  .login-left{padding:44px 36px}
}
@media (max-width:900px){
  .entry-grid{grid-template-columns:1fr;max-width:560px}
  .land-hero{padding-bottom:110px}
  .land-hero h1{font-size:30px}
  .login-page{grid-template-columns:1fr}
  .login-left{padding:34px 28px 60px}
  .login-copy h1{font-size:28px}
  .login-right{padding:32px 22px 50px}
  .admin-shell{display:block}
  .sidebar{position:static;width:auto;height:auto;flex-direction:row;align-items:center;padding:12px 14px;gap:10px;overflow-x:auto}
  .brand{padding:0;flex:none}
  .brand-txt small{display:none}
  .side-nav{display:flex;gap:4px;margin:0;flex:none}
  .nav-label{display:none}
  .nav-item{height:34px;margin:0;white-space:nowrap;font-size:12px;padding:0 10px}
  .side-foot{display:none}
  .grid-2-even,.grid-3{grid-template-columns:1fr}
  .form-grid{grid-template-columns:1fr}
}
@media (max-width:760px){
  .topbar{padding:0 16px}
  .crumb{font-size:12px}
  .top-user small{display:none}
  .page{padding:18px 14px 44px}
  .page-head h1{font-size:18px}
  .kpi-grid{gap:10px}
  .kpi{padding:13px 14px}
  .kpi-value{font-size:22px}
  .module-grid{grid-template-columns:1fr}
  .land-hero{padding:36px 20px 96px}
  .land-top .ver{display:none}
  .entry-grid{padding:0 16px 24px}
  .land-note,.land-section{padding-left:16px;padding-right:16px}
}
@media (max-height:780px){
  .stage{padding:10px 16px;gap:8px}
  .stage-head{display:none}
  .device{height:calc(100vh - 20px);min-height:520px}
}
@media (max-width:520px){
  .stage{padding:0;gap:0;display:block;min-height:100vh;background:var(--bg)}
  .stage-head{display:none}
  .device{width:100%;height:100vh;min-height:100vh;border-radius:0;padding:0;box-shadow:none;background:transparent}
  .device::after{display:none}
  .screen{border-radius:0}
  .notch{display:none}
}
