:root {
  --pine: #17342a;
  --pine-2: #22483a;
  --pine-3: #2f5a49;
  --ink: #1f2723;
  --muted: #7b837c;
  --cream: #f5f0e6;
  --paper: #fffdf8;
  --line: #e6ddcc;
  --line-dark: #d5c9b2;
  --gold: #b78a4b;
  --gold-soft: #f0e3cb;
  --red: #a54535;
  --red-soft: #f7e5e0;
  --green: #3f7258;
  --green-soft: #e4efe7;
  --blue: #46657e;
  --blue-soft: #e5edf3;
  --amber: #9a6a22;
  --amber-soft: #f7ecd6;
  --shadow: 0 14px 34px rgba(38, 47, 39, .07);
  --serif: "Songti SC", "STSong", "Noto Serif SC", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

/* ---------- 登录 ---------- */
.login {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center;
  background: #14251f; overflow: hidden;
}
.login-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 24, 19, .96) 0%, rgba(11, 24, 19, .78) 42%, rgba(11, 24, 19, .18) 100%),
    url("/uploads/banner1.jpg") center/cover no-repeat;
  transform: scale(1.04);
  filter: saturate(.92);
}
.login::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 5px 5px; pointer-events: none;
}
.login-panel {
  position: relative; z-index: 2; width: 430px;
  margin-left: 9vw; padding: 38px 42px 30px;
  background: rgba(255, 253, 248, .97);
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .38);
}
.login-panel::before {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid var(--line); pointer-events: none;
}
.login-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 46px; }
.brand-mark {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--pine); color: #f3e6cb;
  font-family: var(--serif); font-size: 25px; border-radius: 2px;
  letter-spacing: 0;
}
.brand-mark.small { width: 38px; height: 38px; font-size: 21px; }
.brand-name { font-family: var(--serif); font-size: 20px; letter-spacing: 3px; }
.brand-en { font-size: 8px; letter-spacing: 2.4px; color: var(--muted); margin-top: 3px; }
.login-panel h1 {
  font-family: var(--serif); font-weight: 500; font-size: 34px;
  letter-spacing: 6px; margin: 0 0 12px;
}
.login-sub { color: var(--muted); font-size: 13px; letter-spacing: 1px; margin: 0 0 36px; }
.login-form label {
  display: block; font-size: 12px; color: var(--muted);
  letter-spacing: 1px; margin-bottom: 16px;
}
.login-form input {
  display: block; width: 100%; margin-top: 7px; padding: 11px 12px;
  border: 1px solid var(--line-dark); background: #fff; outline: none;
  border-radius: 2px; font-size: 14px; letter-spacing: .5px;
  transition: border-color .18s, box-shadow .18s;
}
.login-form input:focus { border-color: var(--pine-3); box-shadow: 0 0 0 3px rgba(47,90,73,.1); }
.login-error { height: 18px; margin-top: 10px; color: var(--red); font-size: 12px; }
.login-foot { margin-top: 42px; padding-top: 16px; border-top: 1px solid var(--line); color: #a09a8d; font-size: 11px; letter-spacing: 1px; }
.login-caption {
  position: absolute; right: 6vw; bottom: 7vh; z-index: 2;
  color: rgba(255,255,255,.8); font-family: var(--serif);
  display: flex; flex-direction: column; gap: 8px; text-align: right;
}
.login-caption span:first-child { font-size: 26px; letter-spacing: 7px; }
.login-caption span:last-child { font-size: 12px; letter-spacing: 3px; opacity: .6; }

/* ---------- 布局 ---------- */
.app { min-height: 100vh; }
.sidebar {
  position: fixed; left: 0; top: 0; bottom: 0; width: 232px; z-index: 20;
  display: flex; flex-direction: column;
  background: var(--pine); color: #e9e2d3;
  background-image: radial-gradient(circle at 10% 12%, rgba(255,255,255,.06), transparent 34%);
}
.side-brand { display: flex; align-items: center; gap: 11px; padding: 28px 24px 26px; }
.side-name { font-family: var(--serif); font-size: 18px; letter-spacing: 2px; }
.side-en { font-size: 7px; letter-spacing: 1.8px; color: rgba(233,226,211,.45); margin-top: 3px; }
.nav { flex: 1; padding: 8px 12px; overflow-y: auto; }
.nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; margin-bottom: 3px; border-radius: 3px;
  color: rgba(233, 226, 211, .7); cursor: pointer; border: 0; background: transparent;
  width: 100%; text-align: left; font-size: 13px; letter-spacing: .5px;
  transition: background .16s, color .16s;
}
.nav-item:hover { color: #fff; background: rgba(255,255,255,.06); }
.nav-item.active { color: #1c342a; background: #f0e3cb; font-weight: 600; }
.nav-ico { width: 18px; height: 18px; display: inline-grid; place-items: center; opacity: .85; }
.nav-ico svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.5; }
.nav-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--red); color: #fff;
  font-size: 10px; display: grid; place-items: center;
}
.nav-item.active .nav-badge { background: var(--red); }
.side-foot { padding: 18px 24px 24px; border-top: 1px solid rgba(255,255,255,.08); }
.side-tip { font-family: var(--serif); font-size: 13px; letter-spacing: 1px; color: rgba(233,226,211,.72); }
.side-dim { font-size: 10px; color: rgba(233,226,211,.32); margin-top: 6px; letter-spacing: .5px; }

.main { margin-left: 232px; min-height: 100vh; }
.topbar {
  height: 88px; padding: 0 34px;
  display: flex; align-items: center; gap: 18px;
  background: rgba(255,253,248,.8); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10;
}
.page-head h2 { font-family: var(--serif); font-size: 23px; font-weight: 500; letter-spacing: 2px; margin: 0; }
.page-head p { margin: 5px 0 0; color: var(--muted); font-size: 12px; letter-spacing: .5px; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.today { color: var(--muted); font-size: 12px; letter-spacing: .5px; }
.admin-chip { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.avatar-dot {
  width: 28px; height: 28px; border-radius: 50%; background: var(--pine-2); color: #f0e3cb;
  display: grid; place-items: center; font-family: var(--serif); font-size: 13px;
}
.menu-btn { display: none; border: 0; background: transparent; font-size: 20px; cursor: pointer; }
.view { padding: 26px 34px 50px; max-width: 1500px; }

/* ---------- 通用 ---------- */
.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 3px; box-shadow: var(--shadow);
}
.card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 19px 22px 15px; border-bottom: 1px solid #eee7d9;
}
.card-title { font-family: var(--serif); font-size: 16px; letter-spacing: 1.5px; margin: 0; }
.card-sub { color: var(--muted); font-size: 11px; margin-left: 2px; }
.card-body { padding: 20px 22px; }
.card-link { margin-left: auto; color: var(--gold); font-size: 12px; cursor: pointer; }
.card-link:hover { text-decoration: underline; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid var(--line-dark); background: #fff; color: var(--ink);
  padding: 8px 15px; border-radius: 2px; cursor: pointer;
  font-size: 12.5px; letter-spacing: .4px; transition: all .15s;
}
.btn:hover { border-color: var(--pine-3); color: var(--pine-3); }
.btn-primary { background: var(--pine); border-color: var(--pine); color: #f3e8d2; }
.btn-primary:hover { background: var(--pine-2); color: #fff; border-color: var(--pine-2); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn-gold:hover { background: #a87a3d; color: #fff; border-color: #a87a3d; }
.btn-danger { color: var(--red); border-color: #e0bdb4; background: #fff; }
.btn-danger:hover { background: var(--red-soft); color: var(--red); border-color: var(--red); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--muted); }
.btn-ghost:hover { background: #eee8db; color: var(--ink); }
.btn-sm { padding: 5px 10px; font-size: 11.5px; }
.btn-block { width: 100%; padding: 11px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-dark); background: #fff;
  padding: 8px 11px; border-radius: 2px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--pine-3); box-shadow: 0 0 0 3px rgba(47,90,73,.08); }
.textarea { min-height: 84px; resize: vertical; line-height: 1.7; }
.field { margin-bottom: 14px; }
.field > label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; letter-spacing: .5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  height: 22px; padding: 0 8px; border-radius: 11px;
  font-size: 11px; letter-spacing: .3px; white-space: nowrap;
}
.badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-amber { background: var(--amber-soft); color: var(--amber); }
.badge-red { background: var(--red-soft); color: var(--red); }
.badge-blue { background: var(--blue-soft); color: var(--blue); }
.badge-grey { background: #eee9de; color: #837b6c; }
.badge-gold { background: var(--gold-soft); color: #8d672e; }

.tag { display: inline-block; padding: 2px 8px; margin: 0 5px 5px 0; font-size: 11px; color: #6e6553; background: #f2ecdf; border-radius: 2px; }
.tag-outline { background: transparent; border: 1px solid var(--line-dark); color: var(--muted); }

.money { font-variant-numeric: tabular-nums; font-weight: 600; }
.money small { font-weight: 400; font-size: 10px; color: var(--muted); margin-right: 1px; }
.muted { color: var(--muted); }
.small { font-size: 11px; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .2px; }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

/* ---------- 仪表盘 ---------- */
.hero {
  display: flex; align-items: flex-end; gap: 24px; margin-bottom: 20px;
}
.hero h1 { font-family: var(--serif); font-size: 25px; font-weight: 500; letter-spacing: 2px; margin: 0 0 7px; }
.hero p { color: var(--muted); margin: 0; font-size: 12.5px; }
.hero-date { margin-left: auto; text-align: right; color: var(--muted); font-size: 12px; line-height: 1.8; }
.hero-date b { font-family: var(--serif); font-size: 20px; color: var(--ink); font-weight: 500; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 18px; }
.stat {
  position: relative; overflow: hidden;
  padding: 19px 21px 17px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 3px; box-shadow: var(--shadow);
}
.stat::after {
  content: ""; position: absolute; right: -16px; top: -18px;
  width: 86px; height: 86px; border-radius: 50%; background: var(--gold-soft); opacity: .5;
}
.stat-label { color: var(--muted); font-size: 11.5px; letter-spacing: .6px; }
.stat-value { font-family: var(--serif); font-size: 31px; margin: 8px 0 3px; font-weight: 500; line-height: 1; }
.stat-value small { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-left: 3px; }
.stat-foot { font-size: 11px; color: var(--muted); margin-top: 9px; }
.stat-foot b { color: var(--gold); font-weight: 600; }
.stat.dark { background: var(--pine); border-color: var(--pine); color: #f3e8d2; }
.stat.dark .stat-label, .stat.dark .stat-value small, .stat.dark .stat-foot { color: rgba(243,232,210,.6); }
.stat.dark .stat-foot b { color: #e3c592; }
.stat.dark::after { background: rgba(255,255,255,.06); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.dash-grid-2 { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }
.chart-wrap { padding: 14px 18px 8px; }
.chart-legend { display: flex; gap: 18px; padding: 0 4px 8px; color: var(--muted); font-size: 11px; }
.chart-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 2px; vertical-align: -1px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }

.todo-list { padding: 4px 0; }
.todo {
  display: flex; align-items: center; gap: 12px; padding: 13px 22px;
  border-bottom: 1px solid #f0eade; cursor: pointer; transition: background .15s;
}
.todo:last-child { border-bottom: 0; }
.todo:hover { background: #fbf6ec; }
.todo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.todo-dot.red { background: var(--red); }
.todo-dot.blue { background: var(--blue); }
.todo-main { flex: 1; font-size: 12.5px; }
.todo-main small { display: block; color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.todo-num { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.todo-num small { font-family: var(--sans); font-size: 10px; color: var(--muted); margin-left: 2px; }

.top-team { display: flex; align-items: center; gap: 11px; padding: 10px 0; border-bottom: 1px solid #f0eade; }
.top-team:last-child { border-bottom: 0; }
.top-team img { width: 38px; height: 38px; border-radius: 2px; object-fit: cover; }
.top-team .tt-name { font-size: 12.5px; }
.top-team .tt-meta { color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.top-team .tt-rate { margin-left: auto; text-align: right; font-family: var(--serif); font-size: 16px; }
.top-team .tt-rate small { display: block; font-family: var(--sans); color: var(--muted); font-size: 9.5px; }

/* ---------- 表格 ---------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; }
table.data th {
  text-align: left; font-weight: 500; color: var(--muted);
  font-size: 11px; letter-spacing: .6px; padding: 11px 14px;
  border-bottom: 1px solid var(--line); background: #fbf7ee; white-space: nowrap;
}
table.data td { padding: 13px 14px; border-bottom: 1px solid #f1ebdf; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .12s; }
table.data tbody tr:hover { background: #fcf8ef; }
table.data tbody tr.clickable { cursor: pointer; }
table.data .main-cell { font-size: 13px; }
table.data .sub-cell { color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.cover-thumb { width: 42px; height: 42px; object-fit: cover; border-radius: 2px; background: #eee7d9; }
.cell-flex { display: flex; align-items: center; gap: 10px; }
.row-actions { display: flex; gap: 6px; flex-wrap: nowrap; }
.empty { padding: 46px 20px; text-align: center; color: #a09a8d; font-size: 12px; }
.empty-mark { font-family: var(--serif); font-size: 34px; color: #d3c7b2; margin-bottom: 8px; }

.toolbar {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap;
}
.tabs { display: flex; gap: 2px; background: #ece5d6; padding: 3px; border-radius: 3px; flex-wrap: wrap; }
.tab {
  border: 0; background: transparent; padding: 7px 13px; border-radius: 2px;
  font-size: 12px; color: #766e60; cursor: pointer; letter-spacing: .3px;
}
.tab:hover { color: var(--ink); }
.tab.active { background: var(--paper); color: var(--ink); box-shadow: 0 1px 4px rgba(60,50,30,.08); }
.tab .n { margin-left: 4px; color: var(--muted); font-size: 10px; }
.toolbar .search { display: flex; gap: 6px; margin-left: auto; }
.toolbar .search .input { width: 220px; }
.toolbar .select { width: 128px; }

/* ---------- 详情 ---------- */
.detail-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.detail-head h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: 1px; margin: 0 0 6px; }
.detail-head .no { color: var(--muted); font-size: 11px; letter-spacing: .6px; }
.detail-head .badge { margin-top: 2px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.kv { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed #ece5d7; font-size: 12.5px; }
.kv dt { width: 72px; color: var(--muted); flex: none; }
.kv dd { margin: 0; flex: 1; word-break: break-all; }
.section-label {
  font-family: var(--serif); font-size: 14px; letter-spacing: 1px;
  margin: 22px 0 10px; padding-left: 9px; border-left: 3px solid var(--gold);
}
.plan-card {
  padding: 13px 15px; border: 1px solid var(--line); background: #fdfaf3;
  border-radius: 2px; margin-bottom: 9px;
}
.plan-card.accepted { border-color: #b8d0bf; background: #f4faf5; }
.plan-top { display: flex; gap: 10px; align-items: center; margin-bottom: 7px; }
.plan-name { font-size: 12.5px; font-weight: 600; }
.plan-price { margin-left: auto; font-family: var(--serif); font-size: 17px; }
.plan-text { color: #6b6356; font-size: 12px; line-height: 1.75; }
.timeline { padding-left: 6px; }
.tl-item { position: relative; padding: 0 0 15px 20px; border-left: 1px solid #e3dac9; }
.tl-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -4px; top: 4px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.tl-action { font-size: 12.5px; }
.tl-meta { color: var(--muted); font-size: 10.5px; margin-top: 4px; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.modal-actions .right { margin-left: auto; display: flex; gap: 8px; }

/* ---------- 团队/厨师详情 ---------- */
.profile-top { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.profile-cover { width: 92px; height: 92px; object-fit: cover; border-radius: 3px; background: #eee7d9; }
.profile-name { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; letter-spacing: 1px; }
.profile-meta { color: var(--muted); font-size: 12px; line-height: 1.7; }
.avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: #eee7d9; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 8px; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 2px; background: #eee7d9; }

/* ---------- 会费 ---------- */
.fee-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.fee-box { padding: 17px 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 3px; }
.fee-box .lbl { color: var(--muted); font-size: 11px; }
.fee-box .val { font-family: var(--serif); font-size: 27px; margin-top: 7px; }

/* ---------- Banner ---------- */
.banner-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.banner-card { background: var(--paper); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; box-shadow: var(--shadow); }
.banner-card img { width: 100%; aspect-ratio: 2.3/1; object-fit: cover; display: block; background: #eee7d9; }
.banner-info { padding: 13px 15px; }
.banner-title { font-family: var(--serif); font-size: 15px; margin-bottom: 5px; }
.banner-sub { color: var(--muted); font-size: 11px; line-height: 1.6; min-height: 34px; }
.banner-actions { display: flex; gap: 6px; margin-top: 10px; }
.add-card {
  border: 1px dashed var(--line-dark); background: transparent; border-radius: 3px;
  min-height: 240px; display: grid; place-items: center; cursor: pointer; color: var(--muted);
  font-size: 12px; transition: all .15s;
}
.add-card:hover { border-color: var(--gold); color: var(--gold); background: #fdf9f0; }
.add-card span { font-size: 24px; display: block; text-align: center; margin-bottom: 5px; }

/* ---------- 设置 ---------- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.settings-card { padding: 22px; }
.settings-card h3 { font-family: var(--serif); font-size: 16px; font-weight: 500; margin: 0 0 18px; letter-spacing: 1px; }
.setting-note { color: var(--muted); font-size: 11px; line-height: 1.7; margin-top: 10px; }

/* ---------- 弹窗 ---------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 60; background: rgba(18, 28, 23, .46);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 5vh 20px; overflow-y: auto; backdrop-filter: blur(2px);
}
.modal {
  position: relative; width: 760px; max-width: 100%;
  background: var(--paper); border-radius: 3px;
  box-shadow: 0 40px 90px rgba(0,0,0,.35);
  padding: 28px 30px 26px;
  animation: pop .18s ease-out;
}
.modal.narrow { width: 480px; }
@keyframes pop { from { transform: translateY(8px); opacity: .6; } to { transform: none; opacity: 1; } }
.modal-close {
  position: absolute; right: 14px; top: 10px; border: 0; background: transparent;
  font-size: 25px; color: #9a9284; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--ink); }
.modal h3 { margin-top: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translate(-50%, 18px);
  background: var(--pine); color: #f5ead5; padding: 10px 20px; border-radius: 2px;
  font-size: 12.5px; letter-spacing: .5px; opacity: 0; pointer-events: none;
  transition: all .22s; z-index: 80; box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); }

.skeleton { height: 12px; background: linear-gradient(90deg, #eee7d9, #f8f3e8, #eee7d9); background-size: 200% 100%; animation: shine 1.2s infinite; border-radius: 2px; }
@keyframes shine { to { background-position: -200% 0; } }

@media (max-width: 1180px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .banner-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid, .dash-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s; box-shadow: 20px 0 60px rgba(0,0,0,.2); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .menu-btn { display: block; }
  .topbar { padding: 0 16px; height: 72px; }
  .view { padding: 18px 16px 40px; }
  .today, .admin-chip span:last-child { display: none; }
  .settings-grid, .detail-grid { grid-template-columns: 1fr; }
  .banner-grid { grid-template-columns: 1fr; }
  .login-panel { margin: 0 auto; width: calc(100% - 32px); padding: 30px 26px; }
  .login-caption { display: none; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .fee-summary { grid-template-columns: 1fr; }
  .toolbar .search { margin-left: 0; width: 100%; }
  .toolbar .search .input { flex: 1; width: auto; }
  .modal { padding: 24px 18px 20px; }
}