/* ================= 设计令牌 ================= */
:root {
  --bg: #0b101a;
  --card: #141c2b;
  --surface: #1b2436;
  --surface-2: #222d42;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #e8eef8;
  --sub: #93a3b8;
  --dim: #66798f;
  --primary: #0d9488;
  --primary-hover: #0faa9c;
  --accent: #2dd4bf;
  --green: #22c55e;
  --red: #f4626a;
  --orange: #f59e0b;
  --radius: 16px;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

* { box-sizing: border-box; }
[v-cloak] { display: none; }
html, body { height: 100%; }

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 12% -10%, rgba(45, 212, 191, 0.10), transparent 62%),
    radial-gradient(760px 420px at 92% 0%, rgba(13, 148, 136, 0.12), transparent 58%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.sub { color: var(--sub); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.strong { font-weight: 600; }

/* ================= 品牌标记 ================= */
.brand__mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(140deg, var(--accent), var(--primary) 62%, #0b6f68);
  display: grid; place-items: center;
  box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35);
  flex-shrink: 0;
}
.brand__mark span { width: 16px; height: 14px; border-radius: 50% 50% 46% 46%; background: #fff; position: relative; }
.brand__mark span::before { content: ""; position: absolute; left: -4px; top: 5px; width: 8px; height: 4px; background: #fff; transform: rotate(-38deg); border-radius: 2px; }
.brand__mark span::after { content: ""; position: absolute; right: -4px; top: 5px; width: 8px; height: 4px; background: #fff; transform: rotate(38deg); border-radius: 2px; }

/* ================= 登录页 ================= */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login__card {
  width: 380px;
  max-width: 100%;
  padding: 34px 30px 28px;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.login__brand { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.login__brand h1 { font-size: 17px; font-weight: 650; }
.login__brand p { font-size: 12.5px; color: var(--dim); margin-top: 2px; }
.login__form { display: flex; flex-direction: column; gap: 12px; }
.login__err { font-size: 12.5px; color: #ff9aa0; min-height: 18px; }
.login__foot { margin-top: 20px; text-align: center; font-size: 11.5px; color: #3f4c5e; font-family: ui-monospace, Menlo, Consolas, monospace; }

.field--login { height: 44px; padding: 0 14px; }
.field--login input { width: 100%; font-size: 14px; }
.btn--block { width: 100%; height: 44px; font-size: 14px; margin-top: 4px; }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent;
  font-size: 13px; font-weight: 550; cursor: pointer; white-space: nowrap;
  transition: background 0.16s, border-color 0.16s, transform 0.12s, opacity 0.16s;
}
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(13, 148, 136, 0.28); }
.btn--primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn--ghost { background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover:not(:disabled) { background: rgba(255, 255, 255, 0.08); }
.btn--danger { background: rgba(244, 98, 106, 0.14); border-color: rgba(244, 98, 106, 0.5); color: #ff9aa0; }
.btn--danger:hover:not(:disabled) { background: rgba(244, 98, 106, 0.24); }
.btn--icon { width: 36px; padding: 0; background: rgba(255, 255, 255, 0.04); border-color: var(--line-50, var(--line-strong)); color: var(--sub); font-size: 18px; }
.btn--icon:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.btn--icon-lg { width: 36px; padding: 0; color: var(--sub); }
.btn--icon-lg:hover { color: var(--text); }
.btn--page { height: 32px; padding: 0 12px; font-size: 12.5px; background: rgba(255, 255, 255, 0.04); border-color: var(--line-strong); color: var(--sub); }
.btn--page:hover:not(:disabled) { color: var(--text); background: rgba(255, 255, 255, 0.08); }

.ico { position: relative; display: inline-block; width: 14px; height: 14px; }
.ico--plus::before, .ico--plus::after { content: ""; position: absolute; background: currentColor; border-radius: 1px; }
.ico--plus::before { left: 0; top: 6px; width: 14px; height: 2px; }
.ico--plus::after { left: 6px; top: 0; width: 2px; height: 14px; }
.ico--search::before { content: ""; position: absolute; inset: 0; border: 2px solid var(--dim); border-radius: 50%; width: 9px; height: 9px; }
.ico--search::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 6px; height: 2px; background: var(--dim); transform: rotate(45deg); border-radius: 1px; }
.ico-refresh { display: inline-block; font-size: 16px; line-height: 1; transform-origin: 50% 50%; }
.spin { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 菜单图标（纯 CSS） */
.ico--nav { width: 16px; height: 16px; position: relative; flex-shrink: 0; }
.ico--dashboard::before { content: ""; position: absolute; left: 1px; top: 1px; width: 6px; height: 6px; border-radius: 1.5px; background: currentColor; box-shadow: 8px 0 0 currentColor, 0 8px 0 currentColor, 8px 8px 0 currentColor; }
.ico--users::before { content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ico--users::after { content: ""; position: absolute; left: 1px; top: 9px; width: 14px; height: 7px; border-radius: 7px 7px 2px 2px; background: currentColor; }
.ico--exercise::before { content: ""; position: absolute; left: 3px; top: 7px; width: 10px; height: 2px; border-radius: 1px; background: currentColor; }
.ico--exercise::after { content: ""; position: absolute; left: 0; top: 3px; width: 4px; height: 10px; border-radius: 2px; background: currentColor; box-shadow: 12px 0 0 currentColor; }
.ico--plan::before { content: ""; position: absolute; left: 1px; top: 1px; width: 12px; height: 14px; border: 2px solid currentColor; border-radius: 2px; }
.ico--plan::after { content: ""; position: absolute; left: 4px; top: 5px; width: 7px; height: 2px; border-radius: 1px; background: currentColor; box-shadow: 0 3px 0 currentColor, 0 6px 0 currentColor; }
.ico--record::before { content: ""; position: absolute; left: 3px; top: 8px; width: 6px; height: 3px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }

/* ================= 应用骨架 ================= */
.app { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; }

.side {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column;
  background: #101826;
  border-right: 1px solid var(--line);
}

.side__brand { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; }
.side__brand .brand__mark { width: 34px; height: 34px; border-radius: 10px; }
.side__brand-text h1 { font-size: 15px; font-weight: 650; white-space: nowrap; }
.side__brand-text p { font-size: 11.5px; color: var(--dim); }

.side__title { padding: 8px 18px 6px; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.6px; }

.side__nav { padding: 6px 10px; display: flex; flex-direction: column; gap: 3px; }

.side__item {
  display: flex; align-items: center; gap: 11px;
  width: 100%; padding: 11px 12px;
  border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: var(--sub);
  cursor: pointer; text-align: left; font-size: 13.5px;
  transition: background 0.14s, border-color 0.14s, color 0.14s;
}
.side__item:hover { background: rgba(255, 255, 255, 0.045); color: var(--text); }
.side__item--on { background: rgba(13, 148, 136, 0.14); border-color: rgba(45, 212, 191, 0.3); color: var(--accent); }

.side__foot { margin-top: auto; padding: 14px 18px; border-top: 1px solid var(--line); }
.side__user { display: flex; align-items: center; gap: 9px; }
.side__avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(140deg, var(--accent), var(--primary));
  display: grid; place-items: center; font-size: 13px; font-weight: 650; color: #fff;
}
.side__uname { flex: 1; font-size: 13px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side__logout { border: none; background: none; color: var(--dim); font-size: 12px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.side__logout:hover { color: #ff9aa0; background: rgba(244, 98, 106, 0.1); }

/* ================= 主区 ================= */
.body { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 28px;
  background: rgba(11, 16, 26, 0.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__title { font-size: 17px; font-weight: 650; }
.topbar__right { display: flex; align-items: center; gap: 10px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px;
  border-radius: 100px; font-size: 12px; border: 1px solid var(--line-strong); color: var(--sub);
  background: rgba(255, 255, 255, 0.03);
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15); }
.pill--wait .pill__dot { background: var(--orange); box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15); }

.main { padding: 22px 28px 48px; }
.view { display: flex; flex-direction: column; gap: 18px; }

/* ================= 统计卡 ================= */
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.card {
  padding: 16px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--line);
}
.card__label { font-size: 12.5px; color: var(--sub); }
.card__value { margin-top: 6px; font-size: 24px; font-weight: 650; }

/* ================= 面板 ================= */
.panel { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.panel__head h2 { font-size: 14px; font-weight: 600; }
.panel__legend { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--dim); }
.lg { display: inline-block; width: 9px; height: 9px; border-radius: 2px; }
.lg--u { background: var(--accent); }
.lg--c { background: var(--primary); }

/* ================= 图表 ================= */
.chart { padding: 18px 18px 12px; }
.chart__bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; }
.chart__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; min-width: 0; }
.chart__pair { flex: 1; width: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.bar { display: block; width: 100%; max-width: 12px; border-radius: 3px 3px 0 0; transition: height 0.3s; }
.bar--u { background: linear-gradient(180deg, var(--accent), var(--primary)); }
.bar--c { background: rgba(45, 212, 191, 0.32); }
.chart__label { font-size: 9.5px; color: var(--dim); transform: scale(0.9); white-space: nowrap; }
.chart__col:nth-child(7n+1) .chart__label { color: var(--sub); }

/* ================= 两列 ================= */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini-list { padding: 6px 0; }
.mini-list__row {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.045);
}
.mini-list__row:last-child { border-bottom: none; }
.mini-list__name { flex: 1; font-size: 13px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-list__sub { font-size: 12px; color: var(--sub); white-space: nowrap; }
.mini-list__time { font-size: 12px; color: var(--dim); white-space: nowrap; }
.mini-list__empty { padding: 18px; text-align: center; font-size: 12.5px; color: var(--dim); }

/* ================= 工具条 ================= */
.toolbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }

.field {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line-50, var(--line-strong));
  transition: border-color 0.16s, background 0.16s;
}
.field:focus-within { border-color: rgba(45, 212, 191, 0.55); background: var(--surface-2); }
.field input { border: none; outline: none; background: transparent; color: var(--text); font-size: 13px; font-family: inherit; min-width: 0; }
.field input::placeholder { color: var(--dim); }
.field--search { flex: 1 1 220px; max-width: 320px; }
.field--search input { width: 100%; }
.field--select { color: var(--text); font-size: 13px; appearance: none; cursor: pointer; padding-right: 30px; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 16px) 15px, calc(100% - 11px) 15px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
select option { background: #16202f; color: var(--text); }
.field--size { height: 32px; font-size: 12.5px; color: var(--sub); appearance: none; cursor: pointer; padding-right: 26px; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%), linear-gradient(135deg, var(--dim) 50%, transparent 50%); background-position: calc(100% - 14px) 13px, calc(100% - 9px) 13px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

/* ================= 表格 ================= */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
.table thead th { position: sticky; top: 0; z-index: 2; text-align: left; font-weight: 500; font-size: 12px; color: var(--dim); padding: 11px 14px; background: #101826; border-bottom: 1px solid var(--line); white-space: nowrap; user-select: none; }
.th--op { text-align: right !important; }
.row td { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); vertical-align: middle; }
.row:hover td { background: rgba(255, 255, 255, 0.028); }
.row:last-child td { border-bottom: none; }
.td--op { text-align: right; white-space: nowrap; }
.cell { display: inline-block; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 550; }
.badge--in { color: var(--green); background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.3); }
.badge--out { color: var(--red); background: rgba(244, 98, 106, 0.12); border: 1px solid rgba(244, 98, 106, 0.3); }
.badge--alt { color: var(--accent); background: rgba(45, 212, 191, 0.12); border: 1px solid rgba(45, 212, 191, 0.3); }

.linkbtn { border: none; background: none; color: var(--sub); font-size: 12.5px; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.linkbtn:hover { color: var(--accent); background: rgba(45, 212, 191, 0.08); }
.linkbtn--danger:hover { color: #ff9aa0; background: rgba(244, 98, 106, 0.1); }

.skeleton td { padding: 15px 14px; }
.skeleton__bar { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04)); background-size: 240px 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { from { background-position: -240px 0; } to { background-position: 240px 0; } }

.empty { padding: 52px 20px 56px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-strong); margin-bottom: 6px; }
.empty__ico span { width: 20px; height: 24px; border: 2px solid var(--dim); border-radius: 3px; border-top-width: 6px; }
.empty__title { font-size: 14px; font-weight: 550; }

/* ================= 分页 ================= */
.pager { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.012); flex-wrap: wrap; }
.pager__info { font-size: 12.5px; color: var(--dim); }
.pager__info b { color: var(--text); font-weight: 600; }
.pager__ctrl { display: flex; align-items: center; gap: 8px; }
.pager__page { font-size: 12.5px; color: var(--sub); padding: 0 4px; }

/* ================= 遮罩 / 对话框 ================= */
.mask { position: fixed; inset: 0; z-index: 50; background: rgba(4, 7, 12, 0.66); backdrop-filter: blur(2px); }
.mask--center { display: grid; place-items: center; padding: 20px; }
.dialog { width: 460px; max-width: 100%; padding: 22px; border-radius: var(--radius); background: #141d2c; border: 1px solid var(--line-strong); box-shadow: var(--shadow); max-height: 90vh; display: flex; flex-direction: column; }
.dialog--wide { width: 780px; max-width: 96vw; }
.dialog__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dialog__head h3 { font-size: 16px; font-weight: 650; }
.dialog__headbtns { display: flex; align-items: center; gap: 8px; }
.dialog__target { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.035); font-size: 13px; }
.dialog__warn { margin-top: 12px; font-size: 12.5px; color: var(--dim); }
.dialog__err { margin-top: 10px; font-size: 12.5px; color: #ff9aa0; }
.dialog__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

.json { margin: 0; padding: 16px; border-radius: 12px; background: #0d1420; border: 1px solid var(--line); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.6; color: #c8d6e8; max-height: 64vh; overflow: auto; white-space: pre; word-break: break-all; }

/* ================= 详情 ================= */
.detail { overflow-y: auto; max-height: 66vh; padding-right: 4px; }
.detail__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 18px; }
.kv { display: flex; align-items: baseline; gap: 10px; padding: 8px 12px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); }
.kv span { flex-shrink: 0; font-size: 12px; color: var(--dim); }
.kv b { font-size: 13px; font-weight: 550; word-break: break-all; }
.detail__h { margin: 20px 0 10px; font-size: 13px; font-weight: 650; color: var(--accent); }
.detail__empty { padding: 8px 2px; font-size: 12.5px; color: var(--dim); }

.days { display: flex; flex-direction: column; gap: 10px; }
.day { padding: 12px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.day__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; }
.day__head b { font-weight: 600; }
.day__head .sub { font-size: 12px; }
.day__ex { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0 0; font-size: 12.5px; color: var(--sub); }
.day__ex-name { flex: 1; color: var(--text); }
.day__ex-meta { color: var(--dim); white-space: nowrap; }

/* ================= 表单 ================= */
.form { display: flex; flex-direction: column; gap: 14px; overflow-y: auto; max-height: 62vh; padding-right: 4px; }
.form__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__item { display: flex; flex-direction: column; gap: 6px; }
.form__label { font-size: 12.5px; color: var(--sub); }
.form__label i { color: var(--red); font-style: normal; }
.form__item input, .form__item select, .form__item textarea {
  width: 100%; padding: 10px 12px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--text); font-size: 13.5px; font-family: inherit; outline: none; resize: vertical;
  transition: border-color 0.16s, background 0.16s;
}
.form__item input:focus, .form__item select:focus, .form__item textarea:focus { border-color: rgba(45, 212, 191, 0.55); background: var(--surface-2); }
.form__item input:disabled { opacity: 0.5; cursor: not-allowed; }
.form__item input::placeholder, .form__item textarea::placeholder { color: var(--dim); }
.form__err { font-size: 11.5px; color: #ff9aa0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 14px; border-radius: 100px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--sub); font-size: 12.5px; cursor: pointer; transition: all 0.14s; }
.chip:hover { color: var(--text); }
.chip--on { background: rgba(13, 148, 136, 0.2); border-color: rgba(45, 212, 191, 0.45); color: var(--accent); }

/* ================= 提示 ================= */
.toast { position: fixed; left: 50%; bottom: 34px; z-index: 90; transform: translateX(-50%); padding: 10px 18px; border-radius: 100px; font-size: 13px; color: #fff; background: rgba(23, 34, 48, 0.96); border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); max-width: 80vw; text-align: center; }
.toast--ok { border-color: rgba(45, 212, 191, 0.45); }
.toast--error { border-color: rgba(244, 98, 106, 0.55); color: #ffd9db; }

/* ================= 过渡 ================= */
.fade-enter-active, .fade-leave-active { transition: opacity 0.2s ease; }
.fade-enter-from, .fade-leave-to { opacity: 0; }
.toast-enter-active, .toast-leave-active { transition: opacity 0.2s, transform 0.2s; }
.toast-enter-from, .toast-leave-to { opacity: 0; transform: translate(-50%, 10px); }

/* ================= 响应式 ================= */
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; flex-wrap: wrap; border-right: none; border-bottom: 1px solid var(--line); }
  .side__brand { padding: 12px 16px; }
  .side__brand-text { display: none; }
  .side__title { display: none; }
  .side__nav { flex-direction: row; flex-wrap: wrap; padding: 8px 12px; }
  .side__item { width: auto; }
  .side__foot { margin: 0 0 0 auto; padding: 8px 12px; border-top: none; }
  .cols { grid-template-columns: 1fr; }
  .main { padding: 16px 16px 40px; }
}
@media (max-width: 600px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .topbar { padding: 12px 16px; }
  .topbar__title { font-size: 15px; }
  .pill { display: none; }
  .form__row2 { grid-template-columns: 1fr; }
  .detail__grid { grid-template-columns: 1fr; }
  .dialog--wide { max-width: 100%; }
}
