/* ============================================================
   uLIST 督学计划 · 界面样式
   暖纸色 + 墨色 + 陶土红，编辑部风格的学习工作台
   ============================================================ */

:root {
  --paper: #f5f2ec;
  --paper-2: #efeae1;
  --card: #fffdf9;
  --ink: #202126;
  --ink-2: #3b3c42;
  --muted: #7d7a73;
  --faint: #a8a49b;
  --line: #e7e1d6;
  --line-2: #ddd6c9;
  --brand: #dd6041;
  --brand-dark: #c24a2d;
  --brand-soft: #fbe8e1;
  --sage: #2f6b5f;
  --sage-soft: #e6f0ec;
  --gold: #b8862f;
  --gold-soft: #f7ecd7;
  --blue: #2f5f8f;
  --blue-soft: #e6eef7;
  --purple: #65508f;
  --purple-soft: #eee9f7;
  --red: #b23b35;
  --red-soft: #f9e5e3;
  --sidebar: #1b1c20;
  --sidebar-2: #24252b;
  --sidebar-ink: #f3efe7;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 22px 48px -30px rgba(32, 33, 38, .45);
  --shadow-sm: 0 10px 24px -18px rgba(32, 33, 38, .4);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(221, 96, 65, .06), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(47, 107, 95, .05), transparent 55%),
    var(--paper);
  color: var(--ink);
  font: 15px/1.65 var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }
::selection { background: var(--brand-soft); color: var(--brand-dark); }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

/* ---------- 滚动条 ---------- */
* { scrollbar-width: thin; scrollbar-color: #cfc8ba transparent; }
*::-webkit-scrollbar { width: 8px; height: 8px; }
*::-webkit-scrollbar-thumb { background: #d3ccbe; border-radius: 99px; }
*::-webkit-scrollbar-track { background: transparent; }

/* ---------- 启动 ---------- */
.boot {
  min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px;
  color: var(--muted);
}
.boot-mark, .brand-mark {
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--brand); color: #fff8f2;
  display: grid; place-items: center;
  font: 700 26px/1 var(--serif); font-style: italic;
  box-shadow: 0 12px 24px -14px rgba(221, 96, 65, .9);
  animation: breathe 2s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: translateY(-3px) rotate(-2deg); } }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 248px; z-index: 40;
  background:
    radial-gradient(420px 260px at 20% 0%, rgba(221, 96, 65, .14), transparent 65%),
    radial-gradient(300px 300px at 100% 100%, rgba(47, 107, 95, .16), transparent 60%),
    var(--sidebar);
  color: var(--sidebar-ink);
  display: flex; flex-direction: column;
  padding: 26px 18px 20px;
  border-right: 1px solid rgba(255, 255, 255, .06);
}
.sidebar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .12) .6px, transparent .6px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, #000, transparent 40%);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 26px; position: relative; z-index: 1; }
.brand .brand-mark { width: 40px; height: 40px; font-size: 22px; border-radius: 12px; animation: none; }
.brand-name { font: 700 19px/1.1 var(--serif); letter-spacing: .04em; }
.brand-sub { font-size: 11px; letter-spacing: .22em; color: rgba(243, 239, 231, .48); margin-top: 5px; }

.nav { display: grid; gap: 4px; position: relative; z-index: 1; }
.nav-label { font-size: 10px; letter-spacing: .18em; color: rgba(243, 239, 231, .35); padding: 14px 12px 6px; }
.nav-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 12px;
  color: rgba(243, 239, 231, .72);
  font-size: 14px; transition: .18s ease;
  border: 1px solid transparent;
}
.nav-item svg { width: 19px; height: 19px; opacity: .85; }
.nav-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.nav-item.on {
  background: linear-gradient(120deg, rgba(221, 96, 65, .22), rgba(221, 96, 65, .08));
  border-color: rgba(221, 96, 65, .28); color: #fff;
}
.nav-item.on svg { color: #f19a80; opacity: 1; }
.nav-badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 99px; background: rgba(255, 255, 255, .12);
  display: grid; place-items: center; font-size: 11px; color: rgba(255, 255, 255, .8);
}
.nav-badge[hidden] { display: none; }

.sidebar-foot { margin-top: auto; position: relative; z-index: 1; }
.sidebar-user {
  display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 14px; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .07);
}
.sidebar-user .who { min-width: 0; }
.sidebar-user .name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user .role { font-size: 11px; color: rgba(243, 239, 231, .5); }
.sidebar-user .logout {
  margin-left: auto; background: none; border: 0; color: rgba(243, 239, 231, .55);
  width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px;
}
.sidebar-user .logout:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.main { flex: 1; min-width: 0; margin-left: 248px; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 16px;
  padding: 16px 34px;
  background: rgba(245, 242, 236, .82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(231, 225, 214, .8);
}
.crumb { min-width: 0; }
.crumb .eyebrow { font-size: 10px; letter-spacing: .22em; color: var(--faint); text-transform: uppercase; }
.crumb h1 { font: 600 21px/1.2 var(--serif); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.storage-pill {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 12px; border-radius: 99px;
  border: 1px solid var(--line); background: rgba(255, 253, 249, .7);
  font-size: 12px; color: var(--muted); white-space: nowrap;
}
.storage-pill svg { width: 15px; height: 15px; }
.storage-pill.cloud { color: var(--sage); border-color: #cfe3dc; background: var(--sage-soft); }
.top-date { font-size: 12px; color: var(--faint); white-space: nowrap; }

.view { width: 100%; max-width: 1320px; margin: 0 auto; padding: 28px 34px 72px; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2);
  font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: .18s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn:hover { border-color: #cfc6b6; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: none; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff8f2; box-shadow: 0 14px 26px -16px rgba(221, 96, 65, .9); }
.btn.primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: rgba(32, 33, 38, .05); box-shadow: none; }
.btn.sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn.danger { color: var(--red); border-color: #eccbc8; background: #fff8f7; }
.btn.danger:hover { background: var(--red-soft); }
.btn[disabled] { opacity: .55; pointer-events: none; }

.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  border-radius: 11px; border: 1px solid transparent; background: transparent; color: var(--muted);
  transition: .16s ease;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: rgba(32, 33, 38, .06); color: var(--ink); }

.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset;
}
.card-pad { padding: 22px; }
.card-head {
  display: flex; align-items: center; gap: 12px; padding: 18px 22px 0;
}
.card-head h3 { font-size: 15px; letter-spacing: .01em; }
.card-head .more { margin-left: auto; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.card-head .more:hover { color: var(--brand); }

.eyebrow { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.serif { font-family: var(--serif); }
.small { font-size: 12.5px; }
.tiny { font-size: 11px; }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 18px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  display: inline-grid; place-items: center;
  font: 600 14px/1 var(--serif); color: #fff;
  background: linear-gradient(135deg, #7c6a58, #a8917a);
  overflow: hidden; border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 0 2px 6px rgba(32, 33, 38, .12);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.xs { width: 26px; height: 26px; font-size: 10px; border-width: 1px; }
.avatar.sm { width: 32px; height: 32px; font-size: 12px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }
.avatar.xl { width: 88px; height: 88px; font-size: 30px; border-width: 3px; }
.avatar.c0 { background: linear-gradient(135deg, #b06a4e, #d9926f); }
.avatar.c1 { background: linear-gradient(135deg, #4d6f66, #7fa295); }
.avatar.c2 { background: linear-gradient(135deg, #7b6288, #a98bb6); }
.avatar.c3 { background: linear-gradient(135deg, #5b6f8f, #869bb8); }
.avatar.c4 { background: linear-gradient(135deg, #9a7b3e, #c5a469); }
.avatar.c5 { background: linear-gradient(135deg, #8a5a5a, #b78383); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; padding: 0 9px; border-radius: 99px;
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
  background: #f1ede6; color: #6f6a61; border: 1px solid rgba(0, 0, 0, .03);
}
.badge .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.owner { background: var(--brand-soft); color: var(--brand-dark); }
.badge.teacher { background: var(--gold-soft); color: #8a611d; }
.badge.student { background: var(--sage-soft); color: var(--sage); }
.st-0 { background: #f1eee8; color: #77716a; }
.st-1 { background: var(--gold-soft); color: #94651b; }
.st-2 { background: var(--blue-soft); color: var(--blue); }
.st-3 { background: var(--purple-soft); color: var(--purple); }
.st-4 { background: var(--sage-soft); color: var(--sage); }
.st-5 { background: var(--red-soft); color: var(--red); }

.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line-2); background: #fff; border-radius: 11px;
  padding: 10px 13px; font-size: 14px; outline: none; transition: .16s ease;
}
.input, .select { height: 43px; }
.textarea { min-height: 108px; resize: vertical; line-height: 1.6; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(221, 96, 65, .12); }
.input::placeholder, .textarea::placeholder { color: #b3ada3; }
.field { display: grid; gap: 7px; }
.field > label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.field .hint { font-size: 11.5px; color: var(--faint); }
.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: 1fr 1fr; }

.search {
  position: relative; display: flex; align-items: center;
}
.search svg { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--faint); pointer-events: none; }
.search .input { padding-left: 36px; background: rgba(255, 253, 249, .75); }

.tabs { display: flex; align-items: center; gap: 4px; background: #ece7de; padding: 4px; border-radius: 12px; width: fit-content; }
.tab {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 9px;
  font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap;
}
.tab.on { background: var(--card); color: var(--ink); box-shadow: 0 2px 8px rgba(32, 33, 38, .08); font-weight: 600; }

.toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.toolbar .search { min-width: 220px; }
.toolbar .spacer { flex: 1; }

.empty {
  display: grid; place-content: center; justify-items: center; gap: 8px;
  padding: 44px 20px; text-align: center; color: var(--faint);
}
.empty .emoji { font-size: 30px; opacity: .75; }
.empty b { color: var(--ink-2); font-weight: 600; }

.page-head { display: flex; align-items: flex-end; gap: 18px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h2 { font: 600 27px/1.2 var(--serif); letter-spacing: -.01em; }
.page-head p { color: var(--muted); font-size: 13px; margin-top: 5px; }
.page-head .actions { margin-left: auto; display: flex; gap: 10px; }

/* ---------- 登录 ---------- */
.login { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; background: var(--paper); }
.login-art {
  position: relative; overflow: hidden; padding: 54px 58px;
  background:
    radial-gradient(600px 400px at 85% 10%, rgba(221, 96, 65, .28), transparent 60%),
    radial-gradient(500px 500px at 5% 90%, rgba(47, 107, 95, .25), transparent 60%),
    #191a1e;
  color: #f7f2e9; display: flex; flex-direction: column;
}
.login-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%);
}
.login-brand { display: flex; align-items: center; gap: 13px; position: relative; z-index: 2; }
.login-brand .brand-mark { animation: none; }
.login-brand .name { font: 700 20px/1 var(--serif); letter-spacing: .05em; }
.login-brand .sub { font-size: 10px; letter-spacing: .26em; color: rgba(247, 242, 233, .45); margin-top: 5px; }
.login-copy { margin-top: auto; position: relative; z-index: 2; max-width: 520px; }
.login-copy .kicker { font-size: 11px; letter-spacing: .26em; color: #e89b83; text-transform: uppercase; }
.login-copy h1 { font: 600 clamp(34px, 4vw, 52px)/1.22 var(--serif); margin: 18px 0 18px; letter-spacing: -.01em; }
.login-copy h1 em { font-style: italic; color: #f0a58d; }
.login-copy p { color: rgba(247, 242, 233, .6); font-size: 14px; max-width: 400px; }
.login-points { display: flex; gap: 22px; margin-top: 34px; flex-wrap: wrap; }
.login-point { font-size: 12px; color: rgba(247, 242, 233, .55); display: flex; align-items: center; gap: 7px; }
.login-point b { color: #f7f2e9; font: 600 18px/1 var(--serif); }
.login-float {
  position: absolute; right: 46px; top: 120px; width: 250px; z-index: 2;
  transform: rotate(3deg); opacity: .96;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { transform: rotate(2deg) translateY(-10px); } }
.login-float .mini-card { background: rgba(255, 253, 249, .97); color: var(--ink); border-radius: 16px; padding: 14px; box-shadow: 0 30px 60px -30px #000; }
.login-float .mini-cover { height: 88px; border-radius: 11px; background: linear-gradient(135deg, #dd6041, #8f3b2a); margin-bottom: 12px; position: relative; overflow: hidden; }
.login-float .mini-cover::after { content: "研"; position: absolute; right: 10px; bottom: -16px; font: 700 66px/1 var(--serif); color: rgba(255, 255, 255, .18); }
.login-float h4 { font-size: 14px; }
.login-float p { font-size: 11px; color: var(--muted); margin-top: 3px; }
.login-float .bar { height: 5px; background: #eee7dc; border-radius: 9px; margin-top: 12px; overflow: hidden; }
.login-float .bar i { display: block; height: 100%; width: 68%; background: var(--brand); border-radius: 9px; }
.login-float .tip { margin-top: 10px; font-size: 10px; letter-spacing: .1em; color: var(--faint); }

.login-panel { display: grid; place-content: center; padding: 48px 40px; }
.login-box { width: 100%; max-width: 356px; }
.login-box .hello { font: 600 30px/1.25 var(--serif); }
.login-box .sub { color: var(--muted); font-size: 13px; margin: 8px 0 28px; }
.login-box form { display: grid; gap: 15px; }
.login-box .input { height: 46px; background: rgba(255, 253, 249, .8); }
.login-error { display: none; background: var(--red-soft); color: var(--red); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; }
.login-error.show { display: block; }
.demo { margin-top: 26px; border-top: 1px dashed var(--line-2); padding-top: 16px; }
.demo .label { font-size: 10px; letter-spacing: .18em; color: var(--faint); margin-bottom: 9px; }
.demo-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-btns button {
  border: 1px solid var(--line); background: rgba(255, 253, 249, .7); border-radius: 9px;
  padding: 7px 11px; font-size: 11.5px; color: var(--muted);
}
.demo-btns button:hover { color: var(--brand-dark); border-color: #ecc4b7; background: var(--brand-soft); }
.demo-btns b { color: var(--ink-2); font-weight: 600; }

/* ---------- 概览 ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 24px; background: #1c1d21; color: #f6f1e8;
  padding: 32px 34px; margin-bottom: 20px;
  display: flex; align-items: center; gap: 30px;
  box-shadow: 0 30px 60px -45px #1c1d21;
}
.hero::before {
  content: ""; position: absolute; width: 460px; height: 460px; right: -120px; top: -220px;
  background: radial-gradient(circle, rgba(221, 96, 65, .5), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .14) .6px, transparent .6px);
  background-size: 8px 8px;
  mask-image: linear-gradient(110deg, transparent 35%, #000 100%);
}
.hero-copy { position: relative; z-index: 1; flex: 1; min-width: 0; }
.hero .kicker { font-size: 10.5px; letter-spacing: .24em; color: #e9a08a; text-transform: uppercase; }
.hero h2 { font: 600 clamp(28px, 3.4vw, 40px)/1.22 var(--serif); margin: 12px 0 10px; }
.hero h2 em { font-style: italic; color: #f0a58d; }
.hero p { color: rgba(246, 241, 232, .62); font-size: 13.5px; max-width: 560px; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.hero-actions .btn { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #f6f1e8; }
.hero-actions .btn:hover { background: rgba(255, 255, 255, .12); }
.hero-actions .btn.primary { background: var(--brand); border-color: var(--brand); }
.hero-actions .btn.primary:hover { background: var(--brand-dark); }
.hero-date {
  position: relative; z-index: 1; flex: none; width: 132px; height: 132px; border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05);
  display: grid; place-content: center; text-align: center; backdrop-filter: blur(6px);
}
.hero-date .d { font: 500 52px/1 var(--serif); }
.hero-date .m { font-size: 11px; letter-spacing: .22em; color: rgba(246, 241, 232, .55); margin-top: 8px; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 19px;
  display: flex; align-items: center; gap: 14px; transition: .2s ease;
}
.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.stat .ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat .ico svg { width: 19px; height: 19px; }
.stat .num { font: 600 27px/1.1 var(--serif); letter-spacing: -.02em; }
.stat .lbl { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.stat.brand .ico { background: var(--brand-soft); color: var(--brand-dark); }
.stat.sage .ico { background: var(--sage-soft); color: var(--sage); }
.stat.gold .ico { background: var(--gold-soft); color: var(--gold); }
.stat.blue .ico { background: var(--blue-soft); color: var(--blue); }

.dash-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 18px; align-items: start; }
.dash-col { display: grid; gap: 18px; }

.schedule { padding-bottom: 8px; }
.schedule-list { padding: 12px 22px 16px; display: grid; }
.schedule-item {
  display: flex; align-items: center; gap: 14px; padding: 12px 4px;
  border-bottom: 1px solid var(--line); cursor: pointer; transition: .15s ease;
}
.schedule-item:last-child { border-bottom: 0; }
.schedule-item:hover { background: rgba(221, 96, 65, .035); }
.schedule-time {
  width: 52px; flex: none; text-align: right;
  font: 600 14px/1.2 var(--serif); color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.schedule-time span { display: block; font: 400 10px/1 var(--sans); color: var(--faint); margin-top: 4px; letter-spacing: .1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 58px; }
.schedule-line { width: 3px; height: 32px; border-radius: 4px; background: var(--line); flex: none; }
.schedule-line.s4 { background: var(--sage); }
.schedule-line.s5 { background: var(--red); }
.schedule-line.s2, .schedule-line.s3 { background: var(--brand); }
.schedule-item .info { min-width: 0; flex: 1; }
.schedule-item .t { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-item .s { font-size: 11.5px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.schedule-item .avatar { margin-left: 4px; }

.plan-progress { padding: 8px 22px 18px; display: grid; gap: 2px; }
.mini-plan { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.mini-plan:last-child { border-bottom: 0; }
.mini-plan:hover .mini-name { color: var(--brand-dark); }
.mini-top { display: flex; align-items: center; gap: 10px; }
.mini-name { font-size: 13px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: .15s; }
.mini-pct { margin-left: auto; font: 600 12px/1 var(--serif); color: var(--muted); }
.mini-bar { height: 5px; background: #efeae1; border-radius: 99px; margin-top: 10px; overflow: hidden; }
.mini-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #e99a7f); border-radius: 99px; transition: width .5s ease; }
.mini-meta { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); margin-top: 6px; }

.activity { padding: 6px 22px 16px; display: grid; }
.act-item { display: flex; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.act-item:last-child { border-bottom: 0; }
.act-body { min-width: 0; flex: 1; }
.act-body .who { font-size: 12px; }
.act-body .who b { font-weight: 600; }
.act-body .txt { font-size: 12px; color: var(--muted); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.act-body .meta { font-size: 10.5px; color: var(--faint); margin-top: 4px; }
.act-thumb { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; flex: none; border: 1px solid var(--line); }

.section-title { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; }
.section-title h3 { font: 600 17px/1.2 var(--serif); }
.section-title .line { flex: 1; height: 1px; background: var(--line); }
.section-title a { font-size: 12px; color: var(--muted); }
.section-title a:hover { color: var(--brand); }

/* ---------- 计划 ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.plan-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  cursor: pointer; transition: .22s ease; display: flex; flex-direction: column;
}
.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ddd3c3; }
.plan-cover { height: 150px; position: relative; overflow: hidden; background: #d9d2c6; }
.plan-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.plan-card:hover .plan-cover img { transform: scale(1.035); }
.cover-art {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end;
  padding: 12px 16px; color: rgba(255, 255, 255, .22);
  font: 700 92px/0.8 var(--serif); letter-spacing: -.04em;
}
.cover-art::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .22) .7px, transparent .7px);
  background-size: 9px 9px; opacity: .5;
  mask-image: linear-gradient(140deg, transparent 30%, #000);
}
.cover-0 { background: linear-gradient(135deg, #b6563d, #8c3423 60%, #5f2018); }
.cover-1 { background: linear-gradient(135deg, #3e6b60, #274c44 60%, #18332e); }
.cover-2 { background: linear-gradient(135deg, #5b5680, #3d3960 60%, #282443); }
.cover-3 { background: linear-gradient(135deg, #a07633, #7d5721 60%, #563a14); }
.cover-4 { background: linear-gradient(135deg, #49617f, #31465f 60%, #1f2f42); }
.plan-cover .role-flag { position: absolute; top: 12px; left: 12px; z-index: 2; }
.plan-cover .role-flag .badge { background: rgba(255, 253, 249, .92); color: var(--ink-2); backdrop-filter: blur(4px); }
.plan-body { padding: 16px 18px 15px; display: flex; flex-direction: column; flex: 1; }
.plan-body h3 { font: 600 17px/1.35 var(--serif); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 46px; }
.plan-owner { display: flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 11.5px; color: var(--muted); }
.plan-owner .avatar { width: 22px; height: 22px; font-size: 9px; border-width: 1px; }
.plan-progress-row { margin-top: 14px; }
.plan-progress-row .bar { height: 6px; background: #efeae1; border-radius: 99px; overflow: hidden; }
.plan-progress-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), #eaa286); border-radius: 99px; }
.plan-progress-row .nums { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--faint); margin-top: 6px; }
.plan-foot { display: flex; gap: 12px; margin-top: 13px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.plan-foot .go { margin-left: auto; color: var(--brand-dark); font-weight: 600; }

/* ---------- 计划详情 ---------- */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.back-link:hover { color: var(--brand-dark); }
.plan-hero {
  position: relative; overflow: hidden; border-radius: 24px; min-height: 230px;
  background: linear-gradient(135deg, #b6563d, #6d2b1e); color: #fff8f2;
  padding: 30px 34px; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: 0 30px 60px -45px #1c1d21;
}
.plan-hero .bg { position: absolute; inset: 0; }
.plan-hero .bg img { width: 100%; height: 100%; object-fit: cover; }
.plan-hero .bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 14, .18), rgba(20, 16, 14, .72));
}
.plan-hero .bg .cover-art { font-size: 160px; opacity: .8; }
.plan-hero-content { position: relative; z-index: 2; display: flex; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.plan-hero h2 { font: 600 clamp(26px, 3.4vw, 38px)/1.2 var(--serif); margin: 10px 0 8px; max-width: 720px; }
.plan-hero .meta { display: flex; gap: 14px; align-items: center; font-size: 12px; color: rgba(255, 248, 242, .68); flex-wrap: wrap; }
.plan-hero .meta .owner { display: flex; align-items: center; gap: 6px; color: #fff8f2; }
.plan-hero .actions { margin-left: auto; display: flex; gap: 9px; flex-wrap: wrap; }
.plan-hero .btn { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .22); color: #fff8f2; backdrop-filter: blur(6px); }
.plan-hero .btn:hover { background: rgba(255, 255, 255, .2); }
.plan-hero .btn.primary { background: var(--brand); border-color: var(--brand); }
.plan-hero .badge { background: rgba(255, 255, 255, .14); color: #fff8f2; border-color: rgba(255, 255, 255, .12); }

.stat-strip { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); background: var(--card); border-radius: 16px; margin: 16px 0 20px; overflow: hidden; }
.stat-strip .item { padding: 14px 18px; border-right: 1px solid var(--line); }
.stat-strip .item:last-child { border-right: 0; }
.stat-strip .v { font: 600 22px/1.1 var(--serif); }
.stat-strip .k { font-size: 11px; color: var(--muted); margin-top: 4px; }

.detail-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(280px, .9fr); gap: 20px; align-items: start; }
.stage-list { display: grid; gap: 14px; }
.stage {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
}
.stage-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.stage-idx {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-dark); font: 600 13px/1 var(--serif);
  flex: none;
}
.stage-head h4 { font: 600 15px/1.3 var(--serif); }
.stage-head .count { font-size: 11px; color: var(--faint); }
.stage-head .actions { margin-left: auto; display: flex; gap: 4px; }
.task-list { padding: 4px 10px 10px; }
.task-row {
  display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 11px;
  cursor: pointer; transition: .15s ease;
}
.task-row:hover { background: #faf6ef; }
.task-row .status-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.status-dot.s0 { background: #b7b0a5; }
.status-dot.s1 { background: #c89a3d; }
.status-dot.s2 { background: #4f7fae; }
.status-dot.s3 { background: #7d68a5; }
.status-dot.s4 { background: #4d8a7c; }
.status-dot.s5 { background: #c05a52; }
.task-row .t-main { min-width: 0; flex: 1; }
.task-row .t-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-row .t-name.done { text-decoration: line-through; color: var(--faint); }
.task-row .t-sub { font-size: 10.5px; color: var(--faint); margin-top: 2px; display: flex; align-items: center; gap: 6px; }
.task-row .avatar { width: 22px; height: 22px; font-size: 9px; border-width: 1px; }
.task-row .badge { flex: none; }
.task-row .checkin-hint { font-size: 10.5px; color: var(--brand-dark); opacity: 0; transition: .15s; }
.task-row:hover .checkin-hint { opacity: 1; }

.detail-side { display: grid; gap: 16px; }
.member-list { padding: 10px 18px 16px; display: grid; gap: 2px; }
.member-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.member-row .who { min-width: 0; flex: 1; }
.member-row .n { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.member-row .r { font-size: 10.5px; color: var(--faint); }
.member-row .badge { height: 21px; font-size: 10.5px; }

.checkin-mini { padding: 10px 18px 16px; display: grid; }
.checkin-mini .ci { padding: 10px 0; border-bottom: 1px solid var(--line); }
.checkin-mini .ci:last-child { border-bottom: 0; }
.checkin-mini .ci-top { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.checkin-mini .ci-text { font-size: 12px; margin-top: 6px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.checkin-thumbs { display: flex; gap: 5px; margin-top: 7px; }
.checkin-thumbs img { width: 46px; height: 46px; border-radius: 8px; object-fit: cover; border: 1px solid var(--line); cursor: zoom-in; }

/* ---------- 任务表 ---------- */
.table-card { overflow: hidden; }
.table-tools { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.table-tools .spacer { flex: 1; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 10.5px; font-weight: 600; letter-spacing: .1em; color: var(--faint);
  padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fbf8f2; text-transform: uppercase;
}
.table td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 12.5px; vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: .13s; cursor: pointer; }
.table tbody tr:hover { background: #fbf7f0; }
.table .t-title { font-size: 13px; font-weight: 500; }
.table .t-sub { font-size: 10.5px; color: var(--faint); margin-top: 2px; }
.table .t-plan { color: var(--muted); }
.table .t-person { display: flex; align-items: center; gap: 7px; }
.table .t-person .avatar { width: 24px; height: 24px; font-size: 9px; border-width: 1px; }
.table .t-time { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.table .t-empty { text-align: center; padding: 46px 20px; color: var(--faint); }
.table .status-select { height: 30px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-size: 11.5px; padding: 0 6px; max-width: 104px; }
.table .row-actions { display: flex; gap: 2px; opacity: .45; }
.table tbody tr:hover .row-actions { opacity: 1; }
.table .row-actions .icon-btn { width: 30px; height: 30px; }
.table .row-actions .icon-btn svg { width: 15px; height: 15px; }

/* ---------- 打卡墙 ---------- */
.checkin-wall { columns: 3; column-gap: 16px; }
.checkin-card {
  break-inside: avoid; margin-bottom: 16px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 17px 18px; transition: .2s ease;
}
.checkin-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.checkin-head { display: flex; align-items: center; gap: 9px; }
.checkin-head .who { min-width: 0; flex: 1; }
.checkin-head .n { font-size: 12.5px; font-weight: 600; }
.checkin-head .m { font-size: 10.5px; color: var(--faint); margin-top: 1px; }
.checkin-card .content { font-size: 13px; line-height: 1.7; margin-top: 11px; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.checkin-imgs { display: grid; gap: 6px; margin-top: 10px; }
.checkin-imgs.n1 { grid-template-columns: 1fr; }
.checkin-imgs.n2 { grid-template-columns: 1fr 1fr; }
.checkin-imgs.n3 { grid-template-columns: 1fr 1fr 1fr; }
.checkin-imgs img { width: 100%; height: 100%; max-height: 260px; object-fit: cover; border-radius: 10px; cursor: zoom-in; border: 1px solid var(--line); }
.checkin-imgs.n3 img { aspect-ratio: 1; max-height: none; }
.checkin-foot { display: flex; align-items: center; gap: 8px; margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--faint); }
.checkin-foot .task { color: var(--brand-dark); background: var(--brand-soft); padding: 2px 7px; border-radius: 6px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.checkin-foot .del { margin-left: auto; }
.checkin-foot .del button { border: 0; background: none; color: var(--faint); font-size: 10.5px; padding: 2px 4px; }
.checkin-foot .del button:hover { color: var(--red); }

/* ---------- 成员 ---------- */
.member-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.member-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px; transition: .2s ease; cursor: pointer; }
.member-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.member-top { display: flex; align-items: center; gap: 12px; }
.member-top .badge { margin-left: auto; }
.member-card h4 { font: 600 15px/1.3 var(--serif); }
.member-card .intro { font-size: 12px; color: var(--muted); margin-top: 12px; min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.member-stats { display: flex; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.member-stats div { font-size: 10.5px; color: var(--faint); }
.member-stats b { display: block; font: 600 16px/1.2 var(--serif); color: var(--ink); margin-bottom: 1px; }

/* ---------- 设置 ---------- */
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 18px; align-items: start; }
.settings-side { display: grid; gap: 16px; }
.profile-head { display: flex; align-items: center; gap: 16px; }
.profile-head .avatar { width: 76px; height: 76px; font-size: 26px; cursor: pointer; position: relative; }
.profile-head .avatar::after {
  content: "更换"; position: absolute; inset: auto 0 0 0; background: rgba(20, 20, 20, .55);
  color: #fff; font-size: 10px; text-align: center; padding: 3px 0; opacity: 0; transition: .2s;
}
.profile-head .avatar:hover::after { opacity: 1; }
.kv { display: grid; grid-template-columns: 108px 1fr; gap: 8px 12px; font-size: 12.5px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; color: var(--ink-2); word-break: break-all; }
.dot-ok { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #4d8a7c; margin-right: 5px; }
.dot-bad { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-right: 5px; }
.storage-box { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 13px; background: #faf6ef; border: 1px solid var(--line); }
.storage-box .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage); }
.storage-box.local .ico { background: var(--gold-soft); color: var(--gold); }
.storage-box .n { font-size: 13px; font-weight: 600; }
.storage-box .s { font-size: 11px; color: var(--muted); margin-top: 2px; }

/* ---------- 弹层 ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(24, 22, 20, .48);
  backdrop-filter: blur(4px); display: grid; place-items: center; padding: 22px;
  animation: fade .18s ease;
}
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 540px; max-height: 88vh; overflow: auto;
  background: var(--card); border-radius: 22px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .55);
  animation: pop .22s cubic-bezier(.2, .9, .3, 1.1);
}
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.modal.wide { max-width: 720px; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 22px 24px 0; }
.modal-head .eyebrow { margin-bottom: 4px; }
.modal-head h3 { font: 600 21px/1.3 var(--serif); }
.modal-head .sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.modal-head .close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f1ece4; color: var(--muted); display: grid; place-items: center; flex: none; }
.modal-head .close:hover { background: #e8e1d6; color: var(--ink); }
.modal-body { padding: 20px 24px; }
.modal-foot { display: flex; align-items: center; gap: 10px; padding: 0 24px 22px; }
.modal-foot .spacer { flex: 1; }
.modal-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 任务详情 */
.task-hero { display: flex; align-items: flex-start; gap: 14px; }
.task-hero .status-dot { margin-top: 8px; }
.task-hero h3 { font: 600 22px/1.35 var(--serif); }
.task-hero .sub { font-size: 12px; color: var(--muted); margin-top: 5px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; margin-top: 18px; }
.meta-grid .cell { background: var(--card); padding: 12px 14px; }
.meta-grid .k { font-size: 10.5px; color: var(--faint); letter-spacing: .06em; }
.meta-grid .v { font-size: 12.5px; margin-top: 3px; }
.task-section { margin-top: 22px; }
.task-section h4 { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.task-section h4 .n { font-size: 10.5px; color: var(--faint); font-weight: 400; }
.checkin-list { display: grid; gap: 10px; margin-top: 10px; }
.checkin-entry { border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; background: #fcfaf5; }
.checkin-entry .top { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.checkin-entry .text { font-size: 12.5px; margin-top: 6px; white-space: pre-wrap; }
.checkin-entry .imgs { display: flex; gap: 6px; margin-top: 7px; flex-wrap: wrap; }
.checkin-entry .imgs img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; cursor: zoom-in; border: 1px solid var(--line); }

/* 上传 */
.uploader { display: flex; gap: 9px; flex-wrap: wrap; }
.upload-add {
  width: 78px; height: 78px; border-radius: 11px; border: 1px dashed var(--line-2);
  background: #fbf8f2; display: grid; place-content: center; justify-items: center; gap: 3px;
  color: var(--faint); font-size: 10px; cursor: pointer; transition: .16s;
}
.upload-add:hover { border-color: var(--brand); color: var(--brand-dark); background: var(--brand-soft); }
.upload-add.busy { pointer-events: none; opacity: .6; }
.upload-preview { width: 78px; height: 78px; border-radius: 11px; position: relative; overflow: hidden; border: 1px solid var(--line); }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-preview button {
  position: absolute; top: 3px; right: 3px; width: 19px; height: 19px; border-radius: 50%;
  border: 0; background: rgba(20, 20, 20, .65); color: #fff; display: grid; place-items: center; font-size: 11px;
}

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 20px);
  background: #23242a; color: #fff; padding: 10px 18px; border-radius: 10px;
  font-size: 12.5px; z-index: 200; opacity: 0; pointer-events: none;
  transition: .25s ease; box-shadow: 0 20px 40px -20px #000; max-width: 86vw;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: #2c5a50; }
.toast.err { background: #8f2f2a; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(15, 14, 13, .88); display: grid; place-items: center; padding: 30px; cursor: zoom-out; animation: fade .16s; }
.lightbox img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px #000; }
.lightbox button { position: fixed; top: 20px; right: 24px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; }

/* 骨架 */
.skeleton { background: linear-gradient(90deg, #eee8de 25%, #f6f1e8 37%, #eee8de 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
.loading-page { display: grid; gap: 16px; }
.loading-page .skeleton { height: 90px; }

/* 移动端按钮 */
.mobile-only { display: none; }
.tabbar { display: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .member-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .checkin-wall { columns: 2; }
}
@media (max-width: 980px) {
  .sidebar { transform: translateX(-100%); transition: transform .25s ease; box-shadow: 20px 0 60px rgba(0, 0, 0, .3); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .mobile-only { display: inline-flex; }
  .topbar { padding: 12px 20px; }
  .view { padding: 20px 20px 92px; }
  .dash-grid, .detail-grid, .settings-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-strip { grid-template-columns: repeat(3, 1fr); }
  .stat-strip .item:nth-child(3) { border-right: 0; }
  .stat-strip .item:nth-child(n+4) { border-top: 1px solid var(--line); }
  .login { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255, 253, 249, .94); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line); padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .tabbar a { display: grid; justify-items: center; gap: 3px; font-size: 9.5px; color: var(--faint); padding: 4px 10px; border-radius: 10px; }
  .tabbar a svg { width: 20px; height: 20px; }
  .tabbar a.on { color: var(--brand-dark); background: var(--brand-soft); }
  .sidebar.open ~ .backdrop {
    display: block; position: fixed; inset: 0; z-index: 35;
    background: rgba(20, 18, 16, .4); backdrop-filter: blur(2px);
  }
}
.backdrop { display: none; }
@media (max-width: 720px) {
  .toolbar { flex-wrap: wrap; }
  .toolbar .tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .toolbar .tabs::-webkit-scrollbar { display: none; }
  .toolbar .search { width: 100% !important; min-width: 0; }
  .toolbar .select { width: 100% !important; }
  .toolbar .spacer { display: none; }
  .table-tools .tabs { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .table-tools .search { width: 100% !important; }
  .view { padding: 16px 14px 92px; }
  .topbar { padding: 10px 14px; gap: 10px; }
  .crumb h1 { font-size: 17px; }
  .top-date { display: none; }
  .storage-pill span { display: none; }
  .storage-pill { padding: 0 9px; }
  .hero { padding: 24px 22px; border-radius: 20px; }
  .hero-date { display: none; }
  .hero h2 { font-size: 27px; }
  .stat-grid { gap: 10px; }
  .stat { padding: 13px 14px; gap: 10px; }
  .stat .ico { width: 36px; height: 36px; }
  .stat .num { font-size: 22px; }
  .plan-grid, .member-grid { grid-template-columns: 1fr; }
  .page-head h2 { font-size: 23px; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .plan-hero { padding: 22px; border-radius: 20px; min-height: 200px; }
  .plan-hero-content { display: block; }
  .plan-hero-content .actions { margin-top: 18px; margin-left: 0; }
  .plan-hero h2 { max-width: none; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .item:nth-child(2n) { border-right: 0; }
  .stat-strip .item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat-strip .item:last-child { grid-column: 1 / -1; }
  .checkin-wall { columns: 1; }
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table tr { border-bottom: 1px solid var(--line); padding: 12px 16px; position: relative; }
  .table td { border: 0; padding: 2px 0; }
  .table td.td-status { position: absolute; right: 14px; top: 12px; }
  .table td.td-actions { display: none; }
  .table .t-time { font-size: 11px; }
  .table-tools { padding: 12px 14px; }
  .toolbar .search { min-width: 0; flex: 1; }
  .form-grid.two { grid-template-columns: 1fr; }
  .modal-backdrop { padding: 0; align-items: end; }
  .modal { max-height: 92vh; border-radius: 22px 22px 0 0; max-width: none; }
  .login-panel { padding: 40px 24px; }
}
@media (max-width: 420px) {
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-actions .btn { flex: 1; }
}
