/* ============================================================
   尚智教育学员服务系统  样式表
   配色：深海军蓝 + 金橙点缀，教育机构的稳重感
   ============================================================ */
:root {
  --bg: #f4f6fb;
  --card: #ffffff;
  --ink: #182135;
  --ink-2: #3d4a66;
  --muted: #7683a0;
  --line: #e5eaf4;
  --line-2: #eef1f8;
  --primary: #2a56e0;
  --primary-d: #1c3da6;
  --primary-soft: #eef2ff;
  --accent: #e0a13a;
  --ok: #0f9d76;
  --ok-soft: #e6f7f1;
  --warn: #d98a1f;
  --warn-soft: #fdf3e2;
  --bad: #d64545;
  --bad-soft: #fdecec;
  --info: #2f7fd4;
  --info-soft: #eaf3fd;
  --violet: #7a5cc4;
  --violet-soft: #f2eefc;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(24, 33, 53, .04), 0 8px 24px rgba(24, 33, 53, .06);
  --shadow-lg: 0 20px 60px rgba(16, 26, 48, .18);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -.01em; }
a { color: var(--primary); text-decoration: none; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.center { text-align: center; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mt24 { margin-top: 24px; }
.mb0 { margin-bottom: 0; }

/* ---------------------------------------------------------- 独立报名页 */
.apply-wrap {
  min-height: 100vh; display: flex; align-items: flex-start; justify-content: center;
  padding: 40px 16px 60px;
  background:
    radial-gradient(700px 420px at 90% -10%, rgba(224, 161, 58, .10), transparent 60%),
    linear-gradient(160deg, #eef2fa 0%, #f7f9fd 60%, #ffffff 100%);
}
.apply-card {
  width: 100%; max-width: 560px; background: #fff; border-radius: 18px;
  box-shadow: 0 18px 46px rgba(24, 36, 68, .10), 0 2px 6px rgba(24, 36, 68, .05);
  overflow: hidden;
}
.apply-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px 26px; background: linear-gradient(140deg, #152136, #23355b);
  color: #fff;
}
.apply-brand strong { display: block; font-size: 16px; letter-spacing: .16em; }
.apply-brand span { font-size: 10.5px; letter-spacing: .2em; color: rgba(216, 225, 245, .6); }
.apply-title { margin: 0 0 6px; font-size: 20px; }
.apply-sub { margin: 0 0 18px; }
.apply-foot {
  padding: 14px 26px 20px; font-size: 11.5px; color: var(--muted);
  border-top: 1px dashed var(--line); text-align: center;
}
.seg { display: flex; gap: 8px; }
.seg-btn {
  flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink-2); font-size: 14px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.seg-btn:hover { border-color: #c9d6f7; }
.seg-btn.active {
  background: #eef2fd; border-color: #b9c9f5; color: var(--primary); font-weight: 600;
}
.pos-results {
  max-height: 240px; overflow: auto; border: 1px solid var(--line);
  border-radius: 10px; background: #fff;
}
.pos-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-bottom: 1px solid var(--line-2); cursor: pointer;
}
.pos-item:last-child { border-bottom: none; }
.pos-item:hover { background: #f6f8fd; }
.pos-item-main { flex: 1; min-width: 0; line-height: 1.5; }
.pos-item-main b { font-size: 13px; }
.pos-item-main .small { color: var(--ink-2); }
.pos-tag {
  flex: 0 0 auto; font-size: 11px; padding: 2px 8px; border-radius: 20px;
  background: #e8f6f0; color: #0f7d5d;
}
.pos-tag.full { background: #fdeaea; color: #c34a4a; }
.pos-chosen {
  display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px;
  border: 1px solid #c9d6f7; background: #f4f7fe; border-radius: 10px; line-height: 1.6;
}
.pos-chosen > div { flex: 1; min-width: 0; }
.apply-summary {
  margin-top: 18px; padding: 14px 16px; border-radius: 12px;
  background: #f7f9fd; border: 1px solid var(--line-2);
}
.apply-summary-row {
  display: flex; gap: 12px; padding: 5px 0; font-size: 13px; line-height: 1.6;
}
.apply-summary-row span { flex: 0 0 68px; color: var(--muted); }
.apply-summary-row b { flex: 1; min-width: 0; text-align: left; color: var(--ink); font-weight: 600; }

/* ---------------------------------------------------------- 学员端通知 */
.notice-item {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
}
.notice-item:last-child { border-bottom: none; }
.notice-item.unconfirmed { background: #fffaf0; }
.notice-main { flex: 1 1 220px; min-width: 0; }
.notice-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.notice-title b { font-weight: 600; word-break: break-word; }
.notice-sub { margin-top: 4px; }
.notice-item .btn { flex: 0 0 auto; }
@media (max-width: 560px) {
  .notice-item { padding: 12px 14px; gap: 8px; }
  .notice-main { flex: 1 1 100%; }
  .notice-item .btn { margin-left: auto; }
}

/* ---------------------------------------------------------- 登录页 */
.login-tabs {
  display: flex; gap: 6px; margin: 0 0 16px; padding: 4px;
  background: #f2f5fb; border-radius: 11px;
}
.login-tab {
  flex: 1; height: 34px; border: none; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--ink-2); font-size: 13.5px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.login-tab:hover { color: var(--primary); }
.login-tab.active {
  background: #fff; color: var(--primary); font-weight: 600;
  box-shadow: 0 1px 3px rgba(24, 36, 68, .12);
}
.code-row { display: flex; gap: 8px; }
.code-row .input { flex: 1; min-width: 0; }
.code-row .btn { flex: 0 0 auto; height: 40px; padding: 0 14px; font-size: 13px; white-space: nowrap; }
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
.login-brand {
  position: relative;
  padding: 64px 68px 48px;
  color: #e9eefb;
  background:
    radial-gradient(780px 520px at 96% -12%, rgba(206, 158, 74, .17), transparent 62%),
    radial-gradient(680px 520px at -4% 108%, rgba(64, 92, 156, .30), transparent 64%),
    linear-gradient(157deg, #0b1424 0%, #14213a 54%, #1c2c4c 100%);
  display: flex; flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(255, 255, 255, .07);
}
/* 右侧两层极细金环，作为背景装饰 */
.login-brand::before,
.login-brand::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.login-brand::before {
  right: -190px; bottom: -230px; width: 660px; height: 660px;
  border: 1px solid rgba(224, 183, 95, .16);
}
.login-brand::after {
  right: -70px; bottom: -140px; width: 430px; height: 430px;
  border: 1px solid rgba(224, 183, 95, .10);
}

.brand-top { display: flex; align-items: center; gap: 16px; position: relative; z-index: 1; }
.brand-logo { width: 44px; height: 44px; flex: 0 0 44px; }
.brand-name strong {
  display: block; font-size: 18px; font-weight: 600;
  letter-spacing: .22em; color: #fff;
}
.brand-name span {
  display: block; margin-top: 7px;
  font-size: 13px; letter-spacing: .22em;
  color: rgba(216, 225, 245, .62);
}

.brand-main {
  position: relative; z-index: 1;
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  padding: 40px 0;
}
.brand-rule {
  width: 46px; height: 1px; margin-bottom: 30px;
  background: linear-gradient(90deg, rgba(224, 183, 95, .95), rgba(224, 183, 95, 0));
}
.login-brand h1 {
  margin: 0;
  font-size: clamp(38px, 3.9vw, 58px);
  line-height: 1.42;
  font-weight: 600;
  color: #fff;
  letter-spacing: .12em;
}
.brand-sub {
  margin: 26px 0 0;
  font-size: 14.5px; letter-spacing: .14em;
  color: rgba(216, 225, 245, .58);
}

.brand-foot { position: relative; z-index: 1; }
.brand-tags {
  display: flex; align-items: center; gap: 12px;
  font-size: 11.5px; letter-spacing: .16em;
  color: rgba(216, 225, 245, .4);
}
.brand-tags i {
  width: 3px; height: 3px; border-radius: 50%;
  background: rgba(224, 183, 95, .5); flex: 0 0 3px;
}
.brand-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  font-size: 11px; letter-spacing: .08em;
  color: rgba(216, 225, 245, .34);
}
.brand-ver { letter-spacing: .16em; }

/* 屏幕偏窄时整体缩小，避免大字挤压 */
@media (max-width: 1280px) {
  .login-brand { padding: 48px 46px 38px; }
  .login-brand h1 { font-size: clamp(34px, 3.4vw, 46px); letter-spacing: .1em; }
  .brand-sub { font-size: 13.5px; margin-top: 20px; }
  .brand-rule { margin-bottom: 24px; }
}
@media (max-width: 1024px) {
  .login-brand { padding: 36px 34px 30px; }
  .brand-name strong { font-size: 14px; }
  .login-brand h1 { font-size: 36px; letter-spacing: .08em; }
  .brand-tags { font-size: 10.5px; letter-spacing: .1em; gap: 9px; }
}

.login-form-wrap {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px; background: #fff; min-width: 0; width: 100%;
}
.login-form { width: 100%; max-width: 358px; }

/* 手机端登录页的品牌标识（桌面端左侧已有品牌区，这里隐藏） */
.login-mobile-brand {
  display: none;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 358px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.login-mobile-brand .lm-mark { width: 46px; height: 46px; flex: 0 0 46px; }
.login-mobile-brand .lm-text { display: flex; flex-direction: column; gap: 3px; }
.login-mobile-brand strong {
  font-size: 17.5px; font-weight: 700; color: var(--ink); letter-spacing: .06em;
}
.login-mobile-brand span {
  font-size: 11px; color: var(--muted); letter-spacing: .22em;
}
.login-form h2 { font-size: 24px; }
.login-form > p { margin: 6px 0 28px; font-size: 13px; }
.login-error {
  background: var(--bad-soft); color: var(--bad); border: 1px solid #f6d5d5;
  border-radius: 10px; padding: 9px 12px; font-size: 13px; margin-bottom: 14px;
}

/* ---------------------------------------------------------- 框架 */
.app { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  padding: 20px 14px 16px;
  background: linear-gradient(180deg, #141d36 0%, #1b2947 60%, #1d2c4e 100%);
  color: #dfe6f7;
}
.logo { display: flex; align-items: center; gap: 10px; padding: 2px 8px 20px; }
.logo-text strong { display: block; font-size: 15px; color: #fff; letter-spacing: .02em; }
.logo-text span { font-size: 10.5px; color: rgba(223, 230, 247, .5); letter-spacing: .1em; }
.nav { display: flex; flex-direction: column; gap: 3px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: rgba(223, 230, 247, .78); font-size: 13.5px; cursor: pointer;
  border: 0; background: transparent; width: 100%; text-align: left;
  transition: background .16s, color .16s;
}
.nav-item svg { width: 17px; height: 17px; flex: 0 0 17px; opacity: .85; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.active {
  background: linear-gradient(90deg, rgba(74, 111, 232, .95), rgba(58, 90, 199, .78));
  color: #fff; box-shadow: 0 6px 18px rgba(42, 86, 224, .35);
}
.nav-item .nav-badge {
  margin-left: auto; background: var(--bad); color: #fff; font-size: 10.5px;
  padding: 0 6px; border-radius: 20px; line-height: 17px; min-width: 18px; text-align: center;
}
.sidebar-foot { margin-top: auto; padding-top: 14px; }
.sidebar-tip {
  font-size: 11.5px; line-height: 1.55; color: rgba(223, 230, 247, .5);
  background: rgba(255, 255, 255, .05); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px;
}
.sidebar-tip b { color: var(--accent); }
.me { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .05); }
.avatar {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #4a6fe8, #7a5cc4); color: #fff; font-weight: 600; font-size: 13px;
  flex: 0 0 34px;
}
.me-info { min-width: 0; }
.me-info strong { display: block; font-size: 13px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-info span { font-size: 11px; color: rgba(223, 230, 247, .55); }
.me-logout {
  margin-left: auto; border: 0; background: transparent; color: rgba(223, 230, 247, .6);
  cursor: pointer; padding: 6px; border-radius: 8px; display: grid; place-items: center;
}
.me-logout:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.me-logout svg { width: 16px; height: 16px; }
.logout-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%; height: 34px; margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, .14); border-radius: 9px;
  background: rgba(255, 255, 255, .06); color: rgba(233, 238, 251, .82);
  font: inherit; font-size: 12.5px; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.logout-btn:hover { background: rgba(255, 255, 255, .13); border-color: rgba(255, 255, 255, .22); color: #fff; }
.logout-btn svg { width: 15px; height: 15px; flex: 0 0 15px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 30px; background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: 19px; }
.page-head p { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.view { padding: 24px 30px 64px; }

/* ---------------------------------------------------------- 通用块 */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 18px 20px; }
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line-2);
}
.card-head h3 { font-size: 14.5px; }
.card-head .sub { font-size: 12px; color: var(--muted); }
.card-head .spacer { margin-left: auto; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.wide-left { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.grid.wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); }
@media (max-width: 1240px) {
  .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.c3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.wide-left, .grid.wide-right { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: minmax(0, 1fr); }
}

/* 统计卡 */
.stat { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; }
.stat-ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: 0 0 42px;
}
.stat-ico svg { width: 20px; height: 20px; }
.stat-label { font-size: 12.5px; color: var(--muted); }
.stat-value { font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 12.5px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.stat-sub { font-size: 11.5px; color: var(--muted); }
.stat-sub b { color: var(--ink-2); }
.tint-blue { background: var(--primary-soft); color: var(--primary); }
.tint-green { background: var(--ok-soft); color: var(--ok); }
.tint-amber { background: var(--warn-soft); color: var(--warn); }
.tint-red { background: var(--bad-soft); color: var(--bad); }
.tint-violet { background: var(--violet-soft); color: var(--violet); }
.tint-info { background: var(--info-soft); color: var(--info); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: 9px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 13.5px; font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .05s;
}
.btn:hover { background: #f7f9fe; border-color: #d8e0f0; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 15px; height: 15px; }
.btn-primary {
  background: linear-gradient(180deg, #3a63e8, #2a56e0); color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(42, 86, 224, .28);
}
.btn-primary:hover { background: linear-gradient(180deg, #3359d9, #2449c9); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--bad); border-color: #f1d4d4; background: #fff; }
.btn-danger:hover { background: var(--bad-soft); border-color: #eab8b8; }
.btn-sm { height: 29px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn-sm svg { width: 13px; height: 13px; }
.btn-block { width: 100%; height: 42px; }
.btn-link {
  border: 0; background: none; color: var(--primary); cursor: pointer;
  font-size: 12.5px; padding: 2px 4px; font-family: inherit;
}
.btn-link:hover { text-decoration: underline; }
.btn-link.danger { color: var(--bad); }

/* 表单 */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12.5px; color: var(--ink-2); margin-bottom: 6px; font-weight: 500; }
.field > span em { color: var(--bad); font-style: normal; margin-left: 2px; }
.field .hint { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid #dde3f0; border-radius: 9px; background: #fff; color: var(--ink);
  font: inherit; font-size: 13.5px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 82px; padding: 9px 11px; resize: vertical; line-height: 1.65; }
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(42, 86, 224, .12);
}
.input::placeholder, .textarea::placeholder { color: #a9b3c8; }
/* 带 datalist 联想的输入框，给右侧下拉箭头留位置 */
.input[list] { padding-right: 28px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237683a0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 16px; padding-right: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* 筛选栏 */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .spacer { margin-left: auto; }
.search { position: relative; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }
.search .input { padding-left: 33px; width: 250px; }
.toolbar .select { width: auto; min-width: 128px; }

/* 表格 */
.table-wrap { overflow: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.table-wrap.flush { border: 0; border-radius: 0; }
/* 卡片内部的表格去掉外框，避免与卡片边框重叠 */
.card .table-wrap { border: 0; border-radius: 0; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  position: sticky; top: 0; z-index: 1;
  background: #f8faff; color: var(--muted); font-weight: 600; font-size: 12px;
  text-align: left; padding: 10px 14px; white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fafbff; }
tbody tr.clickable { cursor: pointer; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.td-name { font-weight: 600; color: var(--ink); }
.td-sub { font-size: 11.5px; color: var(--muted); }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; }

.empty { padding: 46px 20px; text-align: center; color: var(--muted); }
.empty svg { width: 42px; height: 42px; opacity: .35; margin-bottom: 8px; }
.empty p { margin: 0; font-size: 13px; }

/* 标签 */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 7px;
  font-size: 11.5px; font-weight: 500; white-space: nowrap;
  background: #f1f4fa; color: var(--ink-2);
}
.badge-green { background: var(--ok-soft); color: #0a7d5e; }
.badge-amber { background: var(--warn-soft); color: #a86a12; }
.badge-red { background: var(--bad-soft); color: #b83a3a; }
.badge-blue { background: var(--primary-soft); color: #2246bd; }
.badge-gray { background: #f0f2f7; color: #7b869e; }
.badge-violet { background: var(--violet-soft); color: #63489f; }
.badge-info { background: var(--info-soft); color: #2064ad; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 20px; background: #f4f6fc;
  font-size: 12px; color: var(--ink-2); border: 1px solid var(--line);
}
.chip.warn { background: var(--warn-soft); border-color: #f5e0bd; color: #97600f; }
.chip.bad { background: var(--bad-soft); border-color: #f4d2d2; color: #b03434; }
.chip.ok { background: var(--ok-soft); border-color: #cdeee3; color: #0a7d5e; }

/* 详情页 */
.detail-hero { display: flex; gap: 18px; align-items: center; padding: 20px 22px; flex-wrap: wrap; }
.detail-avatar {
  width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center;
  font-size: 22px; font-weight: 600; color: #fff; flex: 0 0 62px;
  background: linear-gradient(135deg, #4a6fe8, #7a5cc4);
  box-shadow: 0 8px 22px rgba(74, 111, 232, .28);
}
.detail-name { font-size: 21px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.detail-meta span { display: inline-flex; align-items: center; gap: 5px; }
.detail-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.tabs { display: flex; gap: 4px; padding: 6px; background: #eef1f9; border-radius: 11px; overflow-x: auto; }
.tab {
  border: 0; background: transparent; padding: 8px 15px; border-radius: 8px;
  font: inherit; font-size: 13px; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.tab:hover { background: rgba(255, 255, 255, .6); }
.tab.active { background: #fff; color: var(--primary); font-weight: 600; box-shadow: 0 2px 8px rgba(24, 33, 53, .09); }

.kv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 24px; }
@media (max-width: 900px) { .kv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .kv-grid { grid-template-columns: 1fr; } }
.kv { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.kv > b { flex: 0 0 84px; font-weight: 500; color: var(--muted); font-size: 12.5px; }
.kv > span { color: var(--ink); min-width: 0; word-break: break-all; }

/* 时间线 */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 18px; }
.tl-item::before {
  content: ""; position: absolute; left: -24px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: #fff; border: 2px solid var(--primary);
}
.tl-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 3px; }
.tl-head b { font-size: 12.5px; color: var(--primary); }
.tl-head time { font-size: 11.5px; color: var(--muted); }
.tl-body { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.tl-next { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* 预警 */
.alert-card { display: flex; gap: 14px; padding: 15px 16px; align-items: flex-start; }
.alert-bar { width: 4px; align-self: stretch; border-radius: 4px; background: var(--warn); flex: 0 0 4px; }
.alert-bar.high { background: var(--bad); }
.alert-bar.low { background: #a9b3c8; }
.alert-body { flex: 1; min-width: 0; }
.alert-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.alert-title strong { font-size: 14px; }
.alert-reasons { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }

/* 图表 */
.chart-box { padding: 6px 8px 0; }
.chart-box canvas { display: block; width: 100%; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; padding: 4px 12px 14px; font-size: 12px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.chart-empty { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 12.5px; }

/* 进度条 */
.progress { height: 7px; border-radius: 20px; background: #eef1f8; overflow: hidden; }
.progress > i { display: block; height: 100%; border-radius: 20px; background: linear-gradient(90deg, #4a6fe8, #7a5cc4); }
.progress.green > i { background: linear-gradient(90deg, #17b389, #0f9d76); }
.progress.amber > i { background: linear-gradient(90deg, #efb454, #d98a1f); }
.progress.red > i { background: linear-gradient(90deg, #e46b6b, #d64545); }

/* 考勤打卡 */
.att-list { display: grid; gap: 8px; padding: 6px 20px 20px; }
.att-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 12px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff;
}
.att-row.recorded { background: #fbfcff; }
.att-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.att-name strong { font-size: 13.5px; }
.att-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: #f8faff; }
.att-seg button {
  border: 0; background: transparent; padding: 6px 11px; font: inherit; font-size: 12.5px;
  color: var(--ink-2); cursor: pointer; border-right: 1px solid var(--line);
}
.att-seg button:last-child { border-right: 0; }
.att-seg button:hover { background: #eef2fd; }
.att-seg button.on { color: #fff; font-weight: 600; background: var(--primary); }
.att-seg button.on[data-v="出勤"] { background: var(--ok); }
.att-seg button.on[data-v="迟到"] { background: var(--warn); }
.att-seg button.on[data-v="早退"] { background: var(--info); }
.att-seg button.on[data-v="请假"] { background: var(--violet); }
.att-seg button.on[data-v="缺勤"] { background: var(--bad); }

/* 宿舍房间 */
.room-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; }
.room-card {
  border: 1px solid var(--line); border-radius: 13px; background: #fff; overflow: hidden;
  transition: box-shadow .16s, border-color .16s;
}
.room-card:hover { box-shadow: 0 6px 22px rgba(24, 33, 53, .08); border-color: #d9e2f5; }
.room-card.off { opacity: .62; }
.room-head {
  display: flex; align-items: center; gap: 8px; padding: 11px 13px;
  background: linear-gradient(180deg, #fbfcff, #f7f9fe); border-bottom: 1px solid var(--line-2);
}
.room-no { font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.room-occ { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.room-meta { display: flex; gap: 14px; flex-wrap: wrap; padding: 9px 13px 4px; font-size: 11.5px; color: var(--muted); }
.room-meta b { color: var(--ink-2); }
.beds { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px 13px 10px; }
.bed {
  display: flex; align-items: center; gap: 7px; min-height: 38px;
  padding: 5px 8px; border: 1px dashed #dbe2f0; border-radius: 9px;
  font-size: 12px; cursor: pointer; transition: background .14s, border-color .14s;
}
.bed:hover { background: #f6f9ff; border-color: #c6d4ef; }
.bed.on { border-style: solid; border-color: #dde5f6; background: #f8faff; }
.bed.empty { justify-content: center; color: var(--muted); grid-column: span 2; }
.bed-avatar {
  width: 24px; height: 24px; border-radius: 7px; flex: 0 0 24px;
  display: grid; place-items: center; color: #fff; font-size: 11px; font-weight: 600;
  background: linear-gradient(135deg, #4a6fe8, #7a5cc4);
}
.bed-info { min-width: 0; line-height: 1.35; }
.bed-info strong { display: block; font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bed-info span { font-size: 10.5px; color: var(--muted); }
.room-foot { display: flex; gap: 6px; justify-content: flex-end; padding: 0 13px 9px; }

/* 学员详情里的住宿卡 */
.dorm-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dorm-room { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }

/* 五列统计 */
.grid.c5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1400px) { .grid.c5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .grid.c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid.c5 { grid-template-columns: minmax(0, 1fr); } }
.mt0 { margin-top: 0; }

/* 学员打卡 */
.punch-card {
  position: relative; overflow: hidden;
  padding: 24px; color: #fff; border: 0;
  background:
    radial-gradient(520px 220px at 100% -10%, rgba(224, 161, 58, .3), transparent 65%),
    radial-gradient(420px 260px at -10% 110%, rgba(74, 111, 232, .5), transparent 70%),
    linear-gradient(150deg, #17213b, #1e2d52 60%, #243a67);
  box-shadow: 0 14px 40px rgba(16, 26, 48, .24);
}
.punch-top { display: flex; align-items: center; gap: 10px; }
.punch-label { font-size: 13px; color: rgba(255, 255, 255, .72); }
.punch-badge { margin-left: auto; }
.punch-clock {
  font-size: 62px; font-weight: 700; line-height: 1.15; letter-spacing: .01em;
  margin: 14px 0 6px; font-variant-numeric: tabular-nums;
}
.punch-times {
  display: flex; gap: 26px; flex-wrap: wrap;
  padding: 12px 0 18px; margin-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.punch-times > div { display: flex; flex-direction: column; gap: 4px; }
.punch-times span { font-size: 11.5px; color: rgba(255, 255, 255, .6); }
.punch-times b { font-size: 19px; font-variant-numeric: tabular-nums; }
.punch-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.punch-actions .btn {
  height: 48px; font-size: 15px; border-radius: 12px;
  background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .18); color: #fff;
}
.punch-actions .btn:hover { background: rgba(255, 255, 255, .17); border-color: rgba(255, 255, 255, .26); }
.punch-actions .btn-primary {
  background: linear-gradient(180deg, #3f6bf0, #2a56e0); border-color: transparent;
  box-shadow: 0 8px 20px rgba(42, 86, 224, .4);
}
.punch-actions .btn:disabled { opacity: .45; }
.punch-tip { margin: 16px 0 0; font-size: 11.5px; line-height: 1.7; color: rgba(255, 255, 255, .55); }
.punch-tip b { color: var(--accent); }
.mini-stat { background: #f7f9ff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.mini-stat span { display: block; font-size: 11.5px; color: var(--muted); }
.mini-stat b { font-size: 19px; font-variant-numeric: tabular-nums; }
.mini-stat b small { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.late-row { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line-2); font-size: 13px; }
.late-row:last-child { border-bottom: 0; }
@media (max-width: 560px) { .punch-clock { font-size: 46px; } }

/* 待办提示条 */
.notice-strip {
  display: flex; align-items: center; gap: 9px;
  margin-top: 16px; padding: 11px 16px;
  background: linear-gradient(90deg, #fdf6e8, #fffbf3);
  border: 1px solid #f1e2c4; border-radius: 12px;
  color: #8a5a14; font-size: 13px; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.notice-strip:hover { background: linear-gradient(90deg, #fcf1d9, #fff8ea); border-color: #e8cf9f; }
.notice-strip b { color: #b3701a; font-variant-numeric: tabular-nums; }
.notice-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(224, 161, 58, .16); flex: 0 0 7px;
}
.notice-arrow { margin-left: auto; color: #b3701a; }

/* 批量选择 */
.batch-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 7px 12px; margin: 10px 0 10px;
  border: 1px solid #d8e3fb; background: linear-gradient(180deg, #f5f9ff, #eef4ff);
  border-radius: 10px; font-size: 12.5px; color: var(--ink-2);
}
.batch-bar b { color: var(--primary); font-variant-numeric: tabular-nums; }
.batch-bar .btn { margin-left: auto; }
.batch-bar .btn-link { padding: 2px 2px; }
.batch-check {
  width: 15px; height: 15px; accent-color: var(--primary);
  cursor: pointer; vertical-align: middle; margin: 0;
}
.batch-cell { width: 30px; text-align: center; }
th .batch-check { margin-top: 1px; }
.room-check { display: flex; align-items: center; margin-right: 2px; }
.att-check { margin-right: 2px; display: flex; align-items: center; }
.tl-check { display: inline-flex; align-items: center; margin-right: 2px; }

/* 模态框 */
.modal-mask {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(17, 25, 43, .45); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 16px 40px; overflow-y: auto;
  animation: fade .16s ease-out;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 560px; background: #fff; border-radius: 16px;
  box-shadow: var(--shadow-lg); animation: pop .18s cubic-bezier(.2, .9, .3, 1.2);
  overflow: hidden;
}
@keyframes pop { from { transform: translateY(10px) scale(.985); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px 12px; }
.modal-head h3 { font-size: 16px; }
.modal-head .x { margin-left: auto; border: 0; background: #f4f6fb; width: 28px; height: 28px; border-radius: 8px; cursor: pointer; color: var(--muted); font-size: 15px; line-height: 1; }
.modal-head .x:hover { background: #e9edf7; color: var(--ink); }
.modal-body { padding: 4px 22px 6px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 22px 20px; }
.modal-foot .left { margin-right: auto; }

/* Toast */
.toasts { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.toast {
  min-width: 240px; max-width: 420px; padding: 11px 16px; border-radius: 10px;
  background: #1d2941; color: #fff; font-size: 13px; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 9px;
  animation: toastIn .2s ease-out;
}
@keyframes toastIn { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }
.toast.ok { background: #10694f; }
.toast.err { background: #a83232; }
.toast::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: 0 0 7px; }
.toast.ok::before { background: #6fe3bd; }
.toast.err::before { background: #ffb4b4; }

/* 杂项 */
.section-title { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 12px; }
.section-title h2 { font-size: 15px; }
.section-title span { font-size: 12px; color: var(--muted); }
.hr { height: 1px; background: var(--line-2); margin: 18px 0; }
.score-hi { color: var(--ok); font-weight: 600; }
.score-lo { color: var(--bad); font-weight: 600; }
.money { font-variant-numeric: tabular-nums; font-weight: 600; }
.money.bad { color: var(--bad); }
.money.ok { color: var(--ok); }
.rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; font-size: 12px; font-weight: 600; background: #f1f4fa; color: var(--ink-2); }
.rank.r1 { background: linear-gradient(135deg, #ffd97a, #e0a13a); color: #6b4a06; }
.rank.r2 { background: linear-gradient(135deg, #e2e8f2, #c7d0e2); color: #4a5670; }
.rank.r3 { background: linear-gradient(135deg, #f0cfae, #d9a877); color: #6b4520; }
.hide-sm { }
@media (max-width: 860px) {
  .login { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-form-wrap { padding: 28px 22px; }
  .login-mobile-brand { display: flex; }
  .app { grid-template-columns: minmax(0, 1fr); max-width: 100vw; overflow-x: hidden; }
  .card { max-width: 100%; box-sizing: border-box; }
  .card-pad, .card-head, .table-wrap { min-width: 0; max-width: 100%; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .table-wrap table { width: 100%; }
  .sidebar {
    position: static; height: auto; flex-direction: row; align-items: center;
    flex-wrap: wrap; padding: 10px 12px; gap: 8px; overflow: visible;
    max-width: 100vw;
  }
  .topbar { flex-wrap: wrap; gap: 10px; padding: 12px 16px; }
  .page-head { min-width: 0; flex: 1 1 160px; }
  .page-head h1, .page-head p { overflow-wrap: anywhere; }
  .topbar-actions { margin-left: auto; }
  .view { max-width: 100vw; }
  .logo { padding: 0; order: 1; gap: 8px; }
  .sidebar-tip, .me-info { display: none; }
  .logo-text strong { font-size: 13.5px; letter-spacing: .01em; }
  .logo-text span { display: none; }
  .sidebar-foot {
    margin: 0 0 0 auto; padding: 0; flex: 0 0 auto; order: 2;
    display: flex; align-items: center; gap: 8px;
  }
  .nav { order: 3; flex: 1 1 100%; flex-direction: row; flex-wrap: wrap; gap: 5px; margin-top: 2px; }
  .nav-item { white-space: nowrap; width: auto; flex: 0 0 auto; padding: 6px 9px; font-size: 12px; gap: 5px; }
  .nav-item svg { width: 15px; height: 15px; }
  .me { background: transparent; padding: 0; }
  .avatar { width: 30px; height: 30px; flex: 0 0 30px; }
  .logout-btn { width: auto; margin-top: 0; padding: 0 12px; white-space: nowrap; }
  .topbar { padding: 12px 16px; }
  .view { padding: 16px 16px 48px; }
  .search .input { width: 160px; }

  /* 手机端：内容与桌面一致，改为紧凑双列排布 */
  .grid { gap: 12px; }
  .grid.c5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { flex-direction: column; gap: 8px; padding: 14px 14px 15px; }
  .stat-ico { width: 34px; height: 34px; border-radius: 10px; }
  .stat-ico svg { width: 17px; height: 17px; }
  .stat-value { font-size: 21px; }
  .stat-sub { font-size: 11px; line-height: 1.45; }
  .page-head h1 { font-size: 17px; }
  .topbar-actions .btn { font-size: 12.5px; padding: 0 10px; height: 32px; }
  .card-head { padding: 12px 14px; }
  .card-head h3 { font-size: 13.5px; }
}
@media (max-width: 430px) {
  .grid.c5 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------- 家长查看页 */
.parent-sec {
  font-size: 13.5px; margin: 20px 0 8px; padding-left: 9px;
  border-left: 3px solid var(--primary); line-height: 1.2;
}
.parent-list {
  border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: #fff;
}
.parent-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-bottom: 1px solid var(--line-2); font-size: 13px;
}
.parent-row:last-child { border-bottom: none; }
.parent-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.parent-stats > div {
  background: #f7f9fd; border: 1px solid var(--line-2); border-radius: 10px;
  padding: 10px 6px; text-align: center;
}
.parent-stats span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.parent-stats b { font-size: 19px; font-variant-numeric: tabular-nums; }
.parent-stats b.ok { color: #0f7d5d; }
.parent-stats b.amber { color: #b8791a; }
.parent-stats b.violet { color: #7a5cc4; }
.parent-stats b.red { color: #c34a4a; }

/* ---------------------------------------------------------- 用餐登记 */
.meal-day {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap;
}
.meal-day:last-child { border-bottom: none; }
.meal-date { display: flex; align-items: baseline; gap: 8px; min-width: 110px; }
.meal-date b { font-size: 14px; font-variant-numeric: tabular-nums; }
.meal-btns { display: flex; gap: 8px; }
.meal-btn {
  min-width: 92px; height: 36px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13.5px;
  transition: background .15s, border-color .15s, color .15s;
}
.meal-btn:hover { border-color: #c9d6f7; }
.meal-btn.on { background: #e8f6ef; border-color: #a8dcc6; color: #0f7d5d; font-weight: 600; }
.meal-count { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.meal-count.ok { color: #0f7d5d; }
.meal-count.amber { color: #b8791a; }
.meal-count.gray { color: #8a94a8; }
.meal-names { display: flex; flex-wrap: wrap; gap: 6px; }
.meal-name {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 3px 9px; border-radius: 20px; background: #f2f6fd;
  font-size: 12.5px; color: var(--ink-2);
}
.meal-name i { font-style: normal; font-size: 11px; color: var(--muted); }

.meal-day.locked { background: #fafbfe; }
.meal-day.locked .meal-btn { opacity: .55; cursor: not-allowed; }
.meal-day.locked .meal-btn.on { opacity: .75; }

/* ---------------------------------------------------------- 我的住宿 */
.mydorm-hero {
  display: flex; align-items: center; gap: 16px;
}
.mydorm-room {
  font-size: 32px; font-weight: 700; letter-spacing: -.02em;
  color: var(--primary); font-variant-numeric: tabular-nums;
  background: var(--primary-soft); border-radius: 14px;
  padding: 10px 18px; line-height: 1.2;
}
.mydorm-bed { font-size: 15px; font-weight: 600; margin-bottom: 2px; }

.mydorm-money {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px;
}
.mydorm-money > div {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 10px; text-align: center; box-shadow: var(--shadow);
}
.mydorm-money span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 4px; }
.mydorm-money b { font-size: 17px; font-variant-numeric: tabular-nums; }
.mydorm-money b.ok { color: #0f7d5d; }
.mydorm-money b.bad { color: #c34a4a; }

.mydorm-items {
  margin-top: 14px; padding: 10px 12px; background: #f7f9fd;
  border: 1px solid var(--line-2); border-radius: 10px; line-height: 2;
}
.mydorm-items .badge { margin-right: 6px; }
