/* ============================================================
   次元快门 · COSPHOTO STUDIO
   ============================================================ */

:root {
  --bg: #0b0811;
  --bg-2: #120e1c;
  --panel: rgba(255, 255, 255, 0.038);
  --panel-2: rgba(255, 255, 255, 0.06);
  --panel-solid: #171122;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3eef9;
  --text-dim: #a79fb8;
  --text-mute: #766d87;
  --pink: #ff7ab8;
  --violet: #a78bfa;
  --cyan: #67e8f9;
  --gold: #fbbf24;
  --green: #34d399;
  --red: #fb7185;
  --grad: linear-gradient(135deg, #ff7ab8 0%, #a78bfa 55%, #67e8f9 110%);
  --grad-soft: linear-gradient(135deg, rgba(255, 122, 184, 0.16), rgba(167, 139, 250, 0.12));
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.85);
  --radius: 18px;
  --radius-lg: 26px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
}

[data-theme="light"] {
  --bg: #f6f2ee;
  --bg-2: #fffaf6;
  --panel: rgba(24, 14, 40, 0.032);
  --panel-2: rgba(24, 14, 40, 0.06);
  --panel-solid: #fffdfb;
  --line: rgba(24, 14, 40, 0.1);
  --line-strong: rgba(24, 14, 40, 0.2);
  --text: #1d1526;
  --text-dim: #5f5469;
  --text-mute: #776b84;
  --shadow: 0 18px 44px -24px rgba(40, 20, 70, 0.4);
  /* 浅色下重设强调色，保证文字对比度 */
  --pink: #d0257c;
  --violet: #6d28d9;
  --cyan: #0e7490;
  --gold: #a16207;
  --green: #047857;
  --red: #dc2626;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(255, 122, 184, 0.16), transparent 60%),
    radial-gradient(800px 520px at 92% 0%, rgba(167, 139, 250, 0.14), transparent 62%),
    radial-gradient(900px 600px at 60% 108%, rgba(103, 232, 249, 0.08), transparent 65%);
}

[data-theme="light"] body::before {
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(255, 122, 184, 0.2), transparent 60%),
    radial-gradient(800px 520px at 95% 0%, rgba(167, 139, 250, 0.18), transparent 62%),
    radial-gradient(900px 600px at 60% 110%, rgba(250, 200, 120, 0.16), transparent 65%);
}

.bg-orbs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; filter: blur(70px); opacity: 0.5; }
.orb { position: absolute; border-radius: 50%; }
.orb-a { width: 380px; height: 380px; background: rgba(255, 122, 184, 0.35); top: -120px; left: 12%; }
.orb-b { width: 420px; height: 420px; background: rgba(139, 92, 246, 0.3); top: 30%; right: -140px; }
.orb-c { width: 340px; height: 340px; background: rgba(103, 232, 249, 0.18); bottom: -160px; left: 30%; }

::selection { background: rgba(255, 122, 184, 0.35); }

/* ------------------------------- 滚动条 ------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.22); background-clip: content-box; }

/* -------------------------------- 布局 -------------------------------- */
.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 40%);
  backdrop-filter: blur(12px);
}

.brand { display: flex; gap: 12px; align-items: center; padding: 0 6px; }
.brand-mark {
  width: 40px; height: 40px; flex: none;
  display: grid; place-items: center;
  border-radius: 13px;
  background: var(--grad);
  color: #16061f;
  font-size: 19px;
  font-weight: 800;
  box-shadow: 0 8px 24px -8px rgba(255, 122, 184, 0.75);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; letter-spacing: 0.06em; }
.brand-text span { font-size: 9px; letter-spacing: 0.22em; color: var(--text-mute); }

.nav { display: flex; flex-direction: column; gap: 4px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.18s, color 0.18s, transform 0.18s;
}
.nav a i {
  font-style: normal;
  width: 22px; text-align: center;
  font-size: 14px;
  opacity: 0.85;
}
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active {
  background: linear-gradient(135deg, rgba(255, 122, 184, 0.18), rgba(167, 139, 250, 0.14));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 122, 184, 0.28);
}
[data-theme="light"] .nav a.active { color: #5b1f43; }
.nav a.active i { color: var(--pink); opacity: 1; }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.sync-badge {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 6px 11px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-dim);
  font-size: 11px;
  cursor: default;
}
.sync-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.18); }
.sync-badge.saving .dot { background: var(--gold); box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.18); animation: pulse 1s infinite; }
.sync-badge.error .dot { background: var(--red); box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.18); }
@keyframes pulse { 50% { opacity: 0.35; } }
.side-note { margin: 0; font-size: 11px; color: var(--text-mute); padding-left: 6px; }

.main { min-width: 0; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 18px;
  padding: 22px 30px 16px;
  background: linear-gradient(180deg, var(--bg) 30%, rgba(11, 8, 17, 0.72) 75%, transparent);
  backdrop-filter: blur(10px);
}
[data-theme="light"] .topbar { background: linear-gradient(180deg, var(--bg) 30%, rgba(246, 242, 238, 0.78) 75%, transparent); }
.topbar-title h1 { margin: 0; font-size: 22px; letter-spacing: 0.02em; font-weight: 700; }
.topbar-title p { margin: 4px 0 0; font-size: 12.5px; color: var(--text-mute); }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.view { padding: 10px 30px 70px; width: 100%; max-width: 1240px; margin: 0 auto; animation: fadeUp 0.32s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* -------------------------------- 通用 -------------------------------- */
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.muted { color: var(--text-mute); }
.dim { color: var(--text-dim); }
.small { font-size: 12px; }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.spacer { flex: 1; }
.hide { display: none !important; }

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card.pad { padding: 18px; }

.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 28px 0 14px; }
.section-head h2 { margin: 0; font-size: 15px; letter-spacing: 0.08em; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.section-head h2::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--grad); }
.section-head .small { margin: 0; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 15px;
  border-radius: 11px;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--text);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.16s, background 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.btn:hover { background: var(--panel); border-color: var(--pink); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.primary {
  background: var(--grad);
  border: none;
  color: #1a0720;
  font-weight: 700;
  box-shadow: 0 10px 30px -12px rgba(255, 122, 184, 0.9);
}
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text-dim); }
.btn.ghost:hover { color: var(--text); border-color: var(--line-strong); }
.btn.danger { color: var(--red); border-color: rgba(251, 113, 133, 0.35); background: rgba(251, 113, 133, 0.08); }
.btn.danger:hover { background: rgba(251, 113, 133, 0.16); border-color: var(--red); }
.btn.sm { padding: 7px 11px; font-size: 12px; border-radius: 9px; }
.btn.icon { padding: 8px; width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }

/* 表单 */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label { font-size: 12px; color: var(--text-dim); letter-spacing: 0.03em; }
.field .hint { font-size: 11px; color: var(--text-mute); }
input[type="text"], input[type="tel"], input[type="number"], input[type="date"], input[type="time"], input[type="search"], select, textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
  color-scheme: dark;
}
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea { background: #fff; color-scheme: light; }
input:focus, select:focus, textarea:focus {
  border-color: rgba(255, 122, 184, 0.65);
  box-shadow: 0 0 0 3px rgba(255, 122, 184, 0.13);
  background: rgba(0, 0, 0, 0.3);
}
[data-theme="light"] input:focus, [data-theme="light"] select:focus, [data-theme="light"] textarea:focus { background: #fff; }
textarea { resize: vertical; min-height: 76px; line-height: 1.6; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-mute) 50%), linear-gradient(135deg, var(--text-mute) 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(0.75); cursor: pointer; }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.total-box {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 14px; border-radius: 12px;
  border: 1px solid rgba(251, 191, 36, 0.26);
  background: linear-gradient(120deg, rgba(251, 191, 36, 0.1), rgba(255, 122, 184, 0.07));
}
.total-box span { font-size: 11.5px; color: var(--text-dim); }
.total-box b { font-size: 19px; color: var(--gold); font-variant-numeric: tabular-nums; }
.total-box .tb-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.total-box .tb-info small { font-size: 11px; color: var(--text-mute); }
.total-box .tb-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.price-hint { margin-top: 5px; font-size: 11px; color: var(--text-mute); }
.price-hint:empty { display: none; }
[data-theme="light"] .total-box { border-color: rgba(161, 98, 7, 0.24); }

/* 空状态 */
.empty {
  padding: 42px 20px;
  text-align: center;
  color: var(--text-mute);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.9;
}
.empty .big { display: block; font-size: 26px; margin-bottom: 8px; opacity: 0.75; }

/* 胶囊 / 徽章 */
.pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 11px;
  line-height: 1.6;
  background: var(--panel-2);
  border: 1px solid var(--line);
  color: var(--text-dim);
  white-space: nowrap;
}
/* 定金/尾款快捷确认 */
.pay-pill-wrap { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pill.conf {
  background: rgba(52, 211, 153, 0.12);
  color: var(--green);
  border: 1px dashed rgba(52, 211, 153, 0.55);
}
.pill.conf:hover { background: rgba(52, 211, 153, 0.2); border-style: solid; }
.pill.conf:active { transform: scale(0.96); }

.pill.pink { color: var(--pink); border-color: rgba(255, 122, 184, 0.32); background: rgba(255, 122, 184, 0.1); }
.pill.green { color: var(--green); border-color: rgba(52, 211, 153, 0.32); background: rgba(52, 211, 153, 0.1); }
.pill.gold { color: var(--gold); border-color: rgba(251, 191, 36, 0.32); background: rgba(251, 191, 36, 0.1); }
.pill.red { color: var(--red); border-color: rgba(251, 113, 133, 0.32); background: rgba(251, 113, 133, 0.1); }
.pill.violet { color: var(--violet); border-color: rgba(167, 139, 250, 0.32); background: rgba(167, 139, 250, 0.1); }
.pill.cyan { color: var(--cyan); border-color: rgba(103, 232, 249, 0.32); background: rgba(103, 232, 249, 0.1); }
.pill.mute { color: var(--text-mute); }
[data-theme="light"] .pill.cyan { border-color: rgba(14, 116, 144, 0.28); background: rgba(14, 116, 144, 0.07); }
[data-theme="light"] .pill.gold { border-color: rgba(161, 98, 7, 0.28); background: rgba(161, 98, 7, 0.07); }
[data-theme="light"] .pill.green { border-color: rgba(4, 120, 87, 0.28); background: rgba(4, 120, 87, 0.07); }
[data-theme="light"] .pill.pink { border-color: rgba(208, 37, 124, 0.26); background: rgba(208, 37, 124, 0.06); }
[data-theme="light"] .pill.red { border-color: rgba(220, 38, 38, 0.26); background: rgba(220, 38, 38, 0.06); }
[data-theme="light"] .cal-cell.dim { opacity: 0.45; }

/* -------------------------------- 首页 -------------------------------- */
.hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  background:
    radial-gradient(600px 300px at 82% 18%, rgba(255, 122, 184, 0.28), transparent 62%),
    radial-gradient(520px 320px at 10% 90%, rgba(167, 139, 250, 0.24), transparent 65%),
    linear-gradient(140deg, #1c1030, #120b1d 55%, #1a1030);
  box-shadow: var(--shadow);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.02); }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 6, 14, 0.8) 0%, rgba(9, 6, 14, 0.52) 32%, rgba(9, 6, 14, 0.08) 62%, rgba(9, 6, 14, 0.36) 100%),
    linear-gradient(180deg, rgba(9, 6, 14, 0.22) 0%, rgba(9, 6, 14, 0.42) 45%, rgba(9, 6, 14, 0.9) 100%);
}
/* 没有封面图时不要压暗，保留渐变底色 */
.hero-media:not(.has-cover)::after { content: none; }
.hero-inner { position: relative; width: 100%; padding: 34px 34px 30px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero-kicker { display: flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 0.28em; color: rgba(255, 255, 255, 0.66); text-transform: uppercase; }
.hero-kicker::before { content: ""; width: 22px; height: 1px; background: rgba(255, 255, 255, 0.5); }
.hero h2 { margin: 10px 0 0; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.22; letter-spacing: 0.01em; color: #fff; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5); }
.hero h2 em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-desc { margin: 10px 0 0; max-width: 46em; font-size: 13px; color: rgba(255, 255, 255, 0.72); line-height: 1.7; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; padding-bottom: 4px; }
.hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.06); backdrop-filter: blur(6px); }
.hero .btn.ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #fff; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.stat { padding: 16px 18px; border-radius: 16px; }
.stat .k { font-size: 11.5px; color: var(--text-mute); letter-spacing: 0.06em; display: flex; align-items: center; gap: 6px; }
.stat .v { margin-top: 7px; font-size: 24px; font-weight: 700; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 12px; font-weight: 500; color: var(--text-mute); margin-left: 3px; }
.stat.accent .v { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }

.today-list { display: flex; flex-direction: column; gap: 9px; }
.today-row {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border-radius: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s, background 0.18s;
}
.today-row:hover { border-color: rgba(255, 122, 184, 0.4); transform: translateX(2px); }
.today-row .t { font-size: 12px; color: var(--text-dim); font-variant-numeric: tabular-nums; }
.today-row .t b { display: block; font-size: 15px; color: var(--text); font-weight: 600; }
.today-row .who { min-width: 0; }
.today-row .who b { font-size: 14px; }
.today-row .who span { display: block; font-size: 11.5px; color: var(--text-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-row .who span.pill { display: inline-flex; width: auto; overflow: visible; white-space: nowrap; }
.today-row .amt { text-align: right; }

.work-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.work-strip .thumb {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel-2);
  border: 1px solid var(--line);
  cursor: pointer;
}
.work-strip .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.work-strip .thumb:hover img { transform: scale(1.06); }
.work-strip .thumb .cap {
  position: absolute; inset: auto 0 0 0;
  padding: 18px 8px 7px;
  font-size: 10.5px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.work-strip .thumb.more { display: grid; place-items: center; font-size: 12px; color: var(--text-dim); }

.quick-poses { display: grid; gap: 9px; }
.quick-pose {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.quick-pose:hover { border-color: rgba(167, 139, 250, 0.45); background: var(--panel-2); }
.quick-pose .ico { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--grad-soft); font-size: 19px; }
.quick-pose b { display: block; font-size: 13px; font-weight: 600; }
.quick-pose span { display: block; font-size: 11px; color: var(--text-mute); margin-top: 2px; }

/* ------------------------------- 动作库 ------------------------------- */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.search {
  position: relative; flex: 1; min-width: 220px; max-width: 380px;
}
.search input { padding-left: 34px; }
.search::before {
  content: "⌕"; position: absolute; left: 12px; top: 50%; transform: translateY(-52%);
  color: var(--text-mute); font-size: 15px; pointer-events: none;
}
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 7px 12px;
  border-radius: 99px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text-dim);
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.16s;
  display: inline-flex; align-items: center; gap: 6px;
}
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { color: #1a0720; background: var(--grad); border-color: transparent; font-weight: 600; }
[data-theme="light"] .chip.active { color: #fff; }
.chip .n { opacity: 0.55; font-size: 10.5px; }

.pose-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 12px; }
.pose-card {
  position: relative;
  padding: 18px 16px 15px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120px 90px at 100% 0%, var(--card-tint, rgba(255, 255, 255, 0.06)), transparent 70%),
    var(--panel);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s, box-shadow 0.2s;
  display: flex; flex-direction: column; gap: 10px;
}
.pose-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background: radial-gradient(340px 120px at 50% -20%, rgba(255, 255, 255, 0.08), transparent 70%);
}
.pose-card:hover { transform: translateY(-3px); border-color: var(--card-line, rgba(255, 122, 184, 0.5)); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, 0.9); }
.pose-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pose-emoji {
  width: 54px; height: 54px; flex: none;
  display: grid; place-items: center;
  border-radius: 15px;
  font-size: 26px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.pose-fav {
  border: none; background: transparent; cursor: pointer;
  font-size: 16px; line-height: 1; padding: 4px; color: var(--text-mute);
  transition: transform 0.16s, color 0.16s;
}
.pose-fav:hover { transform: scale(1.18); color: var(--gold); }
.pose-fav.on { color: var(--gold); text-shadow: 0 0 14px rgba(251, 191, 36, 0.6); }
.pose-name { font-size: 14.5px; font-weight: 650; letter-spacing: 0.01em; }
.pose-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--text-mute); flex-wrap: wrap; }
.diff { display: inline-flex; gap: 2px; }
.diff i { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); display: block; }
.diff i.on { background: var(--card-color, var(--pink)); }
.pose-desc {
  font-size: 12px; line-height: 1.65; color: var(--text-dim);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pose-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; }
.pose-tags span { font-size: 10.5px; color: var(--text-mute); padding: 2px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.04); }
[data-theme="light"] .pose-tags span { background: rgba(24, 14, 40, 0.05); }

/* ------------------------------- 排班 ------------------------------- */
.sched-layout { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr); gap: 16px; align-items: start; }

.calendar { padding: 16px 16px 12px; border-radius: 20px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal-head .m { display: flex; flex-direction: column; }
.cal-head .m b { font-size: 17px; letter-spacing: 0.04em; }
.cal-head .m span { font-size: 11px; color: var(--text-mute); margin-top: 2px; }
.cal-nav { display: flex; gap: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 10.5px; color: var(--text-mute); padding: 4px 0 8px; letter-spacing: 0.06em; }
.cal-dow.wk { color: rgba(255, 122, 184, 0.7); }
.cal-cell {
  position: relative;
  min-height: 62px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.022);
  padding: 6px 6px 5px;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
  display: flex; flex-direction: column; gap: 3px;
  text-align: left;
  font-family: inherit;
  color: var(--text);
}
[data-theme="light"] .cal-cell { background: rgba(24, 14, 40, 0.017); }
.cal-cell:hover { background: var(--panel-2); border-color: var(--line-strong); }
.cal-cell.dim { opacity: 0.3; }
.cal-cell.today .d { color: var(--pink); font-weight: 700; }
.cal-cell.today { border-color: rgba(255, 122, 184, 0.32); }
.cal-cell.sel { background: linear-gradient(135deg, rgba(255, 122, 184, 0.16), rgba(167, 139, 250, 0.12)); border-color: rgba(255, 122, 184, 0.62); }
.cal-cell .d { font-size: 12px; font-variant-numeric: tabular-nums; }
.cal-cell .marks { display: flex; gap: 2px; flex-wrap: wrap; margin-top: auto; }
.cal-cell .marks i { width: 5px; height: 5px; border-radius: 50%; display: block; }
.cal-cell .cnt { position: absolute; right: 5px; bottom: 4px; font-size: 9.5px; color: var(--text-mute); }
.cal-cell.has .cnt { color: var(--pink); }
.cal-legend { display: flex; gap: 14px; margin-top: 12px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 11px; color: var(--text-mute); flex-wrap: wrap; }
.cal-legend i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 5px; }

.day-panel { min-width: 0; }
.day-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.day-head .dt { display: flex; flex-direction: column; gap: 3px; }
.day-head .dt b { font-size: 16px; }
.day-head .dt span { font-size: 11.5px; color: var(--text-mute); }
.day-sum { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 14px; }
.day-sum div { background: var(--panel-solid); padding: 9px 8px; text-align: center; }
.day-sum b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; }
.day-sum span { font-size: 10.5px; color: var(--text-mute); }

.bookings { display: flex; flex-direction: column; gap: 10px; }
.booking {
  position: relative;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.18s;
}
.booking:hover { border-color: var(--line-strong); }
.booking::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--bk, var(--violet)); }
.booking.st-pending { --bk: var(--gold); }
.booking.st-confirmed { --bk: var(--cyan); }
.booking.st-done { --bk: var(--green); }
.booking.st-cancel { --bk: var(--text-mute); opacity: 0.55; }
.booking .bt { padding: 13px 10px 13px 14px; border-right: 1px dashed var(--line); display: flex; flex-direction: column; gap: 2px; }
.booking .bt b { font-size: 14px; font-variant-numeric: tabular-nums; }
.booking .bt span { font-size: 10.5px; color: var(--text-mute); font-variant-numeric: tabular-nums; }
.booking .bb { padding: 12px 12px 12px 13px; display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.booking .l1 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.booking .l1 b { font-size: 14.5px; }
.booking .l1 .char { font-size: 12px; color: var(--pink); }
.booking .l2 { display: flex; align-items: center; gap: 10px; font-size: 11.5px; color: var(--text-dim); flex-wrap: wrap; }
.booking .l2 .tel { cursor: pointer; padding: 1px 5px; border-radius: 5px; background: rgba(255, 255, 255, 0.05); font-variant-numeric: tabular-nums; }
.booking .l2 .tel:hover { background: rgba(255, 122, 184, 0.15); color: var(--pink); }
.booking .l3 { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.booking .shift { margin-left: auto; display: flex; gap: 4px; }
.booking .pose-mini { font-size: 10.5px; color: var(--text-mute); background: rgba(255, 255, 255, 0.04); padding: 2px 6px; border-radius: 5px; white-space: nowrap; }
.booking .money { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.booking .money b { font-size: 14px; color: var(--gold); }
.booking .money.mute b { color: var(--text-mute); text-decoration: line-through; }
.booking .money small { font-size: 10.5px; color: var(--text-mute); }

/* ------------------------------- 例图 ------------------------------- */
.upload-zone {
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  color: var(--text-dim);
  transition: border-color 0.18s, background 0.18s;
  cursor: pointer;
  background: var(--panel);
}
.upload-zone:hover, .upload-zone.over { border-color: var(--pink); background: rgba(255, 122, 184, 0.06); }
.upload-zone .big { font-size: 26px; display: block; margin-bottom: 8px; }
.upload-zone b { color: var(--text); }
.upload-zone .small { margin-top: 6px; }

.works-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.work-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
  aspect-ratio: 4 / 5;
  cursor: pointer;
  transition: transform 0.22s, border-color 0.22s;
}
.work-card:hover { transform: translateY(-3px); border-color: rgba(255, 122, 184, 0.45); }
.work-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card .info {
  position: absolute; inset: auto 0 0 0;
  padding: 26px 11px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}
.work-card .info b { display: block; font-size: 12.5px; color: #fff; }
.work-card .info span { font-size: 10.5px; color: rgba(255, 255, 255, 0.62); }
.work-card .cover-mark {
  position: absolute; top: 8px; left: 8px;
  font-size: 10px; padding: 3px 7px; border-radius: 6px;
  background: rgba(255, 122, 184, 0.92); color: #24051a; font-weight: 700;
}
.work-card .ops {
  position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0;
  transition: opacity 0.18s;
}
.work-card:hover .ops { opacity: 1; }
.work-card .ops button {
  width: 26px; height: 26px; border-radius: 7px; border: none;
  background: rgba(0, 0, 0, 0.6); color: #fff; cursor: pointer; font-size: 12px;
  display: grid; place-items: center; backdrop-filter: blur(4px);
}
.work-card .ops button:hover { background: var(--pink); color: #20051a; }

/* ------------------------------- 设置 ------------------------------- */
/* 设置页 */
.card > .section-head:first-child { margin-top: 0; }
.cover-preview {
  position: relative; display: flex; min-height: 160px;
  border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2);
}
.cover-preview img { width: 100%; height: 210px; object-fit: cover; display: block; }
.cover-ops { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 8px; }
.cover-empty {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 7px; padding: 28px 20px; text-align: center; color: var(--text-dim);
  border: 1px dashed var(--line-strong); border-radius: 14px;
}
.cover-empty b { color: var(--text); font-weight: 500; font-size: 13px; }

.settings-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 16px; align-items: start; }
.setting-block { padding: 20px; }
.setting-block h3 { margin: 0 0 4px; font-size: 14px; }
.setting-block > p.small { margin: 0 0 16px; color: var(--text-mute); }
.kv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--text-mute); }
.kv b { font-weight: 500; text-align: right; word-break: break-all; }
.switch { display: flex; align-items: center; gap: 10px; }
.toggle { width: 42px; height: 24px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-strong); position: relative; cursor: pointer; padding: 0; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-dim); transition: transform 0.2s, background 0.2s; }
.toggle.on { background: rgba(255, 122, 184, 0.28); border-color: rgba(255, 122, 184, 0.6); }
.toggle.on::after { transform: translateX(18px); background: var(--pink); }

/* ------------------------------- 弹窗 ------------------------------- */
.modal-root { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.modal-root.open { pointer-events: auto; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 3, 12, 0.72);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.22s;
}
.modal-root.open .modal-backdrop { opacity: 1; }
.modal {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -46%) scale(0.98);
  width: min(680px, calc(100vw - 32px));
  max-height: min(86vh, 900px);
  display: flex; flex-direction: column;
  background: var(--panel-solid);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  opacity: 0;
  transition: opacity 0.22s, transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.modal-root.open .modal { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.modal.wide { width: min(860px, calc(100vw - 32px)); }
.modal-head { padding: 18px 22px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h3 { margin: 0; font-size: 16px; }
.modal-head p { margin: 4px 0 0; font-size: 11.5px; color: var(--text-mute); }
.modal-close { border: none; background: transparent; color: var(--text-mute); font-size: 18px; cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.modal-close:hover { color: var(--text); background: var(--panel-2); }
.modal-body { padding: 20px 22px; overflow: auto; }
.modal-foot { padding: 14px 22px 18px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* 动作详情 */
.pose-detail-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.pose-detail-head .pose-emoji { width: 68px; height: 68px; font-size: 32px; border-radius: 18px; }
.pose-detail-head h3 { margin: 0 0 6px; font-size: 18px; }
.detail-block { padding: 13px 15px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); margin-bottom: 10px; }
.detail-block .k { font-size: 10.5px; letter-spacing: 0.16em; color: var(--text-mute); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.detail-block .v { font-size: 13px; line-height: 1.75; color: var(--text-dim); }
.detail-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-two .detail-block { margin-bottom: 0; }

/* 预约表单里的动作选择 */
.pose-picks { display: flex; flex-wrap: wrap; gap: 6px; max-height: 132px; overflow: auto; padding: 2px; }
.pose-pick {
  padding: 6px 10px; border-radius: 99px; font-size: 11.5px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel); color: var(--text-dim);
  font-family: inherit; transition: all 0.15s;
}
.pose-pick:hover { border-color: var(--line-strong); color: var(--text); }
.pose-pick.on { background: rgba(255, 122, 184, 0.16); border-color: rgba(255, 122, 184, 0.55); color: var(--pink); }

/* 时间轴冲突提示 */
.warn-box { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; font-size: 12px; line-height: 1.6; background: rgba(251, 191, 36, 0.09); border: 1px solid rgba(251, 191, 36, 0.3); color: #f8d477; }
.warn-box.bad { background: rgba(251, 113, 133, 0.09); border-color: rgba(251, 113, 133, 0.34); color: #ffa1b0; }

/* Toast */
.toast-root { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast {
  padding: 10px 18px; border-radius: 99px;
  background: rgba(26, 18, 38, 0.96);
  border: 1px solid var(--line-strong);
  color: var(--text); font-size: 12.5px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
  animation: toastIn 0.26s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  backdrop-filter: blur(10px);
  max-width: 80vw; text-align: center;
}
.toast.out { animation: toastOut 0.22s ease forwards; }
.toast.good { border-color: rgba(52, 211, 153, 0.5); }
.toast.bad { border-color: rgba(251, 113, 133, 0.55); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* 打印（通告单） */
.print-only { display: none; }
@media print {
  body { background: #fff; color: #111; }
  body::before, .bg-orbs, .sidebar, .topbar, .modal-root, .toast-root, .upload-zone, .calendar, .toolbar, .hero-actions, .no-print { display: none !important; }
  .app { display: block; }
  .view { padding: 0; max-width: none; }
  .print-only { display: block; }
  .card, .booking, .day-sum div, .stat { border-color: #ddd !important; background: #fff !important; box-shadow: none !important; }
  .day-sum { background: #ddd !important; }
  .booking .bt { border-color: #ddd !important; }
  .muted, .dim, .small { color: #666 !important; }
  .pill, .pose-mini, .chip { border-color: #ccc !important; color: #333 !important; background: #f4f4f4 !important; }
  .booking .money b { color: #111 !important; }
  .booking::before { background: #333 !important; }
  .sched-layout { display: block !important; }
}

/* 响应式 */
@media (max-width: 1080px) {
  .home-grid, .sched-layout, .settings-grid { grid-template-columns: 1fr; }
  .cal-cell { min-height: 54px; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto;
    z-index: 60;
    flex-direction: row; align-items: center; gap: 0;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    border-right: none; border-top: 1px solid var(--line);
    background: rgba(14, 10, 22, 0.94);
    backdrop-filter: blur(18px);
  }
  [data-theme="light"] .sidebar { background: rgba(255, 252, 249, 0.96); }
  .brand, .side-foot { display: none; }
  .nav { flex-direction: row; width: 100%; justify-content: space-around; gap: 2px; }
  .nav a { flex-direction: column; gap: 3px; padding: 7px 10px; font-size: 10.5px; flex: 1; align-items: center; }
  .nav a i { font-size: 15px; }
  .topbar { padding: 16px 16px 10px; align-items: flex-start; flex-direction: column; gap: 10px; }
  .topbar-actions { justify-content: flex-start; width: 100%; }
  .view { padding: 6px 16px 100px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { padding: 22px 20px; }
  .hero { min-height: 300px; }
  .form-grid { grid-template-columns: 1fr; }
  .detail-two { grid-template-columns: 1fr; }
  .pose-grid { grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 9px; }
  .pose-card { padding: 13px 12px 12px; gap: 7px; }
  .pose-emoji { width: 42px; height: 42px; font-size: 21px; border-radius: 12px; }
  .pose-desc { display: none; }
  .works-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .work-strip { grid-template-columns: repeat(3, 1fr); }
  .modal { width: calc(100vw - 20px); max-height: 90vh; border-radius: 18px; }
  .modal-foot { padding: 12px 16px 16px; }
  .modal-body { padding: 16px; }
  .modal-head { padding: 15px 16px 12px; }
  .day-sum b { font-size: 13.5px; }
  .booking { grid-template-columns: 58px minmax(0, 1fr); }
  .toast-root { bottom: 86px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
@media (max-width: 430px) {
  .hero h2 { font-size: 21px; }
  .hero-desc { font-size: 12px; }
  .hero-inner { padding: 18px 16px 20px; }
}

/* ---------------- 客户档案 ---------------- */
.client-list { display: flex; flex-direction: column; gap: 10px; }
.client-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); cursor: pointer; transition: 0.16s;
}
.client-row:hover { border-color: rgba(255, 122, 184, 0.3); transform: translateY(-1px); }
.client-row:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-weight: 700; font-size: 17px; color: #1a1020; background: var(--grad);
}
.cmain { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.cmain b { font-size: 14.5px; }
.cmeta { font-size: 12px; color: var(--text-dim); }
.cchar { font-size: 12px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cstat { display: flex; flex-direction: column; align-items: flex-end; min-width: 64px; }
.cstat b { font-size: 14px; }
.cstat span { font-size: 11px; color: var(--text-mute); }
.cbtns { display: flex; gap: 6px; }
@media (max-width: 760px) {
  .client-row { flex-wrap: wrap; align-items: center; gap: 10px 12px; }
  .avatar { width: 38px; height: 38px; font-size: 15px; }
  .cmain { flex: 1 1 calc(100% - 52px); gap: 4px; }
  .cmeta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cstat { flex-direction: row; align-items: baseline; gap: 3px; min-width: 0; }
  .cstat span { font-size: 10.5px; }
  .cbtns { margin-left: auto; }
}
.client-history { display: flex; flex-direction: column; gap: 8px; max-height: 300px; overflow: auto; }
.ch-row {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}
.ch-row b { font-size: 13px; }
.ch-row .small { display: block; }

/* ---------------- 待办 / 套餐 / 消息 ---------------- */
.todo-list { display: flex; flex-direction: column; gap: 8px; }
.todo-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  padding: 11px 13px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font-size: 13.5px; cursor: pointer; transition: 0.15s;
}
.todo-row:hover { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 122, 184, 0.28); }
.todo-row b { color: var(--pink); }
.todo-row .chev { color: var(--text-mute); }
.todo-row i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot-gold { background: var(--gold); }
.dot-pink { background: var(--pink); }
.dot-violet { background: var(--violet); }
.dot-red { background: var(--red); box-shadow: 0 0 0 3px rgba(251, 113, 133, 0.16); }
.pkg-list { display: flex; flex-direction: column; gap: 8px; }
.pkg-item { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; flex-wrap: wrap; }
.pkg-main { display: flex; flex-direction: column; gap: 2px; min-width: 110px; }
.pkg-meta { white-space: nowrap; }
.msg-quick { display: flex; flex-wrap: wrap; gap: 8px; }

/* 准备清单 */
.check-add { display: flex; gap: 8px; margin-top: 8px; }
.check-add input { flex: 1; }
.check-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.check-item {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 8px 5px 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  font-size: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.check-item input { width: 13px; height: 13px; accent-color: var(--pink); margin: 0; cursor: pointer; }
.check-item.on { color: var(--text-mute); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.check-item.on span { text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, 0.35); }
.check-item .x {
  border: 0; background: none; color: var(--text-mute); font-size: 10px;
  padding: 0 2px; cursor: pointer; line-height: 1;
}
.check-item .x:hover { color: var(--red); }
[data-theme="light"] .check-item.on { background: rgba(4, 120, 87, 0.08); }
.cal-cell.off {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 6px, transparent 6px 12px);
}
[data-theme="light"] .cal-cell.off {
  background: repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0 6px, transparent 6px 12px);
}

/* ---------------- 手机访问 / PWA ---------------- */
.net-state { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.net-state b { display: flex; align-items: center; gap: 7px; font-size: 13.5px; }
.net-url {
  padding: 11px 13px; border-radius: 12px; border: 1px dashed rgba(255, 122, 184, 0.35);
  background: rgba(255, 122, 184, 0.07); font-size: 15px; letter-spacing: 0.01em;
  word-break: break-all; color: var(--text);
}
.dot-on { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.16); }

/* ---------------- 手机 / 平板（PWA）适配 ---------------- */
@media (max-width: 860px) {
  /* iOS 对字号 <16px 的输入框会强制放大页面 */
  input[type="text"], input[type="tel"], input[type="number"], input[type="date"],
  input[type="time"], input[type="search"], select, textarea, .search input { font-size: 16px; }
  .field > label { font-size: 12.5px; }
  .topbar { padding-top: calc(14px + env(safe-area-inset-top)); }
  .view { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .toast-root { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .nav a { min-height: 52px; padding: 8px 6px 6px; }
  .btn { min-height: 38px; }
  .modal { max-height: min(88vh, calc(100dvh - 24px)); }
  .modal-body { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .cal-grid { gap: 5px; }
  .cal-cell { min-height: 46px; padding: 6px; }
  .cal-cell .d { font-size: 12.5px; }
  .cal-nav .btn, .day-head .btn.icon { min-height: 34px; }
  .booking { grid-template-columns: 54px minmax(0, 1fr); }
  #dayPanel { scroll-margin-top: 118px; }
  .kv b { overflow-wrap: anywhere; }
  .settings-grid .card { padding: 14px; }
}
@media (max-width: 430px) {
  .cal-grid { gap: 4px; }
  .cal-cell { min-height: 42px; }
  .cal-dow { font-size: 10.5px; }
  .stat { padding: 11px 13px; }
  .stat b { font-size: 19px; }
  .hero-actions { flex-wrap: wrap; }
  .total-box { flex-wrap: wrap; gap: 8px; }
  .total-box .tb-right { width: 100%; justify-content: space-between; }
  .works-grid { gap: 6px; }
}


/* 预约弹窗：日期 / 开始 / 结束 */
.date-row { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
  .date-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .date-row .field:first-child { grid-column: 1 / -1; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 2px; }
  .section-head h2 { font-size: 14.5px; }
  .section-head p { text-align: left; }
}

/* 预约卡片：手机上按钮固定在右上，标题行不跟按钮抢行 */
@media (max-width: 860px) {
  .booking .l1 { padding-right: 78px; gap: 5px 7px; }
  .booking .shift { position: absolute; top: 9px; right: 9px; margin: 0; }
  .booking .shift .btn { width: 34px; height: 34px; padding: 0; justify-content: center; }
  .booking .bt { padding: 12px 8px 12px 12px; }
  .booking .pill { font-size: 10.5px; padding: 2px 8px; }
  .booking .l2 { gap: 6px 9px; }
  .booking .money b { font-size: 15px; }
}

/* 公网访问：密码输入框 */
.pub-pw {
  flex: 1 1 190px;
  height: 38px;
  min-width: 0;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  outline: none;
}
.pub-pw:focus { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(255, 122, 184, 0.16); }
@media (max-width: 860px) { .pub-pw { font-size: 16px; } }

/* 双人标记 */
.duo-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: var(--pink);
  background: color-mix(in srgb, var(--pink) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--pink) 34%, transparent);
  white-space: nowrap;
}

/* ------------------------------ 交付相册（后台） ------------------------------ */
.gal-list { display: grid; gap: 16px; }
.gal-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(160deg, var(--panel-2), transparent 55%), var(--panel);
}
.gal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.gal-title h3 { margin: 0 0 4px; font-size: 16px; }
.gal-sub { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12px; color: var(--text-dim); }
.gal-sub .warn { color: var(--red); }
.gal-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.gal-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.gal-link { flex: 1 1 320px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-mute); }
.gal-link span { flex: none; }
.gal-link input {
  flex: 1;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text-dim);
  font-size: 12px;
}
.gal-tool-btns { display: flex; flex-wrap: wrap; gap: 6px; }
.gal-drop {
  padding: 18px 14px;
  border: 1.5px dashed var(--line-strong, var(--line));
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.gal-drop:hover,
.gal-drop.drag { border-color: var(--pink); background: color-mix(in srgb, var(--pink) 7%, transparent); }
.gal-drop-inner { display: grid; gap: 4px; }
.gal-drop-inner b { font-size: 13px; }
.gal-drop-inner span { font-size: 11.5px; color: var(--text-mute); line-height: 1.6; }
.gal-progress { font-size: 12px; color: var(--cyan); word-break: break-all; }
.gal-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.gal-thumb {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--panel-2);
}
.gal-thumb img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gal-noprev {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  background: repeating-linear-gradient(135deg, var(--panel-2) 0 10px, transparent 10px 20px);
}
.gal-thumb figcaption { display: grid; gap: 1px; padding: 5px 7px 6px; font-size: 10.5px; }
.gal-thumb figcaption span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gal-thumb figcaption em { font-style: normal; color: var(--text-mute); }
.gal-x {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 5, 12, 0.62);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.18s;
}
.gal-thumb:hover .gal-x,
.gal-x:focus-visible { opacity: 1; }
.gal-noitems { grid-column: 1 / -1; font-size: 12.5px; color: var(--text-mute); padding: 6px 0; }
.badge-note { font-size: 11px; color: var(--text-mute); }

@media (max-width: 720px) {
  .gal-head { flex-direction: column; }
  .gal-badges { justify-content: flex-start; }
  .gal-tool-btns .btn { flex: 1 1 auto; }
  .gal-x { opacity: 1; }
}
/* ============================== 办公增强 ============================== */
/* 顶栏搜索 */
.top-search { display: inline-flex; align-items: center; gap: 8px; }
.top-search span { color: var(--text-dim); }
.top-search kbd,
.more-search kbd {
  font: 600 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 4px 6px; border-radius: 6px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text-mute);
}

/* 按钮手感：按下收一点，不做弹跳 */
.btn { transition: transform 140ms ease-out, background-color 160ms ease-out, border-color 160ms ease-out, color 160ms ease-out; }
.btn:active { transform: scale(0.97); }
@media (prefers-reduced-motion: reduce) {
  .btn:active { transform: none; }
}
body.modal-open { overflow: hidden; }

/* 财务页 */
.fin-wrap { display: flex; flex-direction: column; gap: 16px; }
.fin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fin-toolbar .mon { display: flex; align-items: center; gap: 8px; }
.fin-toolbar .mon b { font-size: 15px; }
.fin-toolbar .tiny { font-size: 12px; color: var(--text-mute); }
.fin-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--panel); display: flex; flex-direction: column; gap: 4px; }
.kpi span { font-size: 12px; color: var(--text-mute); }
.kpi b { font-size: 22px; letter-spacing: -0.02em; }
.kpi small { font-size: 11.5px; color: var(--text-mute); }
.kpi.pink b { color: var(--pink); }
.kpi.violet b { color: var(--violet); }
.kpi.gold b { color: var(--gold); }
.kpi.red b { color: var(--red); }
.kpi.green b { color: var(--green); }
.fin-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart .bar { fill: color-mix(in srgb, var(--violet) 38%, transparent); transition: fill 160ms ease-out; }
.chart .bar.now { fill: var(--pink); }
.chart .bar.zero { fill: color-mix(in srgb, var(--text-mute) 26%, transparent); }
.chart .baseline { stroke: var(--line); stroke-width: 1; }
.chart .barval { fill: var(--text-mute); font-size: 10.5px; text-anchor: middle; }
.chart .barlbl { fill: var(--text-dim); font-size: 11px; text-anchor: middle; }
.fin-chart-foot { display: flex; gap: 22px; margin-top: 10px; font-size: 12px; color: var(--text-mute); }
.fin-chart-foot b { color: var(--text); margin-left: 6px; }
.method-list { display: flex; flex-direction: column; gap: 10px; }
.method-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto 38px; align-items: center; gap: 10px; font-size: 12.5px; }
.method-bar { height: 8px; border-radius: 999px; background: var(--panel-2); overflow: hidden; }
.method-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--pink)); }
.method-row b { font-variant-numeric: tabular-nums; }
.method-row small { color: var(--text-mute); text-align: right; }
.pay-day { margin-bottom: 16px; }
.pay-day-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-mute); padding: 0 2px 6px; }
.pay-day-head b { color: var(--text-dim); font-size: 12.5px; }
.owed-list { display: flex; flex-direction: column; }
/* 待收列表 */
.owed-list { display: flex; flex-direction: column; }
.owed-row { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; border-bottom: 1px solid var(--line); color: inherit; }
.owed-row:last-child { border-bottom: none; }
.owed-row:hover { background: var(--panel-2); }
.owed-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.owed-main b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owed-main small { font-size: 11.5px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.owed-main small.late { color: var(--red); }
.owed-amt { font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.small-empty { padding: 18px 0; text-align: center; color: var(--text-mute); font-size: 12.5px; }

/* 收款面板 */
.pay-sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 12px; }
.pay-sum > div { padding: 10px 12px; border-radius: 12px; background: var(--panel-2); display: flex; flex-direction: column; gap: 2px; }
.pay-sum span { font-size: 11.5px; color: var(--text-mute); }
.pay-sum b { font-size: 18px; font-variant-numeric: tabular-nums; }
.pay-sum b.green { color: var(--green); }
.pay-sum b.gold { color: var(--gold); }
.pay-quick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12px; color: var(--text-mute); }
.pay-form { margin-bottom: 10px; }
.pay-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.pay-h { margin: 4px 0 8px; font-size: 13px; color: var(--text-dim); display: flex; justify-content: space-between; }
.pay-h small { color: var(--text-mute); font-weight: 400; }
.pay-list { display: flex; flex-direction: column; gap: 6px; }
.pay-item { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr) auto auto; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: var(--panel-2); font-size: 12.5px; }
.pay-item.big { grid-template-columns: auto minmax(0, 1.4fr) auto minmax(0, .8fr) auto; background: transparent; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 4px; }
.pay-kind { font-size: 11px; padding: 2px 7px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-dim); white-space: nowrap; }
.pay-kind.deposit { color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 40%, transparent); }
.pay-kind.balance { color: var(--green); border-color: color-mix(in srgb, var(--green) 40%, transparent); }
.pay-kind.extra { color: var(--violet); border-color: color-mix(in srgb, var(--violet) 40%, transparent); }
.pay-date { color: var(--text-mute); font-variant-numeric: tabular-nums; }
.pay-method { color: var(--text-mute); }
.pay-note { color: var(--text-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-amt { font-variant-numeric: tabular-nums; }
.pay-del { opacity: 0.5; }
.pay-del:hover { opacity: 1; }
.pay-empty { padding: 16px; text-align: center; color: var(--text-mute); font-size: 12.5px; background: var(--panel-2); border-radius: 12px; }
.paid-inline { color: var(--green); margin-right: 8px; }

/* 命令面板 */
.cmd-root { position: fixed; inset: 0; z-index: 120; }
.cmd-backdrop { position: absolute; inset: 0; background: rgba(6, 4, 10, 0.62); backdrop-filter: blur(3px); opacity: 0; transition: opacity 160ms ease-out; }
.cmd-panel { position: relative; width: min(640px, calc(100vw - 28px)); margin: 12vh auto 0; background: var(--panel-solid, #17111f); border: 1px solid var(--line-strong, rgba(255,255,255,.14)); border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); overflow: hidden; opacity: 0; transform: translateY(-6px) scale(.99); transition: opacity 160ms ease-out, transform 180ms cubic-bezier(.2,.8,.2,1); }
.cmd-root.open .cmd-backdrop { opacity: 1; }
.cmd-root.open .cmd-panel { opacity: 1; transform: none; }
.cmd-input-row { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmd-ico { color: var(--text-mute); font-size: 15px; }
.cmd-input-row input { flex: 1; border: none; background: transparent; color: var(--text); font-size: 16px; outline: none; }
.cmd-input-row kbd { font: 600 10.5px/1 ui-monospace, monospace; padding: 4px 6px; border-radius: 6px; background: var(--panel-2); border: 1px solid var(--line); color: var(--text-mute); }
.cmd-list { max-height: min(54vh, 420px); overflow-y: auto; padding: 6px 6px 12px; mask-image: linear-gradient(to bottom, #000 0, #000 95%, transparent 100%); }
.cmd-group { position: sticky; top: 0; z-index: 1; background: var(--panel-solid, #17111f); padding: 9px 10px 4px; font-size: 11px; letter-spacing: .06em; color: var(--text-mute); }
.cmd-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 12px; border-radius: 10px; border: none; background: transparent; color: var(--text); font-size: 13.5px; text-align: left; cursor: pointer; }
.cmd-item .cmd-hint { font-size: 11.5px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52%; }
.cmd-item.active { background: var(--panel-2); box-shadow: inset 2px 0 0 var(--pink); }
.cmd-empty { padding: 26px 16px; text-align: center; color: var(--text-mute); font-size: 13px; }
.cmd-foot { display: flex; justify-content: space-between; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-mute); }

/* 手机底部更多 */
.nav-more { display: none; }
.more-sheet { position: fixed; inset: 0; z-index: 90; }
.more-sheet[hidden] { display: none; }
.more-backdrop { position: absolute; inset: 0; background: rgba(6,4,10,.55); opacity: 0; transition: opacity 160ms ease-out; }
.more-panel { position: absolute; left: 10px; right: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); background: var(--panel-solid, #17111f); border: 1px solid var(--line-strong); border-radius: 18px; padding: 14px; box-shadow: 0 -20px 60px -20px rgba(0,0,0,.6); transform: translateY(10px); opacity: 0; transition: opacity 160ms ease-out, transform 180ms cubic-bezier(.2,.8,.2,1); }
.more-sheet.open .more-backdrop { opacity: 1; }
.more-sheet.open .more-panel { opacity: 1; transform: none; }
.more-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.more-grid a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 13px 6px; border-radius: 12px; background: var(--panel-2); color: var(--text); font-size: 12px; }
.more-grid a i { font-style: normal; font-size: 17px; color: var(--pink); }
.more-grid a:active { transform: scale(.97); }
.more-search { width: 100%; margin-top: 10px; display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text-dim); font-size: 13px; }

@media (max-width: 860px) {
  .top-search { display: none; }
  .nav a[data-more] { display: none; }
  .nav-more { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 10px; font-size: 10.5px; flex: 1; background: none; border: none; color: var(--text-dim); min-height: 52px; }
  .nav-more i { font-style: normal; font-size: 15px; }
  .fin-kpis { grid-template-columns: repeat(2, 1fr); }
  .fin-grid { grid-template-columns: 1fr; }
  .pay-item.big { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 4px; }
  .pay-item.big .pay-note { display: none; }
  .pay-item.big .pay-method { display: none; }
  .pay-item.big .pay-note { grid-column: 1 / -1; }
  .cmd-panel { margin-top: 8vh; }
  .fin-toolbar { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .pay-item { grid-template-columns: auto minmax(0, 1fr) auto; row-gap: 6px; }
  .pay-item .pay-method, .pay-item .pay-date { font-size: 11px; }
  .pay-item .pay-note { grid-column: 1 / -1; }
  .pay-sum b { font-size: 16px; }
}
/* 首页提醒 */
.remind-card { border-color: color-mix(in srgb, var(--red) 22%, var(--line)); }
.remind-list { display: flex; flex-direction: column; gap: 6px; }
.remind-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; background: var(--panel-2); color: var(--text); text-align: left; cursor: pointer; transition: background-color 150ms ease-out, border-color 150ms ease-out; }
.remind-row:hover { border-color: var(--line); }
.remind-row .remind-ico { width: 24px; height: 24px; border-radius: 999px; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.remind-row.danger .remind-ico { background: color-mix(in srgb, var(--red) 20%, transparent); color: var(--red); }
.remind-row.warn .remind-ico { background: color-mix(in srgb, var(--gold) 20%, transparent); color: var(--gold); }
.remind-row.info .remind-ico { background: color-mix(in srgb, var(--green) 18%, transparent); color: var(--green); }
.remind-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.remind-main b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remind-main small { color: var(--text-mute); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.remind-pay { font-size: 11.5px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 32%, transparent); }
.remind-go { color: var(--text-mute); }

/* 后台选片弹窗 */
.sel-sum { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.sel-sum b { font-size: 15px; }
.sel-sum span { font-size: 12px; color: var(--text-mute); }
.sel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 6px; }
.sel-item { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--panel-2); }
.sel-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sel-item figcaption { padding: 6px 8px; font-size: 11px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field .hint { display: block; margin-top: 5px; font-size: 11px; color: var(--text-mute); }

/* 快捷键表 */
.kb-list { display: flex; flex-direction: column; gap: 6px; }
.kb-row { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; background: var(--panel-2); }
.kb-row kbd { justify-self: start; min-width: 26px; text-align: center; padding: 3px 8px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--panel); font: 600 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); }
.kb-row span { font-size: 13px; color: var(--text-dim); }
@media (max-width: 640px) { .kb-row { grid-template-columns: 96px minmax(0, 1fr); } }

/* 张数时长提示，跟在字段标题后 */
.field label .dur-hint { margin-left: 6px; font-weight: 500; font-size: 11.5px; color: var(--text-mute); }
