/* ==========================================================================
   JHFS 智慧生活 · 一体化运营中台
   Design tokens
   ========================================================================== */
:root {
  --orange: #ff6b00;
  --orange-2: #ff8a2a;
  --orange-deep: #e85c00;
  --orange-soft: #fff4ec;
  --navy: #171c24;
  --navy-2: #202733;
  --navy-3: #2b3442;
  --ink: #1c2430;
  --ink-2: #3c4655;
  --muted: #7e8a99;
  --muted-2: #a2acb8;
  --line: #e8edf2;
  --line-2: #f1f4f7;
  --bg: #f5f7f9;
  --card: #ffffff;
  --green: #19a974;
  --green-soft: #eaf8f2;
  --blue: #2f6feb;
  --blue-soft: #edf3ff;
  --purple: #7c5cff;
  --purple-soft: #f2efff;
  --red: #e5484d;
  --red-soft: #fff0f0;
  --teal: #12a594;
  --teal-soft: #e8f8f6;
  --amber: #f4a11a;
  --amber-soft: #fff8e8;
  --shadow-sm: 0 1px 2px rgba(20, 30, 45, 0.04);
  --shadow: 0 8px 24px rgba(20, 30, 45, 0.06);
  --shadow-lg: 0 24px 64px rgba(12, 20, 32, 0.16);
  --radius: 14px;
  --sidebar-w: 238px;
  --topbar-h: 68px;
  --font: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.has-overlay { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
input, textarea, select { font-family: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
::selection { background: rgba(255, 107, 0, 0.2); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #cfd6de; border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: #b6c0cb; background-clip: padding-box; }
::-webkit-scrollbar-track { background: transparent; }

h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: 25px; line-height: 1.25; letter-spacing: -0.02em; font-weight: 700; }
h2 { font-size: 16px; line-height: 1.4; font-weight: 650; letter-spacing: -0.01em; }
h3 { font-size: 15px; font-weight: 650; }
h4 { font-size: 13px; font-weight: 650; }
.ico { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: -0.02em; }
.muted { color: var(--muted); }
.block-muted { display: block; color: var(--muted); font-size: 11.5px; font-weight: 400; margin-top: 2px; }
.sub-strong { font-weight: 600; color: var(--ink-2); }
.align-right { text-align: right; }
.danger-text { color: var(--red) !important; }
.amount-up { color: var(--green); }
.amount-down { color: var(--red); }
.text-link { display: inline-flex; align-items: center; gap: 4px; color: var(--orange); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.text-link:hover { color: var(--orange-deep); }

/* ==========================================================================
   Buttons / inputs / badges / avatars
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  border-color: var(--orange);
  color: #fff;
  box-shadow: 0 6px 14px rgba(255, 107, 0, 0.2);
}
.btn-primary:hover { background: linear-gradient(135deg, #ff9846, var(--orange-deep)); box-shadow: 0 8px 18px rgba(255, 107, 0, 0.27); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink-2); }
.btn-ghost:hover { border-color: #d4dce4; background: #fafbfc; }
.btn-soft { background: var(--orange-soft); color: var(--orange-deep); border-color: #ffe3d0; }
.btn-soft:hover { background: #fff0e4; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-danger:hover { background: #cf3a3f; }
.btn-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-dark:hover { background: var(--navy-3); }
.btn-text { color: var(--ink-2); }
.btn-text:hover { color: var(--orange); }
.btn-sm { height: 32px; border-radius: 8px; padding: 0 12px; font-size: 12.5px; }
.btn-xs { height: 27px; border-radius: 7px; padding: 0 9px; font-size: 12px; gap: 4px; }
.btn-lg { height: 46px; border-radius: 10px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0;
  border: 0; border-radius: 8px; background: transparent; color: var(--muted);
  cursor: pointer; transition: background 0.16s ease, color 0.16s ease;
}
.icon-btn:hover { background: #f3f5f8; color: var(--ink); }

.input {
  width: 100%;
  height: 39px;
  border: 1px solid #dfe5eb;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 0 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.input::placeholder { color: #aab4c0; }
.input:hover { border-color: #ccd5df; }
.input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1); }
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.6; }
.select-sm { width: auto; min-width: 125px; height: 34px; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237e8a99' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > .label { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.input-icon { position: relative; }
.input-icon .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #9aa5b2; pointer-events: none; }
.input-icon .input { padding-left: 38px; height: 44px; }
.pwd-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border: 0; background: transparent; color: #9aa5b2; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pwd-toggle:hover { background: #f3f5f8; color: var(--ink); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .span-2 { grid-column: span 2; }
.form-note { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 12px; line-height: 1.6; background: #f8fafb; border: 1px dashed var(--line); border-radius: 9px; padding: 10px 12px; }
.form-note .ico { margin-top: 2px; color: var(--orange); }
.form-actions { display: flex; align-items: center; gap: 12px; padding-top: 4px; }
.checkline { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 12.5px; cursor: pointer; }
.checkline input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--orange); }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 22px; padding: 2px 8px;
  border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 1.5;
  white-space: nowrap;
}
.badge-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge-orange { background: #fff1e6; color: #d95c00; }
.badge-green { background: #e9f8f1; color: #0e8a5f; }
.badge-blue { background: #edf3ff; color: #2c63d4; }
.badge-red { background: #fff0f0; color: #d13b40; }
.badge-purple { background: #f2efff; color: #6344e8; }
.badge-teal { background: #e7f8f5; color: #0c8b7d; }
.badge-gray { background: #f1f4f7; color: #6d7a89; }
.avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; border-radius: 50%; background: var(--orange-soft); color: var(--orange-deep); font-weight: 700; letter-spacing: -0.02em; }
.avatar-orange { background: #fff0e4; color: #e55f00; }
.avatar-blue { background: #edf3ff; color: #2f6feb; }
.avatar-green { background: #e9f8f1; color: #12845b; }
.avatar-purple { background: #f2efff; color: #6a4df0; }
.avatar-teal { background: #e7f8f5; color: #0c8b7d; }
.count-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: #f3f5f8; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.live-indicator { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-size: 12px; font-weight: 600; }
.live-indicator i, .live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(25, 169, 116, 0.13); }
.live-indicator.small { font-size: 11.5px; }
.secure-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: #e9f8f1; color: #0d8a5f; font-size: 11px; font-weight: 600; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; color: var(--orange); text-transform: uppercase; }
.eyebrow > span { width: 16px; height: 1.5px; background: currentColor; }
.eyebrow.light { color: #ffc79c; }

/* ==========================================================================
   Login
   ========================================================================== */
.login-page {
  position: relative; overflow: hidden;
  min-height: 100vh; display: flex; flex-direction: column;
  background:
    radial-gradient(1000px 600px at 82% 4%, rgba(117, 175, 255, 0.35), transparent 60%),
    radial-gradient(900px 700px at 8% 96%, rgba(4, 45, 141, 0.35), transparent 62%),
    linear-gradient(128deg, #2477ff 0%, #1256e8 44%, #0a42c7 100%);
  color: #fff;
}
.login-page::before {
  content: ""; position: absolute; left: -32%; top: -58%; width: 1050px; height: 930px;
  border-radius: 42% 58% 55% 45%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0));
  transform: rotate(-19deg);
  pointer-events: none;
}
.login-page::after {
  content: ""; position: absolute; right: -24%; bottom: -53%; width: 950px; height: 850px;
  border-radius: 58% 42% 45% 55%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.06), transparent 55%);
  transform: rotate(16deg);
  pointer-events: none;
}
.login-orb { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.08); pointer-events: none; }
.login-orb-a { width: 540px; height: 540px; right: 10%; top: -250px; }
.login-orb-b { width: 340px; height: 340px; left: 5%; bottom: -150px; background: rgba(255, 255, 255, 0.025); }
.login-topbar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: 27px 42px; }
.login-brand { display: flex; align-items: center; gap: 12px; }
.login-brand strong { display: block; font-size: 17px; font-weight: 700; letter-spacing: 0.11em; }
.login-brand span { display: block; margin-top: 1px; color: rgba(255, 255, 255, 0.62); font-size: 10.5px; letter-spacing: 0.06em; }
.login-topnote { display: inline-flex; align-items: center; gap: 5px; color: rgba(255, 255, 255, 0.62); font-size: 11px; }
.login-shell { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; justify-content: center; padding: 20px 32px 54px; }
.login-card {
  width: min(100%, 860px); padding: 62px 78px 46px;
  background: #fff; border-radius: 26px; color: var(--ink); text-align: center;
  box-shadow: 0 32px 90px rgba(2, 25, 88, 0.28);
}
.login-card h1 { margin-bottom: 38px; font-size: 42px; line-height: 1.25; font-weight: 650; letter-spacing: -0.03em; color: #202632; }
.login-card form { width: min(100%, 600px); margin: 0 auto; }
.login-field { display: block; margin-bottom: 18px; }
.login-field .input-icon .ico { left: 25px; width: 22px; height: 22px; color: #b3bcc6; }
.login-field .input-icon .input {
  height: 60px; padding: 0 52px 0 70px; border: 1px solid #e4e9ef; border-radius: 6px;
  background: #fcfdfe; font-size: 14px; color: #2c3440;
}
.login-field .input-icon .input::placeholder { color: #b6c0ca; }
.login-field .input-icon .input:focus { border-color: #ff9a55; box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.08); background: #fff; }
.login-field .pwd-toggle { right: 13px; width: 38px; height: 38px; color: #b2bbc5; }
.login-field .pwd-toggle:hover { background: #f5f7fa; color: #6f7a86; }
.login-error { display: none; width: min(100%, 600px); margin: 0 auto 18px; padding: 10px 13px; border: 1px solid #ffd9d9; border-radius: 7px; background: #fff2f2; color: #c33d42; font-size: 12.5px; text-align: left; }
.login-error.show { display: block; }
.login-row { display: flex; align-items: center; justify-content: space-between; margin: 2px 2px 27px; }
.login-row .checkline { color: #566170; font-size: 13px; gap: 9px; }
.login-row .checkline input[type="checkbox"] { width: 17px; height: 17px; accent-color: #ff6b00; }
.login-forgot { border: 0; background: transparent; color: #ff6b00; font-size: 13px; cursor: pointer; padding: 0; }
.login-forgot:hover { color: #de5900; }
.login-submit {
  width: 100%; height: 60px; border: 1px solid #ff6b00; border-radius: 6px;
  background: #ff6b00; color: #fff; font-size: 17px; font-weight: 650; letter-spacing: 0.04em;
  cursor: pointer; transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.login-submit:hover { background: #f25f00; box-shadow: 0 10px 24px rgba(255, 107, 0, 0.2); }
.login-submit:active { transform: translateY(1px); }
.login-submit:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }
.login-submit .btn-spinner { display: inline-block; margin-right: 4px; vertical-align: -2px; }
.login-divider { display: flex; align-items: center; gap: 16px; width: min(100%, 600px); margin: 31px auto 18px; color: #aab3bd; font-size: 12px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: #eef1f4; }
.login-wechat { display: flex; flex-direction: column; align-items: center; gap: 7px; }
.wechat-btn {
  display: flex; align-items: center; justify-content: center; width: 52px; height: 52px;
  border: 0; border-radius: 50%; background: #07c160; color: #fff; cursor: pointer;
  box-shadow: 0 8px 20px rgba(7, 193, 96, 0.2); transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.wechat-btn:hover { transform: translateY(-1px); box-shadow: 0 11px 24px rgba(7, 193, 96, 0.25); }
.login-wechat span { color: #a7b0ba; font-size: 10.5px; }
.login-footer { position: relative; z-index: 2; padding: 10px 20px 24px; text-align: center; color: rgba(255, 255, 255, 0.42); font-size: 10.5px; letter-spacing: 0.03em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.brand-mark { position: relative; display: inline-block; flex: 0 0 auto; background: linear-gradient(145deg, #ff8a2a, #ff5a00); color: #fff; box-shadow: 0 8px 18px rgba(255, 107, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.brand-mark span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }

/* ==========================================================================
   Shell / sidebar / topbar
   ========================================================================== */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed; z-index: 40; left: 0; top: 0; bottom: 0; width: var(--sidebar-w);
  display: flex; flex-direction: column;
  background:
    radial-gradient(600px 260px at 0% 0%, rgba(255, 107, 0, 0.1), transparent 60%),
    linear-gradient(180deg, #1b212a 0%, #151a21 100%);
  color: #c7d0da;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}
.side-brand { display: flex; align-items: center; justify-content: space-between; height: var(--topbar-h); padding: 0 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.055); flex: 0 0 auto; }
.side-brand-link { display: flex; align-items: center; gap: 10px; }
.side-brand-link strong { display: block; color: #fff; font-size: 14px; letter-spacing: 0.12em; font-weight: 700; }
.side-brand-link span { display: block; color: #778391; font-size: 9.5px; margin-top: 1px; letter-spacing: 0.03em; }
.side-close { display: none; color: #8e9aa8; }
.side-nav { flex: 1; overflow-y: auto; padding: 16px 12px 8px; scrollbar-width: thin; scrollbar-color: #3d4652 transparent; }
.side-nav::-webkit-scrollbar-thumb { background: #3a434f; }
.nav-group { margin-bottom: 17px; }
.nav-group-label { padding: 0 10px 7px; color: #5f6b78; font-size: 9.5px; letter-spacing: 0.14em; font-weight: 600; }
.nav-item {
  position: relative; display: flex; align-items: center; gap: 11px;
  height: 39px; margin-bottom: 2px; padding: 0 11px;
  border-radius: 8px; color: #aeb8c4; font-size: 12.5px; font-weight: 500;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav-item .ico { color: #7f8b99; transition: color 0.16s ease; }
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.nav-item:hover .ico { color: #c7d0da; }
.nav-item.active { background: linear-gradient(90deg, rgba(255, 107, 0, 0.17), rgba(255, 107, 0, 0.05)); color: #fff; font-weight: 600; }
.nav-item.active .ico { color: #ff8a2a; }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--orange); }
.nav-dot { width: 5px; height: 5px; margin-left: auto; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.15); }
.side-bottom { flex: 0 0 auto; padding: 12px; }
.side-channel-card { padding: 12px 13px; border-radius: 10px; background: linear-gradient(145deg, rgba(255, 122, 24, 0.13), rgba(255, 255, 255, 0.025)); border: 1px solid rgba(255, 122, 24, 0.18); }
.side-channel-head { display: flex; align-items: center; gap: 7px; color: #e8edf3; font-size: 11px; font-weight: 600; }
.side-channel-card p { color: #82909f; font-size: 10px; margin: 5px 0 8px; }
.side-channel-card a { display: inline-flex; align-items: center; gap: 3px; color: #ff9955; font-size: 10.5px; font-weight: 600; }
.side-user { display: flex; align-items: center; gap: 9px; margin-top: 10px; padding: 8px 3px 2px; }
.side-user > div { flex: 1; min-width: 0; }
.side-user strong { display: block; color: #dce3ea; font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user span { display: block; color: #6d7986; font-size: 9.5px; }
.side-user .icon-btn { color: #778391; width: 28px; height: 28px; }
.side-user .icon-btn:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sidebar-backdrop { display: none; }

.app-main { min-height: 100vh; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }
.topbar {
  position: sticky; z-index: 30; top: 0; height: var(--topbar-h); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 26px; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-left { display: flex; align-items: center; gap: 13px; min-width: 0; }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.breadcrumb i { color: #c4ccd5; font-style: normal; }
.breadcrumb b { color: var(--ink); font-weight: 600; }
.topbar-right { display: flex; align-items: center; gap: 8px; min-width: 0; flex: 0 0 auto; }
.search-trigger {
  display: flex; align-items: center; gap: 7px; width: 230px; height: 34px; padding: 0 9px 0 11px;
  border: 1px solid var(--line); border-radius: 8px; background: #f8fafb; color: #9aa5b2;
  font-size: 11.5px; cursor: pointer; transition: border-color 0.16s ease, background 0.16s ease;
}
.search-trigger:hover { border-color: #d7dfe7; background: #fff; }
.search-trigger span { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd { font-family: var(--font); font-size: 9px; color: #98a3b0; border: 1px solid #e2e8ee; background: #fff; border-radius: 4px; padding: 2px 5px; box-shadow: 0 1px 0 #e9eef3; }
.top-icon { position: relative; width: 35px; height: 35px; border: 1px solid var(--line); background: #fff; border-radius: 8px; }
.top-icon:hover { background: #f8fafb; }
.notify-dot { position: absolute; right: 7px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px #fff; }
.top-divider { width: 1px; height: 21px; background: var(--line); margin: 0 3px; }
.quick-create { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border: 1px solid #ffe0cc; border-radius: 8px; background: #fff9f4; color: var(--orange-deep); font-size: 12px; font-weight: 600; cursor: pointer; }
.quick-create:hover { background: #fff2e7; }
.quick-create .ico:last-child { color: #d69164; }
.user-button { display: flex; align-items: center; gap: 8px; height: 40px; padding: 3px 6px 3px 4px; border: 1px solid transparent; border-radius: 9px; background: transparent; cursor: pointer; flex: 0 0 auto; }
.user-button:hover { background: #f8fafb; border-color: var(--line); }
.user-meta { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.25; margin-right: 1px; }
.user-meta b { font-size: 11.5px; font-weight: 600; color: var(--ink); }
.user-meta small { font-size: 9.5px; color: var(--muted); margin-top: 1px; }
.user-button > .ico { color: #a3adb9; }
.mobile-menu { display: none; }
.view { flex: 1; width: 100%; max-width: 1600px; margin: 0 auto; padding: 26px 28px 52px; }

.global-menu {
  position: fixed; z-index: 100; width: 210px; padding: 7px;
  border: 1px solid var(--line); border-radius: 11px; background: #fff;
  box-shadow: var(--shadow-lg);
}
.global-menu[hidden] { display: none; }
.global-menu .menu-head { display: flex; align-items: center; gap: 9px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 5px; }
.global-menu .menu-head b { display: block; font-size: 12px; }
.global-menu .menu-head span { display: block; color: var(--muted); font-size: 10px; }
.global-menu a, .global-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%; height: 34px; padding: 0 9px;
  border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font-size: 12px; text-align: left; cursor: pointer;
}
.global-menu a:hover, .global-menu button:hover { background: #f7f9fa; color: var(--ink); }
.global-menu button:last-child { color: var(--red); margin-top: 3px; border-top: 1px solid var(--line-2); border-radius: 0 0 7px 7px; }

/* ==========================================================================
   Page headings / cards / stats
   ========================================================================== */
.page { animation: pageIn 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.page-heading h1 { margin: 5px 0 5px; }
.page-heading p { color: var(--muted); font-size: 12.5px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.page-actions .seg-control { margin-right: 2px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px 14px; }
.card-head h2 { font-size: 15px; }
.card-head p { margin-top: 3px; color: var(--muted); font-size: 11.5px; }
.card-head.compact { padding-bottom: 10px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 25px 0 12px; }
.section-head h2 { font-size: 16px; }
.section-head p { color: var(--muted); font-size: 11.5px; margin-top: 2px; }
.section-head .text-link { padding-bottom: 2px; }
.stats-grid { display: grid; gap: 13px; margin-bottom: 18px; }
.stats-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats-grid.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.stat-card { display: flex; align-items: flex-start; gap: 12px; padding: 16px 16px 15px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.stat-card > div { min-width: 0; display: flex; flex-direction: column; }
.stat-icon { display: inline-flex; align-items: center; justify-content: center; width: 37px; height: 37px; border-radius: 10px; flex: 0 0 auto; }
.stat-icon.orange { background: var(--orange-soft); color: var(--orange-deep); }
.stat-icon.blue { background: var(--blue-soft); color: var(--blue); }
.stat-icon.green { background: var(--green-soft); color: var(--green); }
.stat-icon.purple { background: var(--purple-soft); color: var(--purple); }
.stat-icon.red { background: var(--red-soft); color: var(--red); }
.stat-icon.teal { background: var(--teal-soft); color: var(--teal); }
.stat-icon.pink { background: #fff0f5; color: #e84a7a; }
.product-thumb.mall-thumb { color: #fff; border: 0; }
.mall-order-overview { margin-bottom: 14px; padding: 16px; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.mall-overview-link { margin-left: auto; color: var(--orange); font-size: 9px; font-weight: 400; text-decoration: none; }
#ordersBody.order-list-only .mall-order-overview,
#ordersBody.order-list-only .mall-today-grid,
#ordersBody.order-list-only .mall-chart-grid { display: none; }
#ordersBody.order-overview-only .mall-order-list-card { display: none; }
.batch-ship-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 15px; border-bottom: 1px solid var(--line); background: #fbfcfd; font-size: 10px; }
.batch-ship-bar label { display: flex; align-items: center; gap: 4px; color: #687582; }
.batch-ship-bar .input { width: 220px; height: 30px; font-size: 9px; }
.batch-ship-bar .btn { margin-left: auto; }
.batch-ship-bar .muted { color: #9aa6b1; font-size: 9px; }
.settings-form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; padding: 20px; }
.settings-form .field { max-width: 320px; }
.settings-form .btn { align-self: flex-start; }
.review-stars { color: #f59e0b; letter-spacing: 1px; }
.order-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-height: 390px; padding: 30px; text-align: center; }
.order-placeholder-icon { width: 58px; height: 58px; border-radius: 16px; background: #fff5ed; color: var(--orange); display: flex; align-items: center; justify-content: center; }
.order-placeholder h3 { margin: 2px 0 0; color: var(--ink); font-size: 15px; }
.order-placeholder p { max-width: 430px; margin: 0 0 8px; color: #8b97a3; font-size: 10px; line-height: 1.8; }
.mall-overview-title { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; font-size: 12px; font-weight: 650; }
.mall-overview-title::before { content: ""; width: 3px; height: 12px; border-radius: 2px; background: var(--orange); }
.mall-overview-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.mall-overview-card { display: flex; align-items: center; justify-content: space-between; min-height: 88px; padding: 16px 20px; border-radius: 6px; }
.mall-overview-card.pink { background: #fff1f3; color: #df3f61; }
.mall-overview-card.blue { background: #eef5ff; color: #2f6feb; }
.mall-overview-card.purple { background: #f4efff; color: #7c3aed; }
.mall-overview-card.green { background: #eaf8ef; color: #26a65b; }
.mall-overview-card span { display: block; color: #687583; font-size: 10px; }
.mall-overview-card strong { display: block; margin-top: 4px; color: #202a35; font-size: 26px; line-height: 1; }
.mall-overview-card i { width: 50px; height: 50px; border-radius: 50%; color: #fff; display: flex; align-items: center; justify-content: center; font-style: normal; }
.mall-overview-card.pink i { background: #ef5774; }
.mall-overview-card.blue i { background: #4f8df7; }
.mall-overview-card.purple i { background: #8b5cf6; }
.mall-overview-card.green i { background: #46bd75; }
.mall-today-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.mall-today-card { padding: 16px 18px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.mall-today-card > span { color: #65717f; font-size: 10px; }
.mall-today-card strong { display: block; margin-top: 13px; color: #1e2833; font-size: 24px; }
.mall-today-card small { display: block; margin-top: 10px; color: #a0abb6; font-size: 8.5px; }
.mall-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.mall-chart-card { padding: 15px 16px 10px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.mall-chart-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.mall-chart-head b { font-size: 11px; }
.mall-chart-ranges { display: flex; gap: 3px; }
.mall-chart-ranges button { padding: 4px 7px; border: 1px solid #e7edf3; border-radius: 3px; background: #fff; color: #8b97a3; font-size: 8px; cursor: pointer; }
.mall-chart-ranges button.active { border-color: var(--orange); background: var(--orange); color: #fff; }
.mall-chart-bars { display: flex; align-items: flex-end; gap: 7px; height: 150px; padding: 0 4px; border-bottom: 1px solid #edf1f5; }
.mall-chart-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; }
.mall-chart-col i { display: block; width: 65%; max-width: 20px; min-height: 2px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #ffb27a, var(--orange)); }
.mall-chart-col span { color: #a1acb6; font-size: 6px; white-space: nowrap; }
.mall-order-list-card { border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.mall-order-tabs { display: flex; align-items: center; gap: 2px; padding: 0 15px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.mall-order-tabs > button { position: relative; height: 43px; padding: 0 13px; border: 0; background: transparent; color: #5d6975; font-size: 10px; white-space: nowrap; cursor: pointer; }
.mall-order-tabs > button span { margin-left: 3px; color: #9aa6b1; font-size: 8.5px; }
.mall-order-tabs > button.active { color: var(--orange); font-weight: 600; }
.mall-order-tabs > button.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--orange); }
.mall-order-total { margin-left: auto; color: #8c98a4; font-size: 9px; white-space: nowrap; }
.mall-order-total b { color: var(--orange); }
.mall-order-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 11px 15px; background: #fbfcfd; border-bottom: 1px solid var(--line); }
.mall-order-filter .inline-search { width: 260px; }
.mall-order-filter select.input { width: 118px; height: 30px; padding: 0 8px; font-size: 9px; }
.mall-order-table-wrap { overflow-x: auto; }
.mall-order-table { min-width: 970px; }
.mall-order-table th { background: #fbfcfd; color: #7f8b97; font-size: 8.5px; font-weight: 500; }
.mall-order-table td { vertical-align: top; font-size: 9px; }
.mall-order-products { display: flex; flex-direction: column; gap: 8px; min-width: 215px; }
.mall-order-product { display: flex; align-items: center; gap: 7px; }
.mall-order-product-img { width: 38px; height: 38px; border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto; }
.mall-order-product-img img { width: 100%; height: 100%; object-fit: cover; }
.mall-order-product b { display: block; max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; font-weight: 500; }
.mall-order-product small { display: block; margin-top: 2px; color: #9aa6b2; font-size: 7.5px; }
.mall-order-qty { margin-bottom: 7px; color: #687582; font-size: 9px; }
.mall-order-qty small { display: block; color: #a0abb6; font-size: 8px; }
.mall-order-row:hover { background: #fffaf6; }
.mall-status-tabs { display: flex; align-items: center; gap: 2px; padding: 0 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.mall-status-tabs button { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 42px; padding: 0 12px; border: 0; background: transparent; color: #6c7885; font-size: 10px; white-space: nowrap; cursor: pointer; }
.mall-status-tabs button span { color: #a4afb9; font-size: 9px; }
.mall-status-tabs button.active { color: var(--orange); font-weight: 600; }
.mall-status-tabs button.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--orange); }
.mall-filter-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.mall-filter-bar .inline-search { width: 200px; }
.mall-filter-bar select.input { width: 150px; height: 30px; padding: 0 8px; font-size: 9px; }
.mall-filter-bar #mallImportBtn { margin-left: auto; }
.mall-product-table td { font-size: 9.5px; }
.mall-product-table .product-cell b { font-size: 10px; }
.mall-type-badge { display: inline-flex; padding: 3px 6px; border-radius: 4px; background: #f2f5f8; color: #65717f; font-size: 8px; white-space: nowrap; }
.mall-sale-label { display: inline-flex; margin-top: 3px; padding: 1px 5px; border-radius: 3px; background: #eaf8ef; color: #1f9d55; font-size: 7px; }
.mall-sale-label.draft { background: #fff6df; color: #b77900; }
.mall-sale-label.warehouse { background: #f1f3f5; color: #7d8995; }
.mall-sale-label.sold_out { background: #fff0f0; color: #d84242; }
.mall-sale-label.low_stock { background: #fff3e8; color: #d96a00; }
.mall-pagination { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 12px 16px; color: #929da8; font-size: 9px; }
.mall-loading { padding: 70px 0; text-align: center; color: #9aa6b2; font-size: 10px; }
.text-warning { color: #d97706; }
.mall-import-step { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f0f3f6; }
.mall-import-step > span { width: 20px; height: 20px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-deep); display: flex; align-items: center; justify-content: center; font-size: 9px; flex: 0 0 auto; }
.mall-import-step b { display: block; font-size: 11px; }
.mall-import-step p { margin: 3px 0 6px; color: #7c8895; font-size: 9.5px; line-height: 1.6; }
.mall-import-step .muted { color: #a1acb7; }
.mall-import-result { padding-top: 8px; }
.mall-import-success { padding: 8px 10px; border-radius: 5px; background: #eefaf3; color: #198754; font-size: 10px; }
.mall-import-errors { margin-top: 7px; padding: 8px 10px; border-radius: 5px; background: #fff5f5; color: #b74c4c; font-size: 9px; line-height: 1.7; }
.product-thumb-img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); flex: 0 0 auto; }
.image-upload-field { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px dashed #cfd9e2; border-radius: 8px; background: #fbfcfd; }
.startup-radio-row { display: flex; align-items: center; gap: 14px; padding: 3px 0; color: #5d6a77; font-size: 10px; }
.startup-radio-row label { display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.startup-radio-row input { accent-color: var(--orange); }
.startup-image-list { display: grid; grid-template-columns: repeat(3, 70px); gap: 7px; }
.startup-image-item { position: relative; width: 70px; height: 92px; border-radius: 7px; overflow: hidden; background: #f2f6f9; border: 1px solid #e7edf3; }
.startup-image-item img { width: 100%; height: 100%; object-fit: cover; }
.startup-image-item > span { position: absolute; left: 4px; bottom: 4px; padding: 0 4px; border-radius: 3px; background: rgba(0,0,0,.45); color: #fff; font-size: 7px; }
.startup-image-del { position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border: 0; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.startup-image-add { width: 70px; height: 92px; border: 1px dashed #cfd9e2; border-radius: 7px; background: #fbfcfd; color: #8b98a5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 8px; cursor: pointer; }
.startup-image-add:hover { border-color: var(--orange); color: var(--orange); background: #fff9f4; }
.startup-image-empty { grid-column: 1 / -1; padding: 10px 0; color: #a2afbb; font-size: 9px; }
.asset-picker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-height: 430px; overflow-y: auto; }
.asset-picker-item { padding: 0; border: 1px solid #e3eaf1; border-radius: 8px; overflow: hidden; background: #fff; text-align: left; cursor: pointer; }
.asset-picker-item:hover { border-color: var(--orange); box-shadow: 0 4px 14px rgba(255, 107, 0, .12); }
.asset-picker-item img { width: 100%; height: 96px; object-fit: cover; display: block; }
.asset-picker-item span { display: block; padding: 5px 6px; color: #687583; font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor-image-upload { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.editor-image-preview { width: 56px; height: 56px; border-radius: 7px; background: #f2f6f9; color: #a8b4c0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.editor-image-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-upload-preview { width: 52px; height: 52px; border-radius: 8px; background: #f2f6f9; color: #a7b3bf; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; }
.image-upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.image-upload-copy { flex: 1; min-width: 0; }
.image-upload-copy b { display: block; font-size: 11px; }
.image-upload-copy small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 9px; }
.mall-order-detail { display: flex; flex-direction: column; gap: 12px; }
.mall-order-address { display: flex; align-items: flex-start; gap: 7px; padding: 10px; border-radius: 7px; background: #f7f9fa; color: var(--muted); font-size: 11px; line-height: 1.6; }
.mall-order-address .ico { color: var(--orange); flex: 0 0 auto; margin-top: 1px; }
.mall-order-items { display: flex; flex-direction: column; gap: 6px; }
.mall-order-items > div { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 7px; }
.mall-order-color { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 7px; color: #fff; flex: 0 0 auto; }
.mall-order-items > div > div { flex: 1; min-width: 0; }
.mall-order-items b { display: block; font-size: 11px; }
.mall-order-items small { display: block; color: var(--muted-2); font-size: 9px; margin-top: 2px; }
.mall-order-items > div > strong { color: var(--orange-deep); font-size: 11px; }
.mall-order-total { display: flex; align-items: center; justify-content: space-between; padding-top: 6px; border-top: 1px dashed var(--line); font-size: 11px; }
.mall-order-total strong { color: var(--orange-deep); font-size: 17px; }
.stat-card > div > span { color: var(--muted); font-size: 11.5px; }
.stat-card strong { margin-top: 3px; color: var(--ink); font-size: 23px; line-height: 1.25; font-weight: 700; letter-spacing: -0.03em; white-space: nowrap; }
.stat-card strong small { font-size: 11px; color: var(--muted); font-weight: 500; margin-left: 3px; letter-spacing: 0; }
.stat-card em { margin-top: 3px; color: var(--muted-2); font-style: normal; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-card em .kpi-trend { display: inline-flex; margin-right: 4px; }
.content-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }

/* ==========================================================================
   Dashboard
   ========================================================================== */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); gap: 14px; margin-bottom: 15px; }
.welcome-panel {
  position: relative; overflow: hidden; min-height: 258px; padding: 24px 26px 21px;
  border-radius: var(--radius); color: #fff;
  background: radial-gradient(500px 300px at 100% 0%, rgba(255, 214, 168, 0.28), transparent 55%), linear-gradient(128deg, #ff7a18 0%, #f56000 55%, #d94b00 100%);
  box-shadow: 0 14px 30px rgba(224, 83, 0, 0.2);
  display: flex; flex-direction: column;
}
.welcome-orbs i { position: absolute; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); }
.welcome-orbs i:nth-child(1) { width: 210px; height: 210px; right: -45px; top: -85px; background: rgba(255, 255, 255, 0.025); }
.welcome-orbs i:nth-child(2) { width: 120px; height: 120px; right: 65px; bottom: -55px; background: rgba(255, 255, 255, 0.035); }
.welcome-orbs i:nth-child(3) { width: 62px; height: 62px; right: 32px; top: 90px; background: rgba(255, 255, 255, 0.04); }
.welcome-top { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.welcome-tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 6px; background: rgba(255, 255, 255, 0.14); color: #fff4eb; font-size: 10.5px; font-weight: 600; backdrop-filter: blur(6px); }
.welcome-date { color: rgba(255, 255, 255, 0.66); font-size: 10.5px; }
.welcome-panel h2 { position: relative; margin-top: 19px; font-size: 25px; letter-spacing: -0.035em; font-weight: 650; }
.welcome-panel > p { position: relative; max-width: 510px; margin-top: 7px; color: rgba(255, 255, 255, 0.78); font-size: 12px; line-height: 1.75; }
.welcome-panel > p b { color: #fff; }
.welcome-channels { position: relative; display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.welcome-channel { display: flex; align-items: center; gap: 8px; min-width: 128px; padding: 7px 9px; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 9px; background: rgba(255, 255, 255, 0.09); color: #fff; cursor: pointer; text-align: left; backdrop-filter: blur(6px); }
.welcome-channel:hover { background: rgba(255, 255, 255, 0.16); }
.channel-logo { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; background: rgba(255, 255, 255, 0.16); flex: 0 0 auto; }
.channel-logo.uniform { background: rgba(255, 255, 255, 0.12); }
.welcome-channel > span:nth-child(2) { flex: 1; min-width: 0; }
.welcome-channel b { display: block; font-size: 11px; font-weight: 600; }
.welcome-channel small { display: block; color: rgba(255, 255, 255, 0.6); font-size: 9px; margin-top: 1px; }
.welcome-channel .live-dot { width: 5px; height: 5px; background: #a8f0c9; box-shadow: 0 0 0 3px rgba(168, 240, 201, 0.14); }
.welcome-actions { position: relative; display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 17px; }
.welcome-link { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-size: 11.5px; font-weight: 600; }
.welcome-link.ghost { color: rgba(255, 255, 255, 0.66); font-weight: 500; }
.welcome-link:hover { text-decoration: underline; }
.kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.kpi-card { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 123px; padding: 15px 16px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.kpi-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.kpi-label { color: var(--muted); font-size: 11.5px; font-weight: 500; }
.kpi-icon { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 7px; background: #f8fafb; color: #8b96a3; }
.kpi-value { display: flex; align-items: baseline; gap: 3px; margin-top: 9px; white-space: nowrap; }
.kpi-value small { color: var(--ink-2); font-size: 12px; font-weight: 600; }
.kpi-value strong { color: var(--ink); font-size: 25px; line-height: 1.2; font-weight: 700; letter-spacing: -0.035em; }
.kpi-value em { color: var(--muted-2); font-size: 10px; font-style: normal; margin-left: 1px; }
.kpi-foot { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.kpi-foot > span:last-child { color: var(--muted-2); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-trend { display: inline-flex; align-items: center; gap: 1px; padding: 1px 5px; border-radius: 4px; font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.kpi-trend.up { color: #0e8a5f; background: #e9f8f1; }
.kpi-trend.down { color: #cf3a3f; background: #fff0f0; }
.kpi-trend.flat { color: #8a96a3; background: #f2f5f8; }
.kpi-spark { position: absolute; right: 10px; bottom: 7px; width: 96px; height: 30px; opacity: 0.85; }
.kpi-spark svg { width: 96px; height: 30px; }
.kpi-revenue .kpi-icon { background: var(--orange-soft); color: var(--orange); }
.kpi-orders .kpi-icon { background: var(--blue-soft); color: var(--blue); }
.kpi-members .kpi-icon { background: var(--purple-soft); color: var(--purple); }
.kpi-scans .kpi-icon { background: var(--green-soft); color: var(--green); }

.quick-actions-card { padding: 16px 18px 13px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 15px; }
.quick-actions { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 7px; }
.quick-action { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 8px 9px; border-radius: 9px; transition: background 0.16s ease; }
.quick-action:hover { background: #f8fafb; }
.qa-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; }
.quick-action > span:last-child { min-width: 0; }
.qa-icon.tone-orange { background: #fff2e8; color: var(--orange); }
.qa-icon.tone-blue { background: #edf3ff; color: var(--blue); }
.qa-icon.tone-green { background: #e9f8f1; color: var(--green); }
.qa-icon.tone-purple { background: #f2efff; color: var(--purple); }
.qa-icon.tone-teal { background: #e7f8f5; color: var(--teal); }
.qa-icon.tone-gray { background: #f2f4f7; color: #7f8b99; }
.quick-action b { display: block; font-size: 11.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-action small { display: block; color: var(--muted-2); font-size: 9.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }

.dash-main-grid { display: grid; grid-template-columns: minmax(0, 2.05fr) minmax(280px, 0.95fr); gap: 14px; margin-bottom: 14px; }
.chart-card { min-width: 0; overflow: hidden; }
.chart-summary { display: flex; align-items: flex-end; gap: 26px; padding: 0 20px 4px; }
.chart-summary > div { display: flex; flex-direction: column; gap: 1px; }
.chart-summary span { color: var(--muted); font-size: 10.5px; }
.chart-summary strong { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.chart-summary strong small { font-size: 10px; color: var(--muted); font-weight: 500; margin-left: 2px; }
.chart-updated { margin-left: auto; color: var(--muted-2); font-size: 9.5px; padding-bottom: 3px; }
.chart-block { padding: 8px 12px 9px 6px; }
.chart-legend { display: flex; align-items: center; gap: 15px; padding: 0 8px 0 14px; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10.5px; }
.legend-item i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.legend-item .axis-hint { color: #a8b2be; font-size: 8.5px; margin-left: 2px; }
.line-chart { display: block; width: 100%; height: auto; min-height: 210px; margin-top: 4px; }
.axis-label { fill: #9aa5b2; font-size: 10px; font-family: var(--font); }
.chart-block:hover circle { r: 4.4; }
.seg-control { display: inline-flex; align-items: center; gap: 2px; padding: 3px; background: #f3f5f8; border-radius: 8px; }
.seg-control button { height: 26px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 11px; cursor: pointer; }
.seg-control button:hover { color: var(--ink-2); }
.seg-control button.active { background: #fff; color: var(--orange-deep); box-shadow: 0 1px 3px rgba(20, 30, 45, 0.1); font-weight: 600; }

.todo-card { display: flex; flex-direction: column; min-width: 0; }
.todo-list { padding: 0 10px; flex: 1; }
.todo-item { display: flex; align-items: center; gap: 9px; padding: 9px 8px; border-radius: 8px; }
.todo-item:hover { background: #f8fafb; }
.todo-icon { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 8px; flex: 0 0 auto; }
.todo-icon.tone-orange { background: #fff2e8; color: #e96400; }
.todo-icon.tone-blue { background: #edf3ff; color: #2f6feb; }
.todo-icon.tone-red { background: #fff0f0; color: #df4046; }
.todo-icon.tone-purple { background: #f2efff; color: #7153ed; }
.todo-icon.tone-teal { background: #e7f8f5; color: #0c8b7d; }
.todo-icon.tone-gray { background: #f2f4f7; color: #7f8b99; }
.todo-text { flex: 1; min-width: 0; }
.todo-text b { display: block; color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.todo-text small { display: block; color: var(--muted-2); font-size: 9.5px; margin-top: 1px; }
.todo-item > strong { color: #b9c1ca; font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.todo-item > strong.has { color: var(--ink); }
.todo-item > .ico { color: #c4ccd5; }
.todo-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding: 11px 17px; border-top: 1px solid var(--line-2); }
.todo-footer span, .todo-footer a { display: inline-flex; align-items: center; gap: 4px; color: var(--muted-2); font-size: 9.5px; }
.todo-footer a { color: var(--orange); font-weight: 600; }

.dash-three-grid { display: grid; grid-template-columns: 1fr 1fr 1.1fr; gap: 14px; margin-bottom: 19px; }
.mini-card { min-width: 0; }
.donut-wrap { display: flex; align-items: center; gap: 17px; padding: 2px 20px 19px; }
.donut-canvas { position: relative; flex: 0 0 auto; }
.donut-canvas svg { display: block; }
.donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut-center strong { font-size: 19px; font-weight: 700; letter-spacing: -0.03em; }
.donut-center span { color: var(--muted-2); font-size: 9px; margin-top: 1px; }
.donut-legend { flex: 1; min-width: 0; }
.legend-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; border-bottom: 1px dashed #f0f3f6; }
.legend-row:last-child { border-bottom: 0; }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10.5px; }
.legend-row i { width: 7px; height: 7px; border-radius: 2px; }
.legend-row b { color: var(--ink-2); font-size: 11.5px; font-weight: 600; }
.rank-list { padding: 0 12px 10px; }
.rank-item { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-radius: 7px; }
.rank-item:hover { background: #f8fafb; }
.rank-no { width: 17px; height: 17px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; background: #f2f4f7; color: #9aa5b2; font-size: 9.5px; font-weight: 700; }
.rank-no.top { background: #fff1e5; color: #e86100; }
.rank-icon { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 7px; background: #f7f9fb; color: #8b96a3; }
.rank-name { flex: 1; min-width: 0; }
.rank-name b { display: block; font-size: 10.5px; font-weight: 600; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-name small { display: block; color: var(--muted-2); font-size: 9px; margin-top: 1px; }
.rank-item > strong { color: var(--ink); font-size: 12px; font-weight: 650; }
.rank-item > strong small { color: var(--muted-2); font-size: 9px; font-weight: 400; }
.mini-empty { padding: 24px 16px; text-align: center; color: var(--muted-2); font-size: 11px; }

.channel-section { margin-bottom: 18px; }
.channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.channel-card { padding: 17px 18px 15px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.channel-card.laundry { background: linear-gradient(145deg, #fff 40%, #fff8f2 100%); }
.channel-card.uniform { background: linear-gradient(145deg, #fff 40%, #f2fbf8 100%); }
.channel-card-top { display: flex; align-items: center; gap: 10px; }
.channel-app-icon { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; border-radius: 11px; background: var(--orange-soft); color: var(--orange); flex: 0 0 auto; }
.channel-app-icon.green, .channel-app-icon.teal { background: var(--teal-soft); color: var(--teal); }
.channel-title { flex: 1; min-width: 0; }
.channel-title b, .channel-title h2 { display: block; font-size: 14px; font-weight: 650; }
.channel-title small { display: block; color: var(--muted-2); font-size: 9.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.channel-title > div { display: flex; align-items: center; gap: 8px; }
.channel-card > p { margin: 12px 0 3px; color: var(--muted); font-size: 10.5px; line-height: 1.65; min-height: 34px; }
.channel-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 11px 0; padding: 10px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.channel-stats > div { text-align: left; }
.channel-stats strong { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.03em; }
.channel-stats span { display: block; color: var(--muted-2); font-size: 9px; margin-top: 1px; }
.channel-actions { display: flex; gap: 7px; justify-content: flex-end; }
.recent-card { overflow: hidden; }
.type-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 5px; background: #f3f6f9; color: #6c7a89; font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.type-pill.uniform { background: var(--teal-soft); color: #0b8175; }
.type-pill.laundry { background: var(--orange-soft); color: #d75c00; }
.row-arrow { color: #c6ced7; width: 28px; }

/* ==========================================================================
   Tables / filters / pagination
   ========================================================================== */
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table th { height: 39px; padding: 0 13px; background: #fafbfc; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); color: #8b96a3; font-size: 10.5px; font-weight: 600; text-align: left; white-space: nowrap; }
.data-table td { padding: 11px 13px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background 0.14s ease; }
.data-table tbody tr[data-order], .data-table tbody tr[data-batch], .data-table tbody tr[data-member] { cursor: pointer; }
.data-table tbody tr:hover { background: #fbfcfd; }
.data-table td b { color: var(--ink); font-weight: 600; }
.data-table .muted { color: var(--muted-2); font-size: 10.5px; white-space: nowrap; }
.recent-table th { background: #fff; border-top: 0; }
.recent-table td { padding-top: 12px; padding-bottom: 12px; }
.recent-table tbody tr:hover { background: #fcfdfe; }
.filter-bar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; padding: 13px 18px; border-bottom: 1px solid var(--line-2); background: #fff; }
.inline-search { position: relative; display: flex; align-items: center; gap: 6px; width: 210px; height: 34px; padding: 0 10px; border: 1px solid #dfe5eb; border-radius: 8px; background: #fff; color: #9aa5b2; }
.inline-search.wide { width: 285px; }
.inline-search .ico { flex: 0 0 auto; }
.inline-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 11.5px; }
.inline-search input::placeholder { color: #a8b2be; }
.filter-count { margin-left: auto; color: var(--muted-2); font-size: 10.5px; }
.pagination-wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line-2); }
.page-total { color: var(--muted-2); font-size: 10.5px; }
.pagination { display: flex; align-items: center; gap: 4px; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 27px; height: 27px; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--muted); font-size: 11px; cursor: pointer; }
.page-btn:hover:not(:disabled) { border-color: #ffd0ae; color: var(--orange-deep); }
.page-btn.active { border-color: var(--orange); background: var(--orange); color: #fff; }
.page-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.page-gap { color: #b5bec8; font-size: 11px; padding: 0 3px; }

/* ==========================================================================
   Tabs / content cards
   ========================================================================== */
.tabs-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 18px; border-bottom: 1px solid var(--line); min-height: 53px; }
.tabs { display: flex; align-items: stretch; gap: 24px; height: 53px; }
.tabs button { position: relative; display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.tabs button:hover { color: var(--ink-2); }
.tabs button.active { color: var(--ink); font-weight: 650; }
.tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--orange); }
.tabs button > span { display: inline-flex; align-items: center; height: 17px; padding: 0 5px; border-radius: 4px; background: #f2f4f7; color: #8e99a6; font-size: 9.5px; font-weight: 600; }
.tabs button.active > span { background: var(--orange-soft); color: var(--orange-deep); }
.tab-tools { display: flex; align-items: center; gap: 10px; }
.tab-tools .muted { font-size: 10.5px; }

/* ==========================================================================
   Store
   ========================================================================== */
.store-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 24px; margin-bottom: 14px; background: linear-gradient(115deg, #fff 35%, #fffaf6 100%); }
.store-identity { display: flex; align-items: flex-start; gap: 15px; min-width: 0; }
.store-logo { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 14px; background: linear-gradient(145deg, #ff8a2a, #f25a00); color: #fff; font-size: 18px; font-weight: 800; letter-spacing: -0.05em; box-shadow: 0 8px 18px rgba(255, 107, 0, 0.2); flex: 0 0 auto; }
.store-title { min-width: 0; }
.store-title-row { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.store-title-row h2 { font-size: 20px; letter-spacing: -0.02em; }
.store-title > p { margin-top: 5px; color: var(--muted); font-size: 11.5px; line-height: 1.6; max-width: 600px; }
.store-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 10px; }
.store-meta span { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 10.5px; }
.store-meta .ico { color: #a7b1bc; }
.store-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(80px, 1fr)); gap: 0; flex: 0 0 auto; border-left: 1px solid var(--line); margin-left: 10px; }
.store-stat-grid > div { padding: 2px 18px; border-right: 1px solid var(--line-2); text-align: left; }
.store-stat-grid > div:last-child { border-right: 0; }
.store-stat-grid span { display: block; color: var(--muted); font-size: 9.5px; white-space: nowrap; }
.store-stat-grid strong { display: block; margin: 2px 0 1px; font-size: 22px; letter-spacing: -0.03em; font-weight: 700; }
.store-stat-grid strong small { color: var(--muted); font-size: 10px; font-weight: 500; margin-left: 2px; }
.store-stat-grid em { display: block; color: var(--muted-2); font-style: normal; font-size: 9px; white-space: nowrap; }
.store-layout { display: grid; grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.8fr); gap: 14px; align-items: start; }
.shop-preview-card { overflow: hidden; }
.phone-stage { display: flex; align-items: flex-start; gap: 26px; padding: 14px 22px 24px; background: radial-gradient(420px 280px at 20% 35%, #f4f7fa, transparent 70%); }
.phone-frame { position: relative; width: 272px; flex: 0 0 auto; padding: 9px; background: #1b222b; border-radius: 31px; box-shadow: 0 20px 40px rgba(20, 30, 45, 0.18); }
.phone-notch { position: absolute; z-index: 2; left: 50%; top: 13px; transform: translateX(-50%); width: 78px; height: 15px; border-radius: 10px; background: #1b222b; }
.phone-screen { position: relative; overflow: hidden; height: 480px; border-radius: 24px; background: #f6f8fa; display: flex; flex-direction: column; }
.phone-status { display: flex; align-items: center; justify-content: space-between; height: 27px; padding: 0 17px; color: #1d2733; font-size: 8px; font-weight: 600; }
.phone-status > span:last-child { display: inline-flex; gap: 3px; }
.phone-store-head { display: flex; align-items: center; justify-content: space-between; padding: 3px 16px 8px; }
.phone-store-head small { display: block; color: #88939f; font-size: 7px; }
.phone-store-head b { display: block; font-size: 12px; margin-top: 1px; }
.phone-avatar { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 8px; font-weight: 700; }
.phone-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; margin: 0 12px; padding: 13px 13px; min-height: 92px; border-radius: 11px; background: linear-gradient(135deg, #ff7a18, #f25800); color: #fff; }
.phone-banner small { color: rgba(255, 255, 255, 0.76); font-size: 6.5px; }
.phone-banner strong { display: block; margin-top: 4px; font-size: 12px; line-height: 1.45; letter-spacing: -0.02em; }
.phone-banner span { display: inline-block; margin-top: 7px; font-size: 7px; padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.18); }
.phone-bubble { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, 0.13); border: 1px solid rgba(255, 255, 255, 0.2); }
.phone-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 12px 9px 8px; }
.phone-cats > div { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.phone-cats .pc { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; }
.pc.orange { background: #fff0e4; color: var(--orange); }
.pc.blue { background: #edf3ff; color: var(--blue); }
.pc.green { background: #e9f8f1; color: var(--green); }
.pc.purple { background: #f2efff; color: var(--purple); }
.phone-cats small { color: #5b6672; font-size: 6.5px; }
.phone-section-title { display: flex; align-items: center; justify-content: space-between; padding: 4px 15px 5px; }
.phone-section-title b { font-size: 8.5px; }
.phone-section-title span { color: #a0a9b2; font-size: 6.5px; }
.phone-product { display: flex; align-items: center; gap: 7px; margin: 0 11px 6px; padding: 7px; border-radius: 8px; background: #fff; }
.phone-product-img { display: inline-flex; align-items: center; justify-content: center; width: 31px; height: 31px; border-radius: 7px; background: #fff3e9; color: var(--orange); flex: 0 0 auto; }
.phone-product-img.green { background: #eaf8f2; color: var(--green); }
.phone-product > div { flex: 1; min-width: 0; }
.phone-product b { display: block; font-size: 7.5px; }
.phone-product small { display: block; color: #9aa3ad; font-size: 6px; margin-top: 1px; }
.phone-product > strong { font-size: 9px; color: var(--orange-deep); }
.phone-tabbar { display: flex; align-items: center; justify-content: space-around; margin-top: auto; padding: 7px 4px 9px; border-top: 1px solid #eef1f4; background: #fff; }
.phone-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #a0a9b2; font-size: 6px; }
.phone-tabbar span.on { color: var(--orange); }
.preview-side { flex: 1; min-width: 0; padding-top: 8px; }
.preview-label { display: block; color: var(--muted-2); font-size: 10px; margin-bottom: 8px; }
.preview-channel { display: flex; align-items: center; gap: 8px; padding: 9px 10px; margin-bottom: 7px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.preview-channel > div { flex: 1; min-width: 0; }
.preview-channel b { display: block; font-size: 11px; }
.preview-channel small { display: block; color: var(--muted-2); font-size: 9px; margin-top: 1px; }
.preview-note { display: flex; align-items: flex-start; gap: 5px; margin: 14px 0; color: var(--muted-2); font-size: 9.5px; line-height: 1.6; }
.preview-note .ico { margin-top: 2px; color: var(--orange); }
.store-side { display: flex; flex-direction: column; gap: 14px; }
.setup-card .setup-count { color: var(--orange); font-size: 18px; letter-spacing: -0.03em; }
.setup-progress { padding: 0 18px 16px; }
.setup-row { display: flex; align-items: center; gap: 8px; min-height: 32px; border-bottom: 1px dashed #f0f3f6; }
.setup-row:last-child { border-bottom: 0; }
.setup-check { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: #f2f4f7; color: #b3bcc6; flex: 0 0 auto; }
.setup-row.done .setup-check { background: #e9f8f1; color: var(--green); }
.setup-row a { flex: 1; color: var(--ink-2); font-size: 11.5px; }
.setup-row.done a { color: #7e8a99; text-decoration: line-through; text-decoration-color: #dbe1e7; }
.setup-row small { color: var(--green); font-size: 9px; }
.setup-row small.todo { color: var(--orange); }
.info-list { padding: 2px 18px 14px; }
.info-list > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed #f1f4f7; }
.info-list > div:last-child { border-bottom: 0; }
.info-list span { color: var(--muted); font-size: 10.5px; }
.info-list b { font-size: 11px; font-weight: 600; }
.campus-row { display: flex; align-items: center; gap: 9px; padding: 9px 18px; border-top: 1px solid var(--line-2); }
.campus-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: 0 0 auto; }
.campus-row > div { flex: 1; min-width: 0; }
.campus-row b { display: block; font-size: 11.5px; }
.campus-row small { display: block; color: var(--muted-2); font-size: 9.5px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.store-channels-card { margin-top: 14px; }
.bound-channel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 18px 18px; }
.bound-channel { display: flex; align-items: center; gap: 11px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 10px; }
.bound-icon { display: inline-flex; align-items: center; justify-content: center; width: 39px; height: 39px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); flex: 0 0 auto; }
.bound-icon.uniform { background: var(--teal-soft); color: var(--teal); }
.bound-channel > div { flex: 1; min-width: 0; }
.bound-channel b { display: block; font-size: 12px; }
.bound-channel small { display: block; color: var(--muted-2); font-size: 9.5px; margin-top: 1px; }
.qr-panel { display: flex; flex-direction: column; align-items: center; padding: 8px 10px 5px; text-align: center; }
.qr-frame { padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(20, 30, 45, 0.06); }
.qr-frame img { display: block; width: 210px; height: 210px; border-radius: 5px; }
.qr-panel > strong { margin-top: 13px; font-size: 14px; }
.qr-panel > p { margin-top: 4px; color: var(--muted); font-size: 10px; word-break: break-all; }
.qr-panel > small { margin-top: 12px; color: var(--muted-2); font-size: 9.5px; }
.qr-actions { display: flex; gap: 8px; margin-top: 13px; }
.qr-loading { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 130px; color: var(--muted); font-size: 12px; }
.qr-loading.error, .drawer-error { color: var(--red); display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 120px; font-size: 12px; }

/* ==========================================================================
   Products
   ========================================================================== */
.package-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; padding: 16px 18px 20px; background: #fbfcfd; }
.package-card { display: flex; flex-direction: column; min-width: 0; padding: 15px 15px 12px; border: 1px solid var(--line); border-radius: 11px; background: #fff; transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease; }
.package-card:hover { border-color: #ffd4b5; box-shadow: 0 8px 22px rgba(255, 107, 0, 0.07); transform: translateY(-1px); }
.package-card.disabled { opacity: 0.65; }
.package-top { display: flex; align-items: center; gap: 5px; min-height: 22px; }
.package-type { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 4px; background: #f2f4f7; color: #75818e; font-size: 9px; font-weight: 600; }
.package-badge { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 4px; background: var(--orange-soft); color: var(--orange-deep); font-size: 9px; font-weight: 600; }
.package-top .badge { margin-left: auto; font-size: 9.5px; min-height: 19px; padding: 1px 6px; }
.package-name { margin-top: 9px; }
.package-name h3 { font-size: 14px; font-weight: 650; }
.package-name small { display: block; margin-top: 2px; color: var(--muted-2); font-family: var(--mono); font-size: 9px; }
.package-price { display: flex; align-items: baseline; gap: 7px; margin-top: 9px; }
.package-price strong { color: var(--orange-deep); font-size: 23px; font-weight: 700; letter-spacing: -0.04em; }
.package-price del { color: #b0b9c3; font-size: 10px; }
.package-desc { flex: 1; min-height: 33px; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.package-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.package-meta span { display: inline-flex; align-items: center; gap: 3px; padding: 2px 5px; border-radius: 4px; background: #f8fafb; color: #8a96a3; font-size: 8.5px; }
.package-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 11px; padding-top: 9px; border-top: 1px dashed var(--line); }
.product-cell { display: flex; align-items: center; gap: 9px; min-width: 205px; }
.product-thumb { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--orange-soft); color: var(--orange); flex: 0 0 auto; }
.product-cell b { display: block; font-size: 12px; font-weight: 600; }
.product-cell small { display: block; color: var(--muted-2); font-size: 9.5px; margin-top: 1px; }
.row-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }

/* ==========================================================================
   Orders
   ========================================================================== */
.order-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; padding: 15px 18px; border-bottom: 1px solid var(--line-2); }
.order-stats > div { display: flex; align-items: center; gap: 10px; padding: 0 17px; border-right: 1px solid var(--line-2); }
.order-stats > div:first-child { padding-left: 0; }
.order-stats > div:last-child { border-right: 0; }
.os-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; }
.os-icon.orange { background: var(--orange-soft); color: var(--orange); }
.os-icon.green { background: var(--green-soft); color: var(--green); }
.os-icon.blue { background: var(--blue-soft); color: var(--blue); }
.os-icon.purple { background: var(--purple-soft); color: var(--purple); }
.order-stats b { display: block; font-size: 19px; line-height: 1.2; font-weight: 700; letter-spacing: -0.03em; }
.order-stats b em { color: var(--muted-2); font-size: 11px; font-style: normal; font-weight: 500; }
.order-stats small { display: block; color: var(--muted); font-size: 9.5px; margin-top: 1px; }
.next-label { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 4px; background: #fff7f1; color: #d76300; font-size: 9.5px; font-weight: 600; white-space: nowrap; }
.orders-table th, .orders-table td { padding-left: 12px; padding-right: 12px; }
.order-hero { display: flex; align-items: flex-start; gap: 13px; padding: 16px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(140deg, #fff 50%, #fff9f4 100%); }
.detail-cover { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 11px; background: var(--orange-soft); color: var(--orange); flex: 0 0 auto; }
.order-cover { background: #fff3e9; }
.batch-cover { background: var(--blue-soft); color: var(--blue); }
.order-head-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order-head-row h3 { font-size: 14px; }
.order-hero > div:nth-child(2) { flex: 1; min-width: 0; }
.order-hero p { margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.order-amount { text-align: right; flex: 0 0 auto; }
.order-amount span { display: block; color: var(--muted-2); font-size: 9px; }
.order-amount strong { display: block; color: var(--orange-deep); font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 9px; }
.detail-tags span { display: inline-flex; align-items: center; padding: 2px 6px; border-radius: 4px; background: #f6f8fa; color: #7d8996; font-size: 9px; }
.order-progress { display: flex; align-items: flex-start; justify-content: space-between; gap: 3px; margin: 18px 0 3px; padding: 13px 5px 14px; border-bottom: 1px dashed var(--line); }
.step { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; min-width: 0; }
.step::before { content: ""; position: absolute; top: 9px; left: 50%; right: -50%; height: 1px; background: #edf1f5; z-index: 0; }
.step:last-child::before { display: none; }
.step.done::before { background: #b9e8d4; }
.step-dot { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 50%; border: 1px solid #e1e7ed; background: #fff; color: #aab5c0; font-size: 8px; font-weight: 600; }
.step.done .step-dot { background: var(--green); border-color: var(--green); color: #fff; }
.step.current .step-dot { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.13); }
.step b { font-size: 9px; font-weight: 600; color: #7e8a99; white-space: nowrap; }
.step.done b, .step.current b { color: var(--ink-2); }
.step small { color: #b2bcc6; font-size: 7.5px; white-space: nowrap; transform: scale(0.95); }
.detail-section { margin-top: 18px; }
.detail-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.detail-section-head h4 { font-size: 11.5px; font-weight: 650; }
.detail-section-head .muted { font-size: 9.5px; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; border: 1px solid var(--line); border-radius: 9px; padding: 4px 13px; }
.detail-grid > div { display: flex; flex-direction: column; gap: 2px; padding: 7px 0; border-bottom: 1px dashed #f0f3f6; min-width: 0; }
.detail-grid > div:nth-last-child(-n+2) { border-bottom: 0; }
.detail-grid > div.span-2 { grid-column: span 2; }
.detail-grid span { color: var(--muted-2); font-size: 9px; }
.detail-grid b { color: var(--ink-2); font-size: 10.5px; font-weight: 600; word-break: break-word; }
.alert-box { display: flex; align-items: flex-start; gap: 7px; margin-top: 12px; padding: 9px 11px; border-radius: 8px; background: #f8fafb; border: 1px solid var(--line); color: var(--muted); font-size: 10px; line-height: 1.6; }
.alert-box .ico { flex: 0 0 auto; margin-top: 1px; color: var(--orange); }
.alert-box.danger { background: var(--red-soft); border-color: #ffdede; color: #b53a3e; }
.alert-box.danger .ico { color: var(--red); }
.timeline { position: relative; padding-left: 3px; }
.timeline-item { position: relative; display: flex; gap: 10px; padding: 0 0 13px 14px; border-left: 1px solid #edf1f5; margin-left: 4px; }
.timeline-item:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-dot { position: absolute; left: -4px; top: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px #fff3e9; }
.timeline-item b { display: block; font-size: 10.5px; }
.timeline-item p { color: var(--muted); font-size: 9.5px; margin-top: 1px; }
.timeline-item small { display: block; color: var(--muted-2); font-size: 8.5px; margin-top: 2px; }
.device-picker { display: flex; flex-direction: column; gap: 7px; }
.device-option { position: relative; display: flex; align-items: center; gap: 9px; padding: 10px 11px; border: 1px solid var(--line); border-radius: 9px; cursor: pointer; }
.device-option:has(input:checked) { border-color: #ffc49b; background: #fffaf6; }
.device-option input { position: absolute; opacity: 0; }
.device-radio { width: 15px; height: 15px; border: 1.5px solid #ccd5df; border-radius: 50%; flex: 0 0 auto; }
.device-option:has(input:checked) .device-radio { border: 4px solid var(--orange); }
.device-icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: #f5f7fa; color: #7c8997; }
.device-info { flex: 1; min-width: 0; }
.device-info b { display: block; font-size: 11.5px; }
.device-info small { display: block; color: var(--muted-2); font-size: 9px; margin-top: 1px; }
.size-plan { display: flex; flex-wrap: wrap; gap: 7px; }
.size-plan > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 110px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; background: #fbfcfd; }
.size-plan span { color: var(--muted); font-size: 10px; }
.size-plan b { font-size: 10.5px; }
.size-input-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.size-input-head b { font-size: 11.5px; }
.size-input-head span { color: var(--muted-2); font-size: 9.5px; }
.size-input-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.size-input { display: flex; flex-direction: column; gap: 4px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.size-input span { color: var(--muted); font-size: 9.5px; }
.size-input input { height: 32px; padding: 0 8px; }
.size-total { margin-top: 8px; text-align: right; color: var(--muted); font-size: 10px; }
.size-total b { color: var(--orange-deep); font-size: 13px; }
.print-list { display: flex; flex-direction: column; gap: 5px; }
.print-row { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 7px; background: #f8fafb; }
.print-row span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 10px; }
.print-row b { margin-left: auto; font-size: 10px; }
.print-row small { color: var(--muted-2); font-size: 8.5px; }

/* ==========================================================================
   Members
   ========================================================================== */
.member-cell { display: flex; align-items: center; gap: 9px; min-width: 150px; }
.member-cell b { display: block; font-size: 12px; }
.member-cell small { display: block; color: var(--muted-2); font-size: 9.5px; margin-top: 1px; }
.data-page { max-width: 1320px; }
.data-kpi-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin-bottom: 14px; }
.data-kpi-grid.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.data-kpi { padding: 15px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.data-kpi span { display: block; color: #687583; font-size: 9.5px; }
.data-kpi strong { display: block; margin-top: 9px; color: #1e2833; font-size: 23px; line-height: 1.1; }
.data-kpi small { display: block; margin-top: 7px; color: #9aa6b2; font-size: 8px; }
.data-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.data-panel { padding: 15px 17px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 0; }
.data-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.data-panel-head b { font-size: 11px; }
.data-panel-head span { color: #9aa6b2; font-size: 8px; }
.data-chart { display: flex; align-items: flex-end; gap: 4px; height: 150px; padding: 0 3px; border-bottom: 1px solid #edf1f5; }
.data-chart-col { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; position: relative; }
.data-chart-col i { width: 58%; max-width: 17px; min-height: 2px; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #ffb27a, var(--orange)); }
.data-chart-col span { color: #a1acb6; font-size: 6px; white-space: nowrap; }
.data-chart-col b { display: none; }
.data-chart-col:hover b { display: block; position: absolute; bottom: 18px; padding: 3px 5px; border-radius: 3px; background: #1e2833; color: #fff; font-size: 7px; white-space: nowrap; }
.data-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.data-list-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f2f5f8; color: #65717f; font-size: 9px; }
.data-list-row b { color: #334155; }
.data-note { color: #8b97a3; font-size: 10px; line-height: 1.8; }
.data-revise { padding: 20px; max-width: 560px; display: flex; flex-direction: column; gap: 12px; }
.data-range button { font-size: 9px; }
@media (max-width: 1100px) {
  .data-kpi-grid, .data-kpi-grid.five { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .data-kpi-grid, .data-kpi-grid.five { grid-template-columns: 1fr 1fr; }
  .data-two-col { grid-template-columns: 1fr; }
}
.member-page { max-width: 1320px; }
.member-overview-top { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.member-overview-card { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.member-overview-card span { display: block; color: #687583; font-size: 10px; }
.member-overview-card strong { display: block; margin-top: 7px; color: #1e2833; font-size: 26px; line-height: 1; }
.member-overview-card small { display: block; margin-top: 6px; color: #9aa6b2; font-size: 8.5px; }
.member-overview-card i { width: 44px; height: 44px; border-radius: 13px; display: flex; align-items: center; justify-content: center; font-style: normal; }
.member-overview-card i.green { background: #eaf8ef; color: #22a55d; }
.member-overview-card i.blue { background: #eef5ff; color: #2f6feb; }
.member-overview-card i.orange { background: #fff3e8; color: #f07a18; }
.member-overview-card i.purple { background: #f4efff; color: #7c3aed; }
.member-split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.member-panel { padding: 15px 17px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.member-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.member-panel-head b { font-size: 11px; }
.member-donut-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; padding: 10px 4px; }
.member-donut-item { display: flex; align-items: center; gap: 10px; }
.member-donut { width: 78px; height: 78px; border-radius: 50%; background: conic-gradient(var(--c) calc(var(--p) * 1%), #eef2f6 0); display: flex; align-items: center; justify-content: center; }
.member-donut::after { content: ""; width: 54px; height: 54px; border-radius: 50%; background: #fff; }
.member-donut-item b { display: block; color: #46525e; font-size: 10px; }
.member-donut-item small { display: block; margin-top: 4px; color: #9aa6b2; font-size: 8.5px; }
.member-chart-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.member-chart-sum { margin: -4px 0 8px; color: #8d99a5; font-size: 9px; }
.member-chart-sum b { color: var(--orange); }
.member-range { display: flex; gap: 3px; }
.member-range button { padding: 4px 7px; border: 1px solid #e7edf3; border-radius: 3px; background: #fff; color: #8b97a3; font-size: 8px; cursor: pointer; }
.member-range button.active { border-color: var(--orange); background: var(--orange); color: #fff; }
.member-bars { display: flex; align-items: flex-end; gap: 5px; height: 130px; padding: 0 3px; border-bottom: 1px solid #edf1f5; }
.member-bar-col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.member-bar-col i { width: 60%; max-width: 16px; min-height: 2px; border-radius: 2px 2px 0 0; background: linear-gradient(180deg, #ffb27a, var(--orange)); }
.member-bar-col span { color: #a1acb6; font-size: 6px; white-space: nowrap; }
.member-filter { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: #fbfcfd; }
.member-filter .inline-search { width: 220px; }
.member-filter select.input { width: 130px; height: 30px; padding: 0 8px; font-size: 9px; }
.member-name-cell { display: flex; align-items: center; gap: 8px; }
.member-avatar { width: 30px; height: 30px; border-radius: 50%; background: #eef5ff; color: #2f6feb; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 600; }
.member-name-cell b { display: block; font-size: 10px; }
.member-name-cell small { display: block; color: #9aa6b2; font-size: 8px; }
.member-tag { display: inline-flex; margin: 2px 3px 2px 0; padding: 3px 6px; border-radius: 4px; background: #fff2e8; color: #d96300; font-size: 8px; }
.member-table td { font-size: 9px; }
.member-import-card { padding: 6px 20px 18px; }
.member-import-row { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid #f0f3f6; }
.member-import-row > b { width: 22px; height: 22px; border-radius: 50%; background: #fff2e8; color: #d96300; display: flex; align-items: center; justify-content: center; font-size: 10px; flex: 0 0 auto; }
.member-import-row span { color: #334155; font-size: 11px; font-weight: 600; }
.member-import-row p { margin: 5px 0 8px; color: #8b97a3; font-size: 9px; line-height: 1.7; }
.member-import-row label { margin-right: 14px; color: #64748b; font-size: 9px; }
.member-detail { display: flex; flex-direction: column; gap: 14px; }
.member-profile { display: flex; align-items: flex-start; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: linear-gradient(140deg, #fff 55%, #fff8f2 100%); }
.member-profile h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.member-profile p { color: var(--muted); font-size: 10.5px; margin-top: 3px; }
.member-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 15px 0 4px; padding: 12px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.member-metrics > div { padding: 0 12px; border-right: 1px solid var(--line-2); }
.member-metrics > div:first-child { padding-left: 0; }
.member-metrics > div:last-child { border-right: 0; }
.member-metrics span { display: block; color: var(--muted-2); font-size: 9px; }
.member-metrics strong { display: block; margin-top: 2px; font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.member-metrics small { color: var(--muted); font-size: 9px; font-weight: 500; margin-left: 2px; }
.member-cards { display: flex; gap: 8px; flex-wrap: wrap; }
.member-card { position: relative; width: 158px; padding: 12px; border-radius: 10px; background: linear-gradient(135deg, #262e39, #3a4451); color: #fff; overflow: hidden; }
.member-card::after { content: ""; position: absolute; width: 80px; height: 80px; right: -22px; bottom: -30px; border-radius: 50%; background: rgba(255, 107, 0, 0.3); }
.mc-type { display: inline-block; padding: 2px 5px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); color: #ffb27a; font-size: 8px; }
.member-card b { display: block; margin-top: 5px; font-size: 12px; }
.member-card small { display: block; color: #aeb7c2; font-size: 9px; margin-top: 1px; }
.member-card > span:last-child { display: block; margin-top: 9px; color: #8e99a5; font-size: 8px; }
.mini-order-list { border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.mini-order { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); font-size: 10px; }
.mini-order:last-child { border-bottom: 0; }
.mini-order > span:first-child { flex: 1; min-width: 0; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-order > span:nth-child(2) { color: var(--muted-2); font-size: 9px; }
.mini-order > b { font-size: 10px; }

/* ==========================================================================
   Analytics
   ========================================================================== */
.analytics-kpis { grid-template-columns: repeat(3, 1fr) !important; }
.analytics-chart-card { margin-bottom: 14px; }
.analytics-summary { border-bottom: 1px solid var(--line-2); padding-bottom: 13px; margin-bottom: 0; }
.analytics-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.insight-strip { display: flex; align-items: flex-start; gap: 5px; margin: 0 18px 14px; padding: 8px 10px; border-radius: 7px; background: #fbf8ff; color: #71618e; font-size: 9.5px; line-height: 1.6; }
.insight-strip .ico { color: var(--purple); flex: 0 0 auto; margin-top: 1px; }
.campus-bars { padding: 0 18px 8px; }
.campus-bar-row { margin-bottom: 10px; }
.campus-bar-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.campus-bar-label span { color: var(--ink-2); font-size: 10px; }
.campus-bar-label b { color: var(--muted); font-size: 9.5px; }
.bar-track { height: 6px; border-radius: 999px; background: #f1f4f7; overflow: hidden; }
.bar-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff9a4d, var(--orange)); }
.completion-box { display: flex; align-items: center; gap: 12px; margin: 6px 18px 16px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.ring-chart { position: relative; width: 75px; height: 75px; flex: 0 0 auto; }
.ring-chart svg { display: block; width: 75px; height: 75px; }
.ring-chart > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-chart strong { font-size: 16px; letter-spacing: -0.03em; }
.ring-chart span { color: var(--muted-2); font-size: 7px; }
.completion-copy b { display: block; font-size: 12px; }
.completion-copy span { display: block; color: var(--muted); font-size: 9.5px; margin-top: 1px; }
.completion-copy small { display: block; color: var(--muted-2); font-size: 8px; margin-top: 4px; }
.spender-list { padding: 0 12px 10px; }
.spender-row { display: flex; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 7px; }
.spender-row:hover { background: #f8fafb; }
.spender-no { width: 16px; color: #a1acb8; font-size: 9px; font-weight: 700; }
.spender-no.top { color: var(--orange); }
.spender-avatar { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border-radius: 50%; background: #f2f5f8; color: #7d8996; font-size: 10px; font-weight: 600; }
.spender-info { flex: 1; min-width: 0; }
.spender-info b { display: block; font-size: 10.5px; }
.spender-info small { display: block; color: var(--muted-2); font-size: 9px; margin-top: 1px; }
.spender-row > strong { font-size: 10.5px; }
.analytics-bottom { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
.insight-card { display: flex; gap: 14px; padding: 17px 18px; background: linear-gradient(140deg, #fff 45%, #fbf8ff 100%); }
.insight-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 11px; background: var(--purple-soft); color: var(--purple); flex: 0 0 auto; }
.insight-card .card-head { padding: 0 0 8px; }
.insight-list { display: flex; flex-direction: column; gap: 7px; }
.insight-list > div { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 10px; line-height: 1.65; }
.insight-list .ico { flex: 0 0 auto; margin-top: 1px; color: var(--green); }
.insight-list b { color: var(--ink-2); }
.export-card { display: flex; flex-direction: column; align-items: flex-start; padding: 18px; background: linear-gradient(140deg, #1d242e, #2a333f); color: #fff; border-color: #2b3440; }
.export-illustration { display: flex; align-items: center; justify-content: center; width: 45px; height: 45px; border-radius: 11px; background: rgba(255, 122, 24, 0.17); color: #ff9a54; margin-bottom: 10px; }
.export-card h3 { font-size: 14px; }
.export-card p { margin: 4px 0 13px; color: #a5afba; font-size: 10px; line-height: 1.6; }
.export-card .btn { margin-top: auto; }

/* ==========================================================================
   Marketing
   ========================================================================== */
.marketing-banner { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 15px; padding: 25px 28px; border-radius: var(--radius); color: #fff; background: radial-gradient(500px 300px at 85% 20%, rgba(255, 196, 137, 0.26), transparent 55%), linear-gradient(118deg, #202731, #171c24 65%, #2a1d14); box-shadow: 0 14px 30px rgba(18, 24, 33, 0.14); }
.marketing-eyebrow { display: inline-flex; align-items: center; gap: 5px; color: #ffb27b; font-size: 10px; font-weight: 600; letter-spacing: 0.04em; }
.marketing-banner h2 { margin-top: 7px; font-size: 23px; letter-spacing: -0.03em; }
.marketing-banner p { max-width: 660px; margin-top: 7px; color: #a7b2be; font-size: 11px; line-height: 1.7; }
.marketing-banner-actions { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.marketing-banner .btn-text { color: #b8c1cb; }
.marketing-bubbles { position: relative; width: 240px; height: 130px; flex: 0 0 auto; }
.marketing-bubbles .mb { position: absolute; display: flex; align-items: center; justify-content: center; gap: 5px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.1); color: #ffb27b; font-size: 10px; backdrop-filter: blur(8px); }
.marketing-bubbles .mb b { color: #e9edf2; font-size: 10px; font-weight: 600; }
.marketing-bubbles .mb1 { top: 4px; left: 20px; transform: rotate(-5deg); }
.marketing-bubbles .mb2 { top: 48px; right: 8px; transform: rotate(4deg); }
.marketing-bubbles .mb3 { bottom: 5px; left: 55px; transform: rotate(-2deg); }
.campaign-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; padding: 16px 18px 20px; background: #fbfcfd; }
.campaign-card { display: flex; flex-direction: column; padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: #fff; transition: box-shadow 0.16s ease, transform 0.16s ease; }
.campaign-card:hover { box-shadow: 0 8px 22px rgba(20, 30, 45, 0.06); transform: translateY(-1px); }
.campaign-card.muted-card { opacity: 0.66; }
.campaign-head { display: flex; align-items: flex-start; gap: 9px; }
.campaign-type { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; }
.campaign-type.orange { background: var(--orange-soft); color: var(--orange); }
.campaign-type.purple { background: var(--purple-soft); color: var(--purple); }
.campaign-type.green { background: var(--green-soft); color: var(--green); }
.campaign-type.blue { background: var(--blue-soft); color: var(--blue); }
.campaign-head > div { flex: 1; min-width: 0; }
.campaign-head h3 { font-size: 12.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.campaign-head small { display: block; color: var(--muted-2); font-size: 9px; margin-top: 2px; }
.campaign-head .badge { flex: 0 0 auto; font-size: 9px; min-height: 19px; padding: 1px 6px; }
.campaign-desc { flex: 1; min-height: 32px; margin: 11px 0 7px; color: var(--muted); font-size: 10px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.campaign-rule { display: flex; align-items: center; gap: 7px; padding: 8px 9px; border-radius: 7px; background: #fff8f3; }
.campaign-rule span { color: #8f6a52; font-size: 9.5px; }
.campaign-rule b { margin-left: auto; color: var(--orange-deep); font-size: 14px; letter-spacing: -0.02em; }
.campaign-period { display: flex; align-items: center; gap: 4px; margin-top: 8px; color: var(--muted-2); font-size: 9px; }
.campaign-foot { display: flex; align-items: center; gap: 4px; margin-top: 11px; padding-top: 9px; border-top: 1px dashed var(--line); }
.campaign-foot .icon-btn { margin-left: auto; width: 27px; height: 27px; }
.notice-list { padding: 0 18px; }
.notice-item { display: flex; align-items: flex-start; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line-2); }
.notice-item:last-child { border-bottom: 0; }
.notice-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; width: 66px; flex: 0 0 auto; }
.notice-type { display: inline-flex; align-items: center; height: 19px; padding: 0 6px; border-radius: 4px; background: #f2f4f7; color: #7d8996; font-size: 9px; font-weight: 600; }
.notice-main { flex: 1; min-width: 0; }
.notice-main h3 { font-size: 12.5px; }
.notice-main p { margin-top: 4px; color: var(--muted); font-size: 10px; line-height: 1.7; }
.notice-side { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.notice-side small { color: var(--muted-2); font-size: 9px; margin-right: 5px; }
.notice-foot { display: flex; justify-content: flex-end; padding: 13px 18px 17px; border-top: 1px solid var(--line-2); }
.quick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.quick-item { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 14px; border: 1px solid var(--line); border-radius: 9px; background: #fff; text-align: left; cursor: pointer; }
.quick-item:hover { border-color: #ffcda9; background: #fffaf6; }
.quick-icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; margin-bottom: 4px; }
.quick-icon.orange { background: var(--orange-soft); color: var(--orange); }
.quick-icon.green { background: var(--green-soft); color: var(--green); }
.quick-icon.purple { background: var(--purple-soft); color: var(--purple); }
.quick-icon.blue { background: var(--blue-soft); color: var(--blue); }
.quick-item b { font-size: 12px; }
.quick-item small { color: var(--muted-2); font-size: 9.5px; }

/* ==========================================================================
   Apps
   ========================================================================== */
.apps-hero { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 210px; padding: 26px 30px; margin-bottom: 20px; border-radius: var(--radius); background: radial-gradient(560px 340px at 85% 10%, rgba(255, 146, 59, 0.23), transparent 58%), linear-gradient(120deg, #1d242e, #13181f); color: #fff; }
.apps-hero-copy { position: relative; z-index: 1; max-width: 640px; }
.apps-hero h2 { margin-top: 11px; font-size: 26px; line-height: 1.35; letter-spacing: -0.035em; }
.apps-hero p { max-width: 580px; margin-top: 9px; color: #a7b2be; font-size: 11px; line-height: 1.75; }
.apps-hero-badges { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.apps-hero-badges span { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 5px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); color: #b8c2cd; font-size: 9.5px; }
.apps-hero-badges .ico { color: #4fd698; }
.apps-hero-visual { position: relative; width: 280px; height: 170px; flex: 0 0 auto; }
.mini-phone { position: absolute; width: 122px; height: 172px; padding: 8px; border-radius: 20px; background: #262e39; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 16px 30px rgba(0, 0, 0, 0.25); }
.mini-phone.p1 { left: 24px; top: 18px; transform: rotate(-7deg); }
.mini-phone.p2 { left: 137px; top: 3px; transform: rotate(6deg); }
.mp-notch { display: block; width: 35px; height: 8px; margin: 0 auto 5px; border-radius: 99px; background: #181e26; }
.mp-screen { display: flex; flex-direction: column; height: calc(100% - 13px); padding: 7px; border-radius: 13px; background: linear-gradient(160deg, #fff, #f6f8fa); color: var(--ink); }
.mp-logo { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 5px; background: var(--orange); color: #fff; font-size: 8px; font-weight: 700; }
.mp-logo.green { background: var(--green); }
.mp-screen b { margin-top: 5px; font-size: 8.5px; }
.mp-screen small { color: var(--muted-2); font-size: 6px; margin-top: 1px; }
.mp-lines { display: flex; flex-direction: column; gap: 4px; margin-top: 9px; }
.mp-lines i { height: 20px; border-radius: 5px; background: #f0f3f6; }
.mp-lines i:first-child { height: 34px; background: linear-gradient(120deg, #ff7a18, #ff5a00); opacity: 0.8; }
.apps-channel-grid { margin-bottom: 20px; }
.app-card { min-height: 0; }
.apps-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr); gap: 14px; align-items: start; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; padding: 0 16px 17px; }
.tool-item { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border: 1px solid var(--line-2); border-radius: 8px; }
.tool-item:hover { border-color: #ffd5b8; background: #fffbf7; }
.tool-icon { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px; border-radius: 8px; background: #f5f7fa; color: #7f8b99; flex: 0 0 auto; }
.tool-copy { flex: 1; min-width: 0; }
.tool-copy b { display: block; font-size: 11px; }
.tool-copy small { display: block; color: var(--muted-2); font-size: 9px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool-item em { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 19px; padding: 0 5px; border-radius: 4px; background: #f2f4f7; color: #86919e; font-size: 8.5px; font-style: normal; font-weight: 600; }
.tool-item > .ico { color: #c2cad3; }
.apps-side { display: flex; flex-direction: column; gap: 14px; }
.help-badge { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 7px; background: var(--orange-soft); color: var(--orange); }
.help-list { padding: 0 16px 14px; }
.help-item { border-bottom: 1px solid var(--line-2); }
.help-item:last-child { border-bottom: 0; }
.help-item summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 0; color: var(--ink-2); font-size: 10.5px; cursor: pointer; list-style: none; }
.help-item summary::-webkit-details-marker { display: none; }
.help-item summary .ico { color: #a8b2bd; transition: transform 0.16s ease; }
.help-item[open] summary .ico { transform: rotate(180deg); color: var(--orange); }
.help-item p { margin: -1px 0 9px; padding-right: 12px; color: var(--muted); font-size: 9.5px; line-height: 1.7; }
.support-card { display: flex; flex-direction: column; align-items: flex-start; padding: 16px; background: linear-gradient(140deg, #fff8f2, #fff); }
.support-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 9px; background: var(--orange-soft); color: var(--orange); margin-bottom: 8px; }
.support-card b { font-size: 12px; }
.support-card p { margin: 2px 0 11px; color: var(--muted); font-size: 9.5px; }

/* ==========================================================================
   Finance
   ========================================================================== */
.finance-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(310px, 0.8fr); gap: 14px; margin-bottom: 14px; }
.account-card { background: linear-gradient(150deg, #fff, #fffaf6); }
.account-balance { margin: 0 18px; padding: 15px; border-radius: 10px; background: linear-gradient(130deg, #202731, #303a46); color: #fff; }
.account-balance span { display: block; color: #aeb8c3; font-size: 9.5px; }
.account-balance strong { display: block; margin-top: 4px; font-size: 25px; letter-spacing: -0.035em; }
.account-balance small { display: block; margin-top: 4px; color: #818d9a; font-size: 9px; }
.account-rows { padding: 9px 18px 4px; }
.account-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 0; border-bottom: 1px dashed #f1f4f7; }
.account-rows > div:last-child { border-bottom: 0; }
.account-rows span { color: var(--muted); font-size: 10px; }
.account-rows b { font-size: 10.5px; }
.account-tip { display: flex; align-items: flex-start; gap: 5px; margin: 2px 18px 16px; padding-top: 9px; border-top: 1px solid var(--line-2); color: var(--muted-2); font-size: 9px; line-height: 1.6; }
.account-tip .ico { color: var(--orange); flex: 0 0 auto; margin-top: 1px; }
.finance-table-head { align-items: center; }
.inline-filter { display: flex; align-items: center; gap: 7px; }
.refund-summary { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; margin-bottom: 14px; border-radius: 9px; background: #fff7f2; border: 1px dashed #ffd4b5; }
.refund-summary span { color: var(--muted); font-size: 10px; }
.refund-summary strong { color: var(--orange-deep); font-size: 27px; letter-spacing: -0.04em; }
.refund-summary small { color: var(--muted-2); font-size: 9.5px; }

/* ==========================================================================
   Channels
   ========================================================================== */
.channel-banner { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; padding: 15px 18px; border: 1px solid #ffe1cf; border-radius: 12px; background: linear-gradient(110deg, #fff8f2, #fff); }
.channel-banner-icon { display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); flex: 0 0 auto; }
.channel-banner > div:nth-child(2) { flex: 1; min-width: 0; }
.channel-banner b { display: block; font-size: 12px; }
.channel-banner p { margin-top: 2px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.channel-banner-stat { color: var(--muted); font-size: 10px; white-space: nowrap; }
.channel-banner-stat strong { display: block; color: var(--orange-deep); font-size: 20px; letter-spacing: -0.03em; text-align: right; }
.channel-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.channel-detail-card { padding: 17px 18px 14px; }
.channel-detail-card.laundry { background: linear-gradient(145deg, #fff 55%, #fff9f3 100%); }
.channel-detail-card.uniform { background: linear-gradient(145deg, #fff 55%, #f4fbf9 100%); }
.channel-detail-head { display: flex; align-items: flex-start; gap: 10px; }
.channel-detail-head .channel-title h2 { font-size: 17px; }
.channel-detail-head .icon-btn { margin-left: auto; }
.channel-detail-desc { margin: 8px 0 13px; color: var(--muted); font-size: 10.5px; line-height: 1.65; min-height: 34px; }
.channel-detail-main { display: flex; gap: 15px; align-items: flex-start; padding: 13px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.channel-qr { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 114px; flex: 0 0 auto; padding: 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; cursor: pointer; }
.channel-qr:hover { border-color: #ffd0ad; }
.qr-placeholder { display: flex; align-items: center; justify-content: center; width: 92px; height: 92px; border-radius: 5px; background: #f8fafb; color: #c0c9d2; }
.channel-qr img { width: 92px; height: 92px; border-radius: 4px; display: block; }
.channel-qr span { color: var(--muted-2); font-size: 8px; text-align: center; line-height: 1.4; }
.qr-copy { display: inline-flex; align-items: center; gap: 2px; border: 0; background: transparent; color: var(--orange); font-size: 8px; cursor: pointer; padding: 1px; }
.channel-detail-info { flex: 1; min-width: 0; }
.channel-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.channel-stat-grid > div { padding: 8px 9px; border-radius: 7px; background: #f8fafb; }
.channel-stat-grid strong { display: block; font-size: 16px; letter-spacing: -0.03em; }
.channel-stat-grid span { display: block; color: var(--muted-2); font-size: 8.5px; margin-top: 1px; }
.channel-meta-list { margin-top: 9px; }
.channel-meta-list > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed #f3f5f8; }
.channel-meta-list > div:last-child { border-bottom: 0; }
.channel-meta-list span { color: var(--muted-2); font-size: 9px; }
.channel-meta-list b { font-size: 9.5px; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.channel-detail-actions { display: flex; align-items: center; gap: 5px; padding-top: 11px; flex-wrap: wrap; }
.channels-bottom { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr); gap: 14px; margin-top: 14px; }
.setup-steps { padding: 0 18px 16px; }
.setup-step { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px dashed #f0f3f6; }
.setup-step:last-child { border-bottom: 0; }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 21px; height: 21px; border-radius: 50%; background: #f5f7fa; color: #7f8b99; font-size: 9px; font-weight: 700; flex: 0 0 auto; }
.setup-step > div { flex: 1; }
.setup-step b { font-size: 11px; }
.setup-step p { margin-top: 1px; color: var(--muted); font-size: 9.5px; }
.step-done { display: inline-flex; align-items: center; gap: 3px; color: var(--green); font-size: 8.5px; }
.tip-list { padding: 0 18px 12px; display: flex; flex-direction: column; gap: 8px; }
.tip-list > div { display: flex; align-items: flex-start; gap: 6px; color: var(--muted); font-size: 9.5px; line-height: 1.65; }
.tip-list .ico { flex: 0 0 auto; margin-top: 1px; color: var(--green); }
.channel-tips > .btn { width: calc(100% - 36px); margin: 0 18px 16px; }

/* ==========================================================================
   Settings
   ========================================================================== */
.settings-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 16px; align-items: start; }
.settings-nav { position: sticky; top: calc(var(--topbar-h) + 20px); display: flex; flex-direction: column; gap: 2px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.settings-nav a { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 9px; border-radius: 7px; color: var(--muted); font-size: 11.5px; }
.settings-nav a:hover { background: #f8fafb; color: var(--ink-2); }
.settings-nav a.active { background: var(--orange-soft); color: var(--orange-deep); font-weight: 600; }
.settings-nav a.active .ico { color: var(--orange); }
.settings-nav a > span { margin-left: auto; color: #9ea8b4; font-size: 9px; }
.settings-nav-sep { height: 1px; margin: 7px 4px; background: var(--line-2); }
.settings-nav-foot { margin-top: 12px; padding: 11px 9px 4px; border-top: 1px solid var(--line-2); color: var(--muted-2); font-size: 8.5px; line-height: 1.8; }
.settings-nav-foot .live-dot { display: inline-block; margin-right: 5px; }
.settings-nav-foot small { color: #b4bcc6; font-size: 8px; }
.settings-card { overflow: hidden; }
.settings-form { padding: 2px 20px 20px; }
.account-card-settings { padding-bottom: 18px; }
.account-profile { display: flex; align-items: center; gap: 13px; margin: 0 20px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(140deg, #fff, #fffaf6); }
.account-profile h3 { font-size: 16px; }
.account-profile p { color: var(--muted); font-size: 10.5px; margin-top: 2px; }
.account-profile small { display: block; color: var(--muted-2); font-size: 9px; margin-top: 2px; }
.security-rows { padding: 12px 20px 4px; }
.security-rows > div { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.security-rows > div:last-child { border-bottom: 0; }
.security-icon { display: inline-flex; align-items: center; justify-content: center; width: 33px; height: 33px; border-radius: 8px; background: #f6f8fa; color: #7f8b99; flex: 0 0 auto; }
.security-rows > div > div { flex: 1; min-width: 0; }
.security-rows b { display: block; font-size: 11px; }
.security-rows small { display: block; color: var(--muted-2); font-size: 9.5px; margin-top: 1px; }
.account-card-settings .alert-box { margin: 9px 20px 0; }
.staff-list { padding: 0 20px 8px; }
.staff-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.staff-row:last-child { border-bottom: 0; }
.staff-main { flex: 1; min-width: 0; }
.staff-main b { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }
.staff-main small { display: block; color: var(--muted-2); font-size: 9.5px; margin-top: 1px; }
.self-tag { display: inline-flex; padding: 1px 5px; border-radius: 3px; background: var(--orange-soft); color: var(--orange-deep); font-size: 8px; font-weight: 500; }
.staff-role { width: 94px; }
.staff-login { width: 105px; color: var(--muted-2); font-size: 9px; text-align: right; }
.audit-list { padding: 0 20px 12px; }
.audit-row { display: flex; align-items: flex-start; gap: 9px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.audit-row:last-child { border-bottom: 0; }
.audit-dot { width: 6px; height: 6px; margin-top: 6px; border-radius: 50%; background: #d3dae2; flex: 0 0 auto; }
.audit-main { flex: 1; min-width: 0; }
.audit-main b { font-size: 10.5px; }
.audit-main span { display: inline-block; margin-left: 6px; padding: 1px 5px; border-radius: 3px; background: #f4f6f8; color: #7d8996; font-family: var(--mono); font-size: 8.5px; }
.audit-main small { display: block; color: var(--muted); font-size: 9.5px; margin-top: 2px; }
.audit-time { color: var(--muted-2); font-size: 9px; white-space: nowrap; }

/* ==========================================================================
   Modal / drawer / toast
   ========================================================================== */
.modal-overlay, .drawer-overlay {
  position: fixed; z-index: 200; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(13, 19, 28, 0.46); backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 0.18s ease;
}
.modal-overlay.show, .drawer-overlay.show { opacity: 1; }
.modal {
  width: min(100%, 560px); max-height: 90vh; display: flex; flex-direction: column;
  background: #fff; border-radius: 15px; box-shadow: var(--shadow-lg);
  transform: translateY(8px) scale(0.99); transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
}
.modal-overlay.show .modal { transform: none; }
.modal-sm { width: min(100%, 430px); }
.modal-md { width: min(100%, 590px); }
.modal-lg { width: min(100%, 760px); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 19px 21px 13px; border-bottom: 1px solid var(--line-2); flex: 0 0 auto; }
.modal-head h3 { font-size: 16px; letter-spacing: -0.02em; }
.modal-head p { margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.modal-close { margin: -4px -4px 0 0; width: 29px; height: 29px; }
.modal-body { padding: 18px 21px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 13px 21px 17px; border-top: 1px solid var(--line-2); flex: 0 0 auto; }
.confirm-body { display: flex; align-items: flex-start; gap: 12px; padding: 3px 0 2px; }
.confirm-icon { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 43px; border-radius: 50%; background: var(--orange-soft); color: var(--orange); flex: 0 0 auto; }
.confirm-icon.danger { background: var(--red-soft); color: var(--red); }
.confirm-body p { padding-top: 3px; color: var(--ink-2); font-size: 12px; line-height: 1.7; }
.drawer-overlay { justify-content: flex-end; padding: 0; }
.drawer {
  width: var(--drawer-width, 520px); max-width: 95vw; height: 100%; display: flex; flex-direction: column;
  background: #fff; box-shadow: -20px 0 50px rgba(8, 14, 23, 0.14);
  transform: translateX(24px); transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.drawer-overlay.show .drawer { transform: none; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 21px 23px 14px; border-bottom: 1px solid var(--line-2); flex: 0 0 auto; }
.drawer-head h3 { font-size: 17px; letter-spacing: -0.02em; }
.drawer-head p { margin-top: 3px; color: var(--muted); font-size: 10.5px; }
.drawer-close { margin-top: -4px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 23px 26px; }
.drawer-foot { display: flex; align-items: center; justify-content: flex-end; gap: 7px; padding: 13px 23px; border-top: 1px solid var(--line-2); flex-wrap: wrap; flex: 0 0 auto; }
.drawer-loading { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 220px; color: var(--muted); font-size: 12px; }
.drawer-error { min-height: 220px; }
.toast-root { position: fixed; z-index: 400; left: 50%; top: 19px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 7px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 7px; min-height: 36px; padding: 8px 13px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-size: 11.5px; box-shadow: 0 10px 28px rgba(20, 30, 45, 0.14); opacity: 0; transform: translateY(-8px); transition: opacity 0.2s ease, transform 0.2s ease; }
.toast.show { opacity: 1; transform: none; }
.toast-icon { display: inline-flex; color: var(--green); }
.toast-error .toast-icon { color: var(--red); }
.toast-info .toast-icon { color: var(--blue); }
.search-modal-input { display: flex; align-items: center; gap: 8px; height: 43px; padding: 0 12px; border: 1px solid #dfe5eb; border-radius: 9px; color: #98a3b0; }
.search-modal-input:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1); }
.search-modal-input input { flex: 1; border: 0; outline: 0; font-size: 12.5px; color: var(--ink); }
.search-section-label { margin: 15px 0 6px; color: var(--muted-2); font-size: 9.5px; font-weight: 600; letter-spacing: 0.04em; }
.search-suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; max-height: 290px; overflow-y: auto; }
.search-suggestion { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--line-2); border-radius: 7px; background: #fff; text-align: left; cursor: pointer; }
.search-suggestion:hover { border-color: #ffd0ae; background: #fffaf6; }
.search-suggestion .ico { color: #93a0ad; }
.search-suggestion > span { flex: 1; min-width: 0; }
.search-suggestion b { display: block; font-size: 10.5px; color: var(--ink-2); }
.search-suggestion small { display: block; color: var(--muted-2); font-size: 8.5px; margin-top: 1px; }
.search-suggestion > .ico:last-child { color: #c5cdd6; }
.search-hint { display: flex; align-items: flex-start; gap: 5px; margin-top: 11px; color: var(--muted-2); font-size: 9.5px; }
.search-hint .ico { color: var(--orange); }
.notify-list { display: flex; flex-direction: column; gap: 5px; }
.notify-item { display: flex; align-items: center; gap: 9px; padding: 9px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; text-align: left; cursor: pointer; }
.notify-item:hover { border-color: #ffd0ae; background: #fffaf6; }
.notify-count { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; padding: 0 7px; border-radius: 7px; font-size: 12px; font-weight: 700; }
.notify-count.tone-orange { background: var(--orange-soft); color: var(--orange-deep); }
.notify-count.tone-blue { background: var(--blue-soft); color: var(--blue); }
.notify-count.tone-red { background: var(--red-soft); color: var(--red); }
.notify-count.tone-purple { background: var(--purple-soft); color: var(--purple); }
.notify-count.tone-teal { background: var(--teal-soft); color: var(--teal); }
.notify-count.tone-gray { background: #f2f4f7; color: #7d8996; }
.notify-text { flex: 1; }
.notify-text b { display: block; font-size: 11px; }
.notify-text small { display: block; color: var(--muted-2); font-size: 9px; margin-top: 1px; }
.notify-item > .ico { color: #c4ccd5; }
.notify-loading, .notify-empty { display: flex; align-items: center; justify-content: center; min-height: 100px; color: var(--muted); font-size: 11px; }
.notify-empty { color: var(--muted-2); }

/* ==========================================================================
   Empty / loading / error / misc
   ========================================================================== */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 20px; text-align: center; }
.empty-icon { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 16px; background: #f7f9fb; color: #b7c1cb; margin-bottom: 11px; }
.empty-title { color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.empty-desc { color: var(--muted-2); font-size: 10.5px; margin-top: 3px; max-width: 280px; line-height: 1.6; }
.empty-state .btn { margin-top: 13px; }
.page-loading { padding: 4px 0; }
.page-loading-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.sk { display: block; border-radius: 7px; background: linear-gradient(90deg, #eef2f5 25%, #f7f9fb 50%, #eef2f5 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.sk-title { width: 130px; height: 28px; }
.sk-button { width: 110px; height: 34px; }
.sk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 15px; }
.sk-card { height: 92px; border-radius: 12px; }
.sk-panel { height: 310px; border-radius: 14px; }
.page-error { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 55vh; text-align: center; }
.page-error > span { display: flex; align-items: center; justify-content: center; width: 62px; height: 62px; border-radius: 50%; background: var(--red-soft); color: var(--red); margin-bottom: 12px; }
.page-error h2 { font-size: 17px; }
.page-error p { color: var(--muted); font-size: 11.5px; margin: 4px 0 14px; }
.progress { height: 6px; border-radius: 999px; background: #f1f4f7; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--orange); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1420px) {
  .quick-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .channel-detail-main { gap: 11px; }
  .stats-grid.six { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1220px) {
  .hero-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(4, 1fr); }
  .kpi-card { min-height: 118px; }
  .dash-main-grid { grid-template-columns: 1fr; }
  .dash-three-grid { grid-template-columns: 1fr 1fr; }
  .rank-card { grid-column: span 2; }
  .store-layout { grid-template-columns: 1fr; }
  .store-hero { flex-direction: column; align-items: stretch; }
  .store-stat-grid { margin-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 14px; }
  .store-stat-grid > div:first-child { padding-left: 0; }
  .package-grid { grid-template-columns: 1fr 1fr; }
  .campaign-grid { grid-template-columns: 1fr 1fr; }
  .analytics-grid { grid-template-columns: 1fr 1fr; }
  .analytics-grid > .mini-card:last-child { grid-column: span 2; }
  .finance-layout { grid-template-columns: 1fr; }
  .channel-detail-grid { grid-template-columns: 1fr; }
  .apps-layout { grid-template-columns: 1fr; }
  .apps-side { display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .channels-bottom { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1); box-shadow: 20px 0 50px rgba(8, 13, 21, 0.18); }
  .sidebar.open { transform: none; }
  .side-close { display: inline-flex; }
  .sidebar-backdrop { position: fixed; z-index: 35; inset: 0; background: rgba(10, 15, 23, 0.42); opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
  .sidebar-backdrop.show { display: block; opacity: 1; pointer-events: auto; }
  .app-main { margin-left: 0; }
  .mobile-menu { display: inline-flex; }
  .topbar { padding: 0 18px; }
  .search-trigger { width: 185px; }
  .quick-create span { display: none; }
  .quick-create { width: 35px; padding: 0; justify-content: center; }
  .quick-create .ico:last-child { display: none; }
  .view { padding: 22px 20px 44px; }
  .stats-grid.four { grid-template-columns: 1fr 1fr; }
  .settings-layout { grid-template-columns: 1fr; }
  .settings-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 3px; }
  .settings-nav a { flex: 0 0 auto; }
  .settings-nav-sep, .settings-nav-foot { display: none; }
}
@media (max-width: 820px) {
  .login-topbar { padding: 20px 22px; }
  .login-topnote { display: none; }
  .login-shell { align-items: flex-start; padding: 16px 16px 30px; }
  .login-card { padding: 38px 24px 30px; border-radius: 19px; }
  .login-card h1 { margin-bottom: 26px; font-size: 29px; }
  .login-field { margin-bottom: 13px; }
  .login-field .input-icon .ico { left: 18px; }
  .login-field .input-icon .input { height: 54px; padding-left: 54px; padding-right: 44px; }
  .login-field .pwd-toggle { right: 8px; }
  .login-row { margin-bottom: 21px; }
  .login-submit { height: 54px; font-size: 16px; }
  .login-divider { margin: 25px auto 15px; }
  .login-footer { padding-bottom: 18px; }
  .tabs-head { padding: 0 14px; overflow: hidden; }
  .tabs { gap: 18px; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: 0 0 auto; white-space: nowrap; }
  .tab-tools { flex: 0 0 auto; }
  .tab-tools .live-indicator, .tab-tools .muted { display: none; }
  .data-table { min-width: 720px; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .channel-qr { display: grid; grid-template-columns: 74px 1fr; grid-template-rows: auto auto; gap: 4px 9px; align-items: center; width: 100%; }
  .channel-qr img, .channel-qr .qr-placeholder { grid-row: span 2; width: 74px; height: 74px; }
  .channel-qr span { text-align: left; font-size: 9px; }
  .qr-copy { justify-content: flex-start; font-size: 9px; }
  .page-heading { flex-direction: column; align-items: flex-start; gap: 12px; }
  .page-actions { justify-content: flex-start; }
  .stats-grid.four, .stats-grid.six, .analytics-kpis { grid-template-columns: 1fr 1fr !important; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .dash-three-grid { grid-template-columns: 1fr; }
  .rank-card { grid-column: auto; }
  .channel-grid { grid-template-columns: 1fr; }
  .phone-stage { flex-direction: column; align-items: center; }
  .preview-side { width: 100%; }
  .bound-channel-grid { grid-template-columns: 1fr; }
  .package-grid { grid-template-columns: 1fr; }
  .campaign-grid { grid-template-columns: 1fr; }
  .channel-stats { grid-template-columns: 1fr 1fr 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .analytics-grid > .mini-card:last-child { grid-column: auto; }
  .analytics-bottom { grid-template-columns: 1fr; }
  .apps-hero-visual { display: none; }
  .apps-hero { min-height: 0; }
  .apps-side { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .order-stats { grid-template-columns: 1fr 1fr; gap: 13px 0; }
  .order-stats > div:nth-child(2) { border-right: 0; }
  .order-stats > div:nth-child(3) { padding-left: 0; }
  .store-stat-grid { grid-template-columns: 1fr 1fr; }
  .store-stat-grid > div { padding: 7px 12px; border-right: 0; }
  .store-stat-grid > div:nth-child(odd) { padding-left: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .size-input-grid { grid-template-columns: 1fr 1fr; }
  .marketing-banner { padding: 22px; }
  .marketing-bubbles { display: none; }
  .channel-detail-main { flex-direction: column; }
  .channel-qr { width: 100%; flex-direction: row; justify-content: flex-start; }
  .channel-qr img, .qr-placeholder { width: 74px; height: 74px; }
  .channel-detail-info { width: 100%; }
  .staff-row { flex-wrap: wrap; }
  .staff-login { width: auto; margin-left: auto; }
  .search-suggestions { grid-template-columns: 1fr; }
  .search-trigger { width: 35px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
  .user-meta { display: none; }
  .top-divider { display: none; }
  .topbar { gap: 10px; }
  .view { padding: 18px 14px 40px; }
  .page-heading h1 { font-size: 22px; }
  .stats-grid.four .stat-card strong { font-size: 20px; }
  .quick-actions { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid > div.span-2 { grid-column: auto; }
  .detail-grid > div:nth-last-child(-n+2) { border-bottom: 1px dashed #f0f3f6; }
  .detail-grid > div:last-child { border-bottom: 0; }
  .recent-table th:nth-child(4), .recent-table td:nth-child(4),
  .members-table th:nth-child(8), .members-table td:nth-child(8),
  .orders-table th:nth-child(7), .orders-table td:nth-child(7) { display: none; }
}
@media (max-width: 520px) {
  .kpi-grid, .stats-grid.four, .stats-grid.six, .analytics-kpis { grid-template-columns: 1fr !important; }
  .topbar-right .top-icon { display: none; }
  .page-actions .btn span { display: none; }
  .search-trigger { display: none; }
  .member-metrics { grid-template-columns: 1fr 1fr; gap: 12px 0; }
  .member-metrics > div:nth-child(2) { border-right: 0; }
  .member-metrics > div:nth-child(3) { padding-left: 0; }
  .member-profile { flex-direction: column; }
  .channel-banner { align-items: flex-start; }
  .channel-banner-stat { display: none; }
  .modal-overlay { padding: 10px; }
  .modal { max-height: 94vh; }
  .drawer { max-width: 100vw; }
  .journey, .order-progress { overflow-x: auto; }
  .step { min-width: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ==========================================================================
   Top navigation shell（与参考后台一致：顶部深色 TAB 导航）
   ========================================================================== */
.app-shell { min-height: 100vh; }
.topbar {
  position: sticky; z-index: 50; top: 0;
  height: 66px; display: flex; align-items: center; gap: 26px;
  padding: 0 26px; background: #171c24;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 16px rgba(10, 15, 23, 0.12);
  backdrop-filter: none;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.topbar-brand strong { color: #ff7a1a; font-size: 21px; font-weight: 700; letter-spacing: -0.035em; white-space: nowrap; }
.topnav { flex: 1; display: flex; align-items: stretch; height: 66px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.topnav::-webkit-scrollbar { display: none; }
.topnav-item { position: relative; display: flex; align-items: center; height: 100%; padding: 0 14px; color: #b7c0ca; font-size: 13.5px; font-weight: 500; white-space: nowrap; transition: color 0.16s ease, background 0.16s ease; }
.topnav-item:hover { color: #fff; background: rgba(255, 255, 255, 0.025); }
.topnav-item.active { color: #ff7a1a; font-weight: 600; }
.topnav-item.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: #ff6b00; }
.topbar-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; margin-left: auto; }
.topbar-icon { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 8px; background: rgba(255, 255, 255, 0.035); color: #b8c1cb; cursor: pointer; transition: background 0.16s ease, color 0.16s ease; }
.topbar-icon:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.topbar .notify-dot { right: 8px; top: 7px; border: 2px solid #171c24; }
.top-quick { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 11px; border: 1px solid rgba(255, 122, 24, 0.4); border-radius: 8px; background: rgba(255, 107, 0, 0.12); color: #ff9a54; font-size: 12px; font-weight: 600; cursor: pointer; transition: background 0.16s ease; }
.top-quick:hover { background: rgba(255, 107, 0, 0.2); color: #ffb27a; }
.topbar .user-button { height: 38px; padding: 3px 4px; color: #dce3ea; }
.topbar .user-button:hover { background: rgba(255, 255, 255, 0.06); border-color: transparent; }
.topbar .user-meta b { color: #f1f4f7; }
.topbar .user-meta small { color: #84909d; }
.topbar .user-button > .ico { color: #7f8b99; }
.topbar .user-button .avatar { background: #2b333e; color: #ff9a54; }
.topbar .user-button .avatar-orange, .topbar .user-button .avatar-blue, .topbar .user-button .avatar-green, .topbar .user-button .avatar-purple, .topbar .user-button .avatar-teal { background: #2b333e; color: #ff9a54; }

@media (max-width: 1240px) {
  .topbar { gap: 16px; padding: 0 18px; }
  .topnav-item { padding: 0 11px; font-size: 12.8px; }
  .topnav-item.active::after { left: 11px; right: 11px; }
  .top-quick span { display: none; }
  .top-quick { width: 34px; padding: 0; justify-content: center; }
}
@media (max-width: 900px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 0 14px; gap: 0; }
  .topbar-brand { height: 56px; }
  .topbar-brand strong { font-size: 19px; }
  .topbar-actions { height: 56px; margin-left: auto; }
  .topnav { order: 3; flex: 0 0 100%; width: 100%; height: 43px; border-top: 1px solid rgba(255, 255, 255, 0.07); }
  .topnav-item { height: 43px; padding: 0 12px; font-size: 12.5px; }
  .topnav-item.active::after { left: 12px; right: 12px; height: 2px; }
  .topbar .user-meta { display: none; }
  .view { padding: 20px 16px 42px; }
}
@media (max-width: 560px) {
  .topbar { padding: 0 12px; }
  .topbar-brand { gap: 8px; }
  .topbar-brand strong { font-size: 17px; }
  .topbar-actions { gap: 5px; }
  .topbar-icon { width: 32px; height: 32px; }
  .topbar .user-button { padding: 3px 2px; }
  .topnav-item { padding: 0 11px; }
  .topnav-item.active::after { left: 11px; right: 11px; }
  .view { padding: 17px 13px 38px; }
}

/* 店铺模块的二级侧栏（顶部 TAB 之下） */
.app-body { display: flex; align-items: flex-start; min-height: calc(100vh - 66px); }
.subnav {
  position: sticky; top: 66px; flex: 0 0 212px; width: 212px;
  height: calc(100vh - 66px); padding: 14px 10px;
  overflow-y: auto; background: #1b2029;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.subnav[hidden] { display: none !important; }
.subnav-inner { display: flex; flex-direction: column; gap: 3px; }
.subnav-item {
  position: relative; display: flex; align-items: center; gap: 10px;
  height: 43px; padding: 0 11px; border-radius: 8px;
  color: #aeb8c4; font-size: 12.5px; font-weight: 500;
  transition: background 0.16s ease, color 0.16s ease;
}
.subnav-item .ico { color: #7f8b99; }
.subnav-item:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.subnav-item:hover .ico { color: #c7d0da; }
.subnav-item.active { background: rgba(255, 107, 0, 0.14); color: #ff7a1a; font-weight: 600; }
.subnav-item.active .ico { color: #ff7a1a; }
.subnav-item.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: #ff6b00; }
.subnav-child { position: relative; display: flex; align-items: center; min-height: 30px; margin-left: 22px; padding: 0 12px 0 17px; border-radius: 7px; color: #929eab; font-size: 11px; text-decoration: none; }
.subnav-child::before { content: ""; position: absolute; left: 4px; width: 5px; height: 5px; border-radius: 50%; background: #6c7885; }
.subnav-child:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.subnav-child.active { color: #ff8a32; font-weight: 600; }
.subnav-child.active::before { background: #ff7a1a; }
.app-body .view { flex: 1; min-width: 0; }

@media (max-width: 900px) {
  .app-body { display: block; min-height: 0; }
  .subnav {
    position: static; width: 100%; height: 44px;
    padding: 0 10px; overflow-x: auto; overflow-y: hidden;
    border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .subnav-inner { flex-direction: row; gap: 4px; height: 44px; }
  .subnav-item { flex: 0 0 auto; height: 44px; padding: 0 11px; border-radius: 0; font-size: 12px; gap: 6px; }
  .subnav-item .ico { width: 15px; height: 15px; }
  .subnav-item.active { background: transparent; }
  .subnav-item.active::before { top: auto; bottom: 0; left: 7px; right: 7px; width: auto; height: 2px; border-radius: 2px 2px 0 0; }
  .app-body .view { width: 100%; }
}

/* ==========================================================================
   店铺二级页面
   ========================================================================== */
.store-subpage .page-heading { margin-top: 2px; }
.page-name-cell { display: flex; align-items: center; gap: 9px; min-width: 205px; }
.page-thumb { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 8px; background: var(--orange-soft); color: var(--orange); flex: 0 0 auto; }
.page-name-cell b { display: block; font-size: 12px; font-weight: 600; color: var(--ink); }
.page-name-cell small { display: block; color: var(--muted-2); font-size: 9px; margin-top: 1px; max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.home-tag { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: 3px; background: #fff1e5; color: #d95c00; font-size: 8.5px; font-weight: 600; margin-left: 2px; flex: 0 0 auto; }
.page-home-check { align-self: end; padding-bottom: 10px; }
.path-preview { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 12px; background: #fbfcfd; }
.path-preview-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--orange-soft); color: var(--orange); flex: 0 0 auto; }
.path-preview b { display: block; font-family: var(--mono); font-size: 11px; word-break: break-all; }
.path-preview small { display: block; color: var(--muted-2); font-size: 9px; margin-top: 3px; }

.route-tabs { display: flex; align-items: center; gap: 24px; height: 49px; padding: 0 18px; border-bottom: 1px solid var(--line-2); }
.route-tabs button { position: relative; height: 49px; border: 0; background: transparent; color: var(--muted); font-size: 11.5px; cursor: pointer; }
.route-tabs button:hover { color: var(--ink-2); }
.route-tabs button.active { color: var(--ink); font-weight: 600; }
.route-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange); }
.link-cell { display: flex; align-items: center; gap: 4px; min-width: 260px; }
.link-cell .mono { color: #52606f; font-size: 9.5px; word-break: break-all; }
.copy-mini { display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto; padding: 2px 4px; border: 0; border-radius: 3px; background: transparent; color: var(--orange); font-size: 8.5px; cursor: pointer; }
.copy-mini:hover { background: var(--orange-soft); }
.route-note { display: flex; align-items: flex-start; gap: 5px; padding: 11px 18px 15px; color: var(--muted-2); font-size: 9.5px; line-height: 1.6; }
.route-note .ico { color: var(--orange); flex: 0 0 auto; margin-top: 1px; }

.template-card-wrap { padding-bottom: 20px; }
.template-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px 4px; }
.template-industries { display: flex; flex-wrap: wrap; gap: 5px; }
.template-industries button { height: 26px; padding: 0 9px; border: 0; border-radius: 5px; background: transparent; color: #7f8b99; font-size: 10.5px; cursor: pointer; }
.template-industries button:hover { color: var(--ink-2); background: #f7f9fb; }
.template-industries button.active { background: var(--orange-soft); color: var(--orange-deep); font-weight: 600; }
.template-market-note { display: flex; align-items: center; gap: 6px; margin: 10px 18px 0; padding: 7px 10px; border-radius: 6px; background: #f4faf7; color: #638070; font-size: 9px; }
.template-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; padding: 14px 18px 0; }
.template-card { min-width: 0; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #fff; transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease; }
.template-card:hover { border-color: #ffd0ae; box-shadow: 0 10px 26px rgba(20, 30, 45, 0.08); transform: translateY(-2px); }
.template-card.selected { border-color: var(--orange); box-shadow: 0 0 0 2px rgba(255, 107, 0, 0.1); }
.template-preview { position: relative; height: 225px; padding: 12px 14px; overflow: hidden; background: #fff4ec; }
.template-preview.tone-blue { background: linear-gradient(135deg, #eef4ff, #dbe8ff); }
.template-preview.tone-teal { background: linear-gradient(135deg, #e9fbf7, #cdf3eb); }
.template-preview.tone-purple { background: linear-gradient(135deg, #f4eaff, #e2d1ff); }
.template-preview.tone-red { background: linear-gradient(135deg, #fff0f0, #ffc9c9); }
.template-preview.tone-gold { background: linear-gradient(135deg, #fff9e9, #f2d6a2); }
.template-preview-tag { position: absolute; top: 10px; right: 11px; padding: 3px 6px; border-radius: 4px; background: rgba(255,255,255,.78); color: #6d7782; font-size: 7px; }
.template-preview.variant-grid .tp-banner { display: none; }
.template-preview.variant-grid .tp-products { margin-top: 16px; }
.template-preview.variant-grid .tp-products i { height: 58px; }
.template-preview.variant-split .tp-body { align-items: flex-start; }
.template-preview.variant-split .tp-body strong { max-width: 82%; }
.template-preview.variant-split .tp-banner { width: 58%; margin-left: auto; margin-top: -12px; }
.template-preview.variant-sale .tp-banner { background: linear-gradient(115deg, rgba(255,255,255,.9), rgba(255,255,255,.38)); }
.template-preview.variant-coupon .tp-cats { gap: 5px; }
.template-preview.variant-coupon .tp-cats i { width: 33px; height: 20px; border-radius: 4px; }
.template-preview.variant-trace .tp-banner { background: repeating-linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.9) 4px, rgba(255,255,255,.6) 4px, rgba(255,255,255,.6) 8px); }
.tp-sale { position: absolute; right: 14px; top: 38px; color: rgba(0,0,0,.13); font-size: 34px; font-weight: 800; letter-spacing: -2px; }
.tp-qr { position: absolute; right: 16px; bottom: 46px; color: rgba(0,0,0,.28); font-size: 28px; }
.template-preview-price { position: absolute; right: 11px; bottom: 10px; color: #d95300; font-size: 13px; font-weight: 700; }
.template-preview.large { height: 480px; padding: 22px 28px; border-radius: 12px; }
.template-preview.large .tp-body strong { font-size: 32px; }
.template-preview.large .tp-body small { font-size: 11px; }
.template-preview.large .tp-body > span { font-size: 13px; }
.template-preview.large .tp-banner { height: 78px; margin-top: 22px; }
.template-preview.large .tp-cats i { width: 40px; height: 40px; }
.template-preview.large .tp-products i { height: 70px; }
.template-preview.small { height: 190px; padding: 11px 13px; }
.template-preview-modal { max-width: 560px; margin: 0 auto; }
.template-preview-desc { display: flex; flex-direction: column; align-items: center; gap: 5px; margin-top: 12px; }
.template-preview-desc b { font-size: 14px; }
.template-preview-desc span { color: var(--muted-2); font-size: 10px; }
.template-buy { display: flex; flex-direction: column; gap: 10px; }
.template-buy-cover { width: 210px; margin: 0 auto; }
.template-buy-cover .template-preview { height: 250px; }
.template-buy-head { display: flex; align-items: center; justify-content: space-between; }
.template-buy-head b { font-size: 14px; }
.template-buy-head strong { color: #d95300; font-size: 18px; }
.template-buy > p { color: var(--muted-2); font-size: 11px; }
.template-buy ul { margin: 0; padding-left: 18px; color: #63707d; font-size: 10px; line-height: 1.9; }
.template-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 5px; flex: 0 0 auto; flex-wrap: wrap; }
.template-info > div:first-child { min-width: 0; }
.tp-bar { display: flex; gap: 4px; height: 20px; align-items: center; }
.tp-bar span { width: 5px; height: 5px; border-radius: 50%; background: rgba(30, 40, 52, 0.16); }
.tp-body { display: flex; flex-direction: column; align-items: flex-start; margin-top: 9px; }
.tp-body small { color: rgba(30, 40, 52, 0.48); font-size: 7px; }
.tp-body strong { margin-top: 4px; color: #26303b; font-size: 18px; line-height: 1.3; letter-spacing: -0.04em; }
.tp-body > span { margin-top: 3px; color: rgba(30, 40, 52, 0.5); font-size: 8px; }
.tp-banner { width: 100%; height: 36px; margin-top: 11px; border-radius: 5px; background: rgba(255, 255, 255, 0.72); }
.tp-cats { display: flex; gap: 8px; margin-top: 10px; }
.tp-cats i { width: 21px; height: 21px; border-radius: 50%; background: rgba(255, 255, 255, 0.8); }
.tp-products { display: flex; gap: 7px; margin-top: 9px; }
.tp-products i { flex: 1; height: 31px; border-radius: 4px; background: rgba(255, 255, 255, 0.62); }
.template-used { position: absolute; top: 12px; right: 12px; padding: 2px 7px; border-radius: 4px; background: var(--orange); color: #fff; font-size: 8.5px; font-weight: 600; }
.template-info { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 13px 12px; }
.template-info b { display: block; font-size: 11.5px; }
.template-info small { display: block; color: var(--muted-2); font-size: 9px; margin-top: 1px; }
.material-tabs { display: flex; align-items: center; gap: 24px; height: 51px; padding: 0 20px; border-bottom: 1px solid var(--line); }
.material-tabs button { position: relative; display: inline-flex; align-items: center; gap: 5px; height: 51px; border: 0; background: transparent; color: var(--muted); font-size: 11.5px; cursor: pointer; }
.material-tabs button.active { color: var(--ink); font-weight: 600; }
.material-tabs button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--orange); }
.material-layout { display: flex; align-items: flex-start; min-height: 430px; }
.material-categories { flex: 0 0 190px; max-height: 620px; overflow-y: auto; padding: 16px 12px; border-right: 1px solid var(--line-2); }
.material-category-search { display: flex; align-items: center; gap: 5px; margin-bottom: 8px; padding: 0 7px; height: 28px; border: 1px solid var(--line); border-radius: 6px; color: #a8b3bf; }
.material-category-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink-2); font-size: 9px; }
.material-categories button { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 33px; padding: 0 9px; border: 0; border-radius: 6px; background: transparent; color: #6f7b88; font-size: 10.5px; text-align: left; cursor: pointer; }
.material-categories button:hover { background: #f8fafb; }
.material-categories button.active { background: var(--orange-soft); color: var(--orange-deep); font-weight: 600; }
.material-categories span { color: #aab3bd; font-size: 9px; }
.material-main { flex: 1; min-width: 0; padding: 16px 18px 20px; }
.material-toolbar { display: flex; align-items: center; gap: 7px; margin-bottom: 13px; }
.material-toolbar b { font-size: 12px; }
.material-toolbar > span { color: var(--muted-2); font-size: 9.5px; }
.material-toolbar .inline-search { margin-left: auto; width: 220px; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 13px; }
.asset-upload { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 164px; border: 1px dashed #d9e1e8; border-radius: 9px; background: #fbfcfd; color: #a3adb8; cursor: pointer; }
.asset-upload:hover { border-color: #ffcba6; background: #fffaf6; color: var(--orange); }
.asset-upload > span { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(20, 30, 45, 0.05); color: var(--orange); }
.asset-upload b { color: #65717f; font-size: 10px; }
.asset-upload small { color: #b2bbc5; font-size: 8.5px; }
.asset-card { min-width: 0; }
.asset-thumb { position: relative; display: flex; align-items: center; justify-content: center; height: 130px; border-radius: 8px; background-size: cover; background-position: center; color: rgba(255, 255, 255, 0.8); }
.asset-card > b { display: block; margin-top: 6px; color: var(--ink-2); font-size: 10px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-card > small { display: block; color: var(--muted-2); font-size: 8.5px; margin-top: 1px; }
.asset-del { position: absolute; right: 6px; top: 6px; display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 0; border-radius: 5px; background: rgba(13, 19, 28, 0.45); color: #fff; cursor: pointer; opacity: 0; }
.asset-thumb:hover .asset-del { opacity: 1; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.material-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; color: var(--muted-2); font-size: 9.5px; }
.material-loading { grid-column: 1 / -1; padding: 60px 0; text-align: center; color: #9aa6b2; font-size: 10px; }
.material-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 70px 0; color: #a2afbb; font-size: 10px; }
.cache-card { padding: 0 0 20px; }
.cache-notice { display: flex; align-items: flex-start; gap: 11px; margin: 20px; padding: 16px 17px; border-radius: 9px; background: #eef5ff; border: 1px solid #dfeaff; color: #4b5e74; }
.cache-notice-icon { display: inline-flex; color: #3d7fe8; flex: 0 0 auto; margin-top: 1px; }
.cache-notice > div { flex: 1; }
.cache-notice b { display: block; color: #2e4f7a; font-size: 11.5px; }
.cache-notice p { margin-top: 4px; font-size: 10px; line-height: 1.7; color: #63768b; }
.cache-notice .btn { flex: 0 0 auto; }
.cache-form-row { display: flex; align-items: center; gap: 16px; padding: 17px 20px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.cache-form-row > span { color: var(--ink-2); font-size: 11.5px; }
.cache-input { display: flex; align-items: center; }
.cache-input .input { width: 88px; height: 34px; border-radius: 6px 0 0 6px; }
.cache-input > span { display: inline-flex; align-items: center; height: 34px; padding: 0 11px; border: 1px solid #dfe5eb; border-left: 0; border-radius: 0 6px 6px 0; color: var(--muted); font-size: 10.5px; background: #fafbfc; }
.cache-foot { display: flex; justify-content: center; padding-top: 22px; }

@media (max-width: 1200px) {
  .template-grid { grid-template-columns: 1fr 1fr; }
  .material-categories { flex-basis: 160px; }
  .material-toolbar .inline-search { width: 170px; }
}
@media (max-width: 820px) {
  .template-toolbar { flex-direction: column; align-items: flex-start; }
  .template-grid { grid-template-columns: 1fr 1fr; }
  .material-layout { flex-direction: column; }
  .material-categories { display: flex; flex-wrap: wrap; width: 100%; flex-basis: auto; padding: 10px; border-right: 0; border-bottom: 1px solid var(--line-2); }
  .material-categories button { width: auto; height: 30px; gap: 8px; }
  .material-main { width: 100%; padding: 13px; }
  .material-toolbar { flex-wrap: wrap; }
  .material-toolbar .inline-search { width: 100%; margin-left: 0; }
  .asset-grid { grid-template-columns: 1fr 1fr; }
  .cache-notice { flex-wrap: wrap; margin: 13px; }
  .cache-notice .btn { width: 100%; }
  .route-tabs { gap: 14px; overflow-x: auto; }
  .route-tabs button { flex: 0 0 auto; }
  .link-cell { min-width: 220px; }
}
@media (max-width: 560px) {
  .template-grid { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: 1fr; }
  .store-subpage .page-heading { gap: 10px; }
}

.channel-single-card { padding: 22px; }
.channel-module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 15px 0 18px; }
.channel-module-card { display: flex; align-items: center; gap: 10px; padding: 12px 13px; border: 1px solid var(--line); border-radius: 9px; background: #fbfcfd; color: var(--ink-2); text-decoration: none; transition: border-color 0.15s ease, background 0.15s ease; }
.channel-module-card:hover { border-color: #ffd0ad; background: #fffaf6; }
.channel-module-card > span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: #fff1e5; color: var(--orange); flex: 0 0 auto; }
.channel-module-card.tone-pink > span { background: #fff0f5; color: #e84a7a; }
.channel-module-card.tone-teal > span { background: #e8faf6; color: #12a594; }
.channel-module-card > div { flex: 1; min-width: 0; }
.channel-module-card b { display: block; font-size: 11px; }
.channel-module-card small { display: block; margin-top: 2px; color: var(--muted-2); font-size: 9px; }
.channel-module-card > .ico:last-child { color: #b9c3cd; }

@media (max-width: 760px) {
  .channel-module-grid { grid-template-columns: 1fr; }
  .channel-single-card { padding: 16px; }
}

/* ==========================================================================
   我的店铺 · 模板列表
   ========================================================================== */
.store-template-panel { overflow: visible; }
.template-list-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.template-list-filters { display: flex; align-items: center; gap: 10px; }
.template-list-filters .inline-search { width: 190px; }
.template-filter-field { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.template-filter-field > span { color: var(--muted); font-size: 9.5px; }
.template-filter-field .select-sm { height: 30px; min-width: 105px; padding-right: 26px; font-size: 10px; }
.my-template-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 18px; background: #fbfcfd; }
.my-template-card { position: relative; min-width: 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: var(--shadow-sm); transition: border-color 0.16s ease, box-shadow 0.16s ease; }
.my-template-card:hover { border-color: #ffd2b0; box-shadow: 0 12px 28px rgba(20, 30, 45, 0.07); }
.my-template-preview { position: relative; height: 370px; display: flex; justify-content: center; padding-top: 18px; overflow: hidden; border-bottom: 1px solid var(--line-2); background: radial-gradient(260px 240px at 50% 35%, #fff, #f4f7fa); border-radius: 12px 12px 0 0; }
.tpl-state { position: absolute; z-index: 3; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 7px; border-radius: 4px; font-size: 9.5px; font-weight: 600; }
.tpl-state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.tpl-state.published { background: #e9f8f1; color: #0e8a5f; }
.tpl-state.draft { background: #f1f3f6; color: #8b96a3; }
.tpl-channel { position: absolute; z-index: 3; right: 12px; top: 10px; }
.wx-mini-mark { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 7px; background: linear-gradient(145deg, #7a5cff, #5b3ee8); color: #fff; box-shadow: 0 3px 8px rgba(92, 64, 230, 0.2); }
.tpl-channel.channel-h5 .wx-mini-mark { background: linear-gradient(145deg, #3f9cff, #2474d8); box-shadow: 0 3px 8px rgba(36, 116, 216, 0.2); }
.tpl-channel.channel-official .wx-mini-mark { background: linear-gradient(145deg, #32c774, #149e52); box-shadow: 0 3px 8px rgba(20, 158, 82, 0.2); }
.tpl-channel.channel-baidu .wx-mini-mark { background: linear-gradient(145deg, #4c7dff, #2b50d8); box-shadow: 0 3px 8px rgba(43, 80, 216, 0.2); }
.tpl-channel.channel-app .wx-mini-mark { background: linear-gradient(145deg, #525f70, #29323d); box-shadow: 0 3px 8px rgba(41, 50, 61, 0.2); }
.tpl-channel.channel-all .wx-mini-mark { background: linear-gradient(145deg, #8b96a3, #65717f); box-shadow: 0 3px 8px rgba(101, 113, 127, 0.2); }
.my-template-actions { position: absolute; z-index: 4; left: 50%; top: 47%; transform: translateX(-50%); width: min(176px, calc(100% - 56px)); display: flex; flex-direction: column; gap: 6px; opacity: 0; pointer-events: none; transition: opacity 0.16s ease; }
.my-template-actions.always { opacity: 1; pointer-events: auto; }
.my-template-card:hover .my-template-actions { opacity: 1; pointer-events: auto; }
.tpl-edit-btn { width: 100%; height: 33px; padding: 0 10px; font-size: 12px; box-shadow: 0 6px 14px rgba(255, 107, 0, 0.22); }
.tpl-more-btn { width: 100%; height: 28px; padding: 0 10px; border: 1px solid #ffb27a; background: #fff; color: var(--orange-deep); font-size: 10.5px; }
.tpl-more-btn:hover { background: #fff8f2; }
.my-template-info { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; padding: 13px 14px 15px; min-height: 78px; }
.my-template-copy { min-width: 0; }
.template-app-label { display: inline-flex; align-items: center; height: 17px; padding: 0 5px; margin-bottom: 3px; border-radius: 3px; background: #eef4ff; color: #3567c4; font-size: 8.5px; font-weight: 500; }
.my-template-copy h3 { font-size: 15px; font-weight: 650; letter-spacing: -0.02em; }
.my-template-copy p { margin-top: 3px; color: var(--muted); font-size: 9.5px; }
.template-qr { position: relative; flex: 0 0 auto; width: 54px; height: 54px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 5px; background: #fff; overflow: hidden; }
.template-qr img { width: 100%; height: 100%; display: block; }
.qr-skeleton { color: #b8c2cd; }
.qr-open { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border: 0; background: rgba(10, 16, 24, 0.4); color: #fff; opacity: 0; cursor: pointer; }
.template-qr:hover .qr-open { opacity: 1; }
.template-list-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 320px; gap: 5px; color: var(--muted-2); }
.template-list-empty .ico { color: #c2cbd4; margin-bottom: 3px; }
.template-list-empty b { color: var(--ink-2); font-size: 13px; }
.template-list-empty span { font-size: 10.5px; }
.template-pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-2); }
.template-pagination > span { color: var(--muted-2); font-size: 10px; }
.template-pagination > div { display: flex; gap: 4px; }
.template-pagination button { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 28px; border: 1px solid var(--line); border-radius: 5px; background: #fff; color: var(--muted); font-size: 10.5px; cursor: pointer; }
.template-pagination button.active { border-color: var(--orange); background: var(--orange); color: #fff; }
.template-action-menu { position: fixed; z-index: 300; width: 158px; padding: 5px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 16px 40px rgba(10, 16, 24, 0.16); }
.template-action-menu button { display: flex; align-items: center; gap: 7px; width: 100%; height: 32px; padding: 0 8px; border: 0; border-radius: 5px; background: transparent; color: var(--ink-2); font-size: 11px; text-align: left; cursor: pointer; }
.template-action-menu button:hover { background: #f7f9fa; }
.template-action-menu button + button { border-top: 1px solid #f4f6f8; border-radius: 0; }
.template-action-menu button:last-child { border-radius: 0 0 5px 5px; }

/* 模板手机预览 */
.tpl-phone { width: 208px; height: 330px; display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; background: #f6f8fa; border: 7px solid #1b222b; box-shadow: 0 16px 30px rgba(20, 30, 45, 0.18); flex: 0 0 auto; }
.tpl-phone.editor { width: 330px; height: 580px; border-width: 9px; border-radius: 30px; box-shadow: 0 22px 50px rgba(20, 30, 45, 0.22); }
.tpl-status { display: flex; align-items: center; justify-content: space-between; height: 19px; padding: 0 11px; background: #fff; color: #26303b; font-size: 6px; font-weight: 600; }
.tpl-phone.editor .tpl-status { height: 24px; padding: 0 15px; font-size: 7px; }
.tpl-header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 11px; }
.tpl-phone.editor .tpl-header { padding: 13px 16px; }
.tpl-header > div { min-width: 0; }
.tpl-header b { display: block; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-header small { display: block; margin-top: 1px; opacity: 0.68; font-size: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-phone.editor .tpl-header b { font-size: 14px; }
.tpl-phone.editor .tpl-header small { font-size: 8px; }
.tpl-avatar { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); font-size: 8px; flex: 0 0 auto; }
.tpl-scroll { flex: 1; min-height: 0; overflow: hidden; background: #f6f8fa; }
.tpl-phone.editor .tpl-scroll { overflow-y: auto; }
.tpl-phone.editor .tpl-scroll::-webkit-scrollbar { width: 3px; }
.tpl-phone.editor .tpl-scroll::-webkit-scrollbar-thumb { background: #cbd4dd; border-radius: 4px; }
.tpl-banner { margin: 7px 9px 0; padding: 10px; border-radius: 8px; display: flex; flex-direction: column; align-items: flex-start; min-height: 75px; }
.tpl-phone.editor .tpl-banner { margin: 10px 13px 0; padding: 15px; min-height: 112px; }
.tpl-banner strong { font-size: 11px; line-height: 1.35; }
.tpl-banner span { margin-top: 2px; font-size: 6px; opacity: 0.75; }
.tpl-banner em { margin-top: 8px; padding: 3px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.2); font-size: 6px; font-style: normal; }
.tpl-phone.editor .tpl-banner strong { font-size: 18px; }
.tpl-phone.editor .tpl-banner span { font-size: 8px; }
.tpl-phone.editor .tpl-banner em { font-size: 8px; padding: 4px 9px; }
.tpl-notice { display: flex; align-items: center; gap: 4px; margin: 6px 9px 0; padding: 5px 7px; border-radius: 5px; font-size: 6px; }
.tpl-notice span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-phone.editor .tpl-notice { margin: 9px 13px 0; padding: 7px 9px; font-size: 8px; }
.tpl-search { display: flex; align-items: center; gap: 4px; margin: 6px 9px 0; padding: 5px 8px; border-radius: 999px; background: #fff; color: #a5afb9; font-size: 6px; }
.tpl-phone.editor .tpl-search { margin: 9px 13px 0; padding: 7px 10px; font-size: 8px; }
.tpl-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; margin: 7px 7px 0; padding: 6px 3px; background: #fff; border-radius: 7px; }
.tpl-nav > div { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #687684; }
.tpl-nav > div > span { display: flex; align-items: center; justify-content: center; width: 19px; height: 19px; border-radius: 6px; background: #fff4ec; color: var(--orange); }
.tpl-nav small { font-size: 5px; white-space: nowrap; }
.tpl-phone.editor .tpl-nav { margin: 10px 11px 0; padding: 9px 3px; }
.tpl-phone.editor .tpl-nav > div > span { width: 28px; height: 28px; border-radius: 8px; }
.tpl-phone.editor .tpl-nav small { font-size: 7px; }
.tpl-products { margin: 7px 9px 0; }
.tpl-section-title { display: flex; align-items: center; justify-content: space-between; padding: 2px 1px 4px; }
.tpl-section-title b { font-size: 7px; }
.tpl-section-title span { display: inline-flex; align-items: center; color: #a4aeb8; font-size: 5px; }
.tpl-product { display: flex; align-items: center; gap: 5px; padding: 5px 6px; margin-bottom: 4px; border-radius: 6px; background: #fff; }
.tpl-product-img { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 5px; background: #fff4ec; color: var(--orange); flex: 0 0 auto; }
.tpl-product > span:nth-child(2) { flex: 1; min-width: 0; }
.tpl-product b { display: block; font-size: 6.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-product small { display: block; color: #a6afb9; font-size: 5px; margin-top: 1px; }
.tpl-product > strong { color: var(--orange-deep); font-size: 7px; flex: 0 0 auto; }
.tpl-phone.editor .tpl-products { margin: 10px 13px 0; }
.tpl-phone.editor .tpl-section-title b { font-size: 10px; }
.tpl-phone.editor .tpl-section-title span { font-size: 7px; }
.tpl-phone.editor .tpl-product { padding: 8px; margin-bottom: 6px; }
.tpl-phone.editor .tpl-product-img { width: 33px; height: 33px; }
.tpl-phone.editor .tpl-product b { font-size: 9px; }
.tpl-phone.editor .tpl-product small { font-size: 7px; }
.tpl-phone.editor .tpl-product > strong { font-size: 9px; }
.tpl-image { margin: 7px 9px 0; overflow: hidden; border-radius: 7px; background: #eef3f8; }
.tpl-image img { width: 100%; display: block; }
.tpl-image > span { display: flex; align-items: center; justify-content: center; gap: 5px; min-height: 72px; color: #a2afbb; font-size: 7px; }
.tpl-phone.editor .tpl-image { margin: 10px 13px 0; }
.tpl-coupon { display: flex; align-items: center; justify-content: space-between; margin: 7px 9px 0; padding: 7px 8px; border-radius: 6px; background: linear-gradient(100deg, #fff1e5, #fff9f4); border: 1px dashed #ffb27a; }
.tpl-coupon b { display: block; color: #d45d00; font-size: 7px; }
.tpl-coupon span { display: block; margin-top: 1px; color: #a17b62; font-size: 5px; }
.tpl-coupon em { padding: 2px 5px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 5px; font-style: normal; }
.tpl-phone.editor .tpl-coupon { margin: 10px 13px 0; padding: 10px; }
.tpl-phone.editor .tpl-coupon b { font-size: 10px; }
.tpl-phone.editor .tpl-coupon span { font-size: 7px; }
.tpl-title { margin: 8px 9px 0; padding: 2px 0; text-align: center; color: #26303b; font-size: 8px; }
.tpl-title b::before, .tpl-title b::after { content: '—'; color: #c6cfd8; margin: 0 4px; }
.tpl-divider { height: 1px; margin: 8px 9px; background: #e7edf3; }
.tpl-spacer { height: 16px; }
.tpl-media { display: flex; align-items: center; gap: 5px; margin: 7px 9px 0; padding: 8px; border-radius: 6px; background: #1c2430; color: #fff; }
.tpl-media span { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tpl-media b { font-size: 6.5px; font-weight: 500; }
.tpl-buttons { display: flex; gap: 5px; margin: 7px 9px 0; }
.tpl-buttons em { flex: 1; padding: 6px 0; border-radius: 999px; background: var(--orange); color: #fff; font-size: 6px; font-style: normal; text-align: center; }
.tpl-form { display: flex; flex-direction: column; gap: 4px; margin: 7px 9px 0; padding: 7px; border-radius: 6px; background: #fff; }
.tpl-form span { height: 14px; border-radius: 3px; background: #f2f5f8; color: #aeb9c4; font-size: 5px; line-height: 14px; padding-left: 4px; }
.tpl-info { display: flex; align-items: center; gap: 6px; margin: 7px 9px 0; padding: 8px; border-radius: 6px; background: #fff; }
.tpl-info > span:first-child { width: 22px; height: 22px; border-radius: 6px; background: #eef7ff; color: var(--blue); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.tpl-info b { display: block; font-size: 6.5px; }
.tpl-info small { display: block; margin-top: 1px; color: #a4aeb8; font-size: 5px; }
.tpl-text { margin: 7px 9px 0; padding: 7px; border-radius: 5px; background: #fff; color: #65717f; font-size: 6px; line-height: 1.6; }
.tpl-phone.editor .tpl-text { margin: 10px 13px 0; padding: 10px; font-size: 9px; }
.tpl-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; height: 100%; min-height: 120px; color: #b1bbc5; font-size: 7px; }
.tpl-tabbar { display: flex; align-items: center; justify-content: space-around; height: 29px; flex: 0 0 auto; background: #fff; border-top: 1px solid #edf0f3; }
.tpl-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 1px; color: #a1acb7; font-size: 5px; }
.tpl-tabbar span.on { color: var(--orange); }
.tpl-phone.editor .tpl-tabbar { height: 44px; }
.tpl-phone.editor .tpl-tabbar span { font-size: 7px; }
.tpl-phone.editor .tpl-tabbar .ico { width: 15px; height: 15px; }
[data-comp] { cursor: pointer; }
.tpl-phone.editor [data-comp] { position: relative; transition: box-shadow 0.15s ease; }
.tpl-phone.editor [data-comp]:hover { box-shadow: 0 0 0 1px rgba(255, 107, 0, 0.4); }
.tpl-phone.editor [data-comp].selected { box-shadow: 0 0 0 2px var(--orange); }
.tpl-phone.editor .tpl-header.selected, .tpl-phone.editor .tpl-header:hover { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.65); outline: 2px solid var(--orange); outline-offset: -2px; }

/* ==========================================================================
   店铺装修编辑器
   ========================================================================== */
.view.design-mode { max-width: none; height: calc(100vh - 66px); padding: 0; overflow: hidden; }
.design-editor { height: 100%; min-height: 0; background: #eef1f5; display: flex; flex-direction: column; overflow: hidden; }
.design-topbar { height: 58px; flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 18px; background: #20262f; color: #dbe2e9; }
.design-top-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.design-back { display: inline-flex; align-items: center; gap: 3px; border: 0; background: transparent; color: #aeb8c2; font-size: 11px; cursor: pointer; white-space: nowrap; }
.design-back:hover { color: #fff; }
.design-top-divider { width: 1px; height: 22px; background: rgba(255, 255, 255, 0.1); }
.design-template-name { display: flex; align-items: center; gap: 7px; min-width: 0; }
.design-template-name > span:first-child { color: #8c99a6; font-size: 10px; white-space: nowrap; }
.design-template-name > b { max-width: 180px; color: #f1f4f7; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.design-app-chip { display: inline-flex; align-items: center; height: 18px; padding: 0 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.11); color: #b9c4cf; font-size: 8.5px; white-space: nowrap; }
.design-page-select { height: 29px; max-width: 180px; padding: 0 25px 0 9px; border: 1px solid rgba(255, 255, 255, 0.15); border-radius: 5px; background: #2a323d; color: #d6dee6; font-size: 10px; outline: none; }
.design-top-actions { display: flex; align-items: center; gap: 7px; flex: 0 0 auto; }
.design-top-actions .btn-ghost { border-color: rgba(255, 255, 255, 0.13); background: rgba(255, 255, 255, 0.04); color: #d9e1e8; }
.design-top-actions .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }
.design-workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: 76px 272px minmax(0, 1fr) 292px; overflow: hidden; }
.design-panel { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.design-canvas { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.design-settings { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.design-rail { background: #1b2029; padding: 9px 6px; overflow-y: auto; display: flex; flex-direction: column; gap: 3px; }
.design-rail button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 55px; border: 0; border-radius: 8px; background: transparent; color: #8f9ba8; font-size: 9px; cursor: pointer; }
.design-rail button .ico { color: #83919f; }
.design-rail button:hover { background: rgba(255, 255, 255, 0.06); color: #d9e1e8; }
.design-rail button.active { background: rgba(255, 107, 0, 0.15); color: #ff8a2a; }
.design-rail button.active .ico { color: #ff8a2a; }
.design-panel { min-height: 0; overflow-y: auto; background: #fff; border-right: 1px solid var(--line); }
.editor-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 15px 14px 10px; border-bottom: 1px solid var(--line-2); }
.editor-panel-head b { display: block; font-size: 12px; font-weight: 650; }
.editor-panel-head span { display: block; margin-top: 2px; color: var(--muted-2); font-size: 8.5px; }
.editor-inspector-icon { display: inline-flex; align-items: center; justify-content: center; width: 25px; height: 25px; border-radius: 6px; background: var(--orange-soft); color: var(--orange) !important; flex: 0 0 auto; margin-top: 0 !important; }
.editor-palette { padding: 4px 7px 8px; }
.editor-palette-group { border-bottom: 1px solid #f1f4f7; padding: 7px 0 9px; }
.editor-palette-group:last-child { border-bottom: 0; }
.editor-palette-group-head { display: flex; align-items: center; gap: 3px; width: 100%; padding: 2px 3px 7px; border: 0; background: transparent; color: #65717f; text-align: left; cursor: pointer; }
.editor-palette-group-head b { font-size: 9.5px; font-weight: 600; }
.editor-palette-group-head span { color: #a4afba; font-size: 8px; }
.editor-palette-group-head .ico { margin-left: auto; color: #b2bdc8; transition: transform 0.15s ease; }
.editor-palette-group.collapsed .editor-palette-grid { display: none; }
.editor-palette-group.collapsed .editor-palette-group-head { padding-bottom: 5px; }
.editor-palette-group.collapsed .editor-palette-group-head .ico { transform: rotate(-90deg); }
.editor-palette-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.editor-comp-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 63px; padding: 6px 3px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: #5a6673; cursor: pointer; }
.editor-comp-item:hover { background: #fff8f2; border-color: #ffe0ca; }
.editor-comp-item .ico { color: #7c8895; }
.editor-comp-item:hover .ico { color: var(--orange); }
.editor-comp-item b { max-width: 100%; font-size: 8px; font-weight: 500; line-height: 1.25; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.editor-comp-badge { position: absolute; top: 2px; right: 2px; padding: 1px 3px; border-radius: 2px; background: #ff5a3c; color: #fff; font-size: 6px; font-style: normal; transform: scale(0.9); transform-origin: top right; }
.editor-comp-badge.locked { background: #8d99a6; }
.editor-panel-foot { display: flex; align-items: flex-start; gap: 4px; padding: 9px 12px; color: var(--muted-2); font-size: 8.5px; line-height: 1.5; }
.editor-settings-body { padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.editor-field { display: flex; flex-direction: column; gap: 4px; }
.editor-field > span { color: #697583; font-size: 9px; }
.editor-field .input { height: 32px; border-radius: 5px; font-size: 10.5px; }
.editor-field .textarea { height: auto; min-height: 62px; padding: 7px 8px; font-size: 10px; }
.color-field { display: flex; align-items: center; gap: 5px; }
.color-field input[type="color"] { width: 31px; height: 31px; padding: 2px; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; }
.color-field .input { flex: 1; min-width: 0; }
.editor-tip { display: flex; align-items: flex-start; gap: 4px; color: var(--muted-2); font-size: 8.5px; line-height: 1.6; background: #fafbfc; padding: 7px; border-radius: 5px; }
.editor-tip .ico { color: var(--orange); flex: 0 0 auto; }
.editor-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 50px 16px; color: var(--muted-2); text-align: center; }
.editor-empty .ico { color: #c3cbd4; margin-bottom: 3px; }
.editor-empty b { color: var(--ink-2); font-size: 11px; }
.editor-empty span { font-size: 9px; line-height: 1.5; }
.editor-component-actions { display: flex; align-items: center; gap: 3px; padding: 10px 12px; border-top: 1px solid var(--line-2); flex-wrap: wrap; }
.editor-theme-list { padding: 10px; display: flex; flex-direction: column; gap: 7px; }
.editor-theme-card { position: relative; display: flex; align-items: center; gap: 8px; padding: 7px; border: 1px solid var(--line); border-radius: 7px; background: #fff; color: var(--ink-2); font-size: 9.5px; text-align: left; cursor: pointer; }
.editor-theme-card > span { width: 43px; height: 30px; border-radius: 4px; flex: 0 0 auto; }
.editor-theme-card b { flex: 1; font-size: 10px; }
.editor-theme-card i { position: absolute; right: 8px; top: 8px; color: var(--orange); font-size: 8px; font-style: normal; }
.theme-swatches { display: flex; gap: 7px; }
.theme-swatch { width: 28px; height: 28px; border: 2px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.theme-swatch.active { box-shadow: 0 0 0 2px var(--orange); }
.editor-label { color: #697583; font-size: 9px; }
.design-canvas { min-width: 0; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 30px 20px 60px; background: radial-gradient(600px 400px at 50% 20%, #f8fafc, #eef1f5); }
.design-phone-wrap { position: relative; display: flex; align-items: flex-start; justify-content: center; padding-top: 4px; }
.design-startup-overlay { position: absolute; top: 4px; left: 50%; z-index: 8; width: 330px; height: 580px; transform: translateX(-50%); border-radius: 30px; overflow: hidden; background: #111; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.design-startup-overlay img { width: 100%; height: 100%; object-fit: cover; }
.design-startup-overlay span { position: absolute; right: 18px; bottom: 26px; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.45); color: #fff; font-size: 9px; }
.design-settings { background: #fff; border-left: 1px solid var(--line); min-height: 0; overflow-y: auto; }
.design-editor.preview-mode .design-workspace { grid-template-columns: minmax(0, 1fr); }
.design-editor.preview-mode .design-rail, .design-editor.preview-mode .design-panel, .design-editor.preview-mode .design-settings { display: none; }
.design-editor.preview-mode .design-canvas { background: #e8ecf1; }
.design-editor.preview-mode .tpl-phone.editor { width: 375px; height: 690px; }
.design-editor.preview-mode .design-phone-wrap { padding-top: 20px; }

@media (max-width: 1280px) {
  .my-template-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .design-workspace { grid-template-columns: 70px 236px minmax(0, 1fr) 270px; }
  .tpl-phone.editor { width: 292px; height: 540px; }
}
@media (max-width: 980px) {
  .mall-overview-cards { grid-template-columns: 1fr 1fr; }
  .mall-chart-grid { grid-template-columns: 1fr; }
  .mall-today-grid { grid-template-columns: 1fr; }
  .mall-order-total { display: none; }
  .my-template-preview { height: 390px; }
  .template-list-toolbar { flex-direction: column; align-items: stretch; }
  .template-list-filters { flex-wrap: wrap; }
  .template-list-filters .inline-search { flex: 1; }
  .design-workspace { grid-template-columns: 62px 220px minmax(0, 1fr); }
  .design-settings { display: none; }
  .design-editor.preview-mode .tpl-phone.editor { width: 310px; height: 590px; }
}
@media (max-width: 720px) {
  .my-template-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .view.design-mode { height: auto; overflow: visible; }
  .design-editor { height: auto; min-height: calc(100vh - 56px); overflow: visible; }
  .my-template-preview { height: 320px; }
  .my-template-actions { width: min(176px, calc(100% - 56px)); opacity: 1; }
  .tpl-phone { transform: scale(0.9); transform-origin: top center; }
  .template-list-filters { flex-direction: column; align-items: stretch; }
  .template-filter-field { justify-content: space-between; }
  .template-filter-field .select-sm { flex: 1; }
  .template-list-filters .input { width: 100%; }
  .design-editor { min-height: calc(100vh - 56px); }
  .design-topbar { height: 52px; padding: 0 10px; }
  .design-template-name > span:first-child, .design-page-select { display: none; }
  .design-top-actions .btn-ghost:first-child { display: none; }
  .design-workspace { display: block; overflow: visible; }
  .design-rail { flex-direction: row; height: 55px; overflow-x: auto; padding: 5px; }
  .design-rail button { min-width: 60px; min-height: 45px; flex: 0 0 auto; }
  .design-panel { border-right: 0; border-bottom: 1px solid var(--line); max-height: 270px; }
  .design-canvas { padding: 20px 12px 40px; }
  .design-editor.preview-mode .design-rail, .design-editor.preview-mode .design-panel { display: none; }
  .design-editor.preview-mode .tpl-phone.editor { width: 300px; height: 570px; }
}
