/* ==========================================================================
   课堂教学管理平台 · 设计系统
   目标：商业级 SaaS 观感，360px ~ 4K 全分辨率自适应
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* 品牌色 */
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;

  /* 中性色 */
  --bg:            #f5f7fb;
  --bg-subtle:     #eef2f8;
  --surface:       #ffffff;
  --surface-2:     #fafbfd;
  --surface-hover: #f1f5f9;
  --border:        #e3e8f0;
  --border-strong: #cfd8e6;
  --text:          #0f172a;
  --text-2:        #475569;
  --text-3:        #94a3b8;
  --text-inv:      #ffffff;

  /* 语义色 */
  --success: #059669;
  --success-bg: #ecfdf5;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --info: #0284c7;
  --info-bg: #f0f9ff;

  /* 阴影 */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, .07), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, .10), 0 4px 10px rgba(15, 23, 42, .04);
  --shadow-xl: 0 24px 64px rgba(15, 23, 42, .16);

  /* 圆角 */
  --r-xs: 5px;
  --r-sm: 7px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;
  --r-full: 999px;

  /* 尺寸 */
  --sidebar-w: 254px;
  --topbar-h: 62px;
  --gutter: clamp(14px, 2.2vw, 30px);
  --maxw: 1560px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC",
          "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
  --font-num: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

[data-theme="dark"] {
  --bg:            #0b1120;
  --bg-subtle:     #111a2e;
  --surface:       #131c30;
  --surface-2:     #17223a;
  --surface-hover: #1c2942;
  --border:        #26324a;
  --border-strong: #364563;
  --text:          #eef3fb;
  --text-2:        #a9b7cd;
  --text-3:        #6f8099;

  --brand-50:  #16233d;
  --brand-100: #1b2f52;
  --brand-200: #22406e;

  --success-bg: #06251c;
  --warning-bg: #2a1e07;
  --danger-bg:  #2c1113;
  --info-bg:    #062033;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, .35);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .4);
  --shadow-lg: 0 14px 36px rgba(0, 0, 0, .5);
  --shadow-xl: 0 24px 64px rgba(0, 0, 0, .6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, p, figure, blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand-600); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
::selection { background: var(--brand-200); color: var(--brand-900); }
:focus-visible { outline: 2px solid var(--brand-500); outline-offset: 2px; border-radius: var(--r-xs); }

/* 滚动条 */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--text-3); background-clip: content-box; }

/* ---------- 启动画面 ---------- */
.boot {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: radial-gradient(1200px 600px at 50% -10%, var(--brand-50), var(--bg) 60%);
  transition: opacity .35s var(--ease), visibility .35s;
}
.boot.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot-inner { text-align: center; }
.boot-logo { display: grid; place-items: center; margin-bottom: 18px; animation: bootPop .6s var(--ease-out); }
.boot-title { font-size: 17px; font-weight: 600; letter-spacing: .04em; color: var(--text-2); }
.boot-bar { width: 168px; height: 3px; margin: 18px auto 0; background: var(--border); border-radius: var(--r-full); overflow: hidden; }
.boot-bar span { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand-400), var(--brand-700)); animation: bootSlide 1.1s var(--ease) infinite; }
@keyframes bootPop { from { opacity: 0; transform: scale(.88) translateY(8px); } }
@keyframes bootSlide { 0% { transform: translateX(-120%); } 100% { transform: translateX(360%); } }

/* ---------- 登录页 ---------- */
.login-wrap { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 100dvh; background: var(--bg); }
.login-brand {
  position: relative; overflow: hidden;
  padding: clamp(32px, 5vw, 72px);
  display: flex; flex-direction: column; justify-content: space-between;
  color: #fff;
  background: linear-gradient(145deg, #1e3a8a 0%, #1d4ed8 42%, #2563eb 72%, #3b82f6 100%);
}
.login-brand::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(760px 420px at 12% 8%, rgba(255,255,255,.16), transparent 62%),
    radial-gradient(560px 380px at 92% 88%, rgba(96,165,250,.42), transparent 66%);
}
.login-brand::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 40% 40%, #000 20%, transparent 78%);
}
.login-brand > * { position: relative; z-index: 1; }
.login-logo { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 650; letter-spacing: .02em; }
.login-logo-mark {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.16); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.22);
}
.login-hero h1 {
  font-size: clamp(27px, 3.1vw, 44px); line-height: 1.22; font-weight: 700;
  letter-spacing: -.015em; margin-bottom: 16px;
}
.login-hero p { font-size: clamp(13px, 1.05vw, 15.5px); color: rgba(255,255,255,.86); max-width: 30em; line-height: 1.75; }
.login-feats { display: grid; gap: 14px; margin-top: 34px; }
.login-feat { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: rgba(255,255,255,.94); }
.login-feat-ico {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.2);
}
.login-feat b { display: block; font-weight: 600; }
.login-feat span { color: rgba(255,255,255,.68); font-size: 12.5px; }
.login-foot { font-size: 12px; color: rgba(255,255,255,.55); }

.login-panel { display: grid; place-items: center; padding: clamp(28px, 5vw, 64px) var(--gutter); }
.login-form { width: 100%; max-width: 384px; }
.login-form h2 { font-size: 25px; font-weight: 700; letter-spacing: -.015em; margin-bottom: 8px; }
.login-form .sub { color: var(--text-2); font-size: 13.5px; margin-bottom: 30px; }
.login-form .field + .field { margin-top: 16px; }
.login-tip {
  margin-top: 22px; padding: 13px 15px; border-radius: var(--r-md);
  background: var(--brand-50); border: 1px solid var(--brand-200);
  font-size: 12.5px; color: var(--brand-800); line-height: 1.7;
}
[data-theme="dark"] .login-tip { color: var(--brand-300); }
.login-tip code { font-family: var(--font-num); font-weight: 600; background: rgba(37,99,235,.1); padding: 1px 6px; border-radius: 4px; }

@media (max-width: 940px) {
  .login-wrap { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { min-height: 100dvh; }
  .login-form { max-width: 400px; }
}

/* ---------- 应用骨架 ---------- */
.shell { display: flex; min-height: 100dvh; }

.sidebar {
  width: var(--sidebar-w); flex: none;
  position: sticky; top: 0; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--surface);
  border-right: 1px solid var(--border);
  z-index: 60;
}
.sb-head { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: var(--topbar-h); border-bottom: 1px solid var(--border); }
.sb-mark {
  width: 32px; height: 32px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-800));
  box-shadow: 0 3px 10px rgba(37, 99, 235, .3);
}
.sb-name { font-size: 13.5px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 178px; }
.sb-name span { display: block; font-size: 10.5px; font-weight: 500; color: var(--text-3); letter-spacing: .08em; text-transform: uppercase; }
.sb-nav { flex: 1; overflow-y: auto; padding: 14px 10px; }
.sb-group { margin-bottom: 18px; }
.sb-group-title { font-size: 10.5px; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); padding: 0 10px 8px; }
.sb-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r-sm);
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  transition: background .16s var(--ease), color .16s var(--ease);
  position: relative;
}
.sb-link svg { flex: none; width: 17px; height: 17px; opacity: .82; }
.sb-link:hover { background: var(--surface-hover); color: var(--text); }
.sb-link.active { background: var(--brand-50); color: var(--brand-700); font-weight: 600; }
.sb-link.active svg { opacity: 1; }
[data-theme="dark"] .sb-link.active { color: var(--brand-300); }
.sb-link .count {
  margin-left: auto; font-size: 11px; font-weight: 600; color: var(--text-3);
  background: var(--bg-subtle); padding: 1px 7px; border-radius: var(--r-full);
}
.sb-foot { padding: 12px 10px; border-top: 1px solid var(--border); }

.sidebar-mask {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(15, 23, 42, .56);
  backdrop-filter: blur(3px);
  animation: fadeIn .2s var(--ease);
}

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--topbar-h); flex: none;
  display: flex; align-items: center; gap: 14px;
  padding: 0 var(--gutter);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-title { font-size: 15px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-sub { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.topbar-spacer { flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 34px; height: 34px; border-radius: var(--r-sm);
  display: grid; place-items: center; color: var(--text-2);
  transition: background .16s var(--ease), color .16s var(--ease);
}
.icon-btn:hover { background: var(--surface-hover); color: var(--text); }
.icon-btn svg { width: 17px; height: 17px; }

.avatar {
  width: 32px; height: 32px; border-radius: var(--r-full); flex: none;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--brand-400), var(--brand-700));
  color: #fff; font-size: 12.5px; font-weight: 650;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .26);
}

.view {
  flex: 1; padding: var(--gutter);
  max-width: var(--maxw); width: 100%; margin: 0 auto;
  animation: viewIn .34s var(--ease-out);
}
@keyframes viewIn { from { opacity: 0; transform: translateY(7px); } }
@keyframes fadeIn { from { opacity: 0; } }

/* 移动端抽屉 */
@media (max-width: 1023px) {
  .sidebar {
    position: fixed; left: 0; top: 0;
    transform: translateX(-100%);
    transition: transform .28s var(--ease-out);
    box-shadow: var(--shadow-xl);
    width: 268px;
  }
  .sidebar.open { transform: none; }
  .menu-toggle { display: grid !important; }
}
.menu-toggle { display: none; }

/* 超宽屏：内容居中留白更从容 */
@media (min-width: 1800px) {
  :root { --maxw: 1720px; --gutter: 40px; }
}

/* ---------- 页面头 ---------- */
.page-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head-main { min-width: 0; flex: 1; }
.page-title { font-size: clamp(19px, 1.7vw, 24px); font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.page-desc { font-size: 13px; color: var(--text-2); margin-top: 5px; max-width: 760px; line-height: 1.7; }
.page-actions { display: flex; gap: 9px; flex-wrap: wrap; align-items: center; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 15px;
  border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 550; white-space: nowrap;
  border: 1px solid transparent;
  transition: background .15s var(--ease), border-color .15s var(--ease),
              box-shadow .15s var(--ease), transform .1s var(--ease), color .15s var(--ease);
  user-select: none;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:active:not(:disabled) { transform: translateY(.5px) scale(.995); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(180deg, var(--brand-500), var(--brand-600));
  color: #fff;
  box-shadow: 0 1px 2px rgba(15,23,42,.08), inset 0 1px 0 rgba(255,255,255,.16);
  border-color: var(--brand-700);
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, var(--brand-600), var(--brand-700)); box-shadow: 0 4px 14px rgba(37,99,235,.3); }

.btn-default {
  background: var(--surface); color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-default:hover:not(:disabled) { background: var(--surface-hover); border-color: var(--text-3); }

.btn-ghost { color: var(--text-2); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-hover); color: var(--text); }

.btn-danger { background: var(--danger); color: #fff; border-color: #b91c1c; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }

.btn-danger-ghost { color: var(--danger); border-color: var(--border-strong); background: var(--surface); }
.btn-danger-ghost:hover:not(:disabled) { background: var(--danger-bg); border-color: var(--danger); }

.btn-sm { height: 30px; padding: 0 11px; font-size: 12.5px; border-radius: var(--r-xs); }
.btn-sm svg { width: 13px; height: 13px; }
.btn-lg { height: 42px; padding: 0 22px; font-size: 14.5px; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn-icon-only { width: 36px; padding: 0; }
.btn-icon-only.btn-sm { width: 30px; }

/* ---------- 表单 ---------- */
.field { display: block; }
.label {
  display: block; font-size: 12.5px; font-weight: 600; color: var(--text-2);
  margin-bottom: 6px;
}
.label .req { color: var(--danger); margin-left: 2px; }
.input, .select, .textarea {
  width: 100%; height: 36px; padding: 0 11px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--text);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
  appearance: none;
}
.textarea { height: auto; min-height: 84px; padding: 9px 11px; line-height: 1.65; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .13);
}
.input:disabled, .select:disabled, .textarea:disabled { background: var(--bg-subtle); color: var(--text-3); cursor: not-allowed; }
.input.invalid { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(220,38,38,.1); }
.select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px;
  padding-right: 30px;
}
.hint { font-size: 11.5px; color: var(--text-3); margin-top: 5px; line-height: 1.55; }
.err-msg { font-size: 12px; color: var(--danger); margin-top: 5px; }

.input-sm { height: 30px; font-size: 12.5px; padding: 0 9px; border-radius: var(--r-xs); }

/* 搜索框 */
.search { position: relative; }
.search svg { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.search .input { padding-left: 32px; }

/* 开关 */
.switch { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track {
  width: 38px; height: 22px; border-radius: var(--r-full);
  background: var(--border-strong); position: relative;
  transition: background .2s var(--ease);
  flex: none;
}
.switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(15,23,42,.24);
  transition: transform .2s var(--ease-out);
}
.switch input:checked + .switch-track { background: var(--brand-600); }
.switch input:checked + .switch-track::after { transform: translateX(16px); }
.switch-label { font-size: 13px; color: var(--text-2); }

/* ---------- 卡片 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.card-head {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
}
.card-title { font-size: 14px; font-weight: 650; letter-spacing: -.01em; }
.card-sub { font-size: 12px; color: var(--text-3); }
.card-head .spacer { flex: 1; }
.card-body { padding: 18px; }
.card-body.tight { padding: 0; }
.card-foot { padding: 13px 18px; border-top: 1px solid var(--border); background: var(--surface-2); }

/* ---------- 统计卡 ---------- */
.stat-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  margin-bottom: 20px;
}
.stat {
  position: relative; overflow: hidden;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease);
}
.stat:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); border-color: var(--border-strong); }
.stat-ico {
  width: 34px; height: 34px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 12px;
  background: var(--brand-50); color: var(--brand-600);
}
.stat-ico svg { width: 17px; height: 17px; }
.stat-ico.green { background: var(--success-bg); color: var(--success); }
.stat-ico.amber { background: var(--warning-bg); color: var(--warning); }
.stat-ico.red { background: var(--danger-bg); color: var(--danger); }
.stat-ico.sky { background: var(--info-bg); color: var(--info); }
.stat-label { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.stat-value {
  font-size: clamp(23px, 2.1vw, 29px); font-weight: 700; letter-spacing: -.025em;
  line-height: 1.2; margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.stat-value small { font-size: 12.5px; font-weight: 500; color: var(--text-3); margin-left: 2px; letter-spacing: .02em; }
.stat-foot { font-size: 11.5px; color: var(--text-3); margin-top: 7px; }
.stat-foot .up { color: var(--success); font-weight: 600; }
.stat-foot .down { color: var(--danger); font-weight: 600; }

/* ---------- 表格 ---------- */
.table-wrap {
  width: 100%; overflow: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
table.data {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 13px;
  min-width: 100%;
}
table.data thead th {
  position: sticky; top: 0; z-index: 2;
  box-sizing: border-box;
  background: var(--surface-2);
  padding: 10px 12px;
  text-align: left; font-size: 11.5px; font-weight: 650;
  color: var(--text-2); letter-spacing: .03em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
table.data thead th.num, table.data tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data thead th.center, table.data tbody td.center { text-align: center; }
table.data tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
table.data tbody tr { transition: background .12s var(--ease); }
table.data tbody tr:hover { background: var(--surface-hover); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data tbody tr.is-selected { background: var(--brand-50); }
table.data .sticky-col { position: sticky; left: 0; background: inherit; z-index: 1; }
table.data thead th.sticky-col { z-index: 3; background: var(--surface-2); }
table.data .sticky-col-2 { position: sticky; left: var(--col-w, 96px); background: inherit; z-index: 1; }
table.data thead th.sticky-col-2 { z-index: 3; background: var(--surface-2); }

.cell-name { font-weight: 550; color: var(--text); }
.cell-sub { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-num); font-variant-numeric: tabular-nums; }

/* 行内操作按钮组 */
.op-cell { white-space: nowrap; }
.op-group { display: inline-flex; gap: 2px; align-items: center; justify-content: center; }
.op-group .icon-btn { width: 27px; height: 27px; border-radius: 6px; }
.op-group .icon-btn svg { width: 14px; height: 14px; }

/* 分数单元格输入 */
.score-input {
  width: 74px; height: 29px; padding: 0 7px;
  border: 1px solid var(--border); border-radius: var(--r-xs);
  background: var(--surface-2); text-align: center;
  font-size: 13px; font-variant-numeric: tabular-nums;
  transition: border-color .13s var(--ease), background .13s var(--ease), box-shadow .13s var(--ease);
  -moz-appearance: textfield;
}
.score-input::-webkit-outer-spin-button, .score-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.score-input:hover { background: var(--surface); border-color: var(--text-3); }
.score-input:focus {
  outline: none; background: var(--surface);
  border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(37,99,235,.13);
}
.score-input.fail { color: var(--danger); font-weight: 650; }
.score-input.excellent { color: var(--success); font-weight: 650; }
.score-input.dirty { background: #fffbeb; border-color: var(--warning); }
[data-theme="dark"] .score-input.dirty { background: var(--warning-bg); }

/* ---------- 徽章 ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 21px; padding: 0 8px; border-radius: var(--r-full);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: var(--bg-subtle); color: var(--text-2);
}
.badge.blue { background: var(--brand-50); color: var(--brand-700); }
.badge.green { background: var(--success-bg); color: var(--success); }
.badge.amber { background: var(--warning-bg); color: var(--warning); }
.badge.red { background: var(--danger-bg); color: var(--danger); }
.badge.sky { background: var(--info-bg); color: var(--info); }
.badge.gray { background: var(--bg-subtle); color: var(--text-3); }
[data-theme="dark"] .badge.blue { color: var(--brand-300); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* 状态点 */
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.green { background: var(--success); }
.dot.red { background: var(--danger); }
.dot.amber { background: var(--warning); }
.dot.blue { background: var(--brand-500); }
.dot.gray { background: var(--text-3); }

/* ---------- 标签页 ---------- */
.tabs {
  display: flex; gap: 2px; overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 11px 15px;
  font-size: 13.5px; font-weight: 550; color: var(--text-2);
  border-bottom: 2px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
  margin-bottom: -1px;
  white-space: nowrap;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--brand-600); border-bottom-color: var(--brand-600); }
[data-theme="dark"] .tab.active { color: var(--brand-300); border-bottom-color: var(--brand-400); }
.tab .count { font-size: 11px; color: var(--text-3); margin-left: 5px; }

/* 分段控件 */
.segmented {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--bg-subtle); border-radius: var(--r-sm);
}
.segmented button {
  padding: 5px 12px; border-radius: var(--r-xs);
  font-size: 12.5px; font-weight: 550; color: var(--text-2);
  transition: background .15s var(--ease), color .15s var(--ease), box-shadow .15s var(--ease);
  white-space: nowrap;
}
.segmented button:hover { color: var(--text); }
.segmented button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-xs); font-weight: 600; }

/* ---------- 工具条 ---------- */
.toolbar {
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.toolbar .spacer { flex: 1; }
.toolbar .search { width: min(280px, 44vw); }

/* ---------- 空状态 ---------- */
.empty {
  display: grid; place-items: center; text-align: center;
  padding: clamp(40px, 7vw, 76px) 24px;
}
.empty-ico {
  width: 76px; height: 76px; border-radius: 24px; margin-bottom: 18px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, var(--brand-50), var(--bg-subtle));
  border: 1px solid var(--border);
}
.empty-ico svg { width: 32px; height: 32px; color: var(--brand-400); }
.empty h3 { font-size: 15.5px; font-weight: 650; margin-bottom: 7px; }
.empty p { font-size: 13px; color: var(--text-2); max-width: 460px; line-height: 1.75; margin-bottom: 18px; }
.empty-actions { display: flex; gap: 9px; flex-wrap: wrap; justify-content: center; }

/* ---------- 骨架屏 ---------- */
.skel {
  background: linear-gradient(90deg, var(--bg-subtle) 25%, var(--surface-hover) 37%, var(--bg-subtle) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--r-xs);
}
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.skel-line { height: 12px; margin-bottom: 10px; }
.skel-line.w40 { width: 40%; } .skel-line.w60 { width: 60%; } .skel-line.w80 { width: 80%; }
.skel-card { height: 118px; border-radius: var(--r-lg); }
.skel-row { height: 42px; margin-bottom: 8px; border-radius: var(--r-xs); }
.skel-title { height: 22px; width: 220px; border-radius: var(--r-xs); margin-bottom: 10px; }

/* ---------- Toast ---------- */
.toast-root {
  position: fixed; z-index: 8000;
  right: 20px; bottom: 20px;
  display: flex; flex-direction: column-reverse; gap: 9px;
  pointer-events: none;
  max-width: min(400px, calc(100vw - 32px));
}
.toast {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: 13px; line-height: 1.55;
  pointer-events: auto;
  animation: toastIn .3s var(--ease-out);
}
.toast.out { animation: toastOut .22s var(--ease) forwards; }
.toast-ico { flex: none; width: 17px; height: 17px; margin-top: 1px; }
.toast.success .toast-ico { color: var(--success); }
.toast.error .toast-ico { color: var(--danger); }
.toast.info .toast-ico { color: var(--info); }
.toast.warn .toast-ico { color: var(--warning); }
.toast-msg { flex: 1; min-width: 0; word-break: break-word; }
.toast-close { flex: none; color: var(--text-3); padding: 0; width: 18px; height: 18px; display: grid; place-items: center; }
.toast-close:hover { color: var(--text); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(20px); } }
@media (max-width: 600px) {
  .toast-root { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 7000;
  background: rgba(15, 23, 42, .42);
  backdrop-filter: blur(3px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fadeIn .18s var(--ease);
  overflow-y: auto;
}
.modal {
  width: 100%; max-width: 520px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
  animation: modalIn .28s var(--ease-out);
  margin: auto;
  max-height: calc(100dvh - 40px);
  display: flex; flex-direction: column;
}
.modal.wide { max-width: 880px; }
.modal.xwide { max-width: 1120px; }
.modal-head {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 20px 22px 14px;
  flex: none;
}
.modal-title { font-size: 16px; font-weight: 650; letter-spacing: -.01em; flex: 1; }
.modal-desc { font-size: 12.5px; color: var(--text-2); margin-top: 4px; line-height: 1.65; }
.modal-body { padding: 0 22px 4px; overflow-y: auto; flex: 1; }
.modal-foot {
  display: flex; justify-content: flex-end; gap: 9px;
  padding: 16px 22px 20px;
  flex: none;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } }
@media (max-width: 600px) {
  .modal-mask { padding: 0; place-items: end stretch; }
  .modal { max-width: none; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92dvh; animation: sheetIn .3s var(--ease-out); }
  @keyframes sheetIn { from { transform: translateY(100%); } }
}

/* ---------- 表单布局 ---------- */
.form-grid { display: grid; gap: 15px; }
.form-grid.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.form-row { display: flex; gap: 9px; }

/* ---------- 进度条 ---------- */
.progress { height: 6px; background: var(--bg-subtle); border-radius: var(--r-full); overflow: hidden; }
.progress > span {
  display: block; height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-600));
  transition: width .4s var(--ease-out);
}
.progress.green > span { background: linear-gradient(90deg, #34d399, var(--success)); }
.progress.amber > span { background: linear-gradient(90deg, #fbbf24, var(--warning)); }
.progress.red > span { background: linear-gradient(90deg, #f87171, var(--danger)); }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.pager-info { font-size: 12.5px; color: var(--text-3); }
.pager-btns { display: flex; gap: 5px; }

/* ---------- 提示条 ---------- */
.alert {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-md);
  font-size: 12.8px; line-height: 1.7;
  border: 1px solid transparent;
}
.alert svg { flex: none; width: 16px; height: 16px; margin-top: 1px; }
.alert-info { background: var(--info-bg); border-color: #bae6fd; color: #075985; }
.alert-warn { background: var(--warning-bg); border-color: #fde68a; color: #92400e; }
.alert-danger { background: var(--danger-bg); border-color: #fecaca; color: #991b1b; }
.alert-success { background: var(--success-bg); border-color: #a7f3d0; color: #065f46; }
[data-theme="dark"] .alert-info { color: #bae6fd; border-color: #075985; }
[data-theme="dark"] .alert-warn { color: #fde68a; border-color: #92400e; }
[data-theme="dark"] .alert-danger { color: #fecaca; border-color: #991b1b; }
[data-theme="dark"] .alert-success { color: #a7f3d0; border-color: #065f46; }

/* ---------- 列表项 ---------- */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  transition: background .14s var(--ease);
}
.list-item:last-child { border-bottom: none; }
.list-item:hover { background: var(--surface-hover); }
.list-main { flex: 1; min-width: 0; }
.list-title { font-size: 13.5px; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-sub { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* ---------- 班级卡片网格 ---------- */
.grid-cards {
  display: grid; gap: 15px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 276px), 1fr));
}
.class-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px;
  transition: box-shadow .22s var(--ease), transform .22s var(--ease), border-color .22s var(--ease);
  cursor: pointer;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.class-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--brand-400), var(--brand-700));
  opacity: 0; transition: opacity .22s var(--ease);
}
.class-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--brand-200); }
.class-card:hover::before { opacity: 1; }
.class-card-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.class-card-name { font-size: 15px; font-weight: 650; letter-spacing: -.01em; line-height: 1.35; }
.class-card-course { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.class-card-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); }
.class-metric { text-align: center; }
.class-metric b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.02em;
  line-height: 1.25; margin-bottom: 1px; font-variant-numeric: tabular-nums; }
.class-metric span { font-size: 11px; color: var(--text-3); }
.class-card-actions { position: absolute; top: 12px; right: 10px; opacity: 0; transition: opacity .18s var(--ease); }
.class-card:hover .class-card-actions { opacity: 1; }
@media (hover: none) { .class-card-actions { opacity: 1; } }

/* ---------- 点名界面 ---------- */
.att-grid {
  display: grid; gap: 9px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 148px), 1fr));
}
.att-card {
  position: relative;
  padding: 11px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: left;
  transition: all .16s var(--ease);
  cursor: pointer;
  overflow: hidden;
}
.att-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.att-card-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-card-sid { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; margin-top: 2px; }
.att-card-status { margin-top: 7px; font-size: 11px; font-weight: 650; display: flex; align-items: center; gap: 4px; }
.att-card[data-status="present"] { border-color: #a7f3d0; background: var(--success-bg); }
.att-card[data-status="present"] .att-card-status { color: var(--success); }
.att-card[data-status="late"] { border-color: #fde68a; background: var(--warning-bg); }
.att-card[data-status="late"] .att-card-status { color: var(--warning); }
.att-card[data-status="leave"] { border-color: #bae6fd; background: var(--info-bg); }
.att-card[data-status="leave"] .att-card-status { color: var(--info); }
.att-card[data-status="absent"] { border-color: #fecaca; background: var(--danger-bg); }
.att-card[data-status="absent"] .att-card-status { color: var(--danger); }
.att-card[data-status="early"] { border-color: #ddd6fe; background: #f5f3ff; }
.att-card[data-status="early"] .att-card-status { color: #7c3aed; }
[data-theme="dark"] .att-card[data-status="early"] { background: #1b1436; border-color: #4c1d95; }

/* ---------- 图表容器 ---------- */
.chart-box { position: relative; width: 100%; height: 260px; }
.chart-box.tall { height: 320px; }
@media (max-width: 600px) { .chart-box { height: 220px; } }

/* ---------- 分析页 ---------- */
.insight-list { display: grid; gap: 10px; }
.insight {
  display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 14px; border-radius: var(--r-md);
  font-size: 13px; line-height: 1.7;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.insight-ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.insight.good .insight-ico { background: var(--success-bg); color: var(--success); }
.insight.warn .insight-ico { background: var(--danger-bg); color: var(--danger); }
.insight.normal .insight-ico { background: var(--info-bg); color: var(--info); }

.dist-bar { display: grid; gap: 9px; }
.dist-row { display: grid; grid-template-columns: 62px 1fr 54px; align-items: center; gap: 11px; font-size: 12.5px; }
.dist-label { color: var(--text-2); font-weight: 550; }
.dist-track { height: 22px; background: var(--bg-subtle); border-radius: var(--r-xs); overflow: hidden; position: relative; }
.dist-fill { height: 100%; border-radius: var(--r-xs); transition: width .6s var(--ease-out); min-width: 2px; }
.dist-count { text-align: right; font-variant-numeric: tabular-nums; color: var(--text-2); font-weight: 600; }
.dist-count small { color: var(--text-3); font-weight: 500; margin-left: 3px; }

/* 排名表 */
.rank-1 { color: #b45309; font-weight: 700; }
.rank-2 { color: #64748b; font-weight: 700; }
.rank-3 { color: #a16207; font-weight: 700; }

/* ---------- 导入向导 ---------- */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-lg);
  padding: 34px 22px;
  text-align: center;
  transition: all .18s var(--ease);
  background: var(--surface-2);
  cursor: pointer;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--brand-500);
  background: var(--brand-50);
}
.dropzone-ico { width: 46px; height: 46px; margin: 0 auto 13px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); }
.dropzone h4 { font-size: 14px; font-weight: 600; margin-bottom: 5px; }
.dropzone p { font-size: 12.5px; color: var(--text-2); }
.dropzone .link { color: var(--brand-600); font-weight: 600; text-decoration: underline; }

.steps { display: flex; align-items: center; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.step { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-3); font-weight: 550; }
.step-dot {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-subtle); color: var(--text-3); font-size: 11px; font-weight: 700; flex: none;
}
.step.active { color: var(--brand-600); }
.step.active .step-dot { background: var(--brand-600); color: #fff; }
.step.done .step-dot { background: var(--success); color: #fff; }
.step-line { flex: 1; height: 1px; background: var(--border); min-width: 12px; }

/* 预览表 */
.preview-table { font-size: 12.5px; }
.preview-table td { padding: 6px 9px !important; }
.row-dup { background: rgba(217, 119, 6, .07) !important; }
.row-err { background: rgba(220, 38, 38, .07) !important; }

/* ---------- 工具类 ---------- */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-5 { margin-bottom: 20px; }
.text-2 { color: var(--text-2); } .text-3 { color: var(--text-3); }
.text-sm { font-size: 12.5px; } .text-xs { font-size: 11.5px; }
.fw-6 { font-weight: 600; } .fw-7 { font-weight: 700; }
.tr { text-align: right; } .tc { text-align: center; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }
.hidden { display: none !important; }

.layout-2col {
  display: grid; gap: 16px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
}
@media (max-width: 1180px) {
  .layout-2col { grid-template-columns: 1fr; }
}
.layout-3col {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

/* 打印 */
@media print {
  .sidebar, .topbar, .page-actions, .toolbar, .btn, .pager { display: none !important; }
  .view { padding: 0; }
  .card { box-shadow: none; border-color: #ccc; break-inside: avoid; }
  body { background: #fff; }
}

/* 尊重减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- 补充：小屏适配 ---------- */
code {
  font-family: var(--font-num);
  font-size: .92em;
  background: var(--bg-subtle);
  padding: 1px 5px;
  border-radius: 4px;
}

@media (max-width: 860px) {
  .hide-sm { display: none !important; }
  /* 表格保底宽度，避免列被压扁成竖排文字，改为横向滚动 */
  table.data { min-width: 620px; }
  .cell-name { white-space: nowrap; }
  table.data .score-input { width: 82px; }
  .tabs { padding-right: 10px; }

  /* 操作列固定在右侧，横向滚动时始终可见 */
  .sticky-last thead th:last-child,
  .sticky-last tbody td:last-child {
    position: sticky; right: 0; z-index: 2;
    background: var(--surface);
    box-shadow: -8px 0 12px -8px rgba(15, 23, 42, .22);
  }
  .sticky-last thead th:last-child { background: var(--surface-2); z-index: 4; }
  .sticky-last tbody tr:hover td:last-child { background: var(--surface-hover); }
  .sticky-last tbody tr.is-selected td:last-child { background: var(--brand-50); }
  [data-theme="dark"] .sticky-last tbody td:last-child { background: var(--surface); }
}

@media (max-width: 640px) {
  :root { --gutter: 13px; --topbar-h: 56px; }
  .page-head { gap: 10px; margin-bottom: 16px; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1; min-width: 0; }
  .stat-grid { gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr)); }
  .stat { padding: 13px 14px; }
  .stat-value { font-size: 21px; }
  .card-head { padding: 12px 14px; }
  .card-body { padding: 14px; }
  .toolbar { padding: 10px 13px; gap: 7px; }
  .toolbar .search { width: 100%; }
  .att-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 118px), 1fr)); gap: 7px; }
  .att-card { padding: 9px 10px; }
  .modal-head { padding: 16px 16px 10px; }
  .modal-body { padding: 0 16px 4px; }
  .modal-foot { padding: 12px 16px 16px; }
  .modal-foot .btn { flex: 1; }
  .dist-row { grid-template-columns: 52px 1fr 46px; gap: 8px; }
  .grid-cards { grid-template-columns: 1fr; }
  .list-item { padding: 11px 14px; }
  .steps { gap: 4px; }
  .step span:not(.step-dot) { display: none; }
}

/* 超小屏（<=380px） */
@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr; }
  .btn { padding: 0 11px; font-size: 13px; }
}

/* 表格内输入框在触屏下的可点区域 */
@media (pointer: coarse) {
  .score-input { width: 76px; height: 34px; font-size: 14px; }
  .input, .select { height: 40px; }
  .btn { height: 40px; }
  .btn-sm { height: 34px; }
  .icon-btn { width: 38px; height: 38px; }
}
